/* Aktien – Look A „Graphit & Gold“ (Entscheidung 0025), nur dunkel */
@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap;
  src: url("/statisch/manrope-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; }
@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap;
  src: url("/statisch/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --grund: #0d0e11; --flaeche: #15161a; --flaeche-2: #17181c; --flaeche-3: #1b1c21;
  --linie: #25262b; --linie-2: #2f3036;
  --text: #ece9e2; --text-2: #d9d5cc; --neben: #a39f96; --schwach: #7d7a73;
  --gold: #e3b65c; --gold-grund: #2a2416; --plus: #7fd6b8; --minus: #f0a35c; --pause: #f0a35c;
  --radius: 20px; --radius-k: 14px;
  --unten: env(safe-area-inset-bottom, 0px); --oben: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--grund); color: var(--text); }
body { font: 15px/1.45 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--gold); text-decoration: none; }
a:active, .textlink:active { opacity: .6; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.verdeckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Gerüst */
.app { max-width: 1040px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.kopf { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--grund) 92%, transparent); backdrop-filter: blur(10px);
  padding: calc(14px + var(--oben)) 20px 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kopf .unterzeile { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--neben); }
.kopf h1 { font-size: 26px; font-weight: 800; }
.inhalt { flex: 1; padding: 6px 16px calc(96px + var(--unten)); display: flex; flex-direction: column; gap: 14px; }
.reiter { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 4px calc(10px + var(--unten)); background: #111215; border-top: 1px solid #1f2024; }
.reiter button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0;
  min-height: 52px; color: var(--neben); font-size: 12px; font-weight: 600; cursor: pointer; }
