/* Aktien-Radar - Dashboard, Designsystem Runde 2 (Uebergabe von Claude Design, 28.09.2026).
   Neutraler Grund, Teal nur fuer Tippbares, Gruen und Rot nur mit Vorzeichen oder Dreieck.
   Karten trennen sich ueber die Flaeche vom Grund, nicht ueber Linien.
   Mobil zuerst (390 px, Tab-Leiste unten), ab 900 px Kopf mit Reitern und zwei Spalten.
   Tokens heissen wie im Entwurf (--bg, --fl, --ink ...), damit er sich direkt vergleichen laesst. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/schrift/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* --- Tokens: hell, dunkel nach System, dunkel und hell von Hand (Mehr → Darstellung) --- */

:root {
  color-scheme: light;
  --bg: #f4f4f1;   --fl: #ffffff;   --fl2: #ebebe7;  --li: #e1e1dc;
  --ink: #121413;  --ink2: #474b49; --ink3: #676b68;
  --ak: #0b6b61;   --akInk: #ffffff;
  --up: #13773f;   --upBg: #e3f2e8; --dn: #c2362b;  --dnBg: #fae7e4;
  --wa: #855806;   --waBg: #f8eed9; --chart: #121413; --onUp: #ffffff;
  --schatten: 0 1px 3px rgb(0 0 0 / .12);
  --schatten-gross: 0 24px 60px rgb(0 0 0 / .18);
  --schrift: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0b0b;   --fl: #151716;   --fl2: #1e2120;  --li: #272b29;
    --ink: #f1f2f1;  --ink2: #b5bab7; --ink3: #8f9591;
    --ak: #5ccfbf;   --akInk: #03201b;
    --up: #46d088;   --upBg: #0f2619; --dn: #ff7d6e;  --dnBg: #2c1512;
    --wa: #f0b64b;   --waBg: #27200f; --chart: #f1f2f1; --onUp: #07140c;
    --schatten: 0 1px 3px rgb(0 0 0 / .5);
    --schatten-gross: 0 24px 60px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0b0b;   --fl: #151716;   --fl2: #1e2120;  --li: #272b29;
  --ink: #f1f2f1;  --ink2: #b5bab7; --ink3: #8f9591;
  --ak: #5ccfbf;   --akInk: #03201b;
  --up: #46d088;   --upBg: #0f2619; --dn: #ff7d6e;  --dnBg: #2c1512;
  --wa: #f0b64b;   --waBg: #27200f; --chart: #f1f2f1; --onUp: #07140c;
  --schatten: 0 1px 3px rgb(0 0 0 / .5);
  --schatten-gross: 0 24px 60px rgb(0 0 0 / .6);
}

/* --- Grundlage ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(65px + max(8px, env(safe-area-inset-bottom)));
}
a { color: var(--ak); text-decoration: none; }
a:not([class]):hover { text-decoration: underline; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
h1, h2, h3, b, strong { font-weight: 600; }
small { font-size: inherit; }
em { font-style: italic; }
code, kbd { font-family: var(--mono); font-size: .92em; }
button { font: inherit; color: inherit; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ak); outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.zahl, table { font-variant-numeric: tabular-nums; }
.positiv { color: var(--up); }
.negativ { color: var(--dn); }
.warn-text { color: var(--wa); }
.leise { color: var(--ink3); }
.r { text-align: right; }

/* Nur eine Breite: .kurz am Handy, .lang ab 900 px. */
@media (max-width: 899.98px) { .lang { display: none !important; } }
@media (min-width: 900px) { .kurz { display: none !important; } }

/* --- Gerüst: Kopf (Desktop), Inhalt, Fuss, Tab-Leiste (Handy) --------------- */

.kopf { display: none; }

.inhalt {
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.seite-heute .inhalt { gap: 28px; }
.seite-radar .inhalt, .seite-aktie .inhalt, .seite-mehr .inhalt, .seite-auswertung .inhalt { gap: 22px; }
.seite-digest .inhalt, .seite-bestand .inhalt, .seite-system .inhalt { gap: 18px; }

/* Am Handy eine Spalte; die Reihenfolge der Abschnitte setzt die Seite (order). */
.zweispaltig, .spalte-haupt, .spalte-seite { display: contents; }

body > footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 24px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink3);
}
body > footer .quellen { display: none; }
body.seite-mehr > footer .quellen { display: block; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--li);
}
.tabbar a {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink3);
  font-size: 11px;
  font-weight: 500;
}
.tabbar a[aria-current="page"] { color: var(--ak); font-weight: 600; }

/* --- Typografie der Seiten ------------------------------------------------- */

