/* Lehr-Studio · fm5.de-Cloud — Stylesheet (Plan PROJ-1, Variante A „Klar").
   Grundlage: fm5de-Designsystem (Tokens, eckig, flach). Bewusste Abweichungen: docs/designsystem-abweichungen.md. */

@font-face { font-family: 'Source Sans 3'; src: url('schriften/SourceSans3-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('schriften/SourceSans3-It.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('schriften/SourceSans3-Semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('schriften/SourceSans3-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blue: #1A4A99; --navy: #192953; --sky: #36A9E1; --copper: #C0561A; --sand: #F3ECE1;
  /* Betreiberwunsch 2026-10-11: Schrift schwärzer. Designsystem: ink #1D1D1B, ink-muted #5E6268. */
  --ink: #0B0B0A; --ink-muted: #383C42; --surface: #FFFFFF; --hairline: #DDE1E5;
  --success: #089339; --error: #B72818; --warning: #FFA213;
  --container-max: 1320px; --page-margin: 32px; --gutter: 24px; --measure: 680px;
  --kopf: 80px;
  --shadow-float: 0 8px 24px rgba(25, 41, 83, 0.12);
  --duration-fast: 0.2s; --duration-button: 0.3s; --duration-menu: 0.25s;
  --radius-control: 6px; /* Schaltflächen (Betreiber 2026-10-17); Karten, Felder, Flächen bleiben eckig */
  --weich: cubic-bezier(.2, .8, .2, 1);
  --wisch: cubic-bezier(.7, 0, .2, 1);
  --font-sans: "Source Sans 3", Arial, Helvetica, sans-serif;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 24px); -webkit-text-size-adjust: 100%; }
/* geometricPrecision: gegen ungleiche Buchstabenabstände durch ganzzahliges Hinting auf Linux (Hinweis cs-7) */
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/28px var(--font-sans); font-weight: 400; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); margin: 0; }
p, ol, ul { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 200; }
.skip:focus { left: 16px; color: #fff; }
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--page-margin)); margin: 0 auto; padding: 0 var(--page-margin); }
.i { width: 24px; height: 24px; flex-shrink: 0; }

/* ---------- Grundbausteine ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--blue); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--copper); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; padding: 4px 10px; background: var(--sand); color: var(--navy); }
.badge--navy { background: var(--navy); color: #fff; }
.badge--rahmen { background: none; border: 1px solid var(--ink-muted); color: var(--ink-muted); }
.badge--sim { background: var(--warning); color: var(--ink); }
.badge--live { background: var(--navy); color: #fff; padding-left: 22px; position: relative; }
.badge--live::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--sky); animation: puls 2s infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(54,169,225,.7); } 70% { box-shadow: 0 0 0 8px rgba(54,169,225,0); } 100% { box-shadow: 0 0 0 0 rgba(54,169,225,0); } }

/* Knopf: eckig, 3px-Rahmen. Hover: Fläche wischt von links herein (Endzustand = Inversion). */
.knopf { border-radius: var(--radius-control); --f: var(--blue); --t: #fff; --h: #fff; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; border: 3px solid var(--f); background: var(--f); color: var(--t); font: 600 16px/20px var(--font-sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: color var(--duration-button) ease; }
.knopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--h); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--wisch); }
.knopf:hover::before, .knopf:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.knopf:hover, .knopf:focus-visible { color: var(--f); }
.knopf .i { width: 20px; height: 20px; transition: transform .35s var(--weich); }
.knopf:hover .i--pfeil { transform: translateX(5px); }
.knopf--kupfer { --f: var(--copper); }
.knopf--rahmen { background: #fff; color: var(--f); --h: var(--f); }
.knopf--rahmen:hover, .knopf--rahmen:focus-visible { color: #fff; }
.knopf--weiss { --f: #fff; --t: var(--navy); --h: var(--navy); }
.knopf--weiss:hover, .knopf--weiss:focus-visible { color: #fff; }
.knopf--weiss-rahmen { --f: #fff; --h: #fff; background: transparent; color: #fff; }
.knopf--weiss-rahmen:hover, .knopf--weiss-rahmen:focus-visible { color: var(--navy); }
.knopf--klein { padding: 7px 14px; font-size: 14px; border-width: 2px; gap: 8px; }
.knopf--klein .i { width: 18px; height: 18px; }
.knopf--mini { padding: 4px 10px; font-size: 14px; line-height: 18px; border-width: 2px; }
.knopf[aria-pressed="true"] { --t: #fff; background: var(--blue); color: #fff; }
.knopf:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Kopfzeile (immer weiß) ---------- */
.kopf { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--hairline); transition: box-shadow var(--duration-fast); view-transition-name: kopf; }
.kopf.ist-gescrollt { box-shadow: var(--shadow-float); }
.kopf__innen { max-width: calc(var(--container-max) + 2 * var(--page-margin)); margin: 0 auto; padding: 0 var(--page-margin); height: var(--kopf); display: flex; align-items: center; gap: 28px; }
.marke { display: flex; align-items: center; gap: 16px; text-decoration: none; flex-shrink: 0; }
.marke img { height: 44px; width: auto; }
.marke__app { font-size: 17px; font-weight: 700; color: var(--navy); padding-left: 16px; border-left: 1px solid var(--hairline); line-height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link, .nav__knopf { position: relative; font: 600 16px/20px var(--font-sans); color: var(--ink-muted); text-decoration: none; padding: 10px 12px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color var(--duration-fast); }
.nav__link::after, .nav__knopf::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--wisch); }
.nav__link:hover, .nav__knopf:hover, .nav__knopf[aria-expanded="true"] { color: var(--ink); }
.nav__link:hover::after, .nav__knopf:hover::after, .nav__knopf[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__knopf .i { width: 16px; height: 16px; transition: transform .3s var(--weich); }
.nav__knopf[aria-expanded="true"] .i { transform: rotate(180deg); }
.kopf__anmelden { margin-left: 8px; }
.menueknopf { display: none; }

/* Übersichtsmenü (Desktop) */
.uebersicht { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--duration-menu), transform var(--duration-menu) var(--weich), visibility 0s linear var(--duration-menu); }
.uebersicht.ist-offen { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.uebersicht__innen { max-width: calc(var(--container-max) + 2 * var(--page-margin)); margin: 0 auto; padding: 28px var(--page-margin) 32px; display: grid; grid-template-columns: 1.1fr repeat(5, 1fr); gap: 12px; }
.uebersicht__a { display: flex; flex-direction: column; gap: 6px; padding: 16px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color var(--duration-fast), background var(--duration-fast); }
.uebersicht__a:hover { border-color: var(--blue); }
.uebersicht__a .i { color: var(--blue); width: 28px; height: 28px; margin-bottom: 6px; }
.uebersicht__a strong { color: var(--navy); font-size: 17px; line-height: 22px; }
.uebersicht__a span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.uebersicht__a em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--copper); }
.uebersicht__a--start { background: var(--sand); }

/* Menü-Feld von links (unter 1200 px) */
.feld { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s linear var(--duration-menu); }
.feld.ist-offen { visibility: visible; transition-delay: 0s; }
.feld__schleier { position: absolute; inset: 0; background: rgba(25,41,83,.45); opacity: 0; transition: opacity var(--duration-menu); }
.feld.ist-offen .feld__schleier { opacity: 1; }
.feld__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: #fff; box-shadow: var(--shadow-float); transform: translateX(-100%); transition: transform var(--duration-menu) var(--weich); display: flex; flex-direction: column; overflow-y: auto; }
.feld.ist-offen .feld__panel { transform: none; }
.feld__kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--hairline); }
.feld__kopf img { height: 34px; width: auto; }
.feld__zu { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--navy); }
.feld nav { padding: 8px 20px 24px; }
.feld h2 { font-size: 15px; color: var(--ink-muted); margin: 20px 0 4px; }
.feld ul { list-style: none; padding: 0; }
.feld a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--navy); font-weight: 600; text-decoration: none; }
.feld a[aria-current="page"] { color: var(--blue); }
.feld a .i { width: 18px; height: 18px; color: var(--ink-muted); }
.feld .eingerueckt a { padding-left: 16px; font-weight: 400; }

