/* Cockpit: dunkles Tim-Branding (Blue Zodiac, Cloud Burst, Cararra), Variante A Energy Yellow, B Blau. */
:root {
  --bg: #0A0E15;
  --flaeche: #0B1933;
  --karte: #131F36;
  --karte-hoch: #1E2B45;
  --linie: rgba(237, 237, 229, .10);
  --linie-stark: rgba(237, 237, 229, .18);
  --text: #EDEDE5;
  --text-2: #B6BBC1;
  --text-3: #8A93A0;
  --gelb: #FAE154;
  --a: #FAE154;
  --b: #4F96F0;
  --gut: #3DBE8B;
  --warn: #F2A33A;
  --fehler: #F06A5F;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 Manrope, Inter, system-ui, sans-serif; }
a { color: inherit; }
h1, h2 { margin: 0; line-height: 1.2; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.leise { color: var(--text-2); }

/* Kopf */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 10; }
.kopf-innen { max-width: 1120px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.marke-zeichen { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.marke-zeichen i { display: block; width: 7px; border-radius: 2px; }
.marke-zeichen i:first-child { height: 12px; background: var(--a); }
.marke-zeichen i:last-child { height: 20px; background: var(--b); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav .link { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav .link:hover { color: var(--text); background: var(--karte-hoch); }
.nav a.aktiv { color: var(--text); background: var(--karte-hoch); }
.nav form { margin: 0; }

.inhalt { max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; }
.seitenkopf { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 24px; }
.zurueck { color: var(--text-2); text-decoration: none; font-weight: 600; }
.zurueck:hover { color: var(--text); }

/* Stand-Zeile */
.stand { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
.stand form { margin: 0; }
.warnung { color: var(--warn); font-weight: 700; text-decoration: none; }
.warnung::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: var(--bg); font-size: 12px; margin-right: 6px; }

/* Karten */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.karte.schmal { max-width: 420px; margin: 40px auto; }
.karte.schmal h1 { margin-bottom: 18px; }
.abschnitt { font-size: 18px; font-weight: 700; margin-bottom: 14px; }

/* Formulare und Knöpfe */
.feld { display: block; margin-bottom: 14px; }
.feld span { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.feld input { width: 100%; font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 10px; padding: 12px 14px; }
.feld input:focus { outline: 2px solid var(--gelb); outline-offset: 1px; border-color: transparent; }
.reihe { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.reihe .feld { margin-bottom: 0; }
.wachsen { flex: 1 1 260px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 15px/1 Manrope, sans-serif; color: var(--bg); background: var(--gelb); border: 0; border-radius: 10px; padding: 13px 18px; cursor: pointer; text-decoration: none; min-height: 44px; }
.knopf:hover { filter: brightness(1.06); }
.knopf.voll { width: 100%; }
.knopf.klein { font-size: 14px; padding: 9px 14px; min-height: 38px; }
.knopf.zweit { background: transparent; color: var(--text); border: 1px solid var(--linie-stark); }
.knopf.zweit:hover { background: var(--karte-hoch); }
.link { background: none; border: 0; font: inherit; color: var(--text-2); cursor: pointer; padding: 0; }
.hinweis { border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-weight: 600; }
.hinweis-ok { background: rgba(61, 190, 139, .14); color: #A9E8CF; }
.hinweis-fehler { background: rgba(240, 106, 95, .14); color: #F9B9B3; }
.fehlertext { color: #F9B9B3; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--karte-hoch); color: var(--text-2); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.status-laeuft { color: #A9E8CF; background: rgba(61, 190, 139, .14); }
.status-laeuft i { background: var(--gut); box-shadow: 0 0 0 0 rgba(61, 190, 139, .6); animation: puls 2s infinite; }
.status-beendet i { background: #4A688A; }
@keyframes puls { 70% { box-shadow: 0 0 0 7px rgba(61, 190, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 190, 139, 0); } }
@media (prefers-reduced-motion: reduce) { .status-laeuft i { animation: none; } }

/* Übersicht */
.test-liste { display: grid; gap: 20px; }
.test-karte { display: block; text-decoration: none; transition: border-color .15s, transform .15s; }
.test-karte:hover { border-color: var(--linie-stark); transform: translateY(-1px); }
.test-karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.test-karte h2 { font-size: 22px; font-weight: 800; }
.test-karte p { margin: 0 0 6px; }
.laufzeit { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; color: var(--text-2); font-weight: 600; font-size: 15px; margin: 10px 0 0; }
.mini { margin: 18px 0 16px; border-top: 1px solid var(--linie); }
.mini-zeile { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(110px, 1fr)); gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); color: var(--text-2); font-size: 15px; }
.mini-zeile b { color: var(--text); font-weight: 800; }
.mini-name { color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.urteil-kurz { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; margin: 0 !important; }

.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.farbe-0 { background: var(--a); }
.farbe-1 { background: var(--b); }
.vorne { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bg); background: var(--text); border-radius: 6px; padding: 3px 7px; }

.stufe { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; background: var(--karte-hoch); color: var(--text-2); white-space: nowrap; }
.stufe-belastbar .stufe { background: rgba(61, 190, 139, .18); color: #A9E8CF; }
.stufe-tendenz .stufe { background: rgba(242, 163, 58, .18); color: #F8CD8F; }

/* Test-Seite */
.test-kopf { margin-bottom: 24px; }
.frage { font-size: 19px; color: var(--text-2); margin: 8px 0 0; max-width: 60ch; }
.urteil { display: grid; gap: 20px; }
.urteil-text { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.urteil-text p { margin: 0; font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; line-height: 1.3; }
.stufe-belastbar.urteil { border-color: rgba(61, 190, 139, .45); }
.chance-titel { font-size: 14px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.balken { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--karte-hoch); }
.balken-teil { flex-basis: 0; min-width: 2px; }
.legende { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 10px; color: var(--text-2); font-size: 14px; }
.legende-punkt { display: inline-flex; align-items: center; gap: 7px; }
.legende-punkt i { width: 10px; height: 10px; border-radius: 3px; }
.legende-punkt b { color: var(--text); }
.summe { margin: 0; color: var(--text-2); font-size: 15px; padding-top: 16px; border-top: 1px solid var(--linie); }
.summe b { color: var(--text); }

.varianten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; align-items: start; }
.varianten .karte { margin-bottom: 0; }
.variante { border-top-width: 4px; }
.rand-0 { border-top-color: var(--a); }
.rand-1 { border-top-color: var(--b); }
.variante-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.variante-kopf h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.angebot { color: var(--text-2); margin: 4px 0 18px; font-weight: 600; }
.held { display: flex; flex-direction: column; margin-bottom: 18px; }
.held-zahl { font-size: clamp(38px, 6vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.held-text { color: var(--text-2); font-weight: 600; font-size: 15px; }
.werte { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 16px; background: var(--linie); border-radius: 12px; overflow: hidden; }
.werte div { background: var(--karte-hoch); padding: 12px 14px; }
.werte dt { font-size: 13px; color: var(--text-2); font-weight: 600; }
.werte dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.neben { font-size: 14px; color: var(--text-2); margin: -4px 0 16px; }
.vorschau-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.handy { margin-top: 18px; text-align: center; }
.handy-rahmen { width: min(100%, 390px); margin: 0 auto; border: 10px solid #05070B; border-radius: 34px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.handy-rahmen iframe { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
.handy-zu { margin-top: 10px; font-weight: 600; }

/* Diagramm */
.diagramm .legende { margin: -4px 0 12px; }
.diagramm-flaeche { position: relative; }
.diagramm svg { width: 100%; height: auto; display: block; overflow: visible; }
.gitter { stroke: var(--linie); stroke-width: 1; }
.achse { fill: var(--text-3); font-size: 12px; font-family: Manrope, sans-serif; }
.linie { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.strich-0 { stroke: var(--a); }
.strich-1 { stroke: var(--b); }
.fuell-0 { fill: var(--a); stroke: var(--karte); stroke-width: 2; }
.fuell-1 { fill: var(--b); stroke: var(--karte); stroke-width: 2; }
.fadenkreuz { stroke: var(--linie-stark); stroke-width: 1; }
.tooltip { position: absolute; top: 0; pointer-events: none; background: #05070B; border: 1px solid var(--linie-stark); border-radius: 10px; padding: 10px 12px; font-size: 13px; min-width: 190px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.tooltip b { display: block; margin-bottom: 4px; }
.tooltip div { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.tooltip div span:last-child { margin-left: auto; color: var(--text); font-weight: 700; padding-left: 10px; }
.tooltip i { width: 9px; height: 9px; border-radius: 2px; }
.leer { color: var(--text-2); margin: 0; padding: 28px 0; text-align: center; border: 1px dashed var(--linie-stark); border-radius: 12px; }
.tabelle { margin-top: 18px; }
.tabelle summary, .erklaerung summary { cursor: pointer; color: var(--text-2); font-weight: 600; }
.tabelle-scroll { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--text-2); font-weight: 600; }
.erwartung { color: var(--text-2); margin: 8px 0 12px; }
.erwartung b { color: var(--text); }
.erklaerung { color: var(--text-2); font-size: 14px; max-width: 75ch; }
.erklaerung p { margin: 10px 0 0; }

@media (max-width: 640px) {
  .karte { padding: 18px; }
  .mini-zeile { grid-template-columns: 1fr 1fr 1fr; }
  .mini-name { grid-column: 1 / -1; }
  .kopf-innen { flex-wrap: wrap; }
  .handy-rahmen iframe { height: 640px; }
}