.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.seitenkopf h1 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.seitenkopf .pille { font-size: 13px; padding: 5px 10px; border-radius: 9px; margin-bottom: 4px; }
.datumzeile { font-size: 13px; font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.unterzeile { font-size: 14px; color: var(--ink3); }
.einleitung { font-size: 15px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.fussnote { font-size: 12px; line-height: 1.5; color: var(--ink3); }
.zurueck-text { display: flex; align-items: center; height: 44px; margin: -6px 0 -8px; font-size: 17px; color: var(--ak); }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.abschnitt-kopf h2, h2.abschnitt, .a-radar > h2, .a-mein > h2, .positionen > h2 { font-size: 20px; }
.weiter { font-size: 15px; font-weight: 600; color: var(--ak); }
.wert-gross { font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bewegung { font-size: 15px; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }
.bewegung.positiv { color: var(--up); }
.bewegung.negativ { color: var(--dn); }

/* --- Bausteine -------------------------------------------------------------- */

.karte { display: block; background: var(--fl); border-radius: 16px; padding: 16px; color: inherit; }
.karte.gross { border-radius: 20px; padding: 18px; }
.karte.leise { background: var(--fl2); }
.karte > p.leise:first-child { font-size: 13px; }
.karte.leer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-radius: 20px; }
.karte.leer strong { font-size: 17px; }
.karte.leer p { font-size: 14px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.karte.leer .weiter { font-size: 14px; }

/* Liste auf einer Flaeche: Zeilen durch 1 px --li getrennt. */
.liste { display: flex; flex-direction: column; background: var(--fl); border-radius: 16px; padding: 0 16px; }
.liste > * + * { border-top: 1px solid var(--li); }

.pille {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink2);
  background: var(--fl2);
}
.pille.hoch, .pille.fehler { color: var(--dn); background: var(--dnBg); }
.pille.mittel, .pille.unvollstaendig { color: var(--wa); background: var(--waBg); }
.pille.ok { color: var(--up); background: var(--upBg); }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--fl2);
  color: var(--ak);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.knopf.primaer { background: var(--ak); color: var(--akInk); }
.knopf.leise { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.knopf.pille-knopf { height: 40px; padding: 0 14px; border-radius: 20px; background: var(--ak); color: var(--akInk); font-size: 15px; }
.knopf[disabled] { opacity: .6; cursor: progress; }
.knopf-x {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: none; color: var(--ink3); cursor: pointer;
}
.knopf-x:hover { background: var(--fl2); color: var(--dn); }
.textknopf { padding: 10px 0; margin: -10px 0; border: 0; background: none; color: var(--ak); font-size: 15px; font-weight: 600; cursor: pointer; }
.rundknopf { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 22px; background: var(--fl2); color: var(--ink); cursor: pointer; }
.suchfeld { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--fl2); color: var(--ink3); font-size: 15px; cursor: pointer; }

/* Segment: Knoepfe (Zeitraum), Reiter (Markt, Aufteilung) oder Radios (Formulare). */
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border-radius: 12px; background: var(--fl2); }
.segment > button, .segment > label > span {
  height: 34px; display: grid; place-items: center; padding: 0 8px;
  border: 0; border-radius: 9px; background: none; color: var(--ink2);
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.segment:has(> :nth-child(2):last-child) > button, .segment:has(> :nth-child(2):last-child) > label > span,
.segment:has(> label:nth-child(3):last-child) > label > span { height: 36px; font-size: 14px; }
.segment > [aria-pressed="true"], .segment > [aria-selected="true"], .segment input:checked + span {
  background: var(--fl); color: var(--ink); box-shadow: var(--schatten);
}
.segment label { position: relative; display: block; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment input:focus-visible + span { outline: 2px solid var(--ak); outline-offset: 1px; }
.segment.klein { display: inline-grid; grid-auto-columns: auto; border-radius: 10px; }
.segment.klein > button { height: 30px; padding: 0 10px; border-radius: 8px; box-shadow: none; }
html:not(.js) [role="tablist"] { display: none; }
html:not(.js) [role="tabpanel"][hidden] { display: flex !important; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--fl2); color: var(--ink2); font-size: 14px; white-space: nowrap; }
.chip.aktiv { background: var(--ink); color: var(--bg); font-weight: 600; }
.chip-trenner { flex: none; width: 1px; height: 20px; align-self: center; background: var(--li); }

.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kachel { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 14px; border-radius: 16px; background: var(--fl); }
.kachel .label { font-size: 13px; color: var(--ink3); }
.kachel .wert { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kachel .zusatz { font-size: 12px; color: var(--ink3); }

.fortschritt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; font-size: 13px; }
.fortschritt .balken, .fortschritt small { grid-column: 1 / -1; }
.fortschritt small { font-size: 12px; color: var(--ink3); }
.fortschritt.gross { font-size: 15px; gap: 8px 12px; }
.fortschritt.gross > span:first-child { font-weight: 600; }
.fortschritt.gross > .zahl { color: var(--ink2); }
.balken { display: block; height: 6px; border-radius: 3px; background: var(--li); overflow: hidden; }
.balken > span { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.balken.positiv > span { background: var(--up); }
.balken.negativ > span { background: var(--dn); }
.fortschritt.gross .balken { height: 8px; border-radius: 4px; }

.hinweis { padding: 14px 16px; border-radius: 16px; background: var(--fl2); font-size: 14px; line-height: 1.45; color: var(--ink2); }
.hinweis.warn { background: var(--waBg); color: var(--wa); }

.lage { display: inline-flex; flex-wrap: wrap; gap: 3px 8px; font-weight: 600; }
.lage .leise { color: var(--ink2); font-weight: 400; }
.lage.chips { gap: 8px; margin: 0; padding: 0; overflow: visible; }
.lage.chips > span { padding: 4px 9px; border-radius: 8px; background: var(--fl2); font-size: 13px; font-weight: 600; }

.tagespille {
  min-width: 62px; padding: 2px 7px; border-radius: 7px; text-align: right;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--onUp); background: var(--ink3);
}
.tagespille.positiv { color: var(--onUp); background: var(--up); }
.tagespille.negativ { color: var(--onUp); background: var(--dn); }

.sparkline { display: block; width: 100%; height: 28px; }
.sparkline polyline { fill: none; stroke: var(--ink3); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sparkline.positiv polyline { stroke: var(--up); }
.sparkline.negativ polyline { stroke: var(--dn); }
.sparkline circle { fill: var(--ink); }
.spark-flaeche { display: block; width: 100%; height: 64px; }
.spark-flaeche .unter { fill: var(--fl2); }
.spark-flaeche .linie { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; }

/* Zeilen */
.alertzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; color: inherit; }
.alertzeile.mit-icon { grid-template-columns: 32px minmax(0, 1fr) auto; min-height: 64px; }
.radarkachel { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--fl2); color: var(--ink); }
.a-text { display: flex; flex-direction: column; min-width: 0; }
.a-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-text small { font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--li); color: inherit; }
.bzeile > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.bzeile b { font-size: 15px; }
.bzeile small { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bzeile > .r { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.liste > .bzeile { border-bottom: 0; }

/* Einklappbare Zeilen in einer Liste (Aktie, Auswertung, System) */
.liste > details > summary, .d-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 50px; font-size: 16px; color: var(--ink);
}
.liste > details[open] > summary .leise { color: var(--ak); }
.liste > details > :last-child:not(summary) { margin-bottom: 12px; }
.d-hinweis { padding: 2px 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink3); }
.d-text { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.d-zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--li); font-size: 14px; }
.d-zeile > span:first-child { min-width: 0; }
.d-zeile small { display: block; font-size: 12px; color: var(--ink3); }
.d-zeile > .r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.d-zeile.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 36px; padding: 0; }
.d-zeile .wind, .d-zeile .urteil-text { flex: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wind.gedaempft, .urteil-text.gedaempft { color: var(--ink3); }
.liste h3 { padding: 12px 0 6px; font-size: 14px; }
.liste h3 small { font-size: 12px; font-weight: 400; color: var(--ink3); }
.liste .fussnote { padding: 10px 0 4px; }
.liste code { font-size: 13px; }

/* --- Heute ------------------------------------------------------------------ */

.heute .h-kopf { order: 1; }
.heute .h-lage { order: 2; }
.heute .h-depot { order: 3; }
.heute .h-signale, .heute .h-woche { order: 4; }
.heute .h-titel { order: 5; }
.heute .h-digest { order: 6; }
.heute .karte.h-riese { display: none; }

.lagezeile { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--fl); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.punkt { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--ink3); }
.lage-korrektur .punkt { background: var(--wa); }
.lage-crash .punkt { background: var(--dn); }

.h-depot { display: flex; flex-direction: column; gap: 6px; }
.d-kopf { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink2); }
.d-kurve { margin-top: 6px; }
.d-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.d-kacheln .kachel { padding: 12px 14px; border-radius: 14px; }
.d-kacheln .wert { font-size: 18px; }
.h-signale, .h-titel { display: flex; flex-direction: column; gap: 4px; }
.h-digest { display: flex; flex-direction: column; gap: 6px; }
.h-digest small { font-size: 13px; color: var(--ink3); }
.h-digest strong { font-size: 16px; line-height: 1.35; }

