/* lp-240 · TAGWERK Photovoltaik mit Speicher, Wels (Beispiel)
   Eine Zahl trägt alles: --k läuft von 0 (Morgen) bis 1 (Nacht). Farben werden gemischt, nicht getauscht.
   Schrift-Ordnung: SCHRIFT.md in der Werkstatt. Jede Größe kommt aus den fünf Variablen unten. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@property --da { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --k: 0; --k2: 0;                      /* Tageszeit, --k2 läuft etwas nach (Schrift) */
  --g-wort: clamp(3.75rem, min(10.5vw, 19svh), 10.5rem);
  --g-zeile: clamp(2.125rem, min(5.1vw, 8.6svh), 5.25rem);
  --g-ueber: clamp(1.625rem, min(2.9vw, 5.4svh), 3rem);
  --g-text: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --g-klein: 0.875rem;
  --a1: 8px; --a2: 16px; --a3: 24px; --a4: 40px; --a5: 64px; --a6: 104px; --a7: 168px;
  --rand: clamp(20px, 4.4vw, 72px);
  --rund: 18px; --pille: 999px;
  --kopf-h: 72px;
  --titel: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --lauf: "Instrument Sans", Arial, sans-serif;
  --tinte: #17212B; --grund: #F3EFE6; --akzent: #F26A1B; --nebel: #F6EADE; --himmel-oben: #E9E5DF;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --tinte: color-mix(in srgb, #17212B calc((1 - var(--k)) * 100%), #FFFFFF);
    --tinte2: color-mix(in srgb, #17212B calc((1 - var(--k2)) * 100%), #FFFFFF);
    --grund: color-mix(in srgb, #F3EFE6 calc((1 - var(--k)) * 100%), #0E1A2E);
    --akzent: color-mix(in srgb, #F26A1B calc((1 - var(--k)) * 100%), #FFB54A);
    --nebel: color-mix(in srgb, #F6EADE calc((1 - var(--k)) * 100%), #1B2A4A);
    --himmel-oben: color-mix(in srgb, #E9E5DF calc((1 - var(--k)) * 100%), #07356C);
  }
}
:root { --tinte2: var(--tinte); --leise: color-mix(in srgb, var(--tinte) 80%, transparent); --auf-akzent: #1A1206; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 var(--g-text)/1.55 var(--lauf); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 6px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: fixed; left: 12px; top: -80px; z-index: 20; padding: 12px 18px; border-radius: var(--pille); background: #17212B; color: #fff; }
.sprung:focus { top: 12px; }

/* ---------- Bühne: steht fest hinter der ganzen Seite ---------- */
.buehne { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(var(--himmel-oben) 0%, var(--nebel) 82%);
  --mx: 0; --my: 0; --sink: 0; --p0: 0; --pz: 0; --licht: 0; }
.szene { position: absolute; inset: 0; visibility: hidden; }
.szene.ist-da { visibility: visible; }
.senke { position: absolute; inset: 0; }
.kasten { position: absolute; left: 50%; bottom: 0; width: max(100vw, 177.78vh); aspect-ratio: 16 / 9; translate: -50% 0; }
.kasten img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Auftakt: bis die Uhr läuft, steckt das Haus ein Stück im Nebel; danach taucht es einmal auf */
.js:not(.bereit) .buehne { --sink: 0.1; }
.js:not(.bereit) .dunst { background: linear-gradient(color-mix(in srgb, var(--nebel) 30%, transparent) 20%, color-mix(in srgb, var(--nebel) 96%, transparent) 78%); }

/* Szene Haus: Himmel steht, Haus samt Wiese sinkt */
.himmel { transform: translate3d(calc(var(--mx) * -0.35vw), calc(var(--my) * -0.2vw + var(--p0) * -2vh), 0) scale(1.05);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 16%); mask-image: linear-gradient(transparent 0%, #000 16%); }
.h-n { opacity: var(--k); }
.s-haus .senke { transform: translate3d(calc(var(--mx) * -1vw), calc(var(--sink) * 100vh + var(--my) * -0.5vw + 5vh + var(--p0) * 5vh), 0); }
.s-haus .b-d, .s-haus .b-n, .s-haus .licht { visibility: hidden; }
.buehne.nacht .s-haus .b-m { visibility: hidden; }
.buehne.nacht .s-haus.ist-da .b-d, .buehne.nacht .s-haus.ist-da .b-n, .buehne.nacht .s-haus.ist-da .licht { visibility: visible; }
.s-haus .b-n { opacity: clamp(0, (var(--licht) - 1) * 4, 1); }
/* Fenster gehen einzeln an: kleine Ausschnitte des hellen Nachtfotos, je mit eigenem Einsatz */
.licht { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--w) * 100%); height: calc(var(--h) * 100%);
  background-image: url("../bilder/haus-nacht-1600.webp"); background-repeat: no-repeat;
  background-size: calc(100% / var(--w)) calc(100% / var(--h));
  background-position: calc(var(--x) / (1 - var(--w)) * 100%) calc(var(--y) / (1 - var(--h)) * 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  opacity: clamp(0, (var(--licht) - var(--ab)) * 6, 1); }
.l1 { --x: .385; --y: .52; --w: .11; --h: .25; --ab: 0; }      /* Haustür */
.l2 { --x: .485; --y: .52; --w: .15; --h: .21; --ab: .2; }     /* Fenster Mitte */
.l3 { --x: .265; --y: .53; --w: .14; --h: .20; --ab: .42; }    /* Fenster links */
.l4 { --x: .675; --y: .385; --w: .11; --h: .16; --ab: .62; }   /* Giebel */
.l5 { --x: .69; --y: .545; --w: .12; --h: .16; --ab: .8; }     /* Fenster rechts und Speicher */

/* Szenen Dach, Speicher, Wohnraum: ganzes Foto, etwas größer als das Fenster, damit beim Sinken kein Rand frei wird */
.kasten.voll { bottom: auto; top: 50%; translate: -50% -50%; }
.szene:not(.s-haus) .senke { transform-origin: var(--ox, 50%) var(--oy, 55%);
  transform: translate3d(calc(var(--mx) * -0.7vw), calc(var(--sink) * 26vh + var(--my) * -0.4vw), 0) scale(calc(1.17 + var(--pz) * 0.07)); }
.szene:not(.s-haus) .b-n { opacity: var(--k); }
.s-dach { --ox: 72%; --oy: 62%; } .s-speicher { --ox: 80%; --oy: 56%; } .s-innen { --ox: 42%; --oy: 60%; }

.dunst { position: absolute; inset: 0; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--nebel) 82%, transparent) 100%); }
.buehne[data-da="innen"] .dunst { opacity: 0; }      /* im Haus liegt kein Nebel */
.nebel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gras { position: absolute; left: -6vw; right: -6vw; bottom: 0; height: 0; visibility: hidden;
  transform: translate3d(calc(var(--mx) * -2.6vw), calc(var(--my) * -1.1vw + var(--p0) * 26vh + var(--sink) * 34vh), 0); }
.buehne[data-da="haus"] .gras { visibility: visible; }
.gras img { position: absolute; left: 0; bottom: calc(-23.5vw + 2vh); width: 100%; height: auto; max-width: none; }
.g-n { opacity: var(--k); }

/* ---------- Kopf ---------- */
.kopf { position: fixed; z-index: 5; left: 0; right: 0; top: 0; height: var(--kopf-h); display: flex; align-items: center; gap: var(--a3); padding: 0 var(--rand); color: var(--tinte); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 1.3rem/1 var(--titel); letter-spacing: 0.01em; text-decoration: none; flex: 1 1 0; }
.marke { width: 28px; height: 28px; flex: none; color: var(--akzent); }
.strahlen { transform-box: view-box; transform-origin: 50% 50%; transform: rotate(calc(var(--k) * 45deg)) scale(calc(1 - var(--k) * 0.5)); opacity: calc(1 - var(--k)); }
.biss { transform: translate(calc((1 - var(--k)) * 12px), calc((1 - var(--k)) * -12px)); }
.menue { display: flex; gap: clamp(16px, 2.4vw, 38px); font-weight: 500; font-size: var(--g-klein); }
.menue a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 78% / 0 2px no-repeat; transition: background-size .35s cubic-bezier(.2, .7, .2, 1); }
.menue a:hover, .menue a:focus-visible { background-size: 100% 2px; }
.kopf-rechts { flex: 1 1 0; display: flex; justify-content: flex-end; }