.reiter .pille { width: 52px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.reiter button[aria-selected="true"] { color: var(--text); }
.reiter button[aria-selected="true"] .pille { background: var(--gold-grund); color: var(--gold); }
@media (min-width: 900px) {
  .reiter { position: sticky; top: 74px; bottom: auto; max-width: 1040px; margin: 0 auto; padding: 4px 16px 8px; background: none; border: 0;
    display: flex; gap: 6px; }
  .reiter button { flex-direction: row; min-height: 44px; padding: 0 14px 0 6px; border-radius: 22px; font-size: 14px; }
  .reiter button[aria-selected="true"] { background: var(--flaeche); }
  .inhalt { padding-bottom: 40px; }
  .zwei { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
}

/* Bausteine */
.karte { background: linear-gradient(180deg, var(--flaeche-2) 0%, #131417 100%); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.karte.flach { background: var(--flaeche); border-radius: 18px; padding: 14px 16px; }
.zeile-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.klein { font-size: 13px; color: var(--neben); }
.mini { font-size: 12px; color: var(--neben); }
.gross { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.gold { color: var(--gold); } .plus { color: var(--plus); } .minus { color: var(--minus); }
.fett { font-weight: 700; }
.abschnitt { font-size: 13px; color: var(--neben); padding: 6px 4px 0; }
.text { color: var(--text-2); white-space: pre-line; }
.karte p, .blatt-inhalt p, .anmelden p { margin: 0; }
.liste { display: flex; flex-direction: column; }
.eintrag { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #1f2024; background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; cursor: pointer; min-height: 60px; }
.eintrag:last-child { border-bottom: 0; }
.eintrag .mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eintrag .titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintrag .unter { font-size: 12px; color: var(--neben); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.eintrag .rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; min-width: 84px; text-align: right; }
.marke { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--flaeche-3); border: 1px solid #2a2b30;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.punkt { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; background: var(--flaeche-3); color: var(--text-2); white-space: nowrap; }
.chip.gold { background: var(--gold-grund); color: var(--gold); }
.chip.warn { background: #2e2116; color: var(--minus); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.i-knopf { width: 44px; height: 44px; flex: none; border-radius: 22px; border: 1px solid var(--linie-2); background: transparent; color: var(--text);
  font: italic 700 17px Georgia, serif; cursor: pointer; }
.knopf { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--linie-2); background: var(--flaeche-3); color: var(--text); font-weight: 700; cursor: pointer; }
.knopf.haupt { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.knopf.gefahr { background: #3a2414; color: var(--minus); border-color: #5a3a20; }
.knopf:disabled { opacity: .5; cursor: default; }
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.suche { width: 100%; height: 48px; border-radius: 24px; border: 1px solid var(--linie-2); background: var(--flaeche); padding: 0 18px; color: var(--text); }
.suche::placeholder { color: var(--schwach); }
.leer { color: var(--neben); padding: 18px 4px; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--neben); }
.legende button { background: none; border: 0; padding: 6px 0; min-height: 32px; display: flex; align-items: center; gap: 6px; color: inherit; cursor: pointer; }
.legende button[aria-pressed="false"] { opacity: .4; }
.strich { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.diagramm { width: 100%; height: 150px; display: block; }
.zuversicht { display: inline-flex; gap: 3px; }
.zuversicht i { width: 6px; height: 6px; border-radius: 3px; background: #3a3b40; }
.zuversicht i.an { background: var(--gold); }
.hinweis-not { border-color: #5a3a20; background: #1f1812; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld input, .feld select { height: 48px; border-radius: 14px; border: 1px solid var(--linie-2); background: var(--flaeche); padding: 0 14px; }
.reihe { display: flex; gap: 10px; } .reihe > * { flex: 1; min-width: 0; }
.schalter { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.schalter input { width: 48px; height: 28px; accent-color: var(--gold); }
.protokoll { font: 12px/1.5 ui-monospace, monospace; color: var(--text-2); background: #101114; border: 1px solid var(--linie); border-radius: 12px; padding: 12px;
  max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* Blatt (Bottom-Sheet) für i-Knopf und Details */
dialog.blatt { width: min(640px, 100%); max-height: 88dvh; margin: auto auto 0; padding: 0; border: 1px solid var(--linie); border-bottom: 0;
  border-radius: 24px 24px 0 0; background: #121316; color: var(--text); }
dialog.blatt::backdrop { background: rgba(0, 0, 0, .6); }
@media (min-width: 900px) { dialog.blatt { margin: auto; border-radius: 24px; border-bottom: 1px solid var(--linie); } }
.blatt-kopf { position: sticky; top: 0; background: #121316; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 10px 20px; border-bottom: 1px solid #1f2024; }
.blatt-kopf h2 { font-size: 19px; }
.blatt-inhalt { padding: 14px 20px calc(24px + var(--unten)); display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.blatt-inhalt h3 { font-size: 14px; color: var(--gold); margin-top: 4px; }
.zu { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--flaeche-3); color: var(--text); font-size: 20px; cursor: pointer; flex: none; }
.quelle { display: block; padding: 8px 0; border-bottom: 1px solid #1f2024; word-break: break-word; }

/* Anmeldung */
.anmelden { max-width: 420px; margin: 0 auto; padding: calc(40px + var(--oben)) 20px 40px; display: flex; flex-direction: column; gap: 18px; min-height: 100dvh; justify-content: center; }
.anmelden h1 { font-size: 34px; font-weight: 800; }
.meldung { min-height: 22px; color: var(--minus); font-size: 14px; }
.vorzeile { letter-spacing: .12em; text-transform: uppercase; }
#einstellungen-knopf { font: inherit; display: flex; align-items: center; justify-content: center; }
.farbmarke { width: 14px; height: 14px; border-radius: 7px; flex: none; margin: 0 13px; }
/* Arten (Jens 24.10.): Aktie blau, Krypto violett, ETF gold – unterscheiden sich auch in der Helligkeit */
.chip.art-aktie { background: #172233; color: #8fb8ff; }
.chip.art-krypto { background: #241c30; color: #c9a7ff; }
.chip.art-etf { background: #2a2416; color: #e3b65c; }
.marke.art-aktie { color: #8fb8ff; border-color: #2a3a55; }
.marke.art-krypto { color: #c9a7ff; border-color: #3d3052; }
.marke.art-etf { color: #e3b65c; border-color: #4a3d22; }
.wertzeile { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid #1f2024; }
.wertzeile .eintrag { border-bottom: 0; }
.stern, .stern-platz { width: 44px; height: 44px; flex: none; }
.stern { border: 0; background: none; color: var(--schwach); font-size: 22px; cursor: pointer; }
.stern.an { color: var(--gold); }
.wertzeile .marke { width: 50px; }