/* ---------- Brotkrumen ---------- */
.krumen { padding-top: 20px; }
.krumen ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.krumen li { display: inline-flex; align-items: center; gap: 6px; }
.krumen li + li::before { content: "›"; color: var(--ink-muted); }
.krumen a { color: var(--ink-muted); text-decoration: none; }
.krumen a:hover { color: var(--blue); text-decoration: underline; }
.krumen [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Hero Startseite ---------- */
.hero { max-width: calc(var(--container-max) + 2 * var(--page-margin)); margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--page-margin) clamp(56px, 6vw, 96px); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero__titel { font-size: clamp(40px, 5.4vw, 88px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin-bottom: 30px; }
.zeile { display: block; overflow: hidden; padding-bottom: .08em; }
.zeile > span { display: inline-block; }
.js .zeile > span { transform: translateY(105%); animation: hoch .9s var(--weich) forwards; }
.js .zeile:nth-child(2) > span { animation-delay: .1s; }
.js .zeile:nth-child(3) > span { animation-delay: .2s; }
@keyframes hoch { to { transform: none; } }
.strich { font-style: normal; color: var(--blue); position: relative; white-space: nowrap; }
.strich::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--copper); transform-origin: left; }
.js .strich::after { transform: scaleX(0); animation: zeichne .8s .9s var(--wisch) forwards; }
@keyframes zeichne { to { transform: scaleX(1); } }
.hero__lead { font-size: 20px; line-height: 32px; max-width: 580px; margin-bottom: 34px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 14px; }

.mosaik { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 1; gap: 10px; }
.m1 { background: var(--navy); } .m2 { background: var(--sand); } .m3 { background: var(--blue); }
.m4 { background: var(--sand); } .m5 { background: var(--sky); grid-column: span 2; }
.m7 { background: var(--copper); } .m8 { background: var(--navy); } .m9 { background: var(--sand); }
.js .m { transform: scale(.4); opacity: 0; animation: kachel .7s var(--weich) forwards; animation-delay: var(--d, .2s); }
@keyframes kachel { to { transform: none; opacity: 1; } }
.mosaik__karte { position: absolute; left: -7%; bottom: 13%; width: 48%; background: #fff; border: 1px solid var(--hairline); padding: 16px 18px; display: grid; gap: 4px; }
.js .mosaik__karte { opacity: 0; animation: kachel .7s 1s var(--weich) forwards; }
.mosaik__karte small { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.mosaik__karte b { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.balken { display: block; height: 6px; background: var(--hairline); overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--anteil, 1)); }
.mosaik__icon { position: absolute; right: 7%; top: 8%; width: 24%; background: #fff; padding: 4%; }
.js .mosaik__icon { opacity: 0; animation: kachel .7s 1.15s var(--weich) forwards; }

/* Laufband */
.laufband { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); overflow: hidden; padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.laufband__spur { display: flex; width: max-content; animation: lauf 55s linear infinite; }
.laufband:hover .laufband__spur { animation-play-state: paused; }
.laufband span { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--navy); white-space: nowrap; display: inline-flex; align-items: center; }
.laufband span::after { content: ""; width: 8px; height: 8px; background: var(--copper); margin: 0 26px; }
@keyframes lauf { to { transform: translateX(-50%); } }

/* Zahlen */
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding-top: 64px; }
.zahl { border-top: 3px solid var(--navy); padding-top: 14px; display: grid; gap: 4px; }
.zahl strong { font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--navy); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.zahl > span { color: var(--ink-muted); font-size: 15px; line-height: 22px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-top: 104px; }
.abschnitt--eng { padding-top: 64px; }
.kopfzeile { max-width: 780px; margin-bottom: 48px; }
.kopfzeile h2, .titel-2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: -.025em; }
.kopfzeile p:not(.eyebrow) { margin-top: 18px; font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: var(--measure); }
.sand { background: var(--sand); }
.band { padding: 96px 0; margin-top: 104px; }