.titelliste { display: flex; flex-direction: column; }
.titelliste-kopf { display: none; }
.titelzeile { display: grid; grid-template-columns: minmax(0, 1fr) 64px 92px; align-items: center; gap: 12px; min-height: 62px; border-bottom: 1px solid var(--li); }
.t-titel { display: flex; flex-direction: column; min-width: 0; color: inherit; }
.t-titel b { font-size: 16px; }
.t-titel small { font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-lage, .t-52w { display: none; }
.t-kurs { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.t-kurs b { font-size: 15px; white-space: nowrap; }
.entfernen { display: none; justify-self: end; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--dn); color: var(--onUp); font-size: 13px; font-weight: 600; cursor: pointer; }
.bearbeiten .entfernen { display: block; grid-column: 3; grid-row: 1; }
.bearbeiten .t-kurs { visibility: hidden; }

/* --- Radar -------------------------------------------------------------------- */

.r-kopf { flex-wrap: wrap; row-gap: 22px; }
.r-kopf .unterzeile { display: none; }
.r-kopf .chips { flex: none; width: calc(100% + 40px); }
.stand { font-size: 13px; color: var(--ink3); padding-bottom: 6px; }
.r-raster, .r-rechts { display: flex; flex-direction: column; gap: 22px; }
.signal { display: flex; flex-direction: column; gap: 14px; }
.s-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink3); }
.s-titel a { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.s-titel p { font-size: 14px; color: var(--ink3); }
.s-leit { display: flex; flex-direction: column; gap: 14px; }
.s-zahl { font-size: 48px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.s-leit p { font-size: 15px; line-height: 1.45; color: var(--ink2); }
.s-stufe2 { font-size: 14px; font-weight: 600; color: var(--up); }
.s-belege { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-belege b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.s-belege small { display: block; font-size: 13px; color: var(--ink3); }
.s-fuss { padding-top: 12px; border-top: 1px solid var(--li); font-size: 13px; color: var(--ink3); }
.weitere { align-self: center; font-size: 14px; font-weight: 600; }
.karte.riese { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; }
.riese h2 { font-size: 16px; }
.riese p { font-size: 14px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.riese .weiter { font-size: 14px; }

/* --- Depot ---------------------------------------------------------------------- */

.depot { display: flex; flex-direction: column; gap: 24px; }
.d-stand { display: flex; flex-direction: column; gap: 4px; }
.d-stand .unterzeile { display: none; }
.d-chart { display: flex; flex-direction: column; gap: 12px; }
.depotkurve { height: 180px; }
.d-zeitraum { margin-top: -12px; }
.chart-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink3); }
.l-depot::before { content: "━ "; }
.l-markt::before { content: "┅ "; }
.l-einsatz { opacity: .8; }
.l-einsatz::before { content: "─ "; }

.aufteilung { display: flex; flex-direction: column; gap: 12px; padding: 0; background: none; }
.auf-balken { display: flex; gap: 3px; height: 12px; border-radius: 6px; overflow: hidden; }
.auf-legende { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.auf-legende li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.auf-legende li > span:first-child { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.auf-legende li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.auf-legende li > span:last-child { color: var(--ink2); }
.f1 { background: var(--ink); } .f2 { background: var(--ak); } .f3 { background: var(--ink3); } .f4 { background: var(--wa); }

.positionen { display: flex; flex-direction: column; }
.positionen > h2 { margin-bottom: 4px; }
.poszeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 96px;
  grid-template-areas: "titel linie wert" "titel linie gewinn";
  align-content: center;
  column-gap: 12px;
  min-height: 66px;
  border-bottom: 1px solid var(--li);
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.poszeile.verkauft { opacity: .72; }
.p-titel { grid-area: titel; align-self: center; display: flex; flex-direction: column; min-width: 0; }
.p-titel b { font-size: 16px; }
.p-name, .p-lage2 { display: none; }
.p-lage { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-linie { grid-area: linie; align-self: center; }
.p-linie .sparkline { height: 26px; }
.p-wert, .p-gewinn { display: flex; flex-direction: column; align-items: flex-end; }
.p-wert { grid-area: wert; align-self: end; }
.p-wert b { font-size: 15px; }
.p-gewinn { grid-area: gewinn; align-self: start; }
.p-gewinn b { font-size: 13px; }
.p-wert small, .p-gewinn small { display: none; }

.geschaefte { padding: 0; }
.geschaefte > summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; font-size: 16px; font-weight: 600; }
.geschaefte > summary .leise { font-size: 14px; font-weight: 500; }
.gzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; align-items: center; gap: 10px; min-height: 56px; margin: 0 16px; border-top: 1px solid var(--li); }
.gzeile:last-child { margin-bottom: 8px; }
.g-titel { display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
.g-titel small, .g-betrag small { font-size: 12px; color: var(--ink3); }
.g-titel small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-betrag { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }

/* --- Markt ------------------------------------------------------------------------ */

.m-oben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-index b { font-size: 14px; }
.m-index small { font-size: 13px; color: var(--ink3); }
.m-index .wert { margin-top: 6px; font-size: 18px; }
.m-breite { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.m-breite h2 { margin-top: 16px; font-size: 20px; }
.sektoren { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.sektor { display: flex; flex-direction: column; justify-content: space-between; min-height: 56px; padding: 10px; border-radius: 10px; color: var(--ink); }
.sektor span { font-size: 12px; }
.sektor b { font-size: 15px; }
.m-listen { display: flex; flex-direction: column; gap: 24px; }
.m-bereich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
.beweger { grid-column: 1 / -1; display: flex; flex-direction: column; }
.beweger h2 { font-size: 17px; margin-bottom: 2px; }
.beweger h2 small { font-size: 13px; font-weight: 400; color: var(--ink3); }
.m-extrem .wert { font-size: 28px; }
.m-extrem small { font-size: 13px; color: var(--ink3); }
.m-extrem p { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--ink2); overflow-wrap: anywhere; }
.m-extrem a { color: var(--ink2); font-weight: 600; }
.m-extrem .eintrag { white-space: nowrap; }

/* --- Aktie ------------------------------------------------------------------------- */

.aktie .a-leiste { order: 1; }
.aktie .a-kopf { order: 2; }
.aktie .a-chart { order: 3; }
.aktie .a-zeitraum { order: 4; }
.aktie .raster { order: 5; }
.aktie .a-radar, .aktie .a-claude { order: 6; }
.aktie .a-mein { order: 7; }
.aktie .a-details { order: 8; }
.a-aktionen { display: none; }
.a-kopfzeile { display: contents; }

.a-leiste { display: flex; justify-content: space-between; align-items: center; height: 44px; margin: -6px -8px -8px; }
.zurueck { width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; line-height: 1; color: var(--ak); }
.a-kuerzel { font-size: 15px; font-weight: 600; }
.merken { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ak); cursor: pointer; }
.a-kopf { display: flex; flex-direction: column; gap: 2px; }
.a-name { font-size: 15px; color: var(--ink2); }
.a-chart { display: flex; flex-direction: column; gap: 12px; }
.a-chart .chart-legende:not(.chart-marken) { justify-content: space-between; }
/* Am Handy: Anfang und Ende in einer Zeile, die Erklaerung darunter. */
.a-chart .chart-legende:not(.chart-marken) > span:nth-child(2) { order: 3; flex-basis: 100%; }
.chart-marken { margin-top: -6px; }
.a-zeitraum { margin-top: -10px; }
.kurschart { height: 210px; }

.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.raster > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--li); }
.raster dt { font-size: 13px; color: var(--ink3); white-space: nowrap; }
.raster dd { font-size: 15px; font-weight: 600; white-space: nowrap; }

.a-radar, .a-mein { display: flex; flex-direction: column; gap: 10px; }
.urteil { display: flex; flex-direction: column; gap: 12px; }
.u-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.u-titel { display: flex; align-items: center; gap: 10px; font-size: 16px; min-width: 0; }
.u-titel .punkt { margin: 0; }
.u-leit { font-size: 14px; color: var(--ink2); }
.u-leit span { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.u-text { font-size: 14px; color: var(--ink2); }
.u-lage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }

/* Claude (seit 11.10.2026): der Funke markiert alles, was von Claude kommt. Urteile tragen
   Farbe nur mit Dreieck oder Raute; Texte kurz, Details zum Aufklappen. */
.a-claude { display: flex; flex-direction: column; gap: 10px; }
.ki { display: flex; flex-direction: column; gap: 14px; }
.ki-wartet { display: flex; align-items: center; gap: 10px; }
.ki-wartet .icon, .s-claude .icon, .kw-marke .icon, .ki-titel .icon { color: var(--ak); flex: none; }

.ki-abzeichen { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 15px;
  font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--fl2); color: var(--ink2); }
.ki-abzeichen.kauf { background: var(--upBg); color: var(--up); }
.ki-abzeichen.meid { background: var(--dnBg); color: var(--dn); }
.ki-abzeichen.klein { height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; letter-spacing: .02em; }

.ki-chance { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 96px; }
.ki-chance-zahl { display: flex; align-items: baseline; gap: 5px; }
.ki-chance-zahl b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.ki-chance-zahl small { font-size: 12px; color: var(--ink3); }
.ki-chance-balken { position: relative; width: 96px; height: 6px; border-radius: 3px; background: var(--fl2); }
.ki-chance-balken > span { display: block; height: 100%; border-radius: 3px; background: var(--ink3); }
.ki-chance-balken > span.gut { background: var(--up); }
.ki-chance-balken > span.schwach { background: var(--dn); }
.ki-chance-balken > i { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--ink); opacity: .35; }
.ki-chance.klein { flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.ki-chance.klein .ki-chance-zahl b { font-size: 13px; }
.ki-chance.klein .ki-chance-balken { width: 56px; height: 4px; }

.ki-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ki-urteil { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ki-stufe { display: flex; align-items: center; gap: 4px; }
.ki-stufe i { width: 7px; height: 7px; border-radius: 50%; background: var(--li); }
.ki-stufe i.an { background: var(--ink2); }
.ki-stufe small { margin-left: 4px; font-size: 12px; color: var(--ink3); }
.ki-kurz { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; text-wrap: pretty; }
.ki-bestand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--fl2); font-size: 14px; color: var(--ink2); }