/* ---------- Schalter Morgen / Nacht ---------- */
.schalter { --schleier: rgba(23, 33, 43, 0.6); }
@supports (color: color-mix(in srgb, red 50%, blue)) { .schalter { --schleier: color-mix(in srgb, rgba(23, 33, 43, 0.6) calc((1 - var(--k)) * 100%), rgba(255, 255, 255, 0.16)); } }
.schalter button { position: relative; isolation: isolate; color: #fff; -webkit-tap-highlight-color: transparent; }
.schalter button::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--akzent); opacity: var(--an); }
.schalter button > * { position: relative; }
.schalter [data-zeit="0"] { --an: calc(1 - var(--k)); } .schalter [data-zeit="1"] { --an: var(--k); }
.schalter button, .schalter b, .schalter small { color: color-mix(in srgb, #1A1206 calc(var(--an) * 100%), #FFFFFF); }
.schalter :focus-visible { outline-color: #fff; outline-offset: -5px; }
.schalter--gross { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(440px, calc(100vw - 2 * var(--rand))); padding: 4px; border-radius: 22px; background: var(--schleier); border: 1px solid rgba(255, 255, 255, 0.26); }
.schalter--gross button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 70px; border-radius: 18px; transition: transform .2s; }
.schalter--gross button:active { transform: scale(0.97); }
.schalter--gross b { font: 700 1.3rem/1.1 var(--titel); }
.schalter--gross small { font-size: var(--g-klein); opacity: 0.86; }
.schalter--klein { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pille); background: var(--schleier); border: 1px solid rgba(255, 255, 255, 0.26);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
.nach-start .schalter--klein { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
.schalter--klein button { min-height: 44px; padding: 0 18px; border-radius: var(--pille); font-weight: 600; font-size: var(--g-klein); }

/* ---------- Knopf: eine Sorte, gefüllt ---------- */
.knopf { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--pille); background: var(--akzent); color: var(--auf-akzent); font-weight: 700; text-decoration: none; overflow: hidden; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.knopf::before { content: ""; position: absolute; left: 50%; top: 100%; width: 130%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.34); translate: -50% 0; transition: translate .5s cubic-bezier(.2, .7, .2, 1); }
.knopf:hover::before, .knopf:focus-visible::before { translate: -50% -62%; }   /* die Sonne geht im Knopf auf */
.knopf:hover { transform: translateY(-2px); } .knopf:active { transform: translateY(0) scale(0.98); }
.knopf span { position: relative; }
.knopf--voll { width: 100%; }
.sicher { font-size: var(--g-klein); color: var(--leise); }

/* ---------- Schrift, die mit der Tageszeit die Betonung wechselt ---------- */
h1, h2 { font-family: var(--titel); font-weight: 700; letter-spacing: -0.028em; text-wrap: balance; }
h1 span, h2 span { display: block; }
.z-m { color: color-mix(in srgb, var(--tinte2) calc(100% - var(--k2) * 58%), transparent); }
.z-n { color: color-mix(in srgb, var(--tinte2) calc(42% + var(--k2) * 58%), transparent); }
.paar { display: grid; }
.paar > p { grid-area: 1 / 1; }
.p-m { opacity: clamp(0, 1 - var(--k2) * 2.6, 1); }
.p-n { opacity: clamp(0, var(--k2) * 2.6 - 1.6, 1); }

/* Rollende Ziffern und Wörter: zwei Werte übereinander, --k schiebt sie durch */
.rolle { display: inline-flex; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.rolle .s { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; }
.rolle .s i { display: block; font-style: normal; white-space: pre; transform: translateY(calc(clamp(0, var(--k) * 1.9 - var(--i) * 0.13, 1) * -50%)); }
.rolle .s i span { display: block; height: 1.25em; }

/* ---------- Erster Bildschirm ---------- */
main { position: relative; z-index: 1; overflow-x: clip; }
.start { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; align-items: center; padding: calc(var(--kopf-h) + clamp(8px, 4.2vh, 52px)) var(--rand) clamp(18px, 4vh, 44px); --p0: 0; }
h1 { font-size: var(--g-zeile); line-height: 1.03; text-align: center; transform: translate3d(0, calc(var(--p0) * -9vh), 0); opacity: calc(1 - var(--p0) * 2.6); }
.dock { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--a3); opacity: calc(1 - var(--p0) * 3.2); }
.dock-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 24rem; }
.was { font-weight: 500; line-height: 1.4; }
.anzeige { justify-self: end; text-align: right; font-size: var(--g-klein); line-height: 1.5; font-weight: 500; }
.uhr { font: 700 var(--g-ueber)/1 var(--titel); letter-spacing: -0.02em; margin-bottom: 6px; }
.az--leise { color: var(--leise); font-weight: 400; }

/* ---------- Stationen: Text scrollt, das Foto dahinter steht und wechselt im Nebel ---------- */
.station { position: relative; min-height: 235vh; padding: 14vh var(--rand) 64vh; }   /* unten Luft: die Tafel ist weg, bevor die Nebelbank kommt */
.tafel { position: sticky; top: max(calc(var(--kopf-h) + 12px), 15vh); max-width: 35rem; display: flex; flex-direction: column; gap: var(--a3); }
.tafel::before { content: ""; position: absolute; z-index: -1; inset: -12% -22% -6% -40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--grund) 88%, transparent) 52%, transparent); pointer-events: none; }
.tafel { opacity: calc(1 - var(--weg, 0)); }
.st-innen .tafel { margin-left: auto; max-width: 28.5rem; }
.st-innen .tafel::before { inset: -12% -40% -6% -22%; }
h2 { font-size: var(--g-ueber); line-height: 1.08; }
.zahl { display: flex; align-items: baseline; gap: 0.12em; font: 700 var(--g-wort)/0.86 var(--titel); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.einheit { font-size: 0.34em; letter-spacing: -0.01em; font-weight: 600; margin-left: 0.1em; }
.streifen { align-self: stretch; width: 10px; margin-right: 0.16em; border-radius: var(--pille); background: color-mix(in srgb, var(--tinte) 18%, transparent); overflow: hidden; display: flex; align-items: flex-end; }
.streifen i { display: block; width: 100%; height: 100%; border-radius: inherit; transform-origin: 50% 100%; transform: scaleY(var(--fuell, 0.38)); background: color-mix(in srgb, #3FA34D calc((1 - var(--k)) * 100%), #FFB54A); }
.wege { display: grid; gap: 14px; font-weight: 500; }
.wege li { display: grid; grid-template-columns: 7.2em 1fr 6.6em; align-items: center; gap: 14px; }
.balken { height: 12px; border-radius: var(--pille); background: color-mix(in srgb, var(--tinte) 16%, transparent); overflow: hidden; }
.balken i { display: block; height: 100%; border-radius: inherit; background: var(--akzent); transform-origin: 0 50%; transform: scaleX(calc((var(--m) + (var(--n) - var(--m)) * var(--k)) * var(--da, 1))); transition: --da 1.1s cubic-bezier(.2, .7, .2, 1) .25s; }
.w-haus { --m: 0.45; --n: 0.35; } .w-speicher { --m: 0.9; --n: 0.35; } .w-wasser { --m: 0.25; --n: 0; } .w-netz { --m: 0.1; --n: 0; }
.w-wert { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ersatz { border-radius: var(--rund); height: auto; }

/* Einsatz der Tafeln (nur mit JavaScript, sonst steht alles da) */
.js .tafel > *, .js .anfrage-tafel { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .drin > *, .js .anfrage-tafel.drin { opacity: 1; transform: none; }
.js .drin > :nth-child(2) { transition-delay: .09s; } .js .drin > :nth-child(3) { transition-delay: .18s; } .js .drin > :nth-child(4) { transition-delay: .27s; }
.js .tafel { --da: 0; } .js .tafel.drin { --da: 1; }

/* ---------- Anfrage: eine Tafel rechts, das Haus bleibt links frei ---------- */
.anfrage { position: relative; min-height: 112vh; display: flex; justify-content: flex-end; align-items: flex-end; padding: 16vh var(--rand) 8vh; }
.anfrage-tafel { width: min(470px, 100%); display: grid; gap: var(--a3); padding: clamp(22px, 2.4vw, 34px); border-radius: 26px; background: var(--grund); box-shadow: 0 24px 60px rgba(8, 14, 26, 0.22); }
.anfrage-text { display: grid; gap: 12px; }
.anfrage h2 { font-size: clamp(1.5rem, 2.1vw, 2rem); }
.formular { display: grid; gap: 12px; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 600; font-size: var(--g-klein); }
.feld input, .feld select, .feld textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--tinte) 34%, transparent); background: color-mix(in srgb, var(--tinte) 5%, transparent); color: var(--tinte); font: inherit; }
.feld select option { color: #17212B; background: #fff; }
.feld textarea { resize: vertical; min-height: 84px; }
.feld :focus-visible { outline-offset: 1px; border-color: var(--tinte); }
.fehler { font-size: var(--g-klein); font-weight: 600; color: color-mix(in srgb, #B3261E calc((1 - var(--k)) * 100%), #FFB4A8); }
.fehler:empty { display: none; }
.formular-meldung { font-weight: 600; min-height: 1.5em; }
.formular .sicher { text-align: center; }

/* ---------- Fuß: eigene Grafikebene, damit die feste Bühne darunter sauber bleibt ---------- */
.fuss { position: relative; z-index: 2; transform: translateZ(0); background: #0A1220; color: #E6EBF2; padding: var(--a5) var(--rand) var(--a4); font-size: var(--g-klein); line-height: 1.6; }
.fuss-reihe { display: flex; flex-wrap: wrap; gap: var(--a4); align-items: flex-end; justify-content: space-between; }
.fuss a { text-underline-offset: 3px; }
.fuss :focus-visible { outline-color: #fff; }
.zeichenreihe { display: flex; gap: 6px; }
.zeichen-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .2s; }
.zeichen-link:hover { background: rgba(255, 255, 255, 0.12); }
.zeichen { width: 22px; height: 22px; }

/* ---------- Ohne JavaScript: Stationen als ruhige Folge mit eigenen Fotos ---------- */
html:not(.js) .station { min-height: 0; padding-bottom: 12vh; }
html:not(.js) .tafel { position: static; }
html:not(.js) .paar { display: block; } html:not(.js) .paar > p + p { margin-top: 12px; }
html:not(.js) .p-n { opacity: 1; }
html:not(.js) .z-n { color: var(--leise); }
html:not(.js) .schalter { display: none; }

/* ---------- Schmale und flache Fenster ---------- */
@media (max-width: 1000px) {
  .menue { display: none; }
  .dock { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .dock-links { display: contents; }
  .was { order: 1; text-align: center; max-width: 26rem; font-size: var(--g-klein); }
  .schalter--gross { order: 2; } .dock .knopf { order: 3; } .dock .sicher { order: 4; text-align: center; }
  .anzeige { display: none; }
  .anfrage { justify-content: center; padding-top: 44vh; }
}
@media (max-width: 820px) {
  :root { --kopf-h: 64px; --g-wort: clamp(3.4rem, min(22vw, 22svh), 6rem); }
  .station { min-height: 190vh; padding-top: 46vh; padding-bottom: 64vh; }
  .tafel { top: auto; position: relative; max-width: none; padding: 22px 20px 26px; border-radius: 22px; background: color-mix(in srgb, var(--grund) 90%, transparent); gap: var(--a2); }
  .tafel::before { display: none; }
  .tafel, .st-innen .tafel { opacity: 1; max-width: none; }
  .nach-start .kopf { background: var(--grund); }
  .wege li { grid-template-columns: 6.2em 1fr 6.4em; gap: 10px; }
  .schalter--gross button { min-height: 62px; }
  .knopf { width: 100%; max-width: 430px; }
  .fuss-reihe { flex-direction: column; align-items: flex-start; }
}
@media (orientation: portrait) {
  :root { --g-zeile: clamp(2rem, 9.6vw, 4.6rem); }
  .s-haus .kasten { width: 165vw; left: calc(50vw - 0.52 * 165vw); translate: 0 0; bottom: 31vh; }
  .s-haus .senke { transform: translate3d(0, calc(var(--sink) * 100vh), 0); }
  .s-haus .haus { -webkit-mask-image: linear-gradient(#000 78%, transparent 99%); mask-image: linear-gradient(#000 78%, transparent 99%); }
  .s-haus .himmel { -webkit-mask-image: linear-gradient(transparent 0%, #000 20%, #000 76%, transparent 99%); mask-image: linear-gradient(transparent 0%, #000 20%, #000 76%, transparent 99%); transform: none; }
  .kasten.voll { left: calc(50vw - var(--f, 0.5) * 177.78vh); translate: 0 -50%; }
  .s-dach { --f: 0.62; } .s-speicher { --f: 0.74; } .s-innen { --f: 0.4; }
  .gras { left: -65vw; right: -65vw; }
  .gras img { bottom: calc(-52vw + 1vh); }
  .dunst { background: linear-gradient(transparent 52%, color-mix(in srgb, var(--nebel) 94%, transparent) 74%); }
}
@media (orientation: portrait) and (min-width: 600px) { .s-haus .kasten { bottom: 18vh; } }   /* Tablet hochkant: das Dach liegt unter der Überschrift, nicht dahinter */
@media (max-height: 520px) and (orientation: landscape) {
  .start { min-height: 0; padding-top: calc(var(--kopf-h) - 6px); padding-bottom: 12px; }
  .schalter--gross button { min-height: 50px; } .schalter--gross small { display: none; }
  .was { display: none; } .knopf { min-height: 44px; } .dock { gap: 8px; }
  .anzeige .az { display: none; } .uhr { margin: 0; }
}

/* ---------- Ruhige Fassung ---------- */
.ruhig .szene { transition: opacity .5s; opacity: 0; } .ruhig .szene.ist-da { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .tafel > *, .js .anfrage-tafel { opacity: 1; transform: none; transition: none; }
  .js .tafel { --da: 1; } .balken i, .knopf, .knopf::before, .menue a { transition: none; }
  h1 { transform: none; opacity: 1; } .dock { opacity: 1; }
}

/* ---------- Seite „Rechtliches“ ---------- */
.recht { background: #F3EFE6; color: #17212B; }
.recht .kopf { position: static; }
.recht main { max-width: 46rem; margin: 0 auto; padding: var(--a4) var(--rand) var(--a6); }
.recht h1 { text-align: left; font-size: var(--g-ueber); margin-bottom: var(--a3); transform: none; opacity: 1; }
.recht h2 { font-size: 1.375rem; margin: var(--a4) 0 var(--a1); }
.recht dl { margin: 0; display: grid; gap: 10px; }
.recht dt { font-weight: 600; font-size: var(--g-klein); } .recht dd { margin: 0; }
.recht .offen { background: #FFE2C7; padding: 1px 6px; border-radius: 6px; }
.recht .block { display: block; padding: 12px 14px; margin-bottom: var(--a3); }
.recht .knopf { min-height: 44px; }