/* Werkzeug-Zeilen */
.werkzeug { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 52px 0; border-top: 1px solid var(--hairline); }
.werkzeug--rechts .werkzeug__text { order: 2; }
.werkzeug h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0; }
.werkzeug__lead { font-size: 18px; line-height: 30px; margin-bottom: 22px; }
.haken { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 30px; }
.haken li { display: flex; gap: 12px; align-items: flex-start; }
.haken .i { width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.beamer { background: var(--navy); padding: 10px; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform .8s var(--weich); }
.werkzeug:hover .beamer { transform: none; }
.beamer__leiste { display: flex; align-items: center; gap: 6px; padding: 2px 4px 10px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; }
.beamer__leiste span { padding: 2px 10px; background: var(--blue); color: #fff; }
.beamer__leiste span + span { background: none; border: 1px solid rgba(255,255,255,.25); }
.beamer__flaeche { background: var(--sand); aspect-ratio: 16/10; background-image: radial-gradient(rgba(25,41,83,.14) 1px, transparent 1px); background-size: 18px 18px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 12px; }
.bw { background: #fff; border: 1px solid var(--hairline); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bw small { font-size: 11px; font-weight: 700; color: var(--ink-muted); }
.bw--gross { grid-row: span 2; justify-content: center; align-items: center; }
.bw--gross b { font-size: clamp(26px, 3.6vw, 52px); color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1; }
.bw--qr { grid-row: span 2; align-items: center; }
.bw--qr img { width: 76%; margin: auto; }
.bw__ampel { display: flex; gap: 6px; margin: auto; padding: 6px 8px; background: var(--ink); }
.bw__ampel i { width: 14px; height: 14px; border-radius: 50%; background: #444; }
.bw__ampel i:nth-child(3) { background: var(--success); }
.bw__z { height: 6px; background: var(--hairline); }
.bw__z--k { width: 60%; }
.blatt { background: #fff; border: 1px solid var(--hairline); padding: 34px; display: flex; flex-direction: column; gap: 12px; position: relative; outline: 1px solid var(--hairline); outline-offset: 12px; transition: outline-offset .5s var(--weich); }
.werkzeug:hover .blatt { outline-offset: 20px; }
.blatt small { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.blatt__h { height: 18px; width: 55%; background: var(--navy); }
.blatt__z { height: 8px; background: var(--hairline); }
.blatt__a { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.blatt__a i { width: 18px; height: 18px; border: 2px solid var(--ink-muted); flex-shrink: 0; }
.blatt__a i.an { background: var(--blue); border-color: var(--blue); }
.blatt__a span { height: 8px; flex: 1; background: var(--hairline); }
.blatt__luecke { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-muted); }
.blatt__luecke b { display: inline-block; width: 70px; border-bottom: 2px dashed var(--blue); }

.bald { display: flex; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); color: var(--ink-muted); }
.bald strong { color: var(--navy); }

/* Wege-Kacheln (Kategorien) */
.wege { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.weg { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 30px; background: #fff; border: 1px solid var(--hairline); text-decoration: none; color: var(--ink); transition: border-color var(--duration-fast); }
.weg::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--wisch); }
.weg:hover { border-color: var(--blue); color: var(--ink); }
.weg:hover::after { transform: scaleX(1); }
.weg__kopf { display: flex; justify-content: space-between; align-items: flex-start; }
.weg__kopf .i { width: 36px; height: 36px; color: var(--blue); transition: transform .45s var(--weich); }
.weg:hover .weg__kopf .i { transform: translateY(-3px) scale(1.08); }
.weg__zahl { font-size: 40px; line-height: 1; font-weight: 700; color: var(--copper); font-variant-numeric: tabular-nums; }
.weg h3 { font-size: 22px; transition: color var(--duration-fast); }
.weg:hover h3 { color: var(--blue); }
.weg p { color: var(--ink-muted); font-size: 16px; line-height: 25px; }
.weg__mehr { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.weg__mehr .i { width: 18px; height: 18px; transition: transform .35s var(--weich); }
.weg:hover .weg__mehr .i { transform: translateX(5px); }
.weg--navy { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.85); }
.weg--navy h3, .weg--navy .weg__mehr, .weg--navy .weg__kopf .i { color: #fff; }
.weg--navy p { color: rgba(255,255,255,.8); }
.weg--navy .weg__zahl { color: var(--sky); }
.weg--navy:hover { color: rgba(255,255,255,.85); border-color: var(--sky); }
.weg--navy:hover h3 { color: #fff; }

/* Ablauf */
.ablauf { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); position: relative; }
.ablauf::before, .ablauf::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--hairline); }
.ablauf::after { background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 1)); }
.js .ablauf::after { transform: scaleX(var(--p, 0)); }
.ablauf li { position: relative; z-index: 1; padding-right: 24px; }
.ablauf__nr { display: grid; place-items: center; width: 56px; height: 56px; background: #fff; border: 3px solid var(--blue); color: var(--blue); font-size: 22px; font-weight: 700; margin-bottom: 22px; transition: background .3s, color .3s; }
.ablauf li.ist-sichtbar .ablauf__nr { background: var(--blue); color: #fff; transition-delay: calc(var(--d, 0s) + .4s); }
.ablauf h3 { font-size: 21px; margin-bottom: 6px; }
.ablauf p { color: var(--ink-muted); }

/* Werte, Raster */
.raster { display: grid; gap: var(--gutter); }
.raster--4 { grid-template-columns: repeat(4, 1fr); }
.raster--3 { grid-template-columns: repeat(3, 1fr); }
.raster--2 { grid-template-columns: repeat(2, 1fr); }
.wert { border-top: 3px solid var(--navy); padding-top: 22px; }
.wert .i { width: 32px; height: 32px; color: var(--blue); margin-bottom: 18px; }
.wert h3 { font-size: 20px; margin-bottom: 6px; }
.wert p { font-size: 16px; line-height: 26px; }

/* Akkordeon */
.akkordeon { border-top: 1px solid var(--hairline); max-width: 860px; }
.akkordeon details { border-bottom: 1px solid var(--hairline); }
.akkordeon summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--navy); transition: color var(--duration-fast); }
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary:hover { color: var(--blue); }
.plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: currentColor; transition: transform .3s var(--weich); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.akkordeon details p { padding: 0 48px 26px 0; max-width: var(--measure); }

/* CTA */
.cta { padding-top: 104px; }
.cta__innen { background: var(--navy); color: #fff; padding: clamp(40px, 7vw, 88px); position: relative; overflow: hidden; }
.cta__innen::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border: 3px solid var(--sky); opacity: .5; transform: rotate(12deg); transition: transform 1.2s var(--weich); }
.cta.ist-sichtbar .cta__innen::after { transform: rotate(0); }
.cta h2 { color: #fff; font-size: clamp(30px, 4.5vw, 54px); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 14px; max-width: 720px; }
.cta p { font-size: 19px; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 640px; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.seitenkopf { padding-top: 40px; padding-bottom: 8px; }
.seitenkopf__raster + .seitenkopf__linie { margin-top: 36px; }
.seitenkopf__raster { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.seitenkopf h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.035em; margin-bottom: 22px; }
.seitenkopf p.lead { font-size: 20px; line-height: 32px; max-width: 700px; }
.seitenkopf__zahl { font-size: clamp(96px, 16vw, 220px); line-height: .8; font-weight: 700; color: var(--copper); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.seitenkopf__zahl small { display: block; font-size: 16px; letter-spacing: normal; line-height: 20px; color: var(--ink-muted); text-align: right; margin-top: 10px; }
.seitenkopf__linie { height: 3px; background: var(--navy); margin-top: 36px; transform-origin: left; }
.js .seitenkopf__linie { transform: scaleX(0); animation: zeichne 1s .2s var(--wisch) forwards; }
.sprungliste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; padding: 0; }
.sprungliste a { display: inline-block; font-size: 15px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--hairline); color: var(--navy); text-decoration: none; transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast); }
.sprungliste a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Kategorieseite ---------- */
.bereiche { position: sticky; top: var(--kopf); z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
.bereiche ul { list-style: none; margin: 0 auto; padding: 10px var(--page-margin); max-width: calc(var(--container-max) + 2 * var(--page-margin)); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.bereiche ul::-webkit-scrollbar { display: none; }
.bereiche a { white-space: nowrap; }
.bereiche a.chip { text-decoration: none; }
.bereiche a.chip[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.mit-bereichen { scroll-padding-top: calc(var(--kopf) + 84px); }
.mit-bereichen .toc, .mit-bereichen .widget__demo { top: calc(var(--kopf) + 88px); }
.kategorie { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 56px; }
.toc { position: sticky; top: calc(var(--kopf) + 32px); align-self: start; }
.toc h2 { font-size: 15px; color: var(--ink-muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; border-left: 2px solid var(--hairline); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-muted); text-decoration: none; font-size: 15px; line-height: 21px; transition: color var(--duration-fast), border-color var(--duration-fast); }
.toc a:hover { color: var(--navy); }
.toc a[aria-current="true"] { color: var(--navy); font-weight: 700; border-left-color: var(--copper); }
.widgets { display: grid; gap: 0; }
.widget { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--hairline); }
.widget:first-child { border-top: 0; padding-top: 0; }
.widget__kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.widget__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--sand); color: var(--blue); flex-shrink: 0; }
.widget__icon .i { width: 28px; height: 28px; }
.widget h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.015em; }
.widget__kern { font-size: 20px; line-height: 31px; color: var(--ink); margin-bottom: 24px; }
.widget h3 { font-size: 16px; color: var(--blue); margin: 22px 0 10px; }
.schritte { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 8px; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.schritte li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; margin-top: 1px; }
.tipp { margin-top: 22px; background: var(--sand); border-left: 3px solid var(--copper); padding: 16px 18px; display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.tipp .i { color: var(--copper); }
.tipp strong { display: block; color: var(--navy); font-size: 15px; letter-spacing: .02em; }
.tipp p { font-size: 16px; line-height: 26px; }
.idee { margin-top: 18px; padding-left: 16px; border-left: 3px solid var(--sky); color: var(--ink); font-size: 16px; line-height: 26px; }
.idee strong { color: var(--navy); }
.widget__demo { align-self: start; position: sticky; top: calc(var(--kopf) + 32px); }
.nachbarn { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 56px; padding-top: 32px; border-top: 3px solid var(--navy); }
.nachbarn a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--hairline); text-decoration: none; color: var(--navy); transition: border-color var(--duration-fast); }
.nachbarn a:hover { border-color: var(--blue); }
.nachbarn small { font-size: 14px; color: var(--ink-muted); }
.nachbarn strong { font-size: 20px; }
.nachbarn a:last-child { text-align: right; }