.ki-punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ki-punkte li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.4; color: var(--ink2); }
.ki-zeichen { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-weight: 700; font-size: 15px; }
.pro .ki-zeichen { background: var(--upBg); color: var(--up); }
.contra .ki-zeichen { background: var(--dnBg); color: var(--dn); }

.ki-klein-titel { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.ki-leiter-block { display: flex; flex-direction: column; gap: 8px; }
.ki-leiter { position: relative; list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.ki-leiter::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; background: var(--li); }
.ki-leiter > li { position: relative; }
.ki-leiter > li::before { content: ""; position: absolute; left: -19px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; border: 2px solid var(--ink3); background: var(--fl); }
.ki-leiter > li.jetzt { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 15px; }
.ki-leiter > li.jetzt::before { border-color: var(--ak); background: var(--ak); }
.ki-leiter > li.jetzt span { font-size: 12px; color: var(--ak); font-weight: 600; }
.ki-marke { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "kurs abstand knopf" "text text knopf";
  align-items: center; gap: 2px 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--fl2); }
.ki-marke > b { grid-area: kurs; font-size: 15px; }
.ki-marke > small { grid-area: abstand; font-size: 12px; font-weight: 600; }
.ki-marke-text { grid-area: text; font-size: 13px; line-height: 1.35; color: var(--ink2); }
.ki-marke .knopf-rund { grid-area: knopf; }
.ki-marke .blatt-fehler { grid-column: 1 / -1; }
.knopf-rund { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--fl); color: var(--ak); cursor: pointer; }
.knopf-rund:hover { background: var(--bg); }

.ki-marken { display: flex; flex-wrap: wrap; gap: 6px; }
.ki-marken:empty { display: none; }
.ki-marken span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 9px; background: var(--fl2); font-size: 12px; color: var(--ink2); }
.ki-mehr summary { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ak); }
.ki-mehr summary::after { content: "›"; transition: transform .15s; }
.ki-mehr[open] summary::after { transform: rotate(90deg); }
.ki-mehr > p { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.ki-quellen { margin: 10px 0 0; padding-left: 16px; font-size: 13px; line-height: 1.45; }
.ki-quellen li + li { margin-top: 4px; }
.ki-fragen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ki-fragen .knopf { display: inline-flex; align-items: center; gap: 8px; }
.ki-fragen small { font-size: 12px; }
.ki-titel { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.s-claude { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink2); }
.s-claude .icon { margin-top: 2px; }

/* Wochenblick: Kopf mit Kalenderwoche, Markt als Kacheln, Kandidaten als Karten, Termine als Zeitleiste */
.ki-woche { display: flex; flex-direction: column; gap: 14px; }
.kw-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
.kw-kopf > small { white-space: nowrap; }
.feld-hilfe { display: block; font-size: 12px; color: var(--ink3); }
.kw-marke { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.kw-marke small { white-space: nowrap; padding: 2px 8px; border-radius: 8px; background: var(--fl2); font-size: 12px; font-weight: 600; color: var(--ink2); }
.kw-markt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kw-index { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; background: var(--fl2); }
.kw-index small { font-size: 12px; color: var(--ink3); }
.kw-index b { font-size: 19px; font-weight: 700; }
.kw-lage { font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.kw-lage.kurz { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kw-kandidaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.kw-kand { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--fl2); color: var(--ink); }
.kw-kand:hover { background: var(--li); }
.kw-kand-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kw-kand-kopf b { font-size: 17px; letter-spacing: -.01em; }
.kw-warum { font-size: 13px; line-height: 1.4; color: var(--ink2); }
.kw-risiko { font-size: 12px; line-height: 1.4; color: var(--ink3); }
.kw-risiko b { margin-right: 4px; color: var(--wa); font-weight: 600; }
.kw-leer { font-size: 14px; color: var(--ink3); }
.ki-woche h3 { margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.kw-liste { display: flex; flex-direction: column; gap: 6px; }
.kw-depot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; border-radius: 12px; background: var(--fl2); font-size: 13px; line-height: 1.4; color: var(--ink2); }
.kw-depot > span:last-child { flex-basis: 100%; }
.kw-depot b { color: var(--ink); }
.kw-termine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kw-termine li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.4; }
.kw-datum { font-size: 13px; font-weight: 700; color: var(--ak); font-variant-numeric: tabular-nums; }
.kw-vorsicht { padding: 10px 12px; border-radius: 12px; background: var(--waBg); color: var(--wa); font-size: 13px; line-height: 1.45; }
.kw-vorsicht b { margin-right: 4px; }

/* Seite Claude */
.ki-seite .karte { display: flex; flex-direction: column; gap: 14px; }
.ki-seite h2 { font-size: 20px; }
.ki-radar-anteil { display: flex; align-items: center; gap: 14px; }
.ki-ring { position: relative; flex: none; width: 68px; height: 68px; border-radius: 50%;
  background: conic-gradient(var(--ak) calc(var(--wert) * 1%), var(--fl2) 0); }
.ki-ring span { position: absolute; inset: 7px; display: grid; place-items: center; border-radius: 50%; background: var(--fl);
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ki-gross { font-size: 17px; font-weight: 600; }
.ki-zuletzt .ki-zeile { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; color: var(--ink); }
.ki-zeile-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ki-zeile-kopf small.leise { margin-left: auto; font-size: 12px; }
.ki-zeile-kopf small.zahl { font-size: 12px; font-weight: 600; color: var(--ink2); }
.ki-zeile-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.ki-form { display: flex; flex-direction: column; gap: 10px; }
.ki-aufgabe { margin-top: 6px; }
.ki-aufgabe small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ki-form .knopf { align-self: flex-start; }
.ki-aufgabe-box { border-radius: 14px; background: var(--fl2); }
.ki-aufgabe-box > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
.ki-aufgabe-box > summary::after { content: "›"; color: var(--ink3); transition: transform .15s; }
.ki-aufgabe-box[open] > summary::after { transform: rotate(90deg); }
.ki-aufgabe-name, .ki-aufgabe-verbrauch { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ki-aufgabe-name { flex: 1; }
.ki-aufgabe-verbrauch { align-items: flex-end; }
.ki-aufgabe-name small, .ki-aufgabe-verbrauch small { font-size: 12px; color: var(--ink3); }
.ki-aufgabe-box .gruppe { margin: 0 8px; background: var(--fl); }
.ki-aufgabe-box .fussnote { padding: 8px 14px 12px; }
.ki-zaehler { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ki-zaehler b { margin-right: 6px; font-size: 15px; }
.ki-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.ki-tabelle th { padding: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ink3); text-align: left; }
.ki-tabelle td { padding: 8px 0; border-top: 1px solid var(--li); }
.ki-tabelle .r { text-align: right; padding-left: 10px; }
.ki-tabelle tr.trenner td { padding-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); border-top: 0; }

.warnbox { border-radius: 16px; background: var(--waBg); color: var(--wa); }
.warnbox > summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; font-size: 16px; font-weight: 600; }
.w-mehr { font-size: 14px; font-weight: 500; }
.w-quelle { padding: 0 16px 6px; font-size: 13px; }
.warnbox ul { list-style: none; padding: 0 16px 10px; font-size: 14px; line-height: 1.4; }
.warnbox li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in oklch, var(--wa) 25%, transparent); }
.warnbox li > span:last-child { flex: none; }
.warnbox a { color: inherit; }

