:root {
  --petrol: #2B6571;
  --petrol-2: #5F8F98;
  --petrol-dunkel: #1F4D57;
  --petrol-hell: #E7F0F1;
  --petrol-hell-2: #F2F7F8;
  --gold: #D4A846;
  --gold-hell: #FBF4E2;
  --text: #111418;
  --gedaempft: #6B7378;
  --linie: #DFE4E7;
  --hintergrund: #FFFFFF;
  --weiss: #FFFFFF;
  --gruen: #16A34A;
  --gelb: #EAB308;
  --rot: #DC2626;
  --grau: #94A3B8;
  --radius: 18px;
  --schatten: 0 6px 24px rgba(20,40,45,.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--hintergrund); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: var(--petrol); }
h1 { font-size: 1.75rem; margin: 0 0 .6rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; font-weight: 700; }
h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; color: var(--petrol-dunkel); }

/* Kopf wie im Hörbuch / in der DA-App */
.kopf { position: sticky; top: 0; z-index: 5; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 1100px; margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 46px; width: auto; display: block; margin-left: -2px; }
.logo-text { color: var(--petrol); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.nav { display: flex; gap: .4rem 1rem; align-items: center; flex-wrap: wrap; font-size: .95rem; padding: .4rem 0; }
.nav a { font-weight: 600; }
.nav a { text-decoration: none; }
.inline { display: inline; margin: 0; }
.link-btn { background: none; border: 0; color: var(--gedaempft); font: inherit; cursor: pointer; padding: 0; }

/* Layout */
.inhalt { max-width: 1100px; margin: 0 auto; padding: 1.25rem 16px 3rem; }
.inhalt.schmal { max-width: 560px; }
.inhalt.mittel { max-width: 720px; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 14px; }
.karte.mittig { text-align: center; }
.karte.hervor { background: linear-gradient(180deg, var(--petrol-hell) 0%, var(--petrol-hell-2) 100%); }
.kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.raster-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.raster-3 { display: grid; gap: .75rem; grid-template-columns: 1fr; align-items: end; margin-top: 1rem; }
@media (min-width: 720px) {
  .raster-2 { grid-template-columns: 1fr 1fr; }
  .raster-3 { grid-template-columns: 1fr 1fr 1fr auto; }
}
.gedaempft { color: var(--gedaempft); }
.klein { font-size: .85rem; }
.nowrap { white-space: nowrap; }

/* Formulare */
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; font: inherit; font-weight: 400;
  border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; margin: 1rem 0 1.5rem; }
label.check input { width: 1.4rem; height: 1.4rem; margin: 0; flex: none; accent-color: var(--petrol); }

