/* Kommunalfahrplan · Richtung C „Das Gebäude im Mittelpunkt“
   Karton, Tusche, ein Signalorange. Archivo (breit) für Überschriften, JetBrains Mono für Maße, Caveat nur für Handschrift.
   Eine Datei für alle Seiten. Neue Lage: Block unter „Lagen: Bühne je Figur“ und die Motiv-Klassen ergänzen. */

/* Schriften liegen auf dem eigenen Server (keine Abrufe bei Google, DSGVO). Quelle: OFL-Dateien, mit fontTools
   auf Latein + Latein erweitert gekürzt und als woff2 abgelegt; Lizenztexte in static/fonts/.
   Caveat (Handschrift auf dem Zettel): Caveat[wght].ttf aus github.com/google/fonts (ofl/caveat), gekürzt auf
   Latein inkl. äöüÄÖÜß, „“ – … und €. */
@font-face {
  font-family: "Archivo"; src: url("/static/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrainsmono-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caveat"; src: url("/static/fonts/caveat-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #F5F4EF;
  --sheet: #FFFFFF;
  --ink: #13202B;
  --ink-2: #4A5761;
  --ink-3: #69747C;
  --rule: #DADBD3;
  --grid: rgba(19, 32, 43, .06);
  --grid-major: rgba(19, 32, 43, .1);
  --signal: #FF5A1F;
  --signal-deep: #C43E0B;
  --signal-tint: #FFE2D3;
  --zettel: #FFD43B;
  --night: #0F1A2B;
  --rat: #1F4A3E;
  --lage-accent: var(--signal);
  --pad: clamp(20px, 5.4vw, 84px);
  --max: 1272px;
  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-hand: "Caveat", "Bradley Hand", "Segoe Print", "Chalkboard SE", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* building drawing defaults (inherited into <use>) */
  --fw-ink: #13202B;
  --fw-fine: rgba(19, 32, 43, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 720; font-stretch: 112%; letter-spacing: -.022em; line-height: 1.02; text-wrap: balance; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
:target { scroll-margin-top: 16px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--signal); flex: none; }
.h2 { font-size: clamp(32px, 3.9vw, 56px); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--signal); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 10px;
  font: 650 17px/1.15 var(--f-sans); font-stretch: 105%; letter-spacing: -.005em; text-align: center;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(19, 32, 43, .25), inset 0 -2px 0 rgba(19, 32, 43, .14);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(196, 62, 11, .55), inset 0 -2px 0 rgba(19, 32, 43, .14); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1.5px no-repeat;
  transition: background-size .25s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }

/* ---------- header ---------- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { display: block; font-weight: 760; font-stretch: 112%; font-size: 19px; letter-spacing: -.02em; line-height: 1.05; }
.brand small { display: block; font: 500 11.5px/1.3 var(--f-mono); color: var(--ink-2); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15.5px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 550; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- plan sheet (grid paper) ---------- */
.sheet {
  position: relative;
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(19, 32, 43, .08), 0 30px 60px -40px rgba(19, 32, 43, .35);
}

/* ---------- building drawing (#fw symbol) ---------- */
#fw .l, #fw .l-fine, #fw .l-strong, #fw .l-glint { fill: none; stroke-linejoin: round; stroke-linecap: round; }
#fw polygon.l, #fw polygon.l-fine { fill-opacity: inherit; }
#fw .l { stroke: var(--fw-ink); stroke-width: 1.3; }
#fw .l-fine { stroke: var(--fw-fine); stroke-width: .65; }
#fw .l-strong { stroke: var(--fw-ink); stroke-width: 1.9; }
#fw .l-glint { stroke: #fff; stroke-width: 1.6; opacity: .9; }
#fw .lettering { font: 700 11.5px/1 var(--f-sans); font-stretch: 118%; letter-spacing: .2em; fill: var(--fw-ink); }
#fw .f-hatch { opacity: var(--hatch-o, 1); }

/* ---------- hero (Startseite) ---------- */
.hero { padding: clamp(8px, 2vw, 24px) 0 clamp(48px, 6vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-text { container-type: inline-size; }
/* Die Überschrift richtet sich nach ihrer Spalte: „Gemeindegebäude“ passt immer in eine Zeile, höchstens drei Zeilen. */
.hero h1 { font-size: clamp(36px, 5vw, 64px); font-size: clamp(32px, 9.6cqi, 68px); margin: 22px 0; hyphens: none; -webkit-hyphens: none; }
.hero .lede { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0;
  margin: 40px 0 0; border-top: 1px solid var(--rule);
}
.facts div { padding: 16px 18px 0 0; margin-right: 18px; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font: 500 13.5px/1.3 var(--f-sans); color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 700; font-stretch: 110%; font-size: 17.5px; letter-spacing: -.01em; white-space: nowrap; }
.facts dd .arr { color: var(--signal-deep); }

.plan { aspect-ratio: 1.04; padding: 0; overflow: hidden; --ground: rgba(250, 249, 245, .92); }
.plan .draw { position: absolute; inset: 7% 4% 9% 4%; }
.plan .draw > svg { width: 100%; height: 100%; overflow: visible; }
.lead-line { fill: none; stroke: var(--signal); stroke-width: 1.6; }
.lead-dot { fill: var(--signal); }
.dim { stroke: var(--signal); stroke-width: 1.4; fill: none; }
.dim-ext { stroke: var(--signal); stroke-width: .9; stroke-dasharray: 3 3; fill: none; }
.dimtxt { font: 600 13px/1 var(--f-mono); fill: var(--signal-deep); }
.chip {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 7px 11px 6px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font: 600 13.5px/1 var(--f-mono); white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(19, 32, 43, .6);
}
.chip small { font-weight: 400; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

.klasse {
  position: absolute; left: 4.5%; top: 6%; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 12px 16px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(19, 32, 43, .1), 0 16px 32px -20px rgba(19, 32, 43, .45);
}
.klasse .lbl { font: 600 13px/1.25 var(--f-sans); color: var(--ink-2); margin-right: 4px; }
.klasse .lbl span { display: block; font-weight: 400; color: var(--ink-3); }
.cls {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px;
  font: 800 24px/1 var(--f-sans); font-stretch: 115%; color: #fff;
}
.cls--F { background: #EE7D2B; }
.cls--D { background: #E9CF2A; color: var(--ink); }
.cls--B { background: #63B04A; }
.cls--A { background: #1F9A57; }
.klasse .to { width: 28px; height: 14px; color: var(--ink); }
.titleblock {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: auto auto; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
  background: #fff;
  font: 500 11px/1.25 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.titleblock span { padding: 8px 14px; border-right: 1px solid var(--rule); }
.titleblock span:last-child { border-right: 0; }
.titleblock b { font-weight: 700; color: var(--signal-deep); }

/* entrance: CSS only, once on load; without motion everything simply stands there */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: rise .7s var(--ease) both; animation-delay: calc(80ms + var(--d, 0) * 90ms); }
  .plan .fw-use { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: draw 1.7s var(--ease) .3s forwards, fillin .8s ease 1.3s forwards; }
  .plan .anno { animation: pop .5s var(--ease) both; animation-delay: calc(1.6s + var(--d, 0) * 140ms); }
  .plan .chip.anno { animation-name: popc; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes popc { from { opacity: 0; transform: translate(-50%, -30%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 7.5vw, 108px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { margin-top: 16px; }
.sec-head h2:first-child, .faq-grid .h2:first-child { margin-top: 0; }
.sec--line { border-top: 1px solid var(--rule); }

/* ---------- Lagen (motif tiles) ---------- */
.lagen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Spaltenzahl folgt der Zahl der Kacheln: vier Lagen stehen 2 × 2, ab fünf wieder drei je Reihe (keine Kachel allein). */
.lagen:has(> .lage:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lage {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(19, 32, 43, .08);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.lage:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(19, 32, 43, .12), 0 24px 40px -28px rgba(19, 32, 43, .45); }
/* --m: Schriftgröße im Motiv. 13px hält jeden Text im Motiv bei 12px oder mehr. */
.lage .stage { aspect-ratio: 1.12; --m: 13px; }
.lage .stage .world { width: 124%; left: 16%; top: 14%; }
.lage .stage .motif { padding-right: 14%; }
.lage-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.lage-who { font: 500 13px/1.35 var(--f-mono); color: var(--ink-2); letter-spacing: .01em; }
.lage-line { font-weight: 700; font-stretch: 108%; font-size: 22px; line-height: 1.18; letter-spacing: -.015em; }
.lage-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; color: var(--signal-deep); }
.lage-go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.lage:hover .lage-go svg { transform: translateX(3px); }
.lagen-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }

/* stage = the motif in front of the building, the building clearly drawn */
.stage { position: relative; overflow: hidden; background: var(--stage-bg, #F1EFE7); isolation: isolate; }
.stage .world { position: absolute; z-index: -1; }
.stage .motif { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--m, 14px); }

/* ---------- Lagen: Bühne je Figur (eine neue Lage = ein Block hier + ihre Motiv-Klassen) ---------- */
.stage[data-lage="zettel"] {
  --stage-bg: #EFEDE4; --fw-ink: #59656E; --fw-fine: rgba(19, 32, 43, .32); --ground: transparent;
  --wall: #FAF9F5; --side: #E7E5DD; --roof: #F4F2EA; --roofb: #E3E0D6; --door: #FAF9F5; --win: #E3E9EA; --tree: #E6E9DF; --plinth: #DEDCD4; --hatch-o: .4;
}
.stage[data-lage="zettel"]::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; }
.stage[data-lage="suche"] {
  --stage-bg: var(--night); --fw-ink: rgba(160, 192, 240, .85); --fw-fine: rgba(160, 192, 240, .38); --ground: transparent;
  --wall: #15253E; --side: #112038; --roof: #182A45; --roofb: #112038; --door: #15253E; --win: #2C4469; --tree: #15253E; --plinth: #15253E; --hatch-o: 0;
}
.stage[data-lage="sitzung"] {
  --stage-bg: #E3EBE5; --fw-ink: #4C6E61; --fw-fine: rgba(31, 74, 62, .34); --ground: transparent;
  --wall: #F1F5F2; --side: #DAE4DD; --roof: #EBF1EC; --roofb: #D8E2DB; --door: #F1F5F2; --win: #D2DED6; --tree: #DAE4DD; --plinth: #D2DCD5; --hatch-o: .35;
}
.stage[data-lage="foerderantrag"] {
  --stage-bg: #EDE6D9; --fw-ink: #7C6D5B; --fw-fine: rgba(92, 72, 44, .3); --ground: transparent;
  --wall: #F8F4EC; --side: #E8E0D1; --roof: #F3EDE2; --roofb: #E1D8C8; --door: #F8F4EC; --win: #E3E1D6; --tree: #E6E0D1; --plinth: #DCD3C3; --hatch-o: .3;
}
.stage[data-lage="foerderantrag"]::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 80% at 15% 20%, rgba(255, 255, 255, .55), transparent 65%); }

/* motif: Zettel */
.m-zettel { position: relative; width: 19em; }
.note {
  position: relative; width: 19em; aspect-ratio: 1; padding: 2.4em 1.9em 1.6em;
  background: linear-gradient(170deg, #FFE066 0%, var(--zettel) 55%, #F6C62B 100%);
  transform: rotate(-3.5deg);
  box-shadow: 0 1.6em 2.4em -1.4em rgba(60, 45, 0, .45), 0 .2em .4em rgba(60, 45, 0, .18);
  border-radius: 2px 2px 2px 2px / 2px 2px 14px 2px;
  color: #26303A; font-family: var(--f-hand); font-weight: 700;
}
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 3.2em; height: 3.2em; background: linear-gradient(135deg, transparent 50%, rgba(120, 90, 0, .16) 50%, rgba(255, 240, 170, .6) 100%); border-radius: 0 0 12px 0; }
.note .tape { position: absolute; top: -1em; left: 50%; width: 6.4em; height: 1.9em; transform: translateX(-50%) rotate(3deg); background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(19, 32, 43, .05); }
/* Größen für Caveat (lokal); die Ersatz-Handschrift (Bradley Hand) ist breiter, greift aber nur, wenn die Datei fehlt */
.note-1 { font-size: 3.2em; line-height: .98; letter-spacing: -.01em; }
.note-2 { font-size: 2.25em; line-height: 1; margin-top: .45em; display: inline-block; position: relative; }
.note-ul { position: absolute; left: -.1em; right: -.2em; bottom: -.42em; width: auto; height: .5em; overflow: visible; }
.note-ul path { fill: none; stroke: #D7361A; stroke-width: 3; stroke-linecap: round; }
.wv {
  position: absolute; right: -1.4em; bottom: -1.2em; transform: rotate(4deg);
  padding: .55em .8em .5em; background: #fff; border: .14em solid var(--signal-deep); border-radius: .4em;
  font: 600 .95em/1 var(--f-mono); color: var(--signal-deep); letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 .8em 1.4em -1em rgba(19, 32, 43, .5);
}
.wv b { font-weight: 700; }

/* motif: Suche (phone at night) */
.m-suche { width: 21em; }
.phone {
  position: relative; border-radius: 2.6em 2.6em 0 0; padding: 1.2em 1.1em 0; height: 23.5em;
  background: linear-gradient(#18263D, #111D30); box-shadow: 0 0 0 .5em #070D18, 0 0 0 .6em #2B3953, 0 2em 4em -1.5em rgba(0, 0, 0, .7);
  color: #E8EEF8; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent);
}
.phone .status { display: flex; justify-content: space-between; align-items: center; padding: 0 .9em; font: 600 .95em/1 var(--f-sans); }
.phone .status .di { width: 6em; height: 1.5em; border-radius: 1em; background: #050A12; }
.phone .status .ic { display: flex; gap: .35em; align-items: center; }
.phone .status .ic i { display: block; width: .3em; background: #E8EEF8; border-radius: 1px; }
.phone .status .ic i:nth-child(1) { height: .4em; } .phone .status .ic i:nth-child(2) { height: .6em; } .phone .status .ic i:nth-child(3) { height: .8em; }
.phone .status .ic u { display: block; width: 1.6em; height: .8em; border: .12em solid #E8EEF8; border-radius: .25em; margin-left: .3em; position: relative; }
.phone .status .ic u::after { content: ""; position: absolute; inset: .12em; right: 60%; background: #FF6B4A; border-radius: .08em; }
.search {
  display: flex; align-items: center; gap: .6em; margin-top: 1.5em; padding: .85em 1em;
  border-radius: 1.6em; background: #22324D; box-shadow: inset 0 0 0 1px rgba(150, 185, 235, .25);
  font: 500 1em/1.25 var(--f-sans);
}
.search svg, .sugg svg { width: 1.1em; height: 1.1em; flex: none; color: #8EA6C9; }
.caret { display: inline-block; width: .1em; height: 1.1em; background: #FF8A5C; vertical-align: -.2em; margin-left: .05em; }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.sugg { list-style: none; margin: 1em 0 0; padding: 0; }
.sugg li { display: flex; align-items: center; gap: .7em; padding: .78em 1em; border-bottom: 1px solid rgba(150, 185, 235, .12); font: 400 1em/1.2 var(--f-sans); color: #B9C8DF; }
.sugg li b { color: #fff; font-weight: 650; }

/* motif: Sitzung (message + agenda) */
.m-sitzung { position: relative; width: 22em; display: grid; gap: .9em; margin-top: -2em; }
.msg {
  background: #fff; border-radius: 1.3em; padding: 1em 1.15em 1.15em;
  box-shadow: 0 0 0 1px rgba(31, 74, 62, .1), 0 1.6em 2.6em -1.6em rgba(19, 40, 32, .55);
  transform: rotate(-1.2deg);
}
.msg-head { display: flex; align-items: center; gap: .6em; font: 500 .94em/1 var(--f-sans); color: #4F625A; }
.msg-head i { width: 1.9em; height: 1.9em; border-radius: .5em; background: #2FB463; display: grid; place-items: center; }
.msg-head i svg { width: 1.1em; height: 1.1em; color: #fff; }
.msg-head span:last-child { margin-left: auto; font-family: var(--f-mono); font-weight: 600; color: var(--rat); }
.msg b { display: block; margin: .7em 0 .25em; font-weight: 700; font-size: 1.02em; }
.msg p { font-size: 1.02em; line-height: 1.38; color: #24302B; }
.top7 {
  justify-self: end; width: 86%; transform: rotate(1.4deg);
  background: #fff; border-radius: .5em; padding: .9em 1.1em; border-left: .35em solid var(--rat);
  box-shadow: 0 1.2em 2em -1.4em rgba(19, 40, 32, .55);
  font: 500 .94em/1.35 var(--f-mono); color: #33423B;
}
.top7 strong { display: block; font: 750 1.25em/1.1 var(--f-sans); font-stretch: 110%; color: var(--ink); margin-top: .2em; letter-spacing: -.01em; }
.ask {
  position: absolute; right: -1em; bottom: -2.9em; transform: rotate(-3deg);
  background: var(--rat); color: #fff; border-radius: 1em 1em 1em .2em; padding: .7em 1em;
  font: 700 1.15em/1.1 var(--f-sans); font-stretch: 108%;
  box-shadow: 0 1em 1.6em -1em rgba(19, 40, 32, .7);
}

/* ---------- Schreibtisch / Vorlage ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.desk-ground { position: relative; padding: clamp(18px, 3vw, 44px); border-radius: 22px; background: #E9E6DC; overflow: hidden; }
.desk-ground::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .55), transparent 60%); }
.desk-h { margin: 16px 0 28px; }
.vorlage {
  position: relative; background: #fff; border-radius: 6px; padding: clamp(18px, 2.4vw, 34px);
  box-shadow: 0 1px 0 rgba(19, 32, 43, .06), 0 30px 50px -30px rgba(19, 32, 43, .5);
  transform: rotate(-1deg);
}
.v-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.v-kicker { font: 500 12px/1.3 var(--f-mono); letter-spacing: .02em; color: var(--ink-2); }
.v-title { font-weight: 750; font-stretch: 112%; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -.018em; line-height: 1.1; margin-top: 6px; }
.v-sub { font: 500 12px/1.4 var(--f-mono); color: var(--ink-2); margin-top: 6px; }
.stamp {
  flex: none; transform: rotate(6deg); padding: 6px 10px; border: 2px solid var(--signal); border-radius: 6px; background: #fff;
  font: 700 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--signal-deep); text-transform: uppercase;
}
.scale, .scale-note { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.scale { margin: 16px 0 6px; }
.scale span { height: 24px; border-radius: 3px; display: grid; place-items: center; font: 700 11.5px/1 var(--f-sans); color: rgba(19, 32, 43, .75); position: relative; }
.scale span:nth-child(1) { background: #1F9A57; color: #fff; } .scale span:nth-child(2) { background: #63B04A; color: #fff; } .scale span:nth-child(3) { background: #B5CF3A; }
.scale span:nth-child(4) { background: #E9CF2A; } .scale span:nth-child(5) { background: #F2B12E; } .scale span:nth-child(6) { background: #EE7D2B; color: #fff; }
.scale span:nth-child(7) { background: #E2552C; color: #fff; } .scale span:nth-child(8) { background: #C8312B; color: #fff; }
.scale span.now { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
/* each label sits centred under its own letter: Ziel under A, heute under F */
.scale-note { font: 500 11px/1.3 var(--f-mono); color: var(--ink-3); }
.scale-note span { justify-self: center; white-space: nowrap; padding-top: 2px; }
.scale-note .sn-ziel { grid-column: 1; color: #1F7A47; font-weight: 600; }
.scale-note .sn-heute { grid-column: 6; color: var(--ink); font-weight: 600; }
.varianten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.var { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.var svg { width: 100%; height: auto; aspect-ratio: 1.25; }
.var-n { font: 500 11.5px/1.2 var(--f-mono); color: var(--ink-3); }
.var-t { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.var-k { display: flex; align-items: center; gap: 8px; margin-top: auto; font: 500 12px/1 var(--f-mono); color: var(--ink-2); }
.var-k .cls { width: 28px; height: 28px; font-size: 16px; border-radius: 6px; }
.var-p { font: 700 12px/1.25 var(--f-mono); color: var(--ink); background: var(--signal-tint); border-radius: 5px; padding: 6px 7px; }
.var--all { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mengen { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.mengen div { font: 500 12px/1.3 var(--f-sans); color: var(--ink-3); }
.mengen b { display: block; margin-top: 4px; font: 700 15px/1.1 var(--f-mono); color: var(--ink); }
.mengen b.gaeb { display: flex; align-items: center; gap: 6px; }
.gaeb svg { width: 15px; height: 15px; color: var(--signal-deep); }

.offers { display: grid; }
.offer { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 24px 0; border-top: 1px solid var(--rule); }
.offer:last-child { border-bottom: 1px solid var(--rule); }
.offer .n { grid-row: span 2; font: 600 13px/1.6 var(--f-mono); color: var(--signal-deep); }
.offer h3 { font-size: 23px; font-stretch: 108%; letter-spacing: -.012em; }
.offer p { color: var(--ink-2); font-size: 16.5px; }
.offer .tag { grid-column: 2; justify-self: start; margin-top: 10px; font: 600 12px/1.3 var(--f-mono); color: var(--ink); background: var(--zettel); padding: 6px 8px; border-radius: 5px; }

/* ---------- Ablauf ---------- */
.chain { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.chain::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1.5px; background: var(--ink); }
.step { position: relative; padding: 0 24px 0 0; }
.step::before { content: ""; position: absolute; left: 0; top: 24px; width: 1.5px; height: 21px; background: var(--ink); }
.step:last-child::after { content: ""; position: absolute; right: 0; top: 24px; width: 1.5px; height: 21px; background: var(--ink); }
.step .meas { display: inline-block; margin: 0 0 0 14px; padding: 0 8px; height: 20px; background: var(--paper); position: relative; font: 600 12px/20px var(--f-mono); color: var(--signal-deep); }
.step .num { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 17px/1 var(--f-sans); }
.step:first-child .num { background: var(--signal); color: var(--ink); }
.step h3 { font-size: 22px; font-stretch: 108%; margin: 20px 0 8px; letter-spacing: -.012em; }
.step p { color: var(--ink-2); font-size: 16px; max-width: 18em; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; align-items: start; }
.faq-grid .h2 { margin-top: 16px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 680; font-stretch: 106%; font-size: 20px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; transition: background .2s, transform .25s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.faq details[open] summary i { background: var(--signal); box-shadow: none; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover i { transform: rotate(90deg); }
.faq details p { padding: 0 60px 24px 0; color: var(--ink-2); font-size: 17px; max-width: 42em; }

/* ---------- lead form ---------- */
.form-sec { background: var(--ink); color: #fff; }
.form-sec .profis { background: #1B2B38; }
.form-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.form-card { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(24px, 3.2vw, 44px); }
.form-card .eyebrow { color: var(--ink-2); }
.form-card h2 { font-size: clamp(30px, 3.2vw, 46px); margin: 14px 0 12px; }
.form-card .lede { font-size: 17px; margin-bottom: 26px; }
.fld { display: grid; gap: 8px; margin-bottom: 18px; }
.fld label { font-weight: 650; font-size: 15px; }
.fld input {
  width: 100%; min-height: 58px; padding: 0 18px; border-radius: 10px; border: 1.5px solid #9DA4A7; background: #fff;
  font: 500 18px/1 var(--f-sans); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.fld input:hover { border-color: var(--ink-2); }
.fld input:focus { border-color: var(--ink); }
.fld input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fld input[aria-invalid="true"] { border-color: var(--signal-deep); }
.fld-err { color: var(--signal-deep); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.consent-wrap { margin: 4px 0 22px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 6px; border: 1.5px solid #8B9396; background: #fff; display: grid; place-items: center; cursor: pointer; }
.consent input::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent input:checked { background: var(--signal); border-color: var(--signal); }
.consent input:checked::after { opacity: 1; }
.consent input[aria-invalid="true"] { border-color: var(--signal-deep); box-shadow: 0 0 0 3px rgba(196, 62, 11, .18); }
.consent a { color: var(--ink); font-weight: 600; display: inline-block; padding-block: 14px; margin-block: -14px; }
.consent-wrap .fld-err { margin: 8px 0 0 38px; }
/* freiwillige Kontakt-Einwilligung: eigener Kasten, mit Abstand zum Knopf (keine Bedingung für das Musterprojekt) */
.consent-wrap--frei { margin: 6px 0 26px; padding: 14px 16px 16px; border-radius: 12px; background: rgba(19, 32, 43, .035); box-shadow: inset 0 0 0 1px rgba(19, 32, 43, .1); }
.consent-kopf { margin: 0 0 10px; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
/* Am Handy kompakter, damit der Knopf näher am E-Mail-Feld bleibt (Wortlaut bleibt vollständig sichtbar) */
@media (max-width: 760px) {
  .consent-wrap--frei { margin: 4px 0 18px; padding: 10px 12px 12px; }
  .consent-wrap--frei .consent { font-size: 13.5px; line-height: 1.42; gap: 10px; grid-template-columns: 24px 1fr; }
  .consent-wrap--frei .consent input { width: 24px; height: 24px; }
  .consent-kopf { margin-bottom: 6px; font-size: 11.5px; }
}
.after a { color: var(--ink); font-weight: 600; }
/* Kontaktformular */
.fld textarea {
  width: 100%; min-height: 160px; padding: 14px 18px; border-radius: 10px; border: 1.5px solid #9DA4A7; background: #fff;
  font: 500 17px/1.5 var(--f-sans); color: var(--ink); resize: vertical;
}
.fld textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fld label small { font-weight: 500; color: var(--ink-2); }
.kontakt-form { margin: 28px 0 12px; max-width: 560px; }
.kontakt-form .btn { width: 100%; }
.kontakt-ok { display: none; margin-top: 18px !important; padding: 14px 16px; border-radius: 10px; background: #E3F3E8; color: #17502F !important; font-weight: 600; box-shadow: inset 0 0 0 1px #A9D6B8; }
.kontakt-ok:target { display: block; }
/* Einwilligungstext auf der Bestätigungsseite */
.einw { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--signal); background: rgba(19, 32, 43, .035); }
.einw p { margin: 0; }
/* Rückmeldung auf dem Musterprojekt */
.rueckmeldung { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.rueckmeldung form { margin: 0; }
.rueckmeldung .btn { min-height: 52px; }
@media (max-width: 760px) {
  .rueckmeldung { flex-direction: column; }
  .rueckmeldung form, .rueckmeldung .btn { width: 100%; justify-content: center; }
}
.btn--ghost { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rueckmeldung-hinweis { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.form-card .btn { width: 100%; }
/* Falle für Formular-Roboter: für Menschen unsichtbar, der Dienst verwirft Anfragen mit Inhalt */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note:empty { display: none; }
.form-note { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.45; }
.form-note.is-vorschau { background: #FFF4CC; color: #4A3B00; box-shadow: inset 0 0 0 1px #E8D27A; }
.form-note.is-fehler { background: #FDE7DE; color: #7A2405; box-shadow: inset 0 0 0 1px #F0B39A; }
.form-note a { font-weight: 650; color: inherit; }
.after { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.after svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--signal-deep); }

.profis {
  position: relative; border-radius: 18px; padding: clamp(24px, 3.2vw, 44px);
  background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.profis .eyebrow { color: rgba(255, 255, 255, .75); }
.profis h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 14px 0; }
.profis p:not(.eyebrow) { color: rgba(255, 255, 255, .82); font-size: 17px; max-width: 30em; }
.profis ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 30em; }
.profis li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; color: rgba(255, 255, 255, .9); }
.profis li svg { width: 20px; height: 20px; color: var(--signal); margin-top: 2px; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 40px; }
.foot b { color: var(--ink); }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 550; color: var(--ink); }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .credit { flex-basis: 100%; font: 400 12px/1.5 var(--f-mono); color: var(--ink-3); }

/* ---------- influencer landing (template _vorlagen/lage.html) ---------- */
.lp .lp-text .eyebrow::before { background: var(--lage-accent); height: 4px; }
.lp-hero { padding: clamp(4px, 1.5vw, 20px) 0 clamp(40px, 5vw, 72px); }
.lp-hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.lp-stage { order: 2; aspect-ratio: 1.12; border-radius: 22px; --m: clamp(13px, 1.32vw, 19px); box-shadow: 0 0 0 1px rgba(19, 32, 43, .08), 0 30px 60px -40px rgba(19, 32, 43, .4); }
.lp-stage .world { width: 112%; left: 18%; top: 12%; }
.lp-stage .motif { place-items: center start; padding-left: 9%; }
.lp-text { order: 1; }
.lp-text h1 { font-size: clamp(38px, 4.5vw, 66px); margin: 20px 0; }
.lp-text .lede { margin-bottom: 30px; }
.figur { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.nw { white-space: nowrap; }
.lp-sprung { gap: 8px; margin-left: 24px; vertical-align: middle; }
.lp-sprung svg { width: 16px; height: 16px; flex: none; }
/* form stays in the page's own light flow (no dark band between hero and form) */
.lp-form { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); }
.lp-form .form-card { box-shadow: 0 0 0 1px rgba(19, 32, 43, .1), 0 30px 60px -44px rgba(19, 32, 43, .45); }
.lp-form .form-card .eyebrow::before { background: var(--lage-accent); height: 4px; }
.lp .sec { border-top: 1px solid var(--rule); }
.lp-close { padding: 0 0 clamp(56px, 7vw, 96px); }
.close-card {
  position: relative; overflow: hidden; border-radius: 22px;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 5vw, 72px);
  background-color: var(--sheet); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px;
  box-shadow: 0 0 0 1px rgba(19, 32, 43, .08);
}
.close-card .world { width: 100%; height: auto; }
.close-text .lede { margin: 20px 0 30px; }
.close-text { min-width: 0; }
.close-text .h2 { font-size: clamp(34px, 4.2vw, 60px); text-wrap: balance; }

/* ---------- Danke ---------- */
.danke { padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 7vw, 96px); }
.danke-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.danke h1 { font-size: clamp(38px, 5vw, 72px); margin: 20px 0; }
.danke-sheet { aspect-ratio: 1.04; overflow: hidden; }
.danke-sheet .draw { position: absolute; inset: 19% 6% 9%; }
.danke-sheet .draw svg { width: 100%; height: 100%; }
.danke-sheet .mail {
  position: absolute; left: 6%; top: 7%; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; background: #fff; font-weight: 650; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(19, 32, 43, .1), 0 16px 32px -20px rgba(19, 32, 43, .45);
}
.danke-sheet .mail svg { width: 22px; height: 22px; color: var(--signal-deep); }
.danke-steps { --steps: 4; margin-top: clamp(40px, 5vw, 64px); }
/* Schritte auf /danke/ und /bestaetigt/: erledigt gedämpft mit Haken, der aktuelle Schritt orange */
.danke-steps .step .num { background: var(--ink); color: #fff; }
.danke-steps .step--jetzt .num { background: var(--signal); color: var(--ink); }
.danke-steps .step--fertig .num { background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--ink-2); font-size: 0; }
.danke-steps .step--fertig .num::after { content: ""; width: 14px; height: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.danke-steps .step--fertig h3, .danke-steps .step--fertig p { color: var(--ink-2); }
.danke-steps .step--fertig .meas { color: var(--ink-2); }
.quelle { margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 3vw, 36px); border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(19, 32, 43, .08); }
.quelle h2 { font-size: clamp(22px, 2vw, 28px); font-stretch: 108%; }
.quelle p { color: var(--ink-2); margin-top: 6px; font-size: 15.5px; }
.quelle-wahl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quelle-wahl button {
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
  font: 600 16px/1 var(--f-sans); cursor: pointer; transition: background .15s, color .15s;
}
.quelle-wahl button:hover { background: rgba(19, 32, 43, .05); }
.quelle-wahl button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.quelle-wahl button[disabled]:not([aria-pressed="true"]) { opacity: .45; cursor: default; }
.quelle-danke { display: none; margin-top: 14px; font-weight: 600; color: #1F7A47 !important; }
.quelle-danke:target { display: block; }

/* ---------- Rechtliches ---------- */
.legal { padding: clamp(16px, 3vw, 40px) 0 clamp(64px, 8vw, 112px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); margin: 18px 0 28px; }
.legal h2 { hyphens: manual; overflow-wrap: break-word; font-size: 21px; font-stretch: 106%; letter-spacing: -.01em; line-height: 1.25; margin: 36px 0 10px; }
.legal p, .legal address, .legal li { max-width: 62ch; font-style: normal; line-height: 1.6; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal p a, .legal address a { display: inline-block; padding-block: 14px; margin-block: -14px; }
.legal .btn { text-decoration: none; color: var(--fg); }
.legal .back { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 0 26px; }
.legal .back a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap, .lp-hero .wrap, .danke-grid { grid-template-columns: 1fr; }
  .plan { max-width: 760px; width: 100%; }
  .desk, .form-grid, .faq-grid, .sec-head { grid-template-columns: 1fr; }
  .lp-stage { order: 0; }
  .danke-sheet { max-width: none; }
  .desk-ground { order: 2; }
  .close-card { grid-template-columns: 1fr; }
  .close-card .world { max-width: 560px; justify-self: center; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  /* tiles side by side would orphan the third: one tile per row, motif left, text right */
  .lagen { grid-template-columns: 1fr; }
  .lage { flex-direction: row; }
  .lage .stage { flex: 0 0 56%; }
  .lage-body { justify-content: center; padding: 28px; }
  .lp-stage { aspect-ratio: 1.45; --m: clamp(14px, 2.2vw, 19px); }
  .danke-sheet { aspect-ratio: 1.6; }
}
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .chain { grid-template-columns: 1fr; gap: 30px; }
  .chain::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .step { padding: 0 0 0 70px; }
  .step::before, .step:last-child::after { display: none; }
  .step .num { position: absolute; left: 0; top: 0; margin: 0; }
  .step .meas { margin: 0; padding: 0; background: none; }
  .step h3 { margin-top: 6px; }
  .step p { max-width: 34em; }
  /* die senkrechte Linie endet am letzten Kreis: der letzte Schritt deckt sie ab */
  .step:last-child { z-index: 1; background: var(--paper); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .chip--fassade { left: 25% !important; }
  .nav a:not(.btn) { display: none; }
  .top .wrap { min-height: 68px; }
  .nav .btn { display: none; }
  .hero h1 { margin: 16px 0; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 30px; }
  .facts div { border-right: 0; margin-right: 0; padding-right: 12px; }
  .facts div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--rule); margin-top: 14px; }
  .facts dd { font-size: 17px; }
  .hero-cta .btn, .lp-btn, .close-text .hero-cta .btn { width: 100%; }
  .chip { font-size: 12px; padding: 6px 8px 5px; gap: 6px; }
  .chip small { font-size: 9.5px; }
  .klasse { padding: 8px 10px; gap: 7px; }
  .klasse .lbl { display: none; }
  .cls { width: 32px; height: 32px; font-size: 18px; }
  .titleblock span:first-child { display: none; }
  .lagen { grid-template-columns: 1fr; }
  .varianten { gap: 6px; }
  .var { padding: 7px 7px 9px; }
  .var-n { font-size: 10.5px; }
  .var-t { font-size: 12.5px; }
  .var-k { font-size: 11px; }
  .var-p { font-size: 11px; padding: 5px; }
  .var-k .cls { width: 24px; height: 24px; font-size: 14px; }
  .mengen { grid-template-columns: 1fr 1fr; }
  .vorlage { transform: none; }
  .stamp { position: absolute; top: -12px; right: 8px; font-size: 10px; }
  .v-top { padding-top: 6px; }
  .offer { grid-template-columns: 34px 1fr; gap: 6px 10px; }
  .faq details p { padding-right: 0; }
  .faq summary { font-size: 18px; min-height: 44px; }
  .lp-hero { padding-top: 0; padding-bottom: 28px; }
  .lp-hero .wrap { gap: 20px; }
  .lp-stage { aspect-ratio: auto; height: clamp(280px, 42svh, 360px); margin-inline: calc(-1 * var(--pad)); border-radius: 0; box-shadow: none; --m: 12.5px; }
  .lp-stage .world { width: 135%; left: 12%; top: 16%; }
  .lp-stage .motif { padding-left: 7%; }
  .lp-text h1 { font-size: clamp(32px, 9.4vw, 40px); margin: 12px 0 10px; }
  .lp-text .lede { font-size: 16px; margin-bottom: 20px; }
  .figur { margin-top: 14px; font-size: 13.5px; }
  .lp-sprung { display: flex; width: fit-content; margin: 4px 0 -6px; }
  .lp-form { padding-top: 8px; }
  .form-card { padding: 22px 20px 24px; }
  .lp-form .form-card h2 { font-size: 30px; }
  .close-card { padding: 28px 22px 0; }
  .close-card .world { width: 100%; max-width: none; margin: 0 0 -4%; }
  .close-text .h2 { font-size: clamp(28px, 8.6vw, 34px); }
  .danke-sheet .draw { inset: 27% 6% 12%; }
  .quelle-wahl button { flex: 1 1 calc(50% - 10px); }
}
@media (min-width: 1081px) {
  .form-grid { align-items: stretch; }
  .profis { display: flex; flex-direction: column; }
  .profis ul { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (min-width: 1081px) and (max-width: 1280px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { border-right: 0; margin-right: 0; padding-right: 12px; }
  .facts div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--rule); margin-top: 14px; }
}
@media (max-width: 420px) {
  /* Vorlage: Varianten untereinander, links das kleine Haus, rechts Name, Klasse und Preis */
  .varianten { grid-template-columns: 1fr; }
  .var { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; row-gap: 4px; align-items: center; }
  .var svg { grid-row: span 4; }
  .var-p { justify-self: start; white-space: nowrap; }
}
@media (max-width: 360px) {
  /* only here is the column too narrow for „Gemeindegebäude“: allow the soft hyphen */
  .hero h1 { hyphens: manual; -webkit-hyphens: manual; }
  .brand small { font-size: 10px; letter-spacing: -.02em; white-space: nowrap; }
  .lage .stage { --m: 11.5px; aspect-ratio: 1; }
  .lage .stage .motif { padding-right: 0; }

  .btn { padding: 0 18px; font-size: 16px; gap: 10px; }
  .facts dd { font-size: 15.5px; white-space: normal; }
  .quelle-wahl button { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Formular ohne JavaScript: Fehlermeldung über die Adresse (#fehler-…, vom Server nach 303) ---------- */
.form-fehler p { display: none; margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.45; background: #FDE7DE; color: #7A2405; box-shadow: inset 0 0 0 1px #F0B39A; scroll-margin-top: 120px; }
.form-fehler p:target { display: block; }
.form-fehler a { color: inherit; font-weight: 650; }

/* ---------- einfache Seiten (Link ungültig, abgemeldet) ---------- */
.mt-cta { margin-top: 32px; }
/* Seiten aus den Functions (Bestätigen, Musterprojekt-Zugang, Abmelden): Abstand unter dem Knopf */
.legal--fn .mt-cta { margin-bottom: 28px; }
.legal--fn .mt-cta + .mt-cta { margin-top: 0; }
.legal--fn .einw p { font-size: 15px; }
.danke-steps a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Musterprojekt ---------- */
.mp-hero h1 { font-size: clamp(34px, 4.4vw, 62px); hyphens: manual; }
.mp-hero .facts { margin-top: 28px; }
.mp-hero .desk-ground .vorlage { transform: none; }
.mp-doc { max-width: 920px; margin-inline: auto; background: #fff; border-radius: 8px; padding: clamp(22px, 4vw, 56px); box-shadow: 0 1px 0 rgba(19, 32, 43, .06), 0 30px 60px -40px rgba(19, 32, 43, .45); }
.mp-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.mp-doc-head h2 { font-size: clamp(24px, 2.6vw, 36px); font-stretch: 110%; letter-spacing: -.018em; line-height: 1.1; margin-top: 8px; }
.mp-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-bottom: 1px solid var(--rule); }
.mp-meta div { padding: 14px 14px 14px 0; }
.mp-meta div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.mp-meta dt { font: 500 12px/1.3 var(--f-mono); color: var(--ink-3); margin-bottom: 6px; }
.mp-meta dd { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.3; }
.mp-meta .cls { width: 30px; height: 30px; font-size: 17px; }
.mp-part { padding-top: clamp(26px, 3vw, 38px); }
.mp-part h3 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(20px, 1.8vw, 24px); font-stretch: 108%; letter-spacing: -.012em; margin-bottom: 12px; }
.mp-part h3 span { font: 600 13px/1 var(--f-mono); color: var(--signal-deep); }
.mp-part p, .mp-liste li { color: var(--ink-2); line-height: 1.6; max-width: 66ch; }
.mp-part p + p, .mp-part .mp-scroll + p { margin-top: 12px; }
.mp-scroll { overflow-x: auto; }
.mp-t { width: 100%; border-collapse: collapse; font-size: 16px; }
.mp-t th, .mp-t td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--rule); }
.mp-t thead th { font: 500 12px/1.3 var(--f-mono); color: var(--ink-3); border-top: 0; padding-bottom: 8px; }
.mp-t tbody th { font-weight: 700; white-space: nowrap; }
.mp-t tbody th small { display: block; font: 500 12.5px/1.4 var(--f-mono); color: var(--ink-3); margin-top: 4px; white-space: normal; }
.mp-t td { color: var(--ink-2); line-height: 1.5; }
.mp-t td:last-child { width: 1%; white-space: nowrap; }
.mp-t .cls { width: 34px; height: 34px; font-size: 19px; }
.mp-empf th, .mp-empf td { background: var(--signal-tint); }
.mp-empf th { padding-left: 12px; border-radius: 8px 0 0 8px; }
.mp-empf td:last-child { border-radius: 0 8px 8px 0; padding-right: 12px; }
.mp-preis { display: block; margin-top: 8px; font: 700 14px/1.3 var(--f-mono); color: var(--ink); }
.mp-t--mengen td { font: 700 16px/1.4 var(--f-mono); color: var(--ink); }
.mp-hinweis { font-size: 14.5px; margin-top: 12px; }
.mp-liste { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.mp-beschluss { margin: 0; padding: 18px 22px; border-left: 4px solid var(--signal); background: var(--paper); border-radius: 0 10px 10px 0; }
.mp-beschluss p { color: var(--ink); font-size: 17px; }
@media (max-width: 760px) {
  .mp-meta { grid-template-columns: 1fr 1fr; }
  .mp-meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .mp-meta div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .mp-doc-head .stamp { display: none; }
  .mp-t { font-size: 15px; }
}

/* ---------- Lage „foerderantrag“: Standbilder aus dem Video und die 5 Punkte ---------- */
/* KI-generierte Standbilder (Art. 50 KI-Verordnung): Abzeichen auf dem Bild wie im Video, keine Bildunterschrift. */
.ki-bild { position: relative; margin: 0; }
.ki-bild img { width: 100%; height: auto; }
.ki-badge {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 6px;
  background: rgba(15, 22, 30, .82); color: #fff; font: 600 12px/1 var(--f-sans); letter-spacing: .01em; white-space: nowrap;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ki-badge b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 3px; background: #fff; color: var(--ink); font: 700 10.5px/1 var(--f-sans); }

/* motif: Förderantrag (Standbild als Abzug auf dem Tisch, davor die Fallnummer) */
.m-foerder { position: relative; width: 16.5em; }
.still-rahmen {
  position: relative; padding: .42em; background: #fff; border-radius: .7em; transform: rotate(-2.4deg);
  box-shadow: 0 0 0 1px rgba(60, 45, 20, .08), 0 1.8em 2.6em -1.6em rgba(50, 35, 10, .55), 0 .2em .4em rgba(50, 35, 10, .12);
}
.still-rahmen img { border-radius: .4em; aspect-ratio: 4 / 5; object-fit: cover; }
.still-rahmen .ki-badge { top: calc(.42em + 8px); right: calc(.42em + 8px); }
.m-foerder-fall {
  position: absolute; right: -2.2em; bottom: -1.1em; transform: rotate(3deg);
  padding: .6em .8em .55em; background: var(--ink); color: #fff; border-radius: .4em; border-left: .3em solid var(--lage-accent);
  font: 600 max(12px, .82em)/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 .8em 1.4em -1em rgba(19, 32, 43, .6);
}

/* die 5 Punkte: links Überschrift und zwei Standbilder (am Desktop mitlaufend), rechts die Liste */
.punkte-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.punkte-kopf .h2 { margin: 16px 0 18px; }
.punkte-kopf .lede { max-width: 26em; }
.punkte-kopf .eyebrow::before { background: var(--lage-accent); height: 4px; }
.punkte-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(28px, 3vw, 40px); max-width: 480px; }
.still { padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(19, 32, 43, .08), 0 24px 40px -30px rgba(19, 32, 43, .55); }
.still img { border-radius: 7px; aspect-ratio: 4 / 5; object-fit: cover; }
.still .ki-badge { top: 14px; right: 14px; }
.still:first-child { transform: rotate(-1.6deg); }
.still:last-child { transform: rotate(1.4deg) translateY(18px); }
.punkte { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.punkt { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 22px; padding: 30px 0 32px; border-top: 1px solid var(--rule); }
.punkt:first-child { border-top: 0; padding-top: 4px; }
.punkt-n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff;
  font: 750 22px/1 var(--f-sans); font-stretch: 112%;
}
.punkt-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.punkt-tag span { padding: 4px 6px 3px; border-radius: 4px; background: var(--ink); color: var(--lage-accent); letter-spacing: .04em; }
.punkt h3 { font-size: clamp(23px, 2vw, 29px); font-stretch: 108%; letter-spacing: -.015em; line-height: 1.12; margin: 12px 0 12px; }
.punkt p:not(.punkt-tag) { color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.punkt-body > p:nth-of-type(2) { color: var(--ink); font-size: 17.5px; }
.punkt-mehr { margin-top: 10px; font-size: 16px; }
.punkt-zahl, .punkt-schluss { margin-top: 14px; padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 15.5px; }
.punkt-zahl { border-left: 3px solid var(--rule); background: rgba(19, 32, 43, .035); }
.punkt-schluss { border-left: 4px solid var(--signal); background: #fff; color: var(--ink) !important; box-shadow: 0 0 0 1px rgba(19, 32, 43, .06); }
.punkt-zahl b, .punkt-schluss b { color: var(--ink); font-weight: 700; }
.punkt-quelle { margin-top: 14px; font: 500 12.5px/1.6 var(--f-mono); color: var(--ink-2) !important; }
.punkt-quelle a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.punkt-quelle a:hover { color: var(--ink); }
.punkte-hinweis { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.offers-hinweis { margin-top: 18px; font-size: 15px; color: var(--ink-2); max-width: 32em; }
@media (min-width: 1081px) {
  .punkte-kopf { position: sticky; top: 24px; }
}
@media (max-width: 1080px) {
  .punkte-grid { grid-template-columns: 1fr; }
  .punkte-bilder { max-width: 520px; }
}
@media (max-width: 760px) {
  .m-foerder { width: 13.6em; }
  .m-foerder-fall { right: auto; left: .8em; bottom: -.9em; }
  .punkte-bilder { gap: 12px; margin-top: 24px; }
  .still { padding: 4px; border-radius: 10px; }
  .still .ki-badge { top: 10px; right: 10px; }
  .still:last-child { transform: rotate(1.4deg) translateY(10px); }
  .punkte-liste { margin-top: 12px; }
  /* auf dem Handy reicht der Chip „1/5“ wie im Video: kein zweiter Nummernkreis */
  .punkt { grid-template-columns: minmax(0, 1fr); padding: 24px 0 26px; }
  .punkt-n { display: none; }
  .punkt h3 { font-size: 22px; margin: 10px 0; }
  .punkt-body > p:nth-of-type(2) { font-size: 16.5px; }
  .punkt-mehr { font-size: 15.5px; }
}
@media (max-width: 360px) {
  /* Knopf der Abschluss-Karte bleibt bei 320 px einzeilig */
  .close-card { padding-inline: 14px; }
  .close-text .hero-cta .btn { padding: 0 14px; gap: 8px; font-size: 16px; white-space: nowrap; }
  .ki-badge { padding: 3px 6px 3px 3px; gap: 5px; }
  .ki-badge b { min-width: 16px; height: 16px; }
}

/* ---------- Lage „schule“: Video mit Zwei-Klick-Lösung (static/video.js), Kapitel, Gesetzentwurf ---------- */
/* Erster Bildschirm ohne Bühne ("buehne": "motiv"): rechts das Video, auf dem Handy unter dem Text. Vor dem Klick nur
   das Vorschaubild vom eigenen Server; erst der Knopf lädt den Rahmen von youtube-nocookie.com. */
.lp-medium { order: 2; min-width: 0; }
.video { display: grid; gap: 14px; }
.video-flaeche {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(19, 32, 43, .08), 0 30px 60px -40px rgba(19, 32, 43, .45);
}
.video-flaeche iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-bild { position: absolute; inset: 0; }
.video-bild img { width: 100%; height: 100%; object-fit: cover; }
/* Abzeichen rechts unter „Saniert“: oben links und rechts stehen im Vorschaubild schon „1974“ und „Saniert“, die Mitte
   bleibt für das Abspiel-Zeichen frei */
.video-bild .ki-badge { top: 15%; right: 2.4%; }
.video-play {
  position: absolute; left: 50%; top: 42%; display: grid; place-items: center;
  width: clamp(56px, 11%, 84px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--signal); color: var(--ink);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .38), 0 18px 30px -12px rgba(0, 0, 0, .6);
  transition: transform .2s var(--ease);
}
.video-play svg { width: 40%; height: 40%; margin-left: 7%; }
/* das Bild lädt nichts, ein Klick führt nur zum Knopf mit dem Hinweis */
.video-bild.is-klickbar { cursor: pointer; }
.video-hinweis { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 46em; text-wrap: pretty; }
.video-hinweis a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.video-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.video-knopf { min-height: 52px; }
.video-knopf svg { width: 16px; height: 16px; }
.video-extern svg { width: 16px; height: 16px; margin-left: 8px; flex: none; }
.video-dauer { font: 500 12.5px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); }
.video.is-geladen .video-dauer { display: none; }

/* Kapitel: links Überschrift und Hinweis, rechts die Liste; die Zeiten werden mit JavaScript zu Knöpfen */
.kapitel-grid, .bund-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.kapitel-kopf .h2, .bund-kopf .h2 { margin: 16px 0 18px; }
.kapitel-kopf .lede, .bund-kopf .lede { max-width: 28em; }
.kapitel-kopf .eyebrow::before, .bund-kopf .eyebrow::before { background: var(--lage-accent); height: 4px; }
.kapitel-kopf .video-hinweis { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); max-width: 30em; }
.kapitel { list-style: none; margin: 0; padding: 0; }
.kap { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 22px; align-items: start; padding: 22px 0; border-top: 1px solid var(--rule); }
.kap:first-child { border-top: 0; padding-top: 4px; }
.kap-zeit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 88px; padding: 0 12px;
  border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule);
  font: 600 15px/1 var(--f-mono); color: var(--ink); white-space: nowrap;
}
.kap-zeit svg { width: 12px; height: 12px; color: var(--signal-deep); flex: none; }
button.kap-zeit { cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .18s, color .18s; }
button.kap-zeit:hover { background: var(--ink); color: #fff; }
button.kap-zeit:hover svg { color: var(--signal); }
.kap h3 { font-size: clamp(20px, 1.7vw, 24px); font-stretch: 108%; letter-spacing: -.012em; line-height: 1.15; margin: 10px 0 6px; }
.kap p { color: var(--ink-2); font-size: 16.5px; max-width: 34em; text-wrap: pretty; }

/* Gesetzentwurf: nur der geprüfte Wortlaut, als Blatt mit Stempel „Entwurf“, Quellen darunter */
.bund-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; font-weight: 650; }
.bund-stempel {
  transform: rotate(-4deg); padding: 7px 11px; border: 2px solid var(--signal); border-radius: 6px; background: #fff;
  font: 700 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--signal-deep); text-transform: uppercase;
}
.bund-blatt {
  background: #fff; border-radius: 18px; padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 0 0 1px rgba(19, 32, 43, .08), 0 30px 60px -44px rgba(19, 32, 43, .4);
}
.bund-punkte { margin: 0; display: grid; }
.bund-punkt { padding: 20px 0; border-top: 1px solid var(--rule); }
.bund-punkt:first-child { border-top: 0; padding-top: 0; }
.bund-punkt dt { font: 600 12.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bund-punkt dd { margin: 8px 0 0; font-size: 17.5px; color: var(--ink); max-width: 36em; text-wrap: pretty; }
.bund-punkt--zahl dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.bund-zahl { font: 760 clamp(56px, 6vw, 84px)/.9 var(--f-sans); font-stretch: 112%; letter-spacing: -.03em; color: var(--ink); text-transform: none; }
.bund-was { color: var(--signal-deep); }
.bund-punkt--zahl dd { margin-top: 14px; }
.bund-quelle { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--rule); font: 500 12.5px/1.6 var(--f-mono); color: var(--ink-2); }
.bund-quelle ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.bund-quelle li { padding-left: 14px; position: relative; }
.bund-quelle li::before { content: "·"; position: absolute; left: 2px; top: 5px; }
.bund-quelle a { display: inline-block; padding-block: 5px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bund-hinweis { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }

/* Formular nach dem Musterprojekt ("formular_nach_schreibtisch"): eigene Trennlinie wie die Abschnitte davor */
.lp[data-lage="schule"] .lp-form { border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 88px); }

@media (min-width: 1081px) {
  .kapitel-kopf, .bund-kopf { position: sticky; top: 24px; }
}
@media (max-width: 1080px) {
  .kapitel-grid, .bund-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .video { gap: 12px; }
  .video-flaeche { border-radius: 14px; }
  .video-knopf { width: 100%; }
  .video-aktion { gap: 6px 16px; }
  .kapitel-kopf .video-hinweis { margin-top: 18px; }
  .kap { grid-template-columns: 74px minmax(0, 1fr); gap: 0 14px; padding: 18px 0 20px; }
  .kap-zeit { min-width: 74px; padding: 0 8px; gap: 6px; font-size: 14px; }
  .kap h3 { font-size: 19px; margin: 9px 0 6px; }
  .kap p { font-size: 16px; }
  .bund-punkt dd { font-size: 16.5px; }
  .lp[data-lage="schule"] .lp-form { padding-top: 40px; }
}
@media (max-width: 400px) {
  /* kleines Abspiel-Zeichen auf schmalen Handys: die Mitte des Vorschaubilds bleibt sichtbar */
  .video-play { width: clamp(44px, 14%, 56px); box-shadow: 0 0 0 4px rgba(255, 255, 255, .38), 0 14px 24px -12px rgba(0, 0, 0, .6); }
}