.mein { display: flex; flex-direction: column; gap: 4px; }
.mein > .leise { font-size: 14px; color: var(--ink2); }
.m-gewinn { font-size: 22px; font-weight: 600; }
.m-wecker { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--li); font-size: 14px; color: var(--ink2); }
.m-wecker > span { flex: 1; min-width: 0; }
.aktionskacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aktionskacheln button {
  min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: 14px; background: var(--fl); color: var(--ak); font-size: 12px; font-weight: 600; cursor: pointer;
}
.score { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--fl2); font-size: 13px; line-height: 1.45; color: var(--ink2); }
.score small { display: block; color: var(--ink3); }
.s-wert { display: flex; flex-direction: column; flex: none; }
.s-wert b { font-size: 26px; line-height: 1.1; color: var(--ink); }
.verlauf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 6px; }
.verlauf > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.verlauf small { font-size: 12px; color: var(--ink3); }
.notiz { margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; background: var(--fl2); font-size: 14px; }
.notiz p { white-space: pre-line; }
.notiz small { font-size: 12px; }

/* --- Auswertung, Digest, Bestand, System, Mehr, Suche ------------------------------ */

.antwort { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; text-wrap: pretty; }
.antwort b { font-weight: 600; white-space: nowrap; }
.balkenkarte { display: flex; flex-direction: column; gap: 14px; }
.balkenkarte > .leise { font-size: 13px; }
.balkenkarte .fortschritt { font-size: 14px; gap: 5px 12px; }
.balkenkarte .balken { background: var(--fl2); }
h2.abschnitt { margin-bottom: 10px; }
.kachel .wert.gross { font-size: 22px; }
.d-kurve { padding-bottom: 8px; }

.digest-oben .kachel { padding: 16px; border-radius: 18px; }
.digest-oben .zusatz { font-size: 14px; color: var(--ink2); }
.kachel .wert.riesig { font-size: 34px; }
.d-bewegung { grid-column: 1 / -1; }
.d-bewegung strong { margin-top: 4px; font-size: 17px; }
.d-bewegung .zusatz { margin-top: 4px; }
.selbsttest { display: flex; flex-direction: column; gap: 10px; }
.st-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.st-zeile > span:last-child { font-weight: 600; text-align: right; }
.st-zeile > span.leise { font-weight: 400; color: var(--ink2); }

.b-maerkte { display: flex; flex-direction: column; gap: 18px; }
.b-markt { display: flex; flex-direction: column; }
.b-markt > .leise { padding-top: 12px; font-size: 14px; }
.bzeile .negativ { color: var(--dn); }

.sys-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sys-kacheln .kachel { padding: 12px; border-radius: 14px; }
.sys-kacheln .label { font-size: 12px; }
.sys-kacheln .wert { font-size: 18px; }
.liste-titel { padding: 14px 0 6px; font-size: 13px; }
.laeufe > * + .lauf { border-top: 1px solid var(--li); }
.laeufe .liste-titel + .lauf { border-top: 0; }
.lauf > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; }
.lauf > summary > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.lauf b { font-size: 15px; }
.lauf small { font-size: 12px; color: var(--ink3); }
.lauf .pille { font-size: 11px; }
.lauf-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 14px; padding: 0 0 12px; }
.lauf-stats dt { font-size: 11px; color: var(--ink3); }
.lauf-stats dd { font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kontingente { padding: 0; }
.kontingente > summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; font-size: 16px; font-weight: 600; }
.kontingente > summary .leise { font-size: 14px; font-weight: 500; }

.mehr-liste > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; font-size: 16px; color: var(--ink); }
.mehr-liste small { display: block; font-size: 13px; color: var(--ink3); }
.mehr-liste small.positiv { color: var(--up); }
.mehr-liste small.warn-text { color: var(--wa); }
.darstellung { display: flex; flex-direction: column; gap: 8px; }
.darstellung > .leise { padding-left: 4px; font-size: 13px; }

.suchformular { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--fl2); color: var(--ink3); }
.suchformular input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }

.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 4px; }
table.daten { width: 100%; border-collapse: collapse; font-size: 13px; }
table.daten th { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--li); text-align: left; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); }
table.daten td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--li); white-space: nowrap; }
table.daten th.r, table.daten td.r { text-align: right; }
table.daten tbody tr:last-child td { border-bottom: 0; }
table.daten tr.summe td { font-weight: 600; }

/* Schattendepot-Kurven (web/grafik.py) */
.grafik-rahmen { margin: 0; }
.grafik { display: block; width: 100%; height: auto; }
.grafik .gitter { stroke: var(--li); stroke-width: 1; }
.grafik .achse { fill: var(--ink3); font-size: 12px; font-family: var(--schrift); }
.grafik polyline { stroke-width: 2; vector-effect: non-scaling-stroke; }
.kurve-depot { stroke: var(--chart); }
.kurve-markt { stroke: var(--ink3); stroke-dasharray: 6 4; }
.kurve-investiert { stroke: var(--li); stroke-width: 1.5 !important; }
.grafik-rahmen figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 8px; font-size: 12px; color: var(--ink3); }
.legende::before { content: "━ "; }
.legende.kurve-markt::before { content: "┅ "; }
.legende.kurve-investiert::before { content: "─ "; }

/* --- Charts zum Abfahren (chart.js): Aktie und Depot ------------------------------- */