.btn { white-space: nowrap;
  display: inline-block; padding: .7rem 1.1rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-haupt { background: var(--petrol); color: var(--weiss); }
.btn-haupt:hover { background: var(--petrol-dunkel); }
.btn-haupt.gross { box-shadow: 0 4px 12px rgba(43,101,113,.30); }
.btn-gold { background: var(--petrol-hell); color: var(--petrol); }
.btn-leise { background: var(--weiss); color: var(--petrol); border-color: var(--linie); }
.btn-gefahr { background: var(--weiss); color: var(--rot); border-color: #FCA5A5; }
.btn-gefahr:hover { background: #FEF2F2; }
.breit { width: 100%; }
.gross { padding: 1rem; font-size: 1.1rem; }

.meldung { background: var(--petrol-hell); border: 1px solid var(--petrol-2); padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.fehler { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.hinweis { background: var(--petrol-hell-2); border-left: 4px solid var(--petrol-2); padding: .75rem 1rem; border-radius: 8px; margin: 0 0 1rem; }

/* Kandidat */
.fakten { padding-left: 1.1rem; margin: .75rem 0 0; }
.fakten li { margin-bottom: .4rem; }
.datenschutz { white-space: pre-line; background: var(--petrol-hell-2); border: 1px solid var(--linie); border-radius: 10px; padding: .9rem; font-size: .92rem; max-height: 260px; overflow-y: auto; }

.fortschritt-info { display: flex; justify-content: space-between; font-size: .9rem; color: var(--gedaempft); margin-bottom: .35rem; }
.fortschritt { height: 8px; background: var(--linie); border-radius: 99px; overflow: hidden; margin-bottom: 1.5rem; }
.fortschritt > div { height: 100%; background: linear-gradient(90deg, var(--petrol), var(--petrol-2)); border-radius: 99px; transition: width .2s; }

.aussage { font-size: 1.35rem; font-weight: 700; line-height: 1.35; min-height: 5.5rem; margin: 0 0 1.25rem; }
.antworten { display: grid; gap: .6rem; }
.antwort {
  display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 58px; padding: .8rem 1rem;
  background: var(--weiss); border: 2px solid var(--linie); border-radius: 14px; font: inherit; font-size: 1.05rem;
  color: var(--text); cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent;
}
.antwort:hover { border-color: var(--petrol); }
.antwort:active { transform: scale(.99); }
.antwort.gewaehlt { border-color: var(--petrol); background: var(--petrol-hell); }
.antwort-zahl { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--petrol-hell); color: var(--petrol-dunkel); display: grid; place-items: center; font-weight: 800; }
.antwort.gewaehlt .antwort-zahl { background: var(--petrol); color: var(--weiss); }
.frage-fuss { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; gap: 1rem; }

/* Tabelle */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filter input, .filter select { width: auto; flex: 1 1 150px; margin: 0; }
.tabelle-wrap { overflow-x: auto; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); }
.tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 760px; }
.tabelle th, .tabelle td { padding: .7rem .8rem; border-bottom: 1px solid var(--linie); text-align: left; white-space: nowrap; }
.tabelle th { color: var(--gedaempft); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; background: var(--petrol-hell-2); }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td { background: var(--petrol-hell); }
.tabelle a { font-weight: 600; text-decoration: none; }
.neu-link summary { list-style: none; cursor: pointer; }
.neu-link summary::-webkit-details-marker { display: none; }

.status { display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--linie); color: var(--gedaempft); }
.status-begonnen { background: var(--gold-hell); color: #8A6A1C; }
.status-abgeschlossen { background: var(--petrol-hell); color: var(--petrol-dunkel); }

.ampel-punkt { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.ampel-gruen { background: var(--gruen); } .ampel-gelb { background: var(--gelb); }
.ampel-rot { background: var(--rot); } .ampel-grau { background: var(--grau); }

/* Detail */
.ampel-box { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; border: 2px solid; }
.ampel-gross { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.ampel-label { font-size: 1.6rem; font-weight: 800; }
.ampel-bg-gruen { background: #F0FDF4; border-color: var(--gruen); }
.ampel-bg-gelb { background: #FEFCE8; border-color: var(--gelb); }
.ampel-bg-rot { background: #FEF2F2; border-color: var(--rot); }
.ampel-bg-grau { background: #F1F5F9; border-color: var(--grau); }
.gross-wert { font-size: 1.6rem; font-weight: 800; color: var(--petrol-dunkel); margin: .15rem 0 .5rem; }

.stufe { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; vertical-align: middle; }
.stufe-niedrig { background: #FEE2E2; color: #991B1B; }
.stufe-mittel { background: var(--gold-hell); color: #8A6A1C; }
.stufe-hoch { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.stufe-bg-niedrig { background: #F87171; }
.stufe-bg-mittel { background: var(--gold); }
.stufe-bg-hoch { background: var(--petrol); }

.balken-zeile { margin-bottom: .9rem; }
.balken-kopf { display: flex; justify-content: space-between; gap: .5rem; font-size: .95rem; margin-bottom: .25rem; }
.balken { height: 12px; background: var(--linie); border-radius: 99px; overflow: hidden; }
.balken-fuell { height: 100%; border-radius: 99px; min-width: 6px; }
.skala-legende { display: flex; justify-content: space-between; }
.warn { margin-top: .3rem; font-size: .85rem; font-weight: 600; color: #9A3412; background: #FFF7ED; border-radius: 6px; padding: .2rem .5rem; display: inline-block; }
.warn-text { color: #9A3412; font-weight: 600; }

.hinweise { padding-left: 1.1rem; margin: 0; }
.hinweise li { margin-bottom: .45rem; }

.antwort-tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.antwort-tabelle td { padding: .45rem .3rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.antwort-tabelle td:last-child { text-align: right; }
.u-marke { display: inline-block; background: var(--petrol-hell); color: var(--petrol); font-weight: 800; font-size: .72rem; border-radius: 4px; padding: 0 .35rem; }
@media (max-width: 560px) {
  .antwort-tabelle td { display: block; text-align: left !important; border: 0; padding: .1rem 0; }
  .antwort-tabelle tr { display: block; border-bottom: 1px solid var(--linie); padding: .4rem 0; }
  .nowrap { white-space: normal; }
}

.link-zeile { display: flex; gap: .5rem; }
.link-zeile input { margin: 0; font-size: .9rem; }
.aktionen { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.aktionen form { margin: 0; }

/* Beta-Erweiterungen */
.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; }
.raster-5 { display: grid; gap: .75rem; grid-template-columns: 1fr; align-items: end; margin-top: 1rem; }
@media (min-width: 900px) { .raster-5 { grid-template-columns: 1fr 1fr 1fr 1fr auto; } }
.vorl { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8A6A1C; background: var(--gold-hell); border: 1px solid var(--gold); border-radius: 4px; padding: 0 .3rem; vertical-align: middle; }
.beispiel-marke { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--gedaempft); border: 1px dashed var(--grau); border-radius: 4px; padding: 0 .3rem; margin-left: .3rem; vertical-align: middle; }
select.mini { width: auto; min-width: 9rem; margin: 0; padding: .35rem .5rem; font-size: .88rem; }
.detail-zeile { font-size: .8rem; color: var(--gedaempft); margin-top: .2rem; }
.video-box { margin: 1rem 0; }
.video-box video { width: 100%; max-height: 70vh; border-radius: 10px; background: #000; display: block; }
.mittig-text { text-align: center; }
button[disabled] { opacity: .5; cursor: not-allowed; }
textarea { resize: vertical; }
.link-text { word-break: break-all; }

.legende { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.legende-eintrag.leer { opacity: .45; }
.punkt { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.wenig { font-size: .72rem; font-weight: 700; color: #8A6A1C; background: var(--gold-hell); border-radius: 4px; padding: 0 .3rem; }
.tabelle-wrap.ohne-rand { border: 0; }
.tabelle.vergleich { min-width: 520px; }
.tabelle.vergleich th { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.zahl-zelle { text-align: right !important; }
.wenig-zelle { background: var(--gold-hell); }
.tabelle tr.trenner td { border-top: 2px solid var(--petrol); font-weight: 600; }
.streu { margin-bottom: .6rem; }
.streu-titel { font-weight: 600; font-size: .92rem; }
.streu-svg { width: 100%; height: auto; display: block; }
.streu-svg .gitter { stroke: var(--linie); stroke-width: 1; }
.streu-svg .achse { fill: var(--gedaempft); font-size: 11px; }

/* Kopfkarte wie im Hörbuch (Verlauf) */
.hero { border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.hero-oben { background: linear-gradient(100deg, var(--petrol) 0%, var(--petrol-2) 100%); color: #fff; padding: 20px; display: flex; align-items: center; gap: 16px; }
.hero-ico { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.hero-ico svg { width: 30px; height: 30px; }
.hero h1 { margin: 0 0 8px; font-size: 1.4rem; line-height: 1.2; font-weight: 700; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: rgba(255,255,255,.2); border-radius: 8px; padding: 3px 10px; font-size: .88rem; font-weight: 600; }
.hero-unten { padding: 1rem 1.25rem 1.25rem; background: var(--weiss); }
.hero-unten p:first-child { margin-top: 0; }
.kachel-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.kachel { border: 1px solid var(--linie); border-radius: 16px; padding: 14px 16px; background: var(--weiss); }
.kachel-l { color: var(--gedaempft); font-size: .93rem; }
.kachel-w { font-size: 1.6rem; font-weight: 800; margin-top: 2px; }
.kachel-w small { font-size: .93rem; font-weight: 400; color: var(--gedaempft); }
