/* ================================================================
   KidzcApp – Website var2 · helles Layout
   Reines CSS, keine externen Ressourcen (Datenschutz).
   Palette folgt der echten Anwendung: Primär #2E5CFF, Grün #0A7C4A.
   ================================================================ */

:root {
  --bg:        #F6F8FC;
  --bg-weiss:  #FFFFFF;
  --bg-sanft:  #FBFCFE;
  --tinte:     #101828;
  --tinte-2:   #3A4356;
  --grau:      #6B7487;
  --grau-hell: #98A1B3;
  --linie:     #E3E8F2;
  --linie-2:   #EFF2F8;

  --blau:      #2E5CFF;
  --blau-tief: #1B3FCC;
  --blau-hell: #DFE6FF;
  --blau-luft: #F0F4FF;
  --gold:      #E8A317;
  --gold-hell: #FFF3D6;
  --gruen:     #0A7C4A;
  --gruen-hell:#E3F5EC;
  --rot:       #D92D20;
  --rot-hell:  #FDECEA;

  --viz-1: #2E5CFF;
  --viz-2: #F08A24;
  --viz-3: #12A594;
  --viz-4: #8A5CF6;

  --r:   14px;
  --r-s: 10px;
  --r-l: 22px;
  --schatten:   0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.18);
  --schatten-l: 0 2px 4px rgba(16,24,40,.04), 0 24px 56px -24px rgba(16,24,40,.28);
  --max: 1180px;
  --kopf-h: 64px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--tinte);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--blau); text-decoration: none; }
b, strong { font-weight: 700; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.skip {
  position: absolute; left: -9999px; top: 8px; background: var(--blau); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

/* ---------------- Kopfleiste ---------------- */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--linie);
}
.top-in { height: var(--kopf-h); display: flex; align-items: center; gap: 24px; }
.marke { display: flex; align-items: center; flex: none; position: relative; z-index: 1; }
.marke-bild { display: block; height: 34px; width: auto; max-width: none; overflow: visible; }
.marke-kidz { fill: var(--tinte); }
.marke-kreis { fill: var(--gold); }
.marke-c { fill: #fff; }
.marke-app { fill: var(--blau); }
/* Startklappe: App dreht um die Kreismitte und schwingt dabei über die Kopfleiste hinaus.
   Der Klickbereich bleibt liegen, damit die Bewegung nicht selbst Maus-Ereignisse auslöst. */
.klappe {
  fill: var(--blau); pointer-events: none;
  transform-box: view-box; transform-origin: 243.64px 10.21px;
}
.klappe.laeuft { animation: startklappe 3.5s 1 both; }
/* 1 s zuklappen ohne Nachfedern, 0,5 s halten, 2 s aufklappen */
@keyframes startklappe {
  0%     { transform: rotate(0deg); animation-timing-function: cubic-bezier(.55, .055, .675, .19); }
  28.57% { transform: rotate(180deg); animation-timing-function: linear; }
  42.86% { transform: rotate(180deg); animation-timing-function: ease-in-out; }
  100%   { transform: rotate(0deg); }
}

.hauptnav { display: flex; gap: 4px; margin-left: auto; }
.hauptnav a {
  color: var(--tinte-2); padding: 8px 12px; border-radius: 9px; font-size: .94rem; font-weight: 550;
  transition: background .15s, color .15s;
}
.hauptnav a:hover { background: var(--blau-luft); color: var(--blau-tief); }
.hauptnav a.aktiv { background: var(--blau-hell); color: var(--blau-tief); }

.fortschritt { height: 2px; background: linear-gradient(90deg, var(--blau), var(--gold)); width: 0; transition: width .12s linear; }

.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--linie); border-radius: 9px; padding: 9px 10px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--tinte); border-radius: 2px; }
.burger span + span { margin-top: 4px; }
.nav-mobil { display: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 86px) 0 clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FF 48%, var(--bg) 100%); }
.bahn { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(115deg, transparent 0 78px, rgba(46,92,255,.05) 78px 80px),
    radial-gradient(900px 380px at 78% 18%, rgba(232,163,23,.12), transparent 70%),
    radial-gradient(700px 340px at 12% 8%, rgba(46,92,255,.12), transparent 70%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); gap: 46px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 650;
  color: var(--blau-tief); background: #fff; border: 1px solid var(--blau-hell);
  padding: 6px 13px; border-radius: 999px; box-shadow: var(--schatten); }