/* ---------- Demo-Karte (Board-Karte) ---------- */
.demo { background: #fff; border: 1px solid var(--hairline); outline: 10px solid var(--sand); display: flex; flex-direction: column; min-height: 300px; }
.demo__leiste { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.demo__leiste strong { font-size: 14px; color: var(--ink-muted); }
.demo__leiste .badge { margin-left: auto; }
.demo__flaeche { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px 18px; text-align: center; position: relative; }
.demo__regler { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--hairline); background: #FAFAF8; }
.demo__regler label { font-size: 14px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 6px; }
.demo__regler input[type="number"], .demo__regler input[type="text"], .demo__regler input[type="datetime-local"], .demo__regler select { border: 1px solid var(--ink-muted); background: #fff; padding: 5px 8px; font-size: 15px; min-width: 0; }
.demo__regler input[type="number"] { width: 64px; }
.demo textarea { width: 100%; border: 1px solid var(--ink-muted); padding: 8px 10px; font-size: 15px; line-height: 22px; resize: vertical; text-align: left; }
.demo__ergebnis { font-size: 14px; line-height: 20px; color: var(--ink-muted); padding: 8px 14px 10px; border-top: 1px solid var(--hairline); min-height: 39px; }
.demo__ergebnis:empty::before { content: "Probier es aus."; }
.demo__hinweis { font-size: 13px; color: var(--ink-muted); }
.gross { font-size: clamp(44px, 5.6vw, 76px); line-height: 1; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mittel { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 700; color: var(--navy); }
.zustand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 12px; }
.zustand .i { width: 20px; height: 20px; }
.zustand--rot { background: var(--error); color: #fff; }
.zustand--gelb { background: var(--warning); color: var(--ink); }
.zustand--gruen { background: var(--success); color: var(--ink); } /* Weiß auf success nur 4,0:1 */

/* Visueller Timer */
.scheibe { width: min(200px, 60%); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--farbe, var(--success)) calc(var(--rest, 1) * 360deg), var(--hairline) 0); border: 6px solid #fff; outline: 1px solid var(--hairline); }
/* Uhr */
.uhr-analog { width: min(190px, 60%); aspect-ratio: 1; }
.uhr-analog .ziffer { stroke: var(--navy); stroke-width: 2; }
.uhr-analog .zeiger { stroke: var(--navy); stroke-linecap: round; }
.uhr-analog .zeiger--s { stroke: var(--copper); }
/* Kalender */
.kal { width: 100%; max-width: 300px; }
.kal__heute { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.kal__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kal__kopf strong { color: var(--navy); }
.kal__raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 14px; }
.kal__raster span { padding: 4px 0; }
.kal__raster .wt { font-weight: 700; color: var(--ink-muted); font-size: 12px; }
.kal__raster .heute { background: var(--blue); color: #fff; font-weight: 700; }
/* Denkzeit */
.demo[data-phase="denken"] .demo__flaeche { background: var(--error); }
.demo[data-phase="melden"] .demo__flaeche { background: var(--success); }
.demo[data-phase="denken"] .demo__flaeche .gross, .demo[data-phase="denken"] .demo__flaeche .zustand, .demo[data-phase="denken"] .demo__flaeche .demo__hinweis { color: #fff; }
.demo[data-phase="melden"] .demo__flaeche .gross, .demo[data-phase="melden"] .demo__flaeche .zustand, .demo[data-phase="melden"] .demo__flaeche .demo__hinweis { color: var(--ink); }
.demo__flaeche { transition: background-color .4s ease; }
/* Gruppen-Timer */
.gtimer { width: 100%; display: grid; gap: 8px; }
.gtimer__zeile { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--hairline); text-align: left; }
.gtimer__zeile b { font-size: 24px; color: var(--navy); font-variant-numeric: tabular-nums; }
.gtimer__zeile.ist-fertig b { color: var(--copper); }
/* Ampel */
.ampel { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--ink); }
.ampel button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #3a3a38; cursor: pointer; transition: background .25s, box-shadow .25s; }
.ampel button[data-farbe="rot"][aria-pressed="true"] { background: var(--error); box-shadow: 0 0 18px var(--error); }
.ampel button[data-farbe="gelb"][aria-pressed="true"] { background: var(--warning); box-shadow: 0 0 18px var(--warning); }
.ampel button[data-farbe="gruen"][aria-pressed="true"] { background: var(--success); box-shadow: 0 0 18px var(--success); }
.ampel-wrap { display: flex; align-items: center; gap: 20px; }
.ampel-texte { list-style: none; padding: 0; display: grid; gap: 22px; text-align: left; font-weight: 600; color: var(--ink-muted); }
.ampel-texte li.an { color: var(--navy); }
/* Symbole (Arbeitssymbole, Symbol-Wand) */
.symbole { display: grid; grid-template-columns: repeat(var(--spalten, 2), minmax(0, 1fr)); gap: 8px; width: 100%; }
.symbol { border-radius: var(--radius-control); min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--hairline); background: #fff; cursor: pointer; color: var(--navy); font-size: 14px; font-weight: 600; transition: background var(--duration-fast), color var(--duration-fast), opacity var(--duration-fast), border-color var(--duration-fast); }
.symbol .i { width: 30px; height: 30px; color: var(--blue); }
.symbol:hover { border-color: var(--blue); }
.symbole.hat-wahl .symbol { opacity: .35; }
.symbole.hat-wahl .symbol[aria-pressed="true"] { opacity: 1; background: var(--blue); color: #fff; border-color: var(--blue); }
.symbole.hat-wahl .symbol[aria-pressed="true"] .i { color: #fff; }
.symbol-gross { border-radius: var(--radius-control); display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 20px; background: var(--blue); color: #fff; border: 0; cursor: pointer; font-size: 26px; font-weight: 700; }
.symbol-gross .i { width: 96px; height: 96px; }
/* Aufgabenliste */
.liste { width: 100%; text-align: left; display: grid; gap: 6px; }
.liste__balken { height: 8px; background: var(--hairline); margin-bottom: 6px; }
.liste__balken i { display: block; height: 100%; width: calc(var(--anteil, 0) * 100%); background: var(--success); transition: width .4s var(--weich); }
.liste label { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--hairline); cursor: pointer; }
.liste input { width: 18px; height: 18px; accent-color: var(--blue); }
.liste input:checked + span { text-decoration: line-through; color: var(--ink-muted); }
/* Namen-Knöpfe */
.namen { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; width: 100%; }
.name { border-radius: var(--radius-control); display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--hairline); background: #fff; cursor: pointer; font-weight: 600; color: var(--navy); transition: border-color var(--duration-fast); }
.name:hover { border-color: var(--blue); }
.name b { min-width: 26px; height: 26px; display: grid; place-items: center; background: var(--sand); color: var(--navy); font-variant-numeric: tabular-nums; }
.name.ist-null b { background: var(--copper); color: #fff; }
/* Punktestand */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.team { border: 1px solid var(--hairline); padding: 12px; display: grid; gap: 8px; }
.team strong { color: var(--navy); }
.team .gross { font-size: 54px; }
.team__k { display: flex; gap: 6px; justify-content: center; }
/* Würfel */
.wuerfel { width: 96px; height: 96px; background: #fff; border: 3px solid var(--navy); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 12px; gap: 4px; }
.wuerfel i { border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .15s; }
.wuerfel.rollt { animation: rollen .6s var(--weich); }
@keyframes rollen { 0% { transform: rotate(0); } 50% { transform: rotate(200deg) scale(.85); } 100% { transform: rotate(360deg); } }
.wuerfel[data-augen="1"] i:nth-child(5), .wuerfel[data-augen="2"] i:nth-child(1), .wuerfel[data-augen="2"] i:nth-child(9), .wuerfel[data-augen="3"] i:nth-child(1), .wuerfel[data-augen="3"] i:nth-child(5), .wuerfel[data-augen="3"] i:nth-child(9), .wuerfel[data-augen="4"] i:nth-child(1), .wuerfel[data-augen="4"] i:nth-child(3), .wuerfel[data-augen="4"] i:nth-child(7), .wuerfel[data-augen="4"] i:nth-child(9), .wuerfel[data-augen="5"] i:nth-child(1), .wuerfel[data-augen="5"] i:nth-child(3), .wuerfel[data-augen="5"] i:nth-child(5), .wuerfel[data-augen="5"] i:nth-child(7), .wuerfel[data-augen="5"] i:nth-child(9), .wuerfel[data-augen="6"] i:nth-child(1), .wuerfel[data-augen="6"] i:nth-child(3), .wuerfel[data-augen="6"] i:nth-child(4), .wuerfel[data-augen="6"] i:nth-child(6), .wuerfel[data-augen="6"] i:nth-child(7), .wuerfel[data-augen="6"] i:nth-child(9) { transform: scale(1); }
/* Glücksrad */
.rad-wrap { position: relative; width: min(220px, 70%); aspect-ratio: 1; }
.rad { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--navy); transition: transform 3s cubic-bezier(.15, .85, .25, 1); }
.rad-zeiger { position: absolute; left: 50%; top: -6px; width: 0; height: 0; margin-left: -10px; border: 10px solid transparent; border-top: 18px solid var(--copper); z-index: 1; }
/* Münze */
.muenze-wrap { perspective: 600px; }
.muenze { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; transition: transform 1s var(--weich); }
.muenze span { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px; backface-visibility: hidden; border: 4px solid var(--navy); }
.muenze .kopf-s { background: var(--blue); color: #fff; }
.muenze .zahl-s { background: var(--copper); color: #fff; transform: rotateX(180deg); }
/* Gruppen */
.gruppen { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; width: 100%; text-align: left; }
.gruppe { border-top: 3px solid var(--blue); background: #fff; border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 8px 10px; font-size: 14px; line-height: 21px; }
.gruppe strong { display: block; color: var(--navy); margin-bottom: 2px; }
/* Gruppenfarben wie im Unterrichts-Studio (klassenraum-tools Frage 30, cfbe10c); Nummer steht immer dabei. */
.gruppe:nth-child(8n+1) { border-top-color: #1A4A99; } .gruppe:nth-child(8n+2) { border-top-color: #A84B16; }
.gruppe:nth-child(8n+3) { border-top-color: #334400; } .gruppe:nth-child(8n+4) { border-top-color: #BB3377; }
.gruppe:nth-child(8n+5) { border-top-color: #007777; } .gruppe:nth-child(8n+6) { border-top-color: #660088; }
.gruppe:nth-child(8n+7) { border-top-color: #555555; } .gruppe:nth-child(8n+8) { border-top-color: #886600; }
/* Textfeld */
.tafeltext { width: 100%; text-align: left; color: var(--navy); font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.tafeltext[data-groesse="S"] { font-size: 18px; line-height: 26px; }
.tafeltext[data-groesse="M"] { font-size: 26px; line-height: 34px; }
.tafeltext[data-groesse="L"] { font-size: 36px; line-height: 42px; }
/* QR */
.qr-ziel { width: min(200px, 70%); aspect-ratio: 1; display: grid; place-items: center; background: #fff; }
.qr-ziel svg { width: 100%; height: 100%; }
.qr-text { font-size: 14px; color: var(--ink-muted); overflow-wrap: anywhere; }
/* Zeichnen */
.leinwand { width: 100%; aspect-ratio: 4/3; background: #fff; border: 1px solid var(--hairline); touch-action: none; cursor: crosshair; }
.farben { display: flex; gap: 6px; }
.farben button { border-radius: var(--radius-control); width: 26px; height: 26px; border: 2px solid #fff; outline: 1px solid var(--hairline); cursor: pointer; }
.farben button[aria-pressed="true"] { outline: 3px solid var(--navy); }
/* Bild aufdecken */
.aufdecken { position: relative; width: 100%; aspect-ratio: 4/3; }
.aufdecken svg { width: 100%; height: 100%; }
.kacheln { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
.kacheln button { border: 1px solid rgba(255,255,255,.35); background: var(--navy); cursor: pointer; transition: opacity .35s, transform .35s var(--weich); color: rgba(255,255,255,.6); font-weight: 700; }
.kacheln button:hover { background: var(--blue); }
.kacheln button.offen { opacity: 0; transform: scale(.85); pointer-events: none; }
/* Wortkarten */
.karte-wrap { perspective: 800px; width: 100%; max-width: 320px; }
.wortkarte { position: relative; aspect-ratio: 3/2; transform-style: preserve-3d; transition: transform .6s var(--weich); }
.wortkarte.gedreht { transform: rotateY(180deg); }
.wortkarte > div { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; backface-visibility: hidden; border: 2px solid var(--navy); font-weight: 700; }
.wortkarte .vorne { background: #fff; color: var(--navy); font-size: 28px; }
.wortkarte .hinten { background: var(--navy); color: #fff; font-size: 18px; line-height: 26px; transform: rotateY(180deg); }
/* Lärmpegel */
.pegel { width: 100%; max-width: 320px; }
.pegel__skala { position: relative; height: 34px; background: var(--hairline); }
.pegel__balken { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--wert, 0) * 100%); background: var(--blue); transition: width .25s; }
.pegel__grenze { position: absolute; top: -6px; bottom: -6px; left: calc(var(--grenze, .7) * 100%); width: 3px; background: var(--navy); }
.pegel.zu-laut .pegel__balken { background: var(--warning); }
/* Illustrationen */
.illu { width: 100%; display: grid; gap: 10px; }
.illu__feld { display: flex; gap: 8px; }
.illu__feld span { flex: 1; border: 1px solid var(--ink-muted); padding: 6px 10px; text-align: left; color: var(--ink-muted); font-size: 14px; }
.illu__feld b { padding: 6px 12px; background: var(--blue); color: #fff; font-size: 14px; }
.illu__bild { aspect-ratio: 16/9; background: var(--sand); display: grid; place-items: center; }
.illu__bild svg { width: 60%; }
.illu__web { border: 1px solid var(--hairline); }
.illu__web div { height: 18px; background: var(--hairline); display: flex; gap: 4px; align-items: center; padding-left: 8px; }
.illu__web div i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.illu__web p { padding: 14px; text-align: left; font-size: 14px; color: var(--ink-muted); }
.illu__web p b { display: block; height: 10px; background: var(--hairline); margin-bottom: 8px; }
.illu__player { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--hairline); }
.illu__player b { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.illu__player span { flex: 1; height: 6px; background: var(--hairline); position: relative; }
.illu__player span::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 35%; background: var(--blue); }

/* ---------- Katalog ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chip { border-radius: var(--radius-control); font: 600 15px/20px var(--font-sans); padding: 9px 16px; border: 1px solid var(--hairline); background: #fff; color: var(--navy); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast); }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip small { font-size: 12px; opacity: .8; }
.suche { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink-muted); padding: 0 12px; margin-left: auto; min-width: 260px; background: #fff; }
.suche:focus-within { outline: 2px solid var(--blue); outline-offset: -2px; }
.suche .i { width: 20px; height: 20px; color: var(--ink-muted); }
.suche input { border: 0; padding: 10px 0; flex: 1; outline: 0; background: transparent; min-width: 0; }
.treffer { font-size: 15px; color: var(--ink-muted); margin-bottom: 18px; }
.katalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gutter); }
.k-karte { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; border: 1px solid var(--hairline); background: #fff; text-decoration: none; color: var(--ink); transition: border-color var(--duration-fast); }
.k-karte::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--wisch); }
.k-karte:hover { border-color: var(--blue); color: var(--ink); }
.k-karte:hover::after { transform: scaleX(1); }
.k-karte .i { width: 32px; height: 32px; color: var(--blue); margin-bottom: 8px; transition: transform .45s var(--weich); }
.k-karte:hover .i { transform: translateY(-3px) scale(1.08); }
.k-karte h3 { font-size: 20px; transition: color var(--duration-fast); }
.k-karte:hover h3 { color: var(--blue); }
.k-karte p { font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.k-karte .badge { align-self: flex-start; }
.k-karte[hidden] { display: none; }
.k-karte.neu { animation: auftauchen .4s var(--weich) both; animation-delay: calc(var(--i, 0) * 20ms); }
@keyframes auftauchen { from { opacity: 0; transform: translateY(10px); } }
.leer { padding: 40px 0; color: var(--ink-muted); }

/* ---------- Live-Tools ---------- */
.beitritt { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); counter-reset: b; }
.beitritt li { list-style: none; counter-increment: b; border-top: 3px solid var(--blue); padding-top: 16px; }
.beitritt li::before { content: counter(b, decimal-leading-zero); display: block; font-size: 28px; font-weight: 700; color: var(--copper); margin-bottom: 8px; }
.beitritt h3 { font-size: 19px; margin-bottom: 4px; }
.beitritt p { color: var(--ink-muted); font-size: 16px; line-height: 25px; }
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.tool { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px; border: 1px solid var(--hairline); background: #fff; transition: border-color var(--duration-fast); }
.tool:hover { border-color: var(--blue); }
.tool__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.tool__icon .i { width: 30px; height: 30px; }
.tool h3 { font-size: 22px; margin-bottom: 4px; }
.tool > div > p { color: var(--ink); margin-bottom: 10px; }
.tool ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.tool li { display: flex; gap: 8px; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.tool li .i { width: 18px; height: 18px; color: var(--blue); margin-top: 3px; }
.tool--kupfer .tool__icon { background: var(--copper); }

/* ---------- Rechtsseiten ---------- */
.recht { max-width: 780px; padding-top: 32px; padding-bottom: 32px; }
.recht h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 22px; }
.recht h2 { font-size: 22px; margin: 36px 0 10px; }
.recht p { margin-bottom: 12px; }
.recht address { font-style: normal; margin-bottom: 12px; }
.recht section { border-top: 1px solid var(--hairline); padding-top: 4px; margin-top: 28px; }
.platzhalter { background: #FFF1D6; color: var(--ink); padding: 2px 6px; border-left: 3px solid var(--warning); }

/* ---------- Fußzeile (Navy) ---------- */
.fuss { background: var(--navy); color: rgba(255,255,255,.85); padding: 72px 0 28px; margin-top: 104px; }
.fuss__raster { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.fuss__marke img { height: 48px; width: auto; margin-bottom: 16px; }
.fuss__marke p { font-size: 15px; line-height: 24px; max-width: 280px; }
.fuss h2 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.fuss ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.fuss a { color: #fff; text-decoration: none; background: linear-gradient(var(--sky), var(--sky)) 0 100% / 0 2px no-repeat; transition: background-size .3s; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fuss a:hover { background-size: 100% 2px; color: #fff; }
.fuss a .i { width: 15px; height: 15px; opacity: .7; }
.fuss__unten { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; color: rgba(255,255,255,.7); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Einblenden ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--weich), transform .8s var(--weich); transition-delay: var(--d, 0s); }
.js [data-reveal].ist-sichtbar { opacity: 1; transform: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1199px) {
  .nav, .kopf__anmelden span { display: none; }
  .uebersicht { display: none; }
  .menueknopf { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; margin-left: 4px; }
  .menueknopf span { width: 24px; height: 2px; background: var(--navy); }
  .kopf__anmelden { margin-left: auto; padding: 8px; }
  .raster--4, .beitritt { grid-template-columns: repeat(2, 1fr); }
  .kategorie { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .fuss__raster { grid-template-columns: 1fr 1fr 1fr; }
  .fuss__marke { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero, .werkzeug, .widget { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding-top: 48px; }
  .hero__bild { max-width: 440px; }
  .werkzeug--rechts .werkzeug__text { order: 0; }
  .widget__demo { position: static; }
  .zahlen { grid-template-columns: repeat(2, 1fr); }
  .wege, .raster--3, .tools { grid-template-columns: minmax(0, 1fr); }
  .seitenkopf__raster { grid-template-columns: 1fr; }
  .seitenkopf__zahl small { text-align: left; }
  .suche { margin-left: 0; min-width: 0; width: 100%; }
}
@media (max-width: 767px) {
  :root { --page-margin: 16px; --kopf: 64px; }
  .marke img { height: 34px; }
  .marke__app { display: none; }
  .abschnitt { padding-top: 72px; }
  .band { padding: 64px 0; margin-top: 72px; }
  .raster--4, .raster--2, .ablauf, .beitritt, .nachbarn { grid-template-columns: minmax(0, 1fr); }
  .ablauf::before, .ablauf::after { display: none; }
  .bald { flex-direction: column; align-items: flex-start; }
  .mosaik__karte { left: 0; }
  .widget { padding: 44px 0; gap: 28px; }
  .tool { grid-template-columns: minmax(0, 1fr); }
  .fuss__raster { grid-template-columns: 1fr 1fr; }
  .nachbarn a:last-child { text-align: left; }
  .knopf { padding: 11px 20px; }
  .teams { grid-template-columns: minmax(0, 1fr); }
  .symbole[style*="--spalten:4"] { --spalten: 3 !important; }
  .symbol { font-size: 13px; padding: 10px 4px; }
}

/* Bewegung reduzieren: nichts bewegt sich, Ergebnisse stehen sofort. */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .zeile > span, .js .m, .js .mosaik__karte, .js .mosaik__icon { opacity: 1 !important; transform: none !important; }
  .js .strich::after, .js .seitenkopf__linie { transform: none !important; }
  .js .ablauf::after { transform: scaleX(1); }
  .laufband { -webkit-mask-image: none; mask-image: none; }
  .laufband__spur { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 0 var(--page-margin); }
  .laufband__spur span[aria-hidden="true"] { display: none; }
}