.chart-flaeche { position: relative; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.chart-flaeche > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-hinweis { display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--ink3); }
.c-flaeche { fill: var(--fl2); }
.c-sma { fill: none; stroke: var(--ink3); stroke-width: 1.2; stroke-dasharray: 3 4; }
.c-kurs { fill: none; stroke: var(--chart); stroke-width: 1.8; stroke-linejoin: round; }
.c-depot { fill: none; stroke: var(--chart); stroke-width: 2.2; stroke-linejoin: round; }
.c-markt { fill: none; stroke: var(--ink3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.c-einsatz { fill: none; stroke: var(--li); stroke-width: 1.5; }
.scrub-linie { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink3); pointer-events: none; }
.scrub-punkt { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 5px; background: var(--chart); box-shadow: 0 0 0 3px var(--bg); pointer-events: none; }
/* Alerts auf der Kurve, Ereignisse im Band darunter; am Finger steht, was es war. */
.marke { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 4px; background: var(--ink3); pointer-events: none; }
.marke.hoch { background: var(--dn); }
.marke.mittel { background: var(--wa); }
.marke.offen { background: var(--bg); box-shadow: 0 0 0 2px var(--ak); }
.marke.rueckblick { background: none; border: 1.5px dashed var(--ink3); }
.ereignisse { position: relative; height: 10px; margin-top: -6px; }
.ereignis { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; }
.ereignis.zahlen { background: var(--ink3); border-radius: 2px; }
.ereignis.insider { background: var(--up); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ereignis.warnzeichen { background: var(--wa); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* --- Blatt (Dialog): am Handy von unten, am Desktop mittig -------------------------- */

.blatt {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 92vh;
  margin: 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--fl);
  color: var(--ink);
  overflow-y: auto;
}
.blatt::backdrop, .palette::backdrop { background: rgb(0 0 0 / .35); }
.blatt form { display: flex; flex-direction: column; gap: 16px; }
.blatt-griff { align-self: center; width: 36px; height: 5px; border-radius: 3px; background: var(--li); }
.blatt-kopf { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.blatt-kopf h2 { font-size: 17px; text-align: center; white-space: nowrap; }
.blatt-knopf { justify-self: start; padding: 10px 0; border: 0; background: none; color: var(--ak); font-size: 16px; cursor: pointer; }
.blatt-knopf.stark { justify-self: end; font-weight: 600; }
.gruppe { padding: 0 14px; border-radius: 14px; background: var(--fl2); }
.feld { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; font-size: 16px; }
.feld + .feld { border-top: 1px solid var(--li); }
.feld input, .feld select {
  min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--ink);
  font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; outline: none;
}
.feld > input { flex: 1; }
.feld input:focus-visible, .feld select:focus-visible { color: var(--ak); }
.feld-mit { display: flex; flex: 1; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.feld-mit input { flex: 1; font-weight: 600; }
.feld-mit select, .feld-mit em { flex: none; color: var(--ink3); font-style: normal; text-align: left; }
.blatt-text { width: 100%; min-height: 60px; padding: 14px; border: 0; border-radius: 14px; background: var(--fl2); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; }
.blatt-text.gross { min-height: 150px; }
.haken { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--fl2); font-size: 14px; cursor: pointer; }
.haken input { width: 22px; height: 22px; margin: 0; accent-color: var(--ak); }
.haken small { color: var(--ink3); }
.blatt-fuss { font-size: 13px; line-height: 1.45; color: var(--ink3); text-align: center; text-wrap: pretty; }
.blatt-fehler { font-size: 14px; color: var(--dn); text-align: center; }

/* Trade-Republic-Import im Depot (radar/depot_import.py, seit 19.10.2026): Vorschau im Blatt */
.kopf-knoepfe { display: flex; gap: 8px; }
.knopf.pille-knopf.leise-knopf { background: var(--fl2); color: var(--ink); }
.import-anleitung { text-align: left; }
.import-vorschau { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
.import-vorschau h3 { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.i-satz { font-size: 16px; }
.i-liste { margin: 0; padding: 0 14px; border-radius: 14px; background: var(--fl2); list-style: none; }
.i-liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.i-liste li + li { border-top: 1px solid var(--li); }
.i-liste small { display: block; color: var(--ink3); font-size: 12px; }
.i-liste .rechts { flex: none; text-align: right; }
.i-neu { color: var(--ak); font-weight: 600; }
.import-vorschau details summary { color: var(--ink3); cursor: pointer; }
.import-vorschau details ul { margin: 8px 0 0; padding-left: 18px; }

/* Zugaenge ueber Tailscale (radar/zugang.py): wer schaut zu, Rolle, letzter Besuch */
.ich-karte { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 16px 0; }
.ich-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ak); color: var(--akInk); font-size: 15px; font-weight: 700; }
.ich-avatar.gast { background: var(--fl2); color: var(--ink); }
.ich-avatar.gesperrt { background: var(--dnBg); color: var(--dn); }
.ich-text { display: flex; flex-direction: column; min-width: 0; }
.ich-text small { color: var(--ink3); font-size: 13px; overflow-wrap: anywhere; }
.zugang-satz { max-width: 640px; margin: 8px 0 16px; font-size: 14px; line-height: 1.45; }
.zugang-liste { display: grid; gap: 12px; max-width: 640px; }
.zugang-zeile { display: flex; flex-direction: column; gap: 12px; }
.zugang-kopf { display: flex; align-items: center; gap: 12px; }
.zugang-besuch { font-size: 13px; }
.zugang-zeile .feld em { color: var(--ink3); font-style: normal; }
.zugang-zeile .knopf { align-self: flex-end; }
.zugang-fuss { max-width: 640px; margin-top: 16px; }
.kopf-ich { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: -20px; border-radius: 50%; background: var(--ak); color: var(--akInk); font-size: 13px; font-weight: 700; }

/* Konten (radar/konten.py): Anmelden, Einladung, Verwaltung */
.schleuse { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 420px; margin: 12vh auto 0; text-align: center; }
.schleuse h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.schleuse .leise { font-size: 15px; line-height: 1.5; }
.schleuse-marke { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--fl); color: var(--ak); }
.schleuse-knopf { width: 100%; margin-top: 8px; }
.ich-ab { margin-left: auto; flex: none; }
.zugang-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.link-feld { width: 100%; padding: 14px; border: 0; border-radius: 14px; background: var(--fl2); color: var(--ink); font: inherit; font-size: 14px; }
body.seite-anmelden footer, body.seite-einladung footer { display: none; }

/* Befehlspalette (seite.js): Strg K, "/" oder die Lupe */
.palette { width: min(560px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 20px; background: var(--fl); color: var(--ink); box-shadow: var(--schatten-gross); overflow: hidden; }
.palette-form { display: flex; flex-direction: column; }
.palette-feld { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-bottom: 1px solid var(--li); color: var(--ink3); }
.palette-feld input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 18px; outline: none; }
.palette-feld kbd { font-family: var(--schrift); font-size: 12px; padding: 3px 7px; border-radius: 6px; background: var(--fl2); }
.palette-liste { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette-liste:empty { display: none; }
.palette-liste a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: 12px; color: var(--ink); }
.palette-liste [aria-selected="true"] a, .palette-liste a:hover { background: var(--fl2); }
.palette-liste span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink2); }
.palette-liste small { font-size: 13px; color: var(--ink3); }
.palette-hinweis { padding: 10px 20px 14px; font-size: 12px; color: var(--ink3); }