.punkt-live { width: 7px; height: 7px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 0 rgba(10,124,74,.45); animation: puls 2s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 8px rgba(10,124,74,0); } 100% { box-shadow: 0 0 0 0 rgba(10,124,74,0); } }
.verlauf { background: linear-gradient(100deg, var(--blau) 8%, #6B4BFF 52%, var(--gold) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--tinte-2); max-width: 54ch; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.knopf { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 650; font-size: .97rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.knopf.primaer { background: var(--blau); color: #fff; box-shadow: 0 10px 22px -10px rgba(46,92,255,.7); }
.knopf.primaer:hover { background: var(--blau-tief); transform: translateY(-2px); }
.knopf.still { background: #fff; color: var(--tinte); border-color: var(--linie); box-shadow: var(--schatten); }
.knopf.still:hover { border-color: var(--blau-hell); transform: translateY(-2px); }
.knopf.klein { padding: 9px 15px; font-size: .88rem; background: var(--blau); color: #fff; border-radius: 10px; }
.knopf.klein:hover { background: var(--blau-tief); }

.hero-fakten { list-style: none; display: flex; flex-wrap: wrap; gap: 30px; padding: 0; margin: 0; }
.hero-fakten li { display: flex; flex-direction: column; }
.hero-fakten b { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-fakten span { font-size: .84rem; color: var(--grau); }
.hero-fakten li.hero-zettel { flex-basis: 100%; }
/* Pfeil als Vektor statt Zeichen „→“: Auf dem Handy kam das Zeichen aus einer Ersatzschrift und saß zu tief. */
.hero-fakten b .pfeil { display: inline-block; width: .9em; height: .45em; vertical-align: .18em; margin: 0 .08em; }
.hero-fakten li.spaeter { opacity: 0; transition: opacity 1.2s ease; }
.hero-fakten li.spaeter.da { opacity: 1; }

/* ---------------- Bühne (Geräte im Hero) ---------------- */
.buehne { position: relative; height: 420px; }
.geraet { position: absolute; background: #fff; border: 1px solid var(--linie); border-radius: 16px;
  box-shadow: var(--schatten-l); animation: schweben 7s ease-in-out infinite; }
@keyframes schweben { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.laptop { left: 0; top: 24px; width: 68%; padding: 10px; animation-delay: .2s; }
.laptop-schirm { background: var(--bg-sanft); border: 1px solid var(--linie-2); border-radius: 10px; padding: 10px; }
.laptop-fuss { height: 7px; margin: 8px -10px -10px; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #EDF1F8, #DFE5F0); }
.mini-kopf { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.mini-kopf span { width: 7px; height: 7px; border-radius: 50%; background: #E1E6F0; }
.mini-kopf em { margin-right: 46%; margin-left: auto; font-style: normal; font-size: .68rem; color: var(--grau); font-weight: 600; }
.mini-reiter { display: flex; gap: 5px; margin-bottom: 9px; }
.mini-reiter i { height: 7px; width: 34px; border-radius: 4px; background: #E7ECF6; }
.mini-reiter i.an { background: var(--blau); width: 46px; }
.mini-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mini-raster span { height: 22px; border-radius: 6px; background: #EDF1F8; }
.mini-raster span.ok { background: var(--gruen-hell); border: 1px solid #BFE5D2; }
.mini-raster span.ok::after { content: "✓"; display: block; text-align: center; font-size: .66rem; color: var(--gruen); line-height: 20px; }

.tablet { right: 0; top: 0; width: 38%; padding: 9px; animation-delay: 1.4s; }
.tablet-schirm { background: var(--bg-sanft); border: 1px solid var(--linie-2); border-radius: 10px; padding: 10px; }
.t-kopf { font-size: .7rem; font-weight: 700; color: var(--blau-tief); background: var(--blau-hell); padding: 5px 8px; border-radius: 6px; margin-bottom: 8px; }
.t-zeile { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; padding: 5px 2px; border-bottom: 1px solid var(--linie-2); }
.t-zeile b { font-variant-numeric: tabular-nums; }
.t-zeile.neu b { color: var(--gruen); }
.t-zeile.neu { animation: blinken 3.5s ease-in-out infinite; }
@keyframes blinken { 0%, 82%, 100% { background: transparent; } 88% { background: var(--gruen-hell); } }
.t-balken { height: 6px; border-radius: 4px; background: #E7ECF6; margin-top: 10px; overflow: hidden; }
.t-balken i { display: block; height: 100%; background: var(--gruen); width: 40%; border-radius: 4px; animation: fuellen 5s ease-in-out infinite; }
@keyframes fuellen { 0% { width: 18%; } 60% { width: 92%; } 100% { width: 18%; } }

.leinwand { right: 4%; bottom: 8px; width: 56%; padding: 9px; animation-delay: .8s; }
.leinwand-flaeche { background: #0F1729; border-radius: 10px; padding: 12px; color: #fff; }
.leinwand-flaeche em { font-style: normal; font-size: .72rem; color: #9FB3E8; font-weight: 600; display: block; margin-bottom: 9px; }
.lw-bar { position: relative; display: flex; align-items: center; height: 20px; margin-bottom: 6px; }
.lw-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 5px;
  background: linear-gradient(90deg, var(--blau), #7C9BFF); animation: wachsen 6s ease-in-out infinite; transform-origin: left; }
.lw-bar span { position: relative; font-size: .68rem; line-height: 1; padding-left: 8px; font-weight: 600; }
@keyframes wachsen { 0%,100% { transform: scaleX(.82); } 50% { transform: scaleX(1); } }

.funk { position: absolute; border: 2px solid rgba(46,92,255,.32); border-radius: 50%; width: 16px; height: 16px;
  animation: welle 3.4s ease-out infinite; }
.funk.f1 { left: 52%; top: 42%; }
.funk.f2 { left: 52%; top: 42%; animation-delay: 1.7s; }
@keyframes welle { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(7); opacity: 0; } }

/* ---------------- Abschnitte ---------------- */
.abschnitt { padding: clamp(52px, 7vw, 92px) 0; }
.abschnitt.hell { background: var(--bg-weiss); border-block: 1px solid var(--linie); }
.ab-kopf { max-width: 62ch; margin-bottom: 40px; }
.ab-kicker { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--blau); margin-bottom: 10px; }
.ab-lead { color: var(--grau); font-size: 1.04rem; margin: 0; }

.karte { background: var(--bg-weiss); border: 1px solid var(--linie); border-radius: var(--r-l); box-shadow: var(--schatten); }
.karte.mini { padding: 22px 24px; }
.karte.mini h3 { margin-bottom: 6px; }
.karte.mini p { margin: 0; color: var(--grau); font-size: .93rem; }

/* ---------------- Phasen ---------------- */
.phasen { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.phase { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--linie);
  border-radius: 999px; padding: 10px 20px 10px 10px; cursor: pointer; font-weight: 600; color: var(--tinte-2);
  transition: all .18s; box-shadow: var(--schatten); }
.phase span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blau-luft); color: var(--blau-tief); font-size: .82rem; font-weight: 800; }
.phase:hover { border-color: var(--blau-hell); transform: translateY(-1px); }
.phase.an { background: var(--blau); color: #fff; border-color: var(--blau); }
.phase.an span { background: rgba(255,255,255,.22); color: #fff; }

.phase-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 34px; align-items: center;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--r-l); padding: 30px; box-shadow: var(--schatten); }
.phase-panel[hidden] { display: none; }
.phase-panel.an { animation: einblenden .35s ease forwards; }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pp-text h3 { font-size: 1.32rem; }
.pp-text p { color: var(--tinte-2); }
.haken { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.haken li { position: relative; padding-left: 28px; font-size: .94rem; color: var(--tinte-2); }
.haken li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%;
  background: var(--gruen-hell); color: var(--gruen); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

.pp-bild { display: grid; place-items: center; }

/* Mockup Zeitplan */
.mock-zeitplan { width: 100%; background: var(--bg-sanft); border: 1px solid var(--linie); border-radius: var(--r); padding: 14px; font-size: .76rem; }
.zp-kopf, .zp-zeile { display: grid; grid-template-columns: 82px repeat(4, 1fr); align-items: center; gap: 4px; }
.zp-kopf { color: var(--grau); font-weight: 650; margin-bottom: 8px; }
.zp-zeile { height: 34px; border-top: 1px dashed var(--linie); position: relative; }
.zp-zeile > span { font-weight: 650; }
.zp-zeile i { grid-column: calc(var(--s) + 1) / span var(--l); font-style: normal; border-radius: 7px;
  padding: 5px 9px; font-weight: 650; color: #fff; font-size: .72rem; animation: einblenden .5s ease forwards; }
.b1 { background: var(--viz-1); } .b2 { background: var(--viz-2); } .b3 { background: var(--viz-3); } .b4 { background: var(--viz-4); }

/* Mockup Raster */
.mock-raster { width: 100%; background: var(--bg-sanft); border: 1px solid var(--linie); border-radius: var(--r); padding: 14px; font-size: .78rem; }
.mr-kopf, .mr-zeile { display: grid; grid-template-columns: 74px repeat(4, 1fr); gap: 6px; align-items: center; }
.mr-kopf { color: var(--grau); font-weight: 650; margin-bottom: 7px; }
.mr-zeile { margin-bottom: 6px; }
.mr-zeile > span { font-weight: 650; }
.mr-zeile i { font-style: normal; height: 30px; border-radius: 8px; background: #EDF1F8; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: var(--grau); }
.mr-zeile i.fertig { background: var(--gruen-hell); color: var(--gruen); border: 1px solid #BFE5D2; }
.mr-zeile i.laeuft { background: var(--blau-hell); color: var(--blau-tief); }

/* Mockup Ergebnis */
.mock-ergebnis { width: 100%; }
.me-zeile { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  background: var(--bg-sanft); border: 1px solid var(--linie); border-radius: 11px; padding: 10px 14px; margin-bottom: 7px; font-size: .9rem; }
.me-zeile b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #EDF1F8; font-size: .78rem; }
.me-zeile em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.me-zeile.gold { background: var(--gold-hell); border-color: #F3DEA8; } .me-zeile.gold b { background: var(--gold); color: #fff; }
.me-zeile.silber b { background: #C8CFDC; color: #fff; }
.me-zeile.bronze b { background: #D9A066; color: #fff; }

/* Mockup Urkunde */
.mock-urkunde { width: 100%; max-width: 300px; aspect-ratio: 1/1.32; background: #fff; border: 1px solid var(--linie);
  border-radius: 12px; padding: 12px; box-shadow: var(--schatten-l); }
.uk-rand { height: 100%; border: 2px solid var(--gold); border-radius: 8px; display: grid; place-items: center;
  align-content: center; text-align: center; padding: 14px; gap: 2px; }
.uk-stern { font-size: 1.5rem; color: var(--gold); }
.uk-klein { font-size: .7rem; color: var(--grau); margin: 0; }
.uk-rand h4 { font-size: 1.5rem; margin: 4px 0; letter-spacing: .04em; }
.uk-name { font-size: 1.1rem; font-weight: 700; margin: 6px 0; color: var(--blau-tief); }
.uk-sig { width: 96px; height: 24px; margin-top: 12px;
  background: repeating-linear-gradient(88deg, transparent 0 5px, var(--tinte-2) 5px 7px, transparent 7px 12px);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); opacity: .5; border-bottom: 1px solid var(--linie); }

/* ---------------- Disziplinen ---------------- */
.disz-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dw { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-sanft); border: 1px solid var(--linie);
  border-radius: 999px; padding: 9px 17px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--tinte-2); transition: all .16s; }
.dw span { font-size: 1.05rem; }
.dw:hover { border-color: var(--blau-hell); background: var(--blau-luft); }
.dw.an { background: var(--blau); border-color: var(--blau); color: #fff; }

.rechner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 0; overflow: hidden; }
.rechner-links { padding: 28px 30px; }
.rechner-rechts { padding: 28px 30px; background: var(--blau-luft); border-left: 1px solid var(--linie); display: flex; flex-direction: column; gap: 14px; }
.r-kopf h3 { font-size: 1.28rem; }
.r-kopf p { color: var(--tinte-2); font-size: .95rem; margin-bottom: 6px; }
.d-meta { font-size: .8rem; color: var(--grau); font-weight: 600; }
.r-eingabe { margin-top: 18px; display: grid; gap: 14px; }

.regler { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blau) var(--p, 50%), #E2E8F5 var(--p, 50%)); cursor: pointer; }
.regler::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blau); box-shadow: 0 2px 6px rgba(16,24,40,.2); cursor: grab; }
.regler::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--blau);
  box-shadow: 0 2px 6px rgba(16,24,40,.2); cursor: grab; }

.v-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.v-chip { display: grid; gap: 2px; padding: 7px 8px; border: 1px solid var(--linie); border-radius: 10px; background: #fff;
  cursor: pointer; text-align: left; font: inherit; color: var(--tinte-2); }
.v-chip span { font-size: .74rem; color: var(--grau); }
.v-chip b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.v-chip.an { border-color: var(--blau); box-shadow: 0 0 0 2px var(--blau-luft); }
.v-chip.streicher b { color: var(--grau-hell); text-decoration: line-through; }
.matte button.gewaehlt:nth-child(n) { background: var(--blau); border-color: var(--blau); color: #fff; }
.r-eingabe .matte button { aspect-ratio: 1.5; }
.matte.wurf { grid-template-columns: repeat(7, 1fr); }
.r-eingabe .matte.wurf button { aspect-ratio: 1; }
.matte.wurf button:nth-child(n):not(.gewaehlt) { background: #F2F6FF; }

.dring-feld { text-align: center; }
.dring { width: min(100%, 230px); touch-action: none; cursor: grab; }
.dring:active { cursor: grabbing; }
.dr-spur, .dr-wert { fill: none; stroke-width: 16; }
.dr-spur { stroke: #E2E8F5; }
.dr-wert { stroke: var(--blau); stroke-linecap: round; }
.dr-wert.innen { stroke: var(--gruen); }
.dr-griff { fill: #fff; stroke: var(--blau); stroke-width: 3; outline: none; }
.dr-griff.innen { stroke: var(--gruen); }
.dr-griff:focus-visible { stroke-width: 5; }
.dring text { font-size: 21px; font-weight: 800; fill: var(--tinte); font-variant-numeric: tabular-nums; }

.hoch-latte { display: grid; grid-template-columns: 1fr auto; gap: 12px 14px; align-items: baseline; }
.hoch-latte label { font-size: .88rem; font-weight: 600; color: var(--tinte-2); }
.hoch-latte output { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hoch-latte .regler { grid-column: 1/-1; }
.hv-kind { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 8px; font-size: .92rem; }
.hv-raus { color: var(--rot); font-size: .82rem; font-weight: 650; }
.hv-zeile { display: grid; grid-template-columns: 1fr 64px 64px; gap: 6px; align-items: center; margin-bottom: 6px; font-size: .86rem; color: var(--tinte-2); }
.hv-zeile button { border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 7px; cursor: pointer; font-size: 1rem; font-weight: 800; color: var(--grau); }
.hv-zeile button:disabled { opacity: .4; cursor: default; }
.hv-zeile button.ja.an { background: var(--gruen-hell); border-color: #BFE5D2; color: var(--gruen); }
.hv-zeile button.nein.an { background: var(--rot-hell); border-color: #F5C9C4; color: var(--rot); }

.rl { display: grid; gap: 12px; }
.rl-kopf { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 650; }
.rl-kopf b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rl-balken { height: 8px; border-radius: 4px; background: #E2E8F5; overflow: hidden; margin: 5px 0 7px; }
.rl-balken i { display: block; height: 100%; background: var(--blau); transition: width .2s; }
.rl-knoepfe { display: grid; grid-template-columns: 44px 56px 1fr; gap: 6px; }
.rl-knoepfe button { border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 7px; cursor: pointer; font-weight: 700; color: var(--tinte-2); }
.rl-knoepfe button.haupt { background: var(--blau); border-color: var(--blau); color: #fff; }
.rl .matte-hinweis { margin: 0; }

.ergebnis-karte { background: #fff; border: 1px solid var(--blau-hell); border-radius: var(--r); padding: 20px 22px; }
.ek-label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blau); margin: 0 0 6px; }
.ek-wert { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; margin: 0; font-variant-numeric: tabular-nums; }
.ek-formel { font-size: .9rem; color: var(--grau); margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.ek-formel s { color: var(--grau-hell); }
.ek-hinweis { font-size: .88rem; color: var(--tinte-2); line-height: 1.55; }

.disz-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.dk { background: var(--bg-sanft); border: 1px solid var(--linie); border-radius: var(--r); padding: 18px; transition: all .18s; }
.dk:hover { transform: translateY(-3px); box-shadow: var(--schatten-l); border-color: var(--blau-hell); background: #fff; }
.dk-emoji { font-size: 1.5rem; }
.dk h4 { margin: 8px 0 4px; font-size: .98rem; }
.dk p { margin: 0; font-size: .84rem; color: var(--grau); }
.dk .marke-ak { font-size: .7rem; font-weight: 700; color: var(--blau-tief); background: var(--blau-hell);
  padding: 3px 9px; border-radius: 999px; display: inline-block; margin-top: 10px; }

/* ---------------- App ---------------- */
.app-raster { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1fr); gap: 34px; align-items: start; }
.app-demo { padding: 20px 22px 22px; }
.ad-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: var(--blau-hell); margin: -20px -22px 16px; padding: 14px 22px; border-radius: var(--r-l) var(--r-l) 0 0; }
.ad-riege { margin: 0; font-weight: 700; color: var(--blau-tief); font-size: .96rem; }
.ad-disz { margin: 2px 0 0; font-size: .8rem; color: #4A5A8A; }
.ad-haken { background: var(--gruen); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; animation: einblenden .3s forwards; }

.ad-modus { display: flex; gap: 6px; margin-bottom: 14px; }
.am { flex: 1; border: 1px solid var(--linie); background: #fff; border-radius: 9px; padding: 8px 6px; cursor: pointer;
  font-size: .84rem; font-weight: 600; color: var(--grau); transition: all .15s; }
.am.an { background: var(--blau); border-color: var(--blau); color: #fff; }
.ad-kind { font-size: .9rem; margin: 0 0 12px; }
.ad-kind span { color: var(--grau); font-size: .82rem; margin-left: 6px; }

.ad-flaeche { min-height: 168px; background: var(--bg-sanft); border: 1px solid var(--linie); border-radius: var(--r); padding: 14px; }

/* Zonenmatte */
.matte { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.matte button { aspect-ratio: 1/1.2; border: 1px solid var(--linie); border-radius: 9px; cursor: pointer;
  font-weight: 750; font-size: .92rem; color: var(--tinte); display: grid; place-items: center; transition: all .12s; }
.matte button:nth-child(-n+5) { background: #EAF6F0; }
.matte button:nth-child(n+6) { background: #F2F6FF; }
.matte button:hover { transform: scale(1.06); border-color: var(--blau); }
.matte button:active, .matte button.geklickt { background: var(--blau); color: #fff; transform: scale(.94); }
.matte-hinweis { grid-column: 1/-1; font-size: .76rem; color: var(--grau); text-align: center; margin: 4px 0 0; }

/* Walze */
.walze { display: flex; align-items: center; justify-content: center; gap: 18px; height: 150px; }
.walze-fenster { position: relative; width: 108px; height: 132px; overflow: hidden; border: 1px solid var(--linie);
  border-radius: 12px; background: #fff;
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent); }
.walze-band { position: absolute; left: 0; right: 0; transition: transform .22s cubic-bezier(.2,.9,.3,1); }
.walze-band div { height: 44px; display: grid; place-items: center; font-weight: 700; font-size: 1.04rem; color: var(--grau-hell); font-variant-numeric: tabular-nums; }
.walze-band div.mitte { color: var(--blau); font-size: 1.4rem; font-weight: 800; }
.walze-linie { position: absolute; left: 6px; right: 6px; top: 44px; height: 44px; border-block: 2px solid var(--blau-hell); pointer-events: none; }
.walze-pfeile { display: grid; gap: 8px; }
.walze-pfeile button { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--linie); background: #fff;
  cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--blau); }
.walze-pfeile button:hover { background: var(--blau-luft); }

/* Stoppuhr */
.dreh { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; }
.dreh-knopf { --w: 0deg; position: relative; width: 132px; height: 132px; border-radius: 50%; cursor: grab; touch-action: none;
  background: conic-gradient(from var(--w), #F5F7FC, #D9E1F2, #F5F7FC, #D9E1F2, #F5F7FC);
  border: 1px solid var(--linie); box-shadow: var(--schatten); }
.dreh-knopf:active { cursor: grabbing; }
.dreh-knopf i { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--blau);
  transform: rotate(var(--w)) translateY(-48px); }
.dreh-rechts { text-align: center; }
.dreh-zeit { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin: 0 0 8px; }
.dreh-ok { padding: 10px 20px; border-radius: 10px; border: 1px solid var(--gruen); background: var(--gruen); color: #fff; font-weight: 650; cursor: pointer; }
.dreh .matte-hinweis { flex-basis: 100%; }

.ad-liste { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 5px; max-height: 148px; overflow-y: auto; }
.ad-liste li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  background: var(--bg-sanft); border: 1px solid var(--linie-2); border-radius: 9px; padding: 7px 12px; font-size: .86rem;
  animation: einblenden .25s forwards; }
.ad-liste li b { font-variant-numeric: tabular-nums; }
.ad-liste .zustand { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ad-liste .lokal { background: var(--gold-hell); color: #8A6100; }
.ad-liste .gesendet { background: var(--gruen-hell); color: var(--gruen); }
.ad-leer { color: var(--grau); font-size: .86rem; text-align: center; padding: 10px; }

.ad-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.schalter { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .86rem; color: var(--tinte-2); font-weight: 550; }
.schalter input { position: absolute; opacity: 0; width: 0; height: 0; }
.schieber { width: 38px; height: 22px; border-radius: 999px; background: #D9E0EE; position: relative; transition: background .18s; flex: none; }
.schieber::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.schalter input:checked + .schieber { background: var(--blau); }
.schalter input:checked + .schieber::after { transform: translateX(16px); }
.schalter input:focus-visible + .schieber { outline: 3px solid var(--blau); outline-offset: 2px; }

.ad-sync { margin-top: 12px; }
.sb { height: 8px; border-radius: 5px; background: #E7ECF6; overflow: hidden; }
.sb i { display: block; height: 100%; width: 0; background: var(--gruen); transition: width .3s ease; }
.ad-sync p { font-size: .8rem; color: var(--grau); margin: 6px 0 0; }

.app-text { display: grid; gap: 22px; }
.merkmal { padding-left: 18px; border-left: 3px solid var(--blau-hell); }
.merkmal h3 { margin-bottom: 5px; }
.merkmal p { margin: 0; color: var(--grau); font-size: .95rem; }

/* ---------------- Galerie ---------------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gal { background: var(--bg-sanft); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden;
  cursor: zoom-in; transition: all .2s; display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; }
.gal:hover { transform: translateY(-3px); box-shadow: var(--schatten-l); border-color: var(--blau-hell); }
.gal-bild { background: #fff; border-bottom: 1px solid var(--linie); height: 200px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 8px; }
.gal-bild img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.gal-text { padding: 13px 16px 16px; }
.gal-text b { display: block; font-size: .94rem; }
.gal-text span { font-size: .84rem; color: var(--grau); }
.gal-fehlt { color: var(--grau-hell); font-size: .84rem; padding: 40px 12px; text-align: center; }

.lupe { position: fixed; inset: 0; background: rgba(16,24,40,.72); display: grid; place-items: center; z-index: 90;
  padding: 24px; animation: einblenden .2s forwards; }
.lupe[hidden] { display: none; }
.lupe figure { margin: 0; background: #fff; border-radius: 14px; padding: 12px; max-width: min(1080px, 94vw); max-height: 92vh;
  display: flex; flex-direction: column; gap: 10px; }
.lupe img { max-height: 78vh; object-fit: contain; border-radius: 8px; border: 1px solid var(--linie); }
.lupe figcaption { font-size: .9rem; color: var(--grau); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.lupe button { border: 1px solid var(--linie); background: #fff; border-radius: 8px; padding: 6px 14px; cursor: pointer; font-weight: 650; }

/* ---------------- Wertung ---------------- */
.wertung-raster { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 24px; align-items: start; }
.w-steuer { padding: 26px 28px; display: grid; gap: 26px; }
.w-label { font-size: .88rem; font-weight: 700; margin: 0 0 10px; }
.w-label b { color: var(--blau); font-variant-numeric: tabular-nums; }
.segment { display: inline-flex; background: var(--bg-sanft); border: 1px solid var(--linie); border-radius: 11px; padding: 3px; gap: 3px; }
.seg { border: none; background: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; font-weight: 650;
  font-size: .89rem; color: var(--grau); transition: all .15s; }
.seg:hover { color: var(--tinte); }
.seg.an { background: #fff; color: var(--blau-tief); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.w-erklaer { font-size: .89rem; color: var(--tinte-2); margin: 14px 0 0; line-height: 1.55; }
.w-mini { font-size: .83rem; color: var(--grau); margin: 10px 0 0; }
.w-stepper { display: inline-flex; gap: 6px; }
.w-stepper button { width: 44px; height: 38px; border: 1px solid var(--linie); border-radius: 9px; background: #fff; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--tinte-2); }
.w-stepper button:disabled { opacity: .4; cursor: default; }
.w-nur-leistung { transition: opacity .2s; }
.w-nur-leistung.aus { opacity: .45; }

.w-tabelle { padding: 22px 24px 18px; }
.wt-kopf, .wt-liste li { display: grid; grid-template-columns: 1fr 96px 56px 74px; align-items: center; gap: 8px; }
.wt-kopf { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); font-weight: 700;
  padding: 0 12px 10px; border-bottom: 1px solid var(--linie); }
.wt-kopf span:not(:first-child), .wt-liste li span:not(.wt-name) { text-align: right; }
.wt-liste { list-style: none; margin: 0; padding: 0; position: relative; }
.wt-liste li { padding: 11px 12px; border-bottom: 1px solid var(--linie-2); font-size: .93rem; border-radius: 9px; }
.wt-liste li.top { background: var(--gold-hell); }
.wt-name { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.wt-farbe { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.wt-wert, .wt-rang, .wt-punkte { font-variant-numeric: tabular-nums; }
.wt-punkte { font-weight: 750; }
.wt-punkte em { font-style: normal; font-size: .74rem; color: var(--grau); font-weight: 600; margin-left: 2px; }
.wt-fuss { font-size: .8rem; color: var(--grau); margin: 12px 0 0; text-align: right; }
.w-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 24px; }

/* ---------------- Web-Admin-Nachbau ---------------- */
.gui-steuer { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.gui { border: 1px solid var(--linie); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--schatten-l); background: #fff; }
.gui-kopf { display: flex; align-items: center; gap: 16px; padding: 11px 20px; background: #16203A; color: #fff; flex-wrap: wrap; }
.gk-marke { font-weight: 750; letter-spacing: -.01em; }
.gk-nav { display: flex; gap: 14px; font-size: .86rem; }
.gk-nav a { color: #C7D2EC; cursor: default; }
.gk-suche { margin-left: auto; font-size: .78rem; color: #97A6C8; background: rgba(255,255,255,.08); padding: 5px 12px; border-radius: 8px; }
.gk-suche kbd { background: rgba(255,255,255,.14); border-radius: 4px; padding: 1px 5px; margin-left: 4px; font-size: .72rem; font-family: inherit; }
.gk-alarm { background: var(--rot); color: #fff; font-size: .76rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; animation: alarm 1.1s ease-in-out infinite; }
@keyframes alarm { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.gui-kontext { display: flex; align-items: center; gap: 14px; padding: 11px 20px; background: var(--blau-luft);
  border-bottom: 1px solid var(--linie); font-size: .86rem; flex-wrap: wrap; }
.gk-status { background: var(--gruen-hell); color: var(--gruen); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gk-kennzahl { color: var(--grau); font-size: .82rem; }
.gk-geraete { margin-left: auto; color: var(--gruen); font-size: .8rem; font-weight: 600; }

.gui-reiter { display: flex; gap: 2px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--linie); }
.gr { border: none; background: none; padding: 13px 18px; cursor: pointer; font-weight: 620; font-size: .9rem;
  color: var(--grau); border-bottom: 3px solid transparent; transition: all .15s; }
.gr:hover { color: var(--tinte); }
.gr.an { color: var(--blau-tief); border-bottom-color: var(--blau); }
.gr[hidden] { display: none; }

.gui-unterreiter { display: flex; gap: 6px; padding: 11px 20px; background: var(--bg-sanft); border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.gu { font-size: .82rem; padding: 5px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--linie); color: var(--grau); }
.gu.an { background: var(--blau-hell); border-color: var(--blau-hell); color: var(--blau-tief); font-weight: 650; }
.gui-inhalt { padding: 24px; min-height: 280px; background: var(--bg-sanft); }

/* Theme „Akte“ */
.gui[data-theme="akte"] { border-radius: 8px; }
.gui[data-theme="akte"] .gui-kopf { background: #F3EFE6; color: #3A3026; border-bottom: 2px solid #D8CDB8; }
.gui[data-theme="akte"] .gk-nav a { color: #6B5D48; }
.gui[data-theme="akte"] .gk-suche { background: #FFFDF8; color: #8A7B63; border: 1px solid #DED2BB; }
.gui[data-theme="akte"] .gk-suche kbd { background: #EFE7D7; color: #6B5D48; }
.gui[data-theme="akte"] .gui-kontext { background: #FBF8F1; border-bottom-color: #E4DAC6; }
.gui[data-theme="akte"] .gui-reiter { background: #FBF8F1; border-bottom-color: #E4DAC6; gap: 4px; padding-top: 6px; }
.gui[data-theme="akte"] .gr { border: 1px solid transparent; border-bottom: none; border-radius: 7px 7px 0 0; padding: 10px 16px; }
.gui[data-theme="akte"] .gr.an { background: #fff; border-color: #E4DAC6; color: #3A3026; box-shadow: 0 -2px 0 #B08E4F inset; }
.gui[data-theme="akte"] .gui-unterreiter { background: #fff; border-bottom-color: #E4DAC6; }
.gui[data-theme="akte"] .gu { border-radius: 4px; background: #FBF8F1; border-color: #E4DAC6; }
.gui[data-theme="akte"] .gu.an { background: #F0E6D0; border-color: #D8C9A8; color: #5A4A30; }
.gui[data-theme="akte"] .gui-inhalt { background: #FFFDF8; }
.gui[data-theme="akte"] .kachel, .gui[data-theme="akte"] .gi-karte { border-color: #E4DAC6; }

/* Inhalte im Nachbau */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 15px 17px; }
.kachel b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kachel span { font-size: .8rem; color: var(--grau); }
.kachel.gruen b { color: var(--gruen); }
.kachel.blau b { color: var(--blau); }
.gi-karte { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 18px 20px; }
.gi-karte h4 { margin: 0 0 12px; font-size: .95rem; }
.gi-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.gi-liste li { display: flex; align-items: center; gap: 10px; color: var(--tinte-2); }
.gi-liste .ok { color: var(--gruen); font-weight: 800; }
.gi-liste .offen { color: var(--grau-hell); font-weight: 800; }
.gi-balken { display: grid; gap: 9px; }
.gi-balken div { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 10px; font-size: .84rem; }
.gi-balken i { height: 12px; border-radius: 4px; background: var(--viz-1); display: block; width: var(--w); transition: width .5s; }
.gi-balken i.z2 { background: var(--viz-2); }
.gi-hinweis { font-size: .84rem; color: var(--grau); margin: 14px 0 0; }
.gui-hinweis { margin-top: 14px; font-size: .88rem; color: var(--grau); }
.link-knopf { background: none; border: none; color: var(--blau); font-weight: 650; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------------- Beamer-Show ---------------- */
.show { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 22px; align-items: start; }
.show-liste { display: grid; gap: 5px; max-height: 470px; overflow-y: auto; padding-right: 4px; }
.sl { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--linie);
  border-radius: 10px; padding: 9px 13px; cursor: pointer; font-size: .87rem; font-weight: 600; color: var(--tinte-2); transition: all .15s; }
.sl:hover { border-color: var(--blau-hell); background: var(--blau-luft); }
.sl.an { background: var(--blau); border-color: var(--blau); color: #fff; }
.sl em { font-style: normal; font-size: 1.02rem; }

.leinwand-rahmen { position: relative; background: #0D1526; border-radius: 16px; padding: 12px; box-shadow: var(--schatten-l); overflow: hidden; }
.leinwand-inhalt { aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(150deg, #101B33, #0A1120 60%, #131C33);
  color: #fff; padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.folie-einzug { animation: folieRein .45s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes folieRein { from { opacity: 0; transform: translateX(22px) scale(.99); } to { opacity: 1; transform: none; } }
.f-titel { font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
.f-unter { font-size: clamp(.74rem, 1.2vw, .92rem); color: #93A6D4; margin: 0 0 18px; font-weight: 600; }
.f-liste { display: grid; gap: 7px; }
.f-zeile { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06); border-radius: 9px; padding: 8px 14px; font-size: clamp(.76rem, 1.3vw, .96rem); }
.f-zeile b { color: var(--gold); font-size: 1.05em; }
.f-zeile em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 700; }
.f-zeile.eins { background: linear-gradient(90deg, rgba(232,163,23,.3), rgba(232,163,23,.05)); }
.f-gross { font-size: clamp(2rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0; }
.f-mitte { text-align: center; }
.f-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.f-kachel { background: rgba(255,255,255,.07); border-radius: 12px; padding: 14px; text-align: center; }
.f-kachel b { display: block; font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 800; }
.f-kachel span { font-size: .72rem; color: #93A6D4; }
.f-balken { display: grid; gap: 10px; }
.f-balken div { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; font-size: clamp(.72rem, 1.2vw, .88rem); }
.f-balken i { height: 16px; border-radius: 5px; background: linear-gradient(90deg, #3E6BFF, #8AA8FF); width: var(--w); display: block; animation: balkenRein .6s ease forwards; }
@keyframes balkenRein { from { transform: scaleX(0); transform-origin: left; } }
.f-text { font-size: clamp(.82rem, 1.5vw, 1.05rem); color: #C3D0EE; max-width: 46ch; }
.f-marke { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #0D1526; background: var(--gold); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

.rekord { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(100deg, var(--gold), #FFC94D); color: #3A2700; padding: 12px 20px; border-radius: 13px;
  font-size: .9rem; box-shadow: 0 16px 40px -12px rgba(232,163,23,.7); animation: rekordRein .5s cubic-bezier(.2,1.3,.4,1) forwards; }
.rekord b { display: block; font-size: .94rem; }
.rekord span { font-size: .82rem; opacity: .86; }
.rk-blitz { font-size: 1.5rem; animation: drehen 2.4s ease-in-out infinite; }
@keyframes drehen { 0%,100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(12deg) scale(1.12); } }
@keyframes rekordRein { from { opacity: 0; transform: translateY(26px) scale(.9); } }
.rekord[hidden] { display: none; }
.show-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.show-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 26px; }

/* ---------------- Technik ---------------- */
.technik-raster { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 28px; align-items: center; }
.arch { padding: 18px; }
.arch svg { display: block; width: 100%; height: auto; }
.knoten rect { fill: #fff; stroke: var(--linie); stroke-width: 1.5; }
.knoten text { text-anchor: middle; font-family: var(--font); font-size: 14px; font-weight: 650; fill: var(--tinte); }
.knoten .svg-klein, text.svg-klein { font-size: 10.5px; font-weight: 600; fill: var(--grau); }
.knoten.mitte rect { fill: var(--blau); stroke: var(--blau-tief); }
.knoten.mitte text { fill: #fff; } .knoten.mitte .svg-klein { fill: #C9D8FF; }
.knoten.db rect { fill: var(--blau-luft); stroke: var(--blau-hell); }
.kante { fill: none; stroke: #9AA5BC; stroke-width: 1.6; stroke-dasharray: 5 5; animation: fliessen 1.6s linear infinite; }
@keyframes fliessen { to { stroke-dashoffset: -20; } }
text.svg-klein { text-anchor: start; }
.knoten text.svg-klein { text-anchor: middle; }

.fakten { margin: 0; display: grid; gap: 18px; }
.fakten > div { border-left: 3px solid var(--blau-hell); padding-left: 16px; }
.fakten dt { font-weight: 750; font-size: .96rem; margin-bottom: 3px; }
.fakten dd { margin: 0; color: var(--grau); font-size: .92rem; }


/* ---------------- Abschluss & Fuß ---------------- */
.abschluss { background: linear-gradient(140deg, #16203A 0%, #1E2C52 55%, #2A3B70 100%); color: #fff; padding: clamp(52px, 7vw, 86px) 0; }
.abschluss-in { max-width: 66ch; }
.abschluss h2 { color: #fff; }
.abschluss p { color: #C3D0EE; font-size: 1.04rem; }
.abschluss p a { color: #fff; text-decoration: underline; }
.abschluss .knopf.primaer { background: #fff; color: var(--blau-tief); box-shadow: none; }
.abschluss .knopf.primaer:hover { background: var(--blau-hell); }
.abschluss .knopf.still { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.26); box-shadow: none; }
.abschluss .knopf.still:hover { background: rgba(255,255,255,.16); }

.fuss { background: var(--bg-weiss); border-top: 1px solid var(--linie); padding: 36px 0; }
.fuss-in { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: end; align-items: last baseline; }
.fuss p { font-size: .86rem; color: var(--grau); margin: 8px 0 0; max-width: 42ch; }
.fuss p.fuss-recht { text-align: right; font-size: .82rem; color: var(--grau); max-width: none; text-wrap: balance; }
.platzhalter { color: var(--grau-hell); font-style: italic; }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.da { opacity: 1; transform: none; }

/* ---------------- Responsiv ---------------- */
@media (max-width: 1000px) {
  .hero-in, .phase-panel, .rechner, .app-raster, .wertung-raster, .technik-raster, .show { grid-template-columns: 1fr; }
  .rechner-rechts { border-left: none; border-top: 1px solid var(--linie); }
  .buehne { height: 340px; }
  .show-liste { display: flex; overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .sl { flex: none; }
  .fuss-in { grid-template-columns: 1fr; }
  .fuss p.fuss-recht { text-align: left; }
}
@media (max-width: 760px) {
  .hauptnav { display: none; }
  .burger { display: block; }
  .nav-mobil { display: none; background: #fff; border-bottom: 1px solid var(--linie); padding: 10px 22px 16px; }
  .nav-mobil.offen { display: grid; gap: 4px; position: sticky; top: var(--kopf-h); z-index: 49; }
  .nav-mobil a { padding: 9px 10px; border-radius: 8px; color: var(--tinte-2); font-weight: 600; }
  .nav-mobil a:hover { background: var(--blau-luft); }
  .buehne { display: none; }
  .phase-panel, .rechner-links, .rechner-rechts, .w-steuer, .w-tabelle { padding: 20px; }
  .gui-inhalt { padding: 16px; }
  /* Phasen-Reiter im Web-Admin-Nachbau: schmaler, und notfalls seitlich wischbar statt abgeschnitten */
  .gui-reiter { padding: 0 4px; gap: 0; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .gr, .gui[data-theme="akte"] .gr { padding: 11px 5px; font-size: .74rem; letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0; }
  .wt-kopf, .wt-liste li { grid-template-columns: 1fr 74px 40px 62px; font-size: .84rem; gap: 4px; }
  .hero-fakten { gap: 20px; }
  .wt-kopf { font-size: .68rem; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .top, .nav-mobil, .buehne, .show-fuss, .ad-fuss { display: none; }
  body { background: #fff; }
}

/* =====================================================================================
   var3 – die Geschichte als roter Faden
   ===================================================================================== */
.hero-quelle { font-size: .8rem; color: var(--grau-hell); margin: 10px 0 0; }

/* ---------- Geschichte: scrollgesteuerte Animation ---------- */
.geschichte { background: var(--bg-weiss); padding: 88px 0 0; }
.gs-weiter { white-space: nowrap; font-weight: 600; }
.gs-lauf { height: 1000vh; position: relative; }                 /* Scrollweg für beide Teile */
.gs-buehne { position: sticky; top: var(--kopf-h); height: calc(100vh - var(--kopf-h));
             display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px 20px; }
.gs-rahmen { width: min(100%, calc((100vh - var(--kopf-h) - 64px) * 1200 / 620)); }
.gs-bild { aspect-ratio: 1200 / 620; background: #fff; border: 1px solid var(--linie); border-radius: 18px; overflow: hidden;
           box-shadow: 0 24px 60px -34px rgba(16, 24, 40, .35); }
.gs-bild svg { display: block; width: 100%; height: 100%; }
.gs-leiste { position: relative; height: 4px; margin-top: 12px; background: var(--linie-2); border-radius: 2px; }
.gs-leiste i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blau); border-radius: 2px; }
.gs-marke { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--grau-hell); }
.gs-tafel { max-width: 36rem; margin: 0; text-align: center; min-height: 4.4em; transition: opacity .2s; }
.gs-tafel b { display: block; font-size: 1.1rem; }
.gs-tafel span { color: var(--grau); }
@media (min-width: 761px) and (orientation: landscape) { .gs-tafel { display: none; } }
@media (max-width: 760px) { .gs-lauf { height: 800vh; } }
/* Hochkant: eigenes Hochformat 600 × 900, Platz für den Text darunter */
@media (orientation: portrait) {
  .gs-rahmen { width: min(100%, calc((100vh - var(--kopf-h) - 170px) * 600 / 900)); }
  .gs-bild { aspect-ratio: 600 / 900; }
  .gs-buehne { justify-content: flex-start; padding-top: 14px; gap: 10px; }
}

/* ---------- Weg eines Wertes: fünf Schritte als Wegweiser ---------- */
.weg-schritte { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.weg-schritte li { position: relative; }
.weg-schritte a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; background: #fff; color: var(--tinte);
                  border: 1px solid var(--linie); border-radius: 16px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.weg-schritte a:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(16, 24, 40, .4); }
.weg-schritte b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blau); color: #fff; font-weight: 800; }
.weg-schritte span { font-weight: 800; font-size: 1.05rem; }
.weg-schritte small { color: var(--grau); }
.weg-schritte li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
                                          color: var(--grau-hell); font-weight: 800; }
.weg-nr { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%;
          background: var(--blau); color: #fff; font-size: .78rem; font-weight: 800; vertical-align: 1px; }
@media (max-width: 900px) {
  .weg-schritte { grid-template-columns: 1fr 1fr; }
  .weg-schritte li::after { display: none; }
}

/* =====================================================================================
   var4 – zweiter Teil der Geschichte weiter unten (#moeglichkeiten)
   ===================================================================================== */
.geschichte.zwei { border-block: 1px solid var(--linie); }
.weg-mehr { margin: 26px 0 0; color: var(--grau); text-align: center; }
.weg-mehr a { font-weight: 700; }
