/* Vermögeninsider · Gold-/Silberpreis. Token aus register.css. Signatur: der Kurszettel (dunkles Datenband) neben dem großen Preis. */

.em-seite {
  --kc-linie: var(--tinte); --kc-flaeche: rgba(29, 58, 110, .13); --kc-raster: #e6e7e2; --kc-text: var(--text-2);
  --kc-auf: var(--auf); --kc-ab: var(--ab); --kc-hinweis: var(--druck); --kc-grund: var(--blatt); --kc-trenner: #b9bcc2;
  --em-farbe: #b8932f; /* Notenfarbe 200 € (gelbbraun) = Gold */
}
.em-seite[data-em-seite="silber"] { --em-farbe: #7d8580; }
@media (prefers-color-scheme: dark) {
  /* Chartfarben für einen künftigen Dunkelmodus: greifen nur, wenn die Seite dunkle Tokens setzt (html[data-dunkel]) */
  html[data-dunkel] .em-seite { --kc-linie: #8fb0e8; --kc-flaeche: rgba(143, 176, 232, .18); --kc-raster: #2a3038; --kc-text: #aab1bb; --kc-hinweis: #e8e9e4; --kc-grund: #101318; }
}

.em-seite .auf { color: var(--auf); }
.em-seite .ab { color: var(--ab); }
.em-seite .abschnitt { padding-top: clamp(2.2rem, 4.5vw, 3.6rem); padding-bottom: 0; }
.em-seite .abschnitt:last-of-type { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.em-seite .block-titel.klein { font-size: var(--t-l); border-bottom-width: 1px; }
.em-seite h1, .em-seite h2, .em-seite h3 { hyphens: manual; }
.em-text { margin: 0 0 1rem; font-family: var(--serif); font-size: var(--t-m); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.em-nw { white-space: nowrap; }
.em-hinweis { color: var(--text-2); font-size: var(--t-xs); margin: .7rem 0 0; text-wrap: pretty; }

/* ───────── Kopf: Preis + Kurszettel ───────── */
.em-kopf { padding-bottom: 0; }
.em-tafel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; margin-top: 1.4rem; }
.em-kurs { display: flex; flex-direction: column; min-width: 0; }
.em-gross { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; margin: 0; line-height: 1; }
.em-gross .em-zahl { font-size: clamp(3rem, 7.4vw, 6.2rem); font-weight: 820; font-stretch: 118%; letter-spacing: -.045em; }
.em-gross .em-je { font-size: var(--t-l); font-weight: 600; color: var(--text-2); }
.em-gross.klein .em-zahl { font-size: var(--t-3xl); }
.em-gross.klein .em-je { font-size: var(--t-s); }
.em-ae { margin: .8rem 0 0; font-size: var(--t-l); color: var(--text-2); }
.em-ae b { font-weight: 760; font-stretch: 108%; }
.em-ae span { font-weight: 600; margin-left: .25rem; }
.em-usd { margin: .45rem 0 0; font-size: var(--t-m); display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.em-usd > span:first-child { font-weight: 700; }
.em-fx { color: var(--text-2); }
.em-stand { margin: .45rem 0 0; font-size: var(--t-s); color: var(--text-2); display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.em-status { display: inline-flex; align-items: center; gap: .4rem; }
.em-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.em-status.offen::before { background: var(--auf); }

.em-spanne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin-top: auto; padding-top: 1.3rem; }
.em-spanne-wert { font-size: var(--t-xs); color: var(--text-2); line-height: 1.25; }
.em-spanne-wert.rechts { text-align: right; }
.em-spanne-wert b { display: block; font-size: var(--t-s); color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.em-spanne-balken { position: relative; height: 6px; background: var(--linie); border-radius: 2px; }
.em-spanne-balken i { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.em-jetzt { width: 3px; height: 20px; background: var(--druck); border-radius: 1px; }
.em-eroeffnung { width: 1px; height: 12px; background: var(--text-3); }

.em-zettel { width: 100%; border-collapse: collapse; background: var(--druck); color: #eef0f2; border-radius: 2px; align-self: start; font-variant-numeric: tabular-nums; }
.em-zettel thead th { font-size: var(--t-xs); font-weight: 500; color: #a3a9b3; text-align: right; padding: .75rem 1.1rem .45rem; border-bottom: 1px solid #3a414b; }
.em-zettel thead th:first-child { text-align: left; }
.em-zettel tbody th { text-align: left; font-weight: 500; color: #c7ccd3; font-size: var(--t-s); padding: .7rem 1.1rem; white-space: nowrap; }
.em-zettel td { text-align: right; font-size: var(--t-l); font-weight: 650; font-stretch: 104%; padding: .7rem 1.1rem; white-space: nowrap; }
.em-zettel td + td { color: #c7ccd3; font-weight: 550; }
.em-zettel tbody tr + tr { border-top: 1px solid #2a3038; }
.em-zettel tbody tr:nth-child(2) td:first-of-type { color: #fff; }

.em-leiste { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 1.8rem 0 0; border-top: 1px solid var(--druck); border-bottom: 1px solid var(--linie); }
.em-leiste div { padding: .7rem .9rem .75rem; min-width: 0; }
.em-leiste div:first-child { padding-left: 0; }
.em-leiste div + div { border-left: 1px solid var(--linie); }
.em-leiste dt { font-size: var(--t-xs); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-leiste dd { margin: .2rem 0 0; font-size: var(--t-m); font-weight: 720; font-stretch: 104%; white-space: nowrap; }
.em-leiste small { font-size: var(--t-xs); font-weight: 600; }

.em-lage { margin: 1.2rem 0 0; font-family: var(--serif); font-size: var(--t-l); line-height: 1.45; color: var(--text); text-wrap: pretty; }
.em-sprung { display: flex; gap: .3rem 1.4rem; margin-top: 1rem; font-size: var(--t-s); overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-bottom: .2rem; }
.em-sprung::-webkit-scrollbar { display: none; }
.em-sprung a { color: var(--text-2); text-decoration: none; }
.em-sprung a:hover { color: var(--tinte); text-decoration: underline; }

/* ───────── Chart ───────── */
.em-steuerung { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin: 1rem 0 .9rem; align-items: center; }
.em-gruppe { display: inline-flex; border: 1px solid var(--druck); border-radius: 4px; overflow: hidden; background: var(--blatt); }
.em-knopf { font: inherit; font-size: var(--t-s); padding: .45rem .8rem; background: transparent; color: var(--text); border: 0; border-right: 1px solid var(--linie); cursor: pointer;
  transition: background var(--d1) var(--kurve), color var(--d1) var(--kurve), transform var(--d1) var(--kurve); }
.em-knopf:last-child { border-right: 0; }
.em-knopf:hover { background: var(--papier); }
.em-knopf:active:not(:disabled) { transform: scale(.97); }
.em-knopf:focus-visible { outline: 2px solid var(--tinte); outline-offset: -2px; }
.em-knopf[aria-pressed="true"] { background: var(--druck); color: var(--papier); }
.em-knopf:disabled { color: var(--text-3); cursor: not-allowed; }
.em-frei { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-s); color: var(--text-2); }
.em-frei input { width: 6rem; font: inherit; padding: .4rem .55rem; border: 1px solid var(--druck); border-radius: 4px; background: var(--blatt); text-align: right; }
.em-frei input:focus-visible { outline: 2px solid var(--tinte); outline-offset: 1px; }
.em-frei[hidden] { display: none; }

.em-chart-kopf { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .8rem; min-height: 1.8rem; }
.em-chart-kopf b { font-size: var(--t-xl); font-weight: 780; font-stretch: 108%; letter-spacing: -.02em; }
.em-chart-kopf [data-em-entwicklung] { font-weight: 650; }
.em-chart-zeit { color: var(--text-2); font-size: var(--t-s); }
.em-chart { position: relative; height: clamp(300px, 38vw, 460px); background: var(--blatt); border: 1px solid var(--linie); border-radius: 2px; }
.em-chart-ratio { height: 280px; }
.kc canvas { display: block; touch-action: pan-y; cursor: crosshair; outline: none; }
.kc canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--tinte); }
.kc-info { position: absolute; top: 0; left: 0; pointer-events: none; background: var(--druck); color: var(--papier); padding: .35rem .6rem; border-radius: 2px;
  font-size: var(--t-xs); display: grid; gap: .1rem; white-space: nowrap; box-shadow: 0 6px 20px rgba(16, 19, 24, .18); }
.kc-info b { font-size: var(--t-m); font-stretch: 108%; }
.kc-info i { font-style: normal; }
.kc-info i.auf { color: #7fd3a2; } .kc-info i.ab { color: #f19a92; }
.kc-auswahl { position: absolute; top: 12px; bottom: 26px; background: rgba(29, 58, 110, .12); border-left: 1px solid var(--tinte); border-right: 1px solid var(--tinte); pointer-events: none; }
.kc-zurueck { position: absolute; top: .5rem; left: .5rem; font: inherit; font-size: var(--t-xs); padding: .3rem .6rem; background: var(--blatt); border: 1px solid var(--druck); border-radius: 4px; cursor: pointer; }
.kc-zurueck:hover { background: var(--druck); color: var(--papier); }
.em-chart-hinweis { color: var(--text-2); font-size: var(--t-xs); margin: .5rem 0 0; }

/* ───────── Raster, Rechner, Tabellen ───────── */
.em-raster { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.em-raster-rechner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.em-raster-ratio { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.em-raster-mitmachen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.em-raster-ratio .em-block + .em-block { padding-top: 2.9rem; }

.em-rechner, .em-alarm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.em-alarm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.em-rechner label, .em-alarm label { display: grid; gap: .25rem; font-size: var(--t-xs); color: var(--text-2); min-width: 0; }
.em-rechner .breit, .em-alarm .breit { grid-column: 1 / -1; }
.em-rechner label.breit { grid-column: auto; }
.em-alarm label[hidden] { display: none; }
.em-rechner input, .em-rechner select, .em-alarm input, .em-alarm select { font: inherit; font-size: var(--t-m); color: var(--text); padding: .6rem .65rem; border: 1px solid var(--druck); border-radius: 4px; background: var(--blatt); min-width: 0; width: 100%; box-sizing: border-box; }
.em-rechner :focus-visible, .em-alarm :focus-visible { outline: 2px solid var(--tinte); outline-offset: 1px; }
.em-ergebnis { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; border-top: 1px solid var(--druck); padding-top: .9rem; margin-top: .2rem; }
.em-ergebnis b { font-size: var(--t-2xl); font-weight: 800; font-stretch: 114%; letter-spacing: -.03em; line-height: 1.05; }
.em-ergebnis span { font-size: var(--t-l); color: var(--text-2); font-weight: 600; }
.em-ergebnis small { flex-basis: 100%; color: var(--text-2); font-size: var(--t-s); }
.em-alarm .knopf { justify-self: start; }
.em-alarm .knopf.breit { grid-column: 1 / -1; }
.em-alarm .em-hinweis { grid-column: 1 / -1; margin: 0; }

.em-tabelle { overflow-x: auto; margin-top: .6rem; }
.em-tab { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.em-tab thead th { text-align: left; font-weight: 600; font-size: var(--t-xs); color: var(--text-2); border-top: 2px solid var(--druck); border-bottom: 1px solid var(--druck); padding: .5rem .7rem; white-space: nowrap; }
.em-tab tbody th { text-align: left; font-weight: 600; padding: .5rem .7rem; white-space: nowrap; }
.em-tab td { padding: .5rem .7rem; white-space: nowrap; }
.em-tab th:first-child, .em-tab td:first-child { padding-left: 0; }
.em-tab .z { text-align: right; font-variant-numeric: tabular-nums; }
.em-tab tbody tr { border-bottom: 1px solid var(--linie); }
.em-tab small { font-size: var(--t-xs); color: var(--text-3); font-weight: 400; margin-left: .25rem; }
.em-tab tr[data-em-zeige] { cursor: pointer; transition: background var(--d1) var(--kurve); }
.em-tab tr[data-em-zeige]:hover { background: var(--blatt); }
.em-tab tr[data-em-zeige]:hover th { color: var(--tinte); }
.em-tab tr[data-em-zeige]:focus-visible { outline: 2px solid var(--tinte); outline-offset: -2px; }
.em-raster-rechner .em-tab { margin-top: .9rem; }
.em-stuecke td:nth-last-child(2) { font-weight: 650; }
.em-alle { margin-top: .9rem; font-size: var(--t-s); padding: .55rem 1rem; }
.em-alle[hidden] { display: none; }
#em-historie h3 { margin-top: 2.2rem; }
.em-zeitreise { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: 1rem 0 1.4rem; padding: .9rem 1rem; background: var(--blatt); border: 1px solid var(--linie); border-radius: 2px; }
.em-zeitreise-frage { margin: 0; font-weight: 650; }
.em-zeitreise select { font: inherit; padding: .45rem .55rem; border: 1px solid var(--druck); border-radius: 4px; background: var(--blatt); color: var(--text); }
.em-zeitreise select:focus-visible { outline: 2px solid var(--tinte); outline-offset: 1px; }
.em-zeitreise-ergebnis { flex: 1 1 22rem; color: var(--text-2); }
.em-mobil, .em-kurz { display: none; }
.em-zeitreise-ergebnis b { color: var(--text); font-size: var(--t-l); font-weight: 760; }
.em-zeitreise-ergebnis span { font-weight: 650; }

.em-matrix { font-size: var(--t-xs); }
.em-matrix thead th { text-align: right; padding: .45rem .4rem; }
.em-matrix thead th:first-child { text-align: left; }
.em-matrix td { text-align: right; padding: .42rem .4rem; font-variant-numeric: tabular-nums; border-left: 2px solid var(--papier); }
.em-matrix td.auf { color: var(--text); background: color-mix(in srgb, var(--auf) calc(var(--s) * 42%), var(--blatt)); }
.em-matrix td.ab { color: var(--text); background: color-mix(in srgb, var(--ab) calc(var(--s) * 42%), var(--blatt)); }

.em-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.2rem 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.em-mini div { padding: .6rem .8rem .6rem 0; display: flex; flex-direction: column; justify-content: space-between; }
.em-mini div + div { padding-left: .8rem; border-left: 1px solid var(--linie); }
.em-mini dt { font-size: var(--t-xs); color: var(--text-2); }
.em-mini dd { margin: .15rem 0 0; font-weight: 720; font-size: var(--t-l); }

/* ───────── Vermögen in Gold ───────── */
.em-reich { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--druck); }
.em-reich li { display: grid; grid-template-columns: minmax(9rem, 15rem) 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.em-reich-name { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-reich-name a, .em-reich-name button { color: var(--text); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.em-reich-name a:hover, .em-reich-name button:hover { color: var(--tinte); text-decoration: underline; }
.em-reich-wert { color: var(--text-2); font-size: var(--t-s); text-align: right; font-variant-numeric: tabular-nums; }
.em-reich-balken { height: 12px; }
.em-reich-balken::before { content: ""; display: block; height: 100%; width: var(--a); background: var(--em-farbe); border-radius: 0 2px 2px 0; }
.em-reich-t { white-space: nowrap; min-width: 5.5rem; text-align: right; font-size: var(--t-l); font-weight: 760; font-stretch: 106%; font-variant-numeric: tabular-nums; }

/* ───────── Stimmung ───────── */
.em-frage { margin: 0 0 1.3rem; }
.em-frage-titel { margin: 0 0 .45rem; font-weight: 650; }
.em-wahl .em-knopf { min-width: 6.5rem; }
.em-balken3 { display: flex; gap: 2px; height: 10px; margin-top: .8rem; }
.em-balken3 i { display: block; min-width: 2px; }
.em-balken3 i:first-child { border-radius: 2px 0 0 2px; } .em-balken3 i:last-child { border-radius: 0 2px 2px 0; }
.em-balken3 .steigt { background: var(--auf); } .em-balken3 .seitwaerts { background: #aeb3ba; } .em-balken3 .faellt { background: var(--ab); }
.em-legende { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin-top: .4rem; font-size: var(--t-s); color: var(--text-2); }
.em-legende b { color: var(--text); font-weight: 700; margin-right: .2rem; }
.em-verteilung small, .em-aufloesung { display: block; color: var(--text-2); font-size: var(--t-xs); margin: .35rem 0 0; text-wrap: pretty; }

/* ───────── Fragen ───────── */
.em-fragen-liste { border-top: 2px solid var(--druck); columns: 2; column-gap: 3rem; }
.em-fragen details { border-bottom: 1px solid var(--linie); break-inside: avoid; }
.em-fragen summary { list-style: none; cursor: pointer; padding: .85rem 2rem .85rem 0; font-weight: 650; position: relative; }
.em-fragen summary::-webkit-details-marker { display: none; }
.em-fragen summary::after { content: ""; position: absolute; right: .2rem; top: 1.25rem; width: 9px; height: 9px; border-right: 1.5px solid var(--druck); border-bottom: 1.5px solid var(--druck); transform: rotate(45deg); transition: transform var(--d2) var(--kurve); }
.em-fragen details[open] summary::after { transform: translate(0, 4px) rotate(225deg); }
.em-fragen summary:hover { color: var(--tinte); }
.em-fragen summary:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; }
.em-fragen details p { margin: 0 0 1rem; font-family: var(--serif); line-height: 1.55; color: var(--text); text-wrap: pretty; }

.em-quellen { font-size: var(--t-s); }
.em-quellen p { margin: .6rem 0 0; color: var(--text-2); }
.em-quellen ul { padding-left: 1.1rem; margin: .5rem 0 0; }
.em-quellen li { margin: .3rem 0; color: var(--text-2); }
.em-quellen a { color: var(--tinte); }

/* ───────── Schmal ───────── */
@media (max-width: 1100px) {
  .em-leiste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .em-leiste div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .em-leiste div:nth-child(n + 4) { border-top: 1px solid var(--linie); }
}
@media (max-width: 860px) {
  .em-tafel, .em-raster-rechner, .em-raster-ratio, .em-raster-mitmachen { grid-template-columns: minmax(0, 1fr); }
  .em-raster-ratio .em-block + .em-block { padding-top: 0; }
  .em-fragen-liste { columns: 1; }
  .em-spanne { margin-top: 0; }
}
@media (max-width: 600px) {
  .em-leiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-leiste div:nth-child(n) { padding-left: 0; border-left: 0; border-top: 1px solid var(--linie); }
  .em-leiste div:nth-child(-n + 2) { border-top: 0; }
  .em-leiste div:nth-child(2n) { padding-left: .9rem; border-left: 1px solid var(--linie); }
  .em-steuerung { gap: .45rem; }
  .em-steuerung .em-gruppe:first-child { display: flex; width: 100%; }
  .em-steuerung .em-gruppe:first-child .em-knopf { flex: 1; padding: .5rem 0; }
  .em-knopf { padding: .45rem .6rem; }
  .em-rechner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .em-rechner label.breit { grid-column: 1 / -1; }
  .em-zettel thead th, .em-zettel tbody th, .em-zettel td { padding-left: .8rem; padding-right: .8rem; }
  .em-zettel td { font-size: var(--t-m); }
  .em-zettel .em-lang { display: none; }
  .em-zettel .em-kurz { display: inline; }
  .em-stuecke tbody th { white-space: normal; }
  .em-reich li { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .8rem; }
  .em-reich-wert { grid-column: 2; grid-row: 1; }
  .em-reich-balken { grid-column: 1; grid-row: 2; }
  .em-reich-t { grid-column: 2; grid-row: 2; font-size: var(--t-m); }
  .em-wahl { display: flex; width: 100%; }
  .em-sprung { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
  .em-lage { font-size: var(--t-m); }
  .em-tab .nb { display: none; }
  .em-mobil { display: block; margin: .1rem 0 0 !important; font-weight: 400; }
  .em-tab td, .em-tab th { padding-left: .5rem; padding-right: .5rem; }
  .em-matrix { font-size: .65rem; letter-spacing: 0; font-stretch: 78%; }
  .em-raster-rechner .em-tab tbody th { white-space: normal; }
  .em-matrix thead th, .em-matrix td { padding: .38rem .06rem; border-left-width: 1px; }
  .em-matrix th:first-child { padding-right: .3rem; }
  .em-zeitreise { padding: .8rem; }
  .em-zeitreise-frage { flex-basis: 100%; }
  .em-zeitreise label { flex: 1; }
  .em-zeitreise select { width: 100%; }
  .em-zeitreise-ergebnis { flex-basis: 100%; }
  .em-wahl .em-knopf { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .em-knopf, .em-fragen summary::after, .em-tab tr[data-em-zeige] { transition: none; } }