/* ==================================================================================== */
/* Ab 900 px: Kopf mit Reitern statt Tab-Leiste, zwei Spalten (Seiten Desktop v2)         */
/* ==================================================================================== */

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }

  .kopf { display: block; position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--li); }
  .kopf-innen { max-width: 1440px; height: 64px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 36px; }
  .kopf-marke { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
  .kopf-marke .icon { color: var(--ak); }
  .kopf-nav { display: flex; align-items: center; gap: 4px; }
  .kopf-nav > a, .kopf-mehr > summary {
    display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 10px;
    font-size: 15px; font-weight: 500; color: var(--ink2); white-space: nowrap;
  }
  .kopf-nav > a:hover, .kopf-mehr > summary:hover { color: var(--ink); }
  .kopf-nav > a[aria-current="page"], .kopf-mehr > summary[aria-current="page"] { background: var(--fl2); color: var(--ink); font-weight: 600; }
  .kopf-mehr { position: relative; }
  .kopf-menue {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 220px; padding: 6px;
    display: flex; flex-direction: column; border-radius: 14px; background: var(--fl); box-shadow: var(--schatten-gross);
  }
  .kopf-menue a { padding: 10px 12px; border-radius: 9px; font-size: 15px; color: var(--ink); }
  .kopf-menue a:hover { background: var(--fl2); }
  .kopf-menue a[aria-current="page"] { font-weight: 600; }
  .kopf-suche { margin-left: auto; width: 320px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--fl2); color: var(--ink3); }
  .kopf-suche input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; outline: none; cursor: pointer; }
  .kopf-suche input::placeholder { color: var(--ink3); }
  .taste { font-family: var(--schrift); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--fl); color: var(--ink3); white-space: nowrap; }

  .inhalt, .seite-heute .inhalt { padding: 40px; gap: 28px; }
  .seite-aktie .inhalt { padding-top: 32px; }
  .seitenkopf h1 { font-size: 40px; }
  .unterzeile { font-size: 15px; color: var(--ink2); }
  .zurueck-text { height: auto; margin: 0 0 -12px; font-size: 15px; }
  body > footer { padding: 24px 40px 32px; border-top: 1px solid var(--li); }
  body > footer .quellen { display: block; }

  .zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
  .zweispaltig.gleich { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .spalte-haupt { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
  .spalte-seite { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .zweispaltig.gleich .spalte-haupt, .zweispaltig.gleich .spalte-seite { gap: 16px; }
  .heute .spalte-haupt > *, .heute .spalte-seite > *, .aktie .spalte-haupt > *, .aktie .spalte-seite > * { order: 0; }
  .chips { margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  .chip { height: 38px; border-radius: 19px; }

  /* Heute */
  .heute .spalte-seite { padding-top: 88px; }
  .h-kopf .rundknopf { display: none; }
  .h-kopf h1 { font-size: 40px; }
  .lagezeile { align-items: center; padding: 16px 20px; font-size: 16px; }
  .lagezeile .punkt { margin-top: 0; }
  .h-depot {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kopf kacheln" "wert kacheln" "kurve kurve";
    gap: 0 24px; padding: 28px; border-radius: 20px; background: var(--fl);
  }
  .h-depot > .karte.leer { grid-column: 1 / -1; padding: 0; }
  .d-kopf { grid-area: kopf; }
  .d-kopf .weiter { display: none; }
  .d-wert { grid-area: wert; }
  .h-depot .wert-gross { font-size: 52px; }
  .h-depot .bewegung { font-size: 16px; }
  .d-kurve { grid-area: kurve; margin-top: 16px; }
  .d-kurve .spark-flaeche { height: 90px; }
  .d-kacheln { grid-area: kacheln; align-self: end; display: flex; gap: 32px; margin: 0; text-align: right; }
  .d-kacheln .kachel { padding: 0; background: none; }
  .d-kacheln .wert { font-size: 20px; }
  .titelliste-kopf, .titelzeile { grid-template-columns: minmax(0, 1fr) 120px 200px 110px 130px; gap: 20px; }
  .titelliste-kopf { display: grid; padding: 8px 0; border-bottom: 1px solid var(--li); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); }
  .titelzeile { min-height: 64px; }
  .t-lage { display: block; font-size: 13px; }
  .t-52w { display: block; text-align: right; font-size: 15px; }
  .t-linie .sparkline { height: 32px; }
  .h-titel .abschnitt-kopf h2 { font-size: 22px; }
  .bearbeiten .entfernen { grid-column: 5; }
  .h-signale { padding: 20px; border-radius: 20px; background: var(--fl); gap: 6px; }
  .h-signale .abschnitt-kopf h2 { font-size: 18px; }
  .h-signale .weiter { font-size: 14px; }
  .h-signale .liste { padding: 0; border-radius: 0; }
  .h-signale .liste > * { border-top: 1px solid var(--li); }
  .h-signale .alertzeile.mit-icon { min-height: 62px; }
  .h-signale .karte.leer { padding: 12px 0 0; }
  .heute .karte.h-riese { display: flex; padding: 20px; gap: 12px; }
  .h-digest { padding: 20px; border-radius: 20px; }

  /* Radar */
  .r-kopf .unterzeile { display: block; }
  .r-kopf .stand { display: none; }
  .r-kopf { flex-wrap: nowrap; }
  .r-kopf .chips { flex: 0 1 auto; width: auto; justify-content: flex-end; }
  .r-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .r-rechts { gap: 24px; }
  .karte.signal { padding: 28px; border-radius: 24px; gap: 16px; }
  .s-titel a { font-size: 24px; }
  .s-titel p { font-size: 15px; }
  .s-leit { flex-direction: row; align-items: flex-end; gap: 20px; }
  .s-zahl { font-size: 64px; flex: none; }
  .s-leit p { padding-bottom: 6px; }
  .s-belege { display: flex; gap: 48px; }
  .s-belege b { font-size: 22px; }
  .s-fuss { padding-top: 14px; }
  .r-rechts .liste { padding: 8px 24px; border-radius: 24px; }
  .r-rechts .alertzeile { min-height: 76px; }
  .r-rechts .a-text b { font-size: 17px; }
  .r-rechts .a-text small { font-size: 14px; }
  .karte.riese { padding: 24px; border-radius: 24px; gap: 12px; }
  .riese h2 { font-size: 17px; }
  .riese p { font-size: 15px; }
  .riese .fortschritt { grid-template-columns: 90px minmax(0, 1fr) 130px; align-items: center; font-size: 14px; }
  .riese .fortschritt .balken { grid-column: 2; grid-row: 1; }
  .riese .fortschritt > .zahl { grid-column: 3; text-align: right; }
  .riese .weiter { font-size: 15px; }

  /* Depot */
  .depot {
    display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px;
    grid-template-areas: "stand zeit" "chart chart" "kacheln kacheln" "pos auf" "gesch auf" "fuss fuss";
  }
  .d-stand { grid-area: stand; }
  .d-stand .unterzeile { display: block; }
  .d-stand .wert-gross { font-size: 56px; }
  .d-stand .bewegung { font-size: 17px; }
  .d-zeitraum { grid-area: zeit; align-self: end; width: 390px; margin: 0; }
  .d-chart { grid-area: chart; padding: 24px; border-radius: 20px; background: var(--fl); }
  .depotkurve { height: 260px; }
  .d-chart .chart-legende { gap: 20px; font-size: 13px; }
  .scrub-punkt { box-shadow: 0 0 0 3px var(--fl); }
  .depot-kacheln { grid-area: kacheln; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .depot-kacheln .kachel { padding: 18px; }
  .depot-kacheln .wert { font-size: 24px; }
  .depot-kacheln .zusatz { font-size: 13px; }
  .aufteilung { grid-area: auf; align-self: start; padding: 24px; border-radius: 20px; background: var(--fl); gap: 16px; }
  .aufteilung .abschnitt-kopf { align-items: center; }
  .aufteilung h2 { font-size: 18px; }
  .auf-balken { height: 14px; border-radius: 7px; }
  .auf-legende { grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
  .auf-legende li { min-height: 32px; font-size: 15px; }
  .positionen { grid-area: pos; padding: 8px 24px; border-radius: 20px; background: var(--fl); }
  .positionen > h2 { display: none; }
  .poszeile {
    grid-template-columns: minmax(0, 1fr) 110px 200px 140px 120px; grid-template-areas: "titel linie lage wert gewinn";
    column-gap: 20px; min-height: 72px;
  }
  .posliste > .poszeile:last-child { border-bottom: 0; }
  .p-name { display: block; font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-lage { display: none; }
  .p-lage2 { grid-area: lage; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
  .p-lage2 small { font-size: 12px; color: var(--wa); }
  .p-linie .sparkline { height: 30px; }
  .p-wert, .p-gewinn { align-self: center; }
  .p-wert b, .p-gewinn b { font-size: 16px; }
  .p-wert small, .p-gewinn small { display: block; font-size: 12px; color: var(--ink3); }
  .geschaefte { grid-area: gesch; border-radius: 20px; }
  .geschaefte > summary { padding: 0 24px; }
  .gzeile { margin: 0 24px; }
  .d-fuss { grid-area: fuss; }

  /* Markt */
  .m-oben { grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
  .m-index { padding: 20px; border-radius: 18px; }
  .m-index b { font-size: 16px; }
  .m-index small { font-size: 14px; }
  .m-index .wert { margin-top: 10px; font-size: 26px; }
  .m-index small.lang { font-size: 12px; }
  .m-breite { grid-column: 3; margin: 0; padding: 20px; border-radius: 18px; background: var(--fl); gap: 10px; }
  .m-breite .fortschritt.gross { font-size: 16px; }
  .m-breite .fortschritt.gross > span:first-child { font-weight: 600; }
  .m-breite .balken { background: var(--fl2); height: 10px; border-radius: 5px; }
  .sektoren { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 6px; }
  .sektor { min-height: 52px; padding: 8px 10px; }
  .m-listen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .m-listen .m-bereich, .m-listen .m-bereich[hidden] { display: contents !important; }
  .m-bereich > .beweger { grid-row: 1; grid-column: auto; padding: 8px 20px 12px; border-radius: 18px; background: var(--fl); }
  .m-bereich > .m-extrem { grid-row: 2; padding: 20px; border-radius: 18px; }
  #markt-US > :nth-child(1), #markt-US > :nth-child(3) { grid-column: 1; }
  #markt-US > :nth-child(2), #markt-US > :nth-child(4) { grid-column: 2; }
  #markt-EU > :nth-child(1), #markt-EU > :nth-child(3) { grid-column: 3; }
  #markt-EU > :nth-child(2), #markt-EU > :nth-child(4) { grid-column: 4; }
  .beweger h2 { padding: 12px 0 6px; font-size: 16px; margin: 0; }
  .beweger .bzeile { min-height: 52px; border-bottom: 0; border-top: 1px solid var(--li); }
  .m-extrem .wert { font-size: 32px; }
  .m-extrem small { font-size: 14px; }
  .m-extrem p { font-size: 13px; line-height: 1.55; }

  /* Aktie */
  .aktie .spalte-haupt { gap: 22px; }
  .aktie .spalte-seite { gap: 18px; padding-top: 40px; }
  .a-leiste { height: auto; margin: 0; justify-content: flex-start; }
  .a-leiste .zurueck { width: auto; height: auto; display: inline-flex; gap: 4px; font-size: 15px; }
  .a-kuerzel, .a-leiste .merken { display: none; }
  .a-kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .a-name { font-size: 17px; }
  .a-kopf .wert-gross { font-size: 56px; }
  .a-kopf .bewegung { font-size: 17px; }
  .a-zeitraum { flex: none; grid-auto-columns: 64px; margin: 0 0 6px; }
  .kurschart { height: 320px; }
  .a-chart .chart-legende { font-size: 13px; }
  .a-chart .chart-legende:not(.chart-marken) > span:nth-child(2) { order: 0; flex-basis: auto; }
  .raster { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 28px; }
  .raster > div { min-height: 48px; }
  .raster dd { font-size: 16px; }
  .a-aktionen { display: flex; justify-content: flex-end; gap: 8px; }
  .a-radar h2, .a-mein h2 { font-size: 20px; }
  .a-mein { margin-top: 6px; }
  .urteil, .mein, .ki { padding: 20px; border-radius: 18px; }
  .a-claude h2 { font-size: 20px; }
  .ki-seite .karte { padding: 24px; border-radius: 20px; }
  .warnbox { border-radius: 18px; }
  .aktie .a-details { padding: 0 20px; border-radius: 18px; }
  .aktie .a-details > details > summary, .aktie .d-link { font-size: 15px; }

  /* Auswertung, Digest, Bestand, System */
  .antwort { max-width: 980px; font-size: 28px; }
  .balkenkarte { padding: 24px; border-radius: 20px; gap: 16px; }
  .balkenkarte > .leise { font-size: 14px; }
  .balkenkarte .fortschritt {
    grid-template-columns: 170px minmax(0, 1fr) 80px; grid-template-areas: "name balken wert" "klein balken wert";
    align-items: center; gap: 2px 16px;
  }
  .balkenkarte .fortschritt > span:first-child { grid-area: name; font-size: 15px; }
  .balkenkarte .fortschritt > b { grid-area: wert; text-align: right; font-size: 15px; }
  .balkenkarte .fortschritt > .balken { grid-area: balken; grid-column: auto; }
  .balkenkarte .fortschritt > small { grid-area: klein; grid-column: auto; }
  .kachel .wert.gross { font-size: 28px; }
  .zweispaltig.gleich .kachel { padding: 20px; border-radius: 18px; }
  .zweispaltig.gleich .liste { padding: 0 20px; border-radius: 18px; }
  .zweispaltig.gleich .hinweis { padding: 16px 20px; border-radius: 18px; }

  .digest-oben { grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
  .digest-oben .kachel { padding: 24px; border-radius: 20px; }
  .kachel .wert.riesig { font-size: 48px; }
  .d-bewegung { grid-column: auto; }
  .d-bewegung strong { font-size: 22px; }
  .selbsttest { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 20px; padding: 24px; border-radius: 20px; }
  .selbsttest > .leise { grid-column: 1 / -1; }
  .st-zeile { flex-direction: column; gap: 0; font-size: 13px; color: var(--ink3); }
  .st-zeile > span:last-child { font-size: 18px; text-align: left; }

  .b-maerkte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .b-maerkte .b-markt, .b-maerkte .b-markt[hidden] { display: flex !important; padding: 8px 24px 12px; border-radius: 20px; background: var(--fl); }
  .b-markt h2 { padding: 12px 0 6px; font-size: 18px; }
  .b-markt h2 small { font-size: 13px; font-weight: 400; color: var(--ink3); }
  .b-markt .bzeile:last-child { border-bottom: 0; }
  .einleitung { max-width: 820px; }

  .sys-kacheln { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .seite-system .zweispaltig.gleich { align-items: start; }

  .mehr-liste, .darstellung, .seite-mehr .seitenkopf, .suchformular { max-width: 640px; }

  /* Blatt mittig */
  .blatt { inset: 0; width: min(480px, calc(100% - 32px)); max-height: 86vh; margin: auto; padding: 18px 20px 20px; border-radius: 20px; box-shadow: var(--schatten-gross); }
  .blatt-griff { display: none; }
}
