/* Malermeister Biermann, Gestaltungsentwurf von Siteartist.
   Richtung: Farbe und Handwerk. Farbflaechen wie Farbkarten, eine Schrift (Archivo) in vielen Breiten.
   Farben aus dem echten Logo abgeleitet: Blau, Gruen, Rot, Gelb, Schiefer. */

@font-face {
  font-family: "Archivo";
  src: url("../schriften/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --schiefer: #232831;
  --schiefer-2: #303d48;
  --kalk: #f2f3f0;
  --kalk-2: #e6e8e3;
  --blau: #0f5c94;
  --gruen: #1d6b4f;
  --rot: #c8323b;
  --gelb: #f2b32a;
  --leise: #5b6168;
  --ton: #0f5c94;
  --rand: 2px;
  --seite: clamp(16px, 4vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-roll: cubic-bezier(0.65, 0, 0.2, 1);
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none; scrollbar-gutter: stable; }
html.szene-sperre, html.szene-sperre body { overflow: hidden; touch-action: none; overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--schiefer);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(17px, 0.35vw + 15.6px, 19px);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.leise { color: var(--leise); font-size: 0.82em; }

:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
::selection { background: var(--gelb); color: var(--schiefer); }
html { scrollbar-color: var(--schiefer-2) var(--kalk-2); accent-color: var(--blau); caret-color: var(--blau); }

.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--schiefer); color: #fff; padding: 10px 14px; border-radius: var(--rand);
}
.sprung:focus { top: 12px; }

/* ------------------------------------------------------------ Kopf: Logo frei, rechts ein Farbtopf-Deckel als Menueknopf */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 41;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--seite) 12px;
  pointer-events: none;
}
.kopf > * { pointer-events: auto; }
/* Ueber Abschnitten ohne Film bekommt die Kopfzone einen Grund in der Farbe des Abschnitts darunter:
   so hoch wie Logo plus Luft, unten weich auslaufend, nichts haengt heraus. */
.kopf::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 26px); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--kopf-grund, transparent) 0, var(--kopf-grund, transparent) calc(100% - 30px), transparent 100%);
  opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.kopf.mit-grund::before { opacity: 1; }
.kopf.weg:not(.menue-auf)::before { transform: translateY(-100%); }
.kopf.menue-auf::before { opacity: 0; }
.kopf-marke, .kopf-anfrage, .deckel { transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.kopf.weg:not(.menue-auf) .kopf-marke, .kopf.weg:not(.menue-auf) .kopf-rechts > * { transform: translateY(-170%); }
.kopf-marke { position: relative; display: block; width: 124px; aspect-ratio: 150 / 89; }
.kopf-marke img { position: absolute; inset: 0; width: 100%; height: auto; transition: opacity 0.35s; }
.kopf .marke-hell { opacity: 0; }
.kopf.auf-dunkel .marke-hell { opacity: 1; }
.kopf.auf-dunkel .marke-dunkel { opacity: 0; }
.kopf-rechts { display: flex; align-items: center; gap: 18px; }
.kopf-anfrage {
  font-size: 15px; font-weight: 620; text-decoration: none; color: var(--schiefer);
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px; transition: color 0.35s, background-size 0.3s var(--ease-out);
}
.kopf.auf-dunkel .kopf-anfrage { color: #fff; }
@media (hover: hover) and (pointer: fine) { .kopf-anfrage:hover { background-size: 40% 2px; } }

/* Menueknopf: eine kleine Farbkarte aus den sechs Menue-Streifen, daneben das Wort in der Menueschrift */
.deckel {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 4px 8px 8px;
  border: 0; background: none; color: var(--schiefer); border-radius: var(--rand); -webkit-tap-highlight-color: transparent;
}
.kopf.auf-dunkel .deckel { color: #fff; }
.knopf-faecher { position: relative; display: grid; gap: 2px; width: 30px; }
.knopf-faecher i {
  display: block; height: 4px; border-radius: 1px; background: var(--f); transform-origin: 0 50%;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12);
  transition: transform 0.45s var(--ease-out), opacity 0.3s; transition-delay: calc(var(--i) * 25ms);
}
.knopf-wort { position: relative; display: grid; font-size: 17px; line-height: 1; font-weight: 820; font-stretch: 118%; letter-spacing: -0.01em; }
.knopf-wort > span { transition: opacity 0.25s, transform 0.35s var(--ease-out); white-space: nowrap; }
.knopf-wort .w-zu { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(6px); }
.deckel[aria-expanded="true"] .knopf-wort { min-width: 5.6em; }
@media (hover: hover) and (pointer: fine) {
  /* Hover: die Streifen faechern sich leicht versetzt auf wie eine Farbkarte */
  .deckel:hover .knopf-faecher i { transform: translateX(calc(var(--i) * 2px)) rotate(calc(var(--i) * -5deg)); }
}
.deckel:active .knopf-faecher { transform: scale(0.94); }
/* Offen: die Streifen rollen nach rechts weg ins grosse Menue, Tannengruen und Senfgelb bilden das X */
.deckel[aria-expanded="true"] .knopf-faecher i { transform: scaleX(0); opacity: 0; transition-delay: calc(var(--i) * 30ms); }
.deckel[aria-expanded="true"] .knopf-faecher i:first-child { transform: translateY(15px) rotate(45deg); opacity: 1; transition-delay: 0.12s; }
.deckel[aria-expanded="true"] .knopf-faecher i:last-child { transform: translateY(-15px) rotate(-45deg); opacity: 1; transition-delay: 0.12s; }
.deckel[aria-expanded="true"] .knopf-faecher i:first-child, .deckel[aria-expanded="true"] .knopf-faecher i:last-child { transform-origin: 50% 50%; }
.deckel[aria-expanded="true"] .knopf-wort .w-auf { opacity: 0; transform: translateY(-6px); }
.deckel[aria-expanded="true"] .knopf-wort .w-zu { opacity: 1; transform: none; }
.kopf.menue-auf .deckel { color: #fff; }

/* ------------------------------------------------------------ Vollbild-Menue: Farbstreifen wie eine aufgefaecherte Farbkarte */
html.menue-offen, html.menue-offen body { overflow: hidden; }
.menue { position: fixed; inset: 0; z-index: 40; background: rgba(35, 40, 49, 0); transition: background-color 0.35s; padding-top: 96px; }
.kopf.menue-auf .kopf-anfrage { opacity: 0; pointer-events: none; }
.menue[hidden] { display: none; }
.menue.auf { background: rgba(35, 40, 49, 0.98); }
.menue nav { height: 100%; }
.menue-liste { list-style: none; margin: 0; padding: 0; height: 100%; display: grid; grid-auto-rows: 1fr; }
.menue-liste li {
  background: var(--f); clip-path: inset(0 100% 0 0);
  transition: clip-path 0.62s var(--ease-roll); transition-delay: calc(var(--i) * 55ms);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(0,0,0,0.12));
}
.menue.auf .menue-liste li { clip-path: inset(0 0 0 0); }
.menue.zu .menue-liste li { clip-path: inset(0 0 0 100%); transition-duration: 0.45s; transition-delay: calc((5 - var(--i)) * 40ms); }
.menue-liste a {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 calc(var(--seite) + 72px) 0 var(--seite); color: #fff; text-decoration: none; outline-offset: -6px;
}
.menue-liste b {
  font-size: clamp(2rem, 5.2vw, 5.4rem); line-height: 1; font-weight: 820; font-stretch: 118%; letter-spacing: -0.02em;
  transform: translateX(-24px); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.4s; transition-delay: calc(var(--i) * 55ms + 0.18s);
}
.menue-text { display: grid; gap: 6px; }
.menue-ton { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; opacity: 0; transition: opacity 0.4s; transition-delay: calc(var(--i) * 55ms + 0.3s);
  padding: 4px 10px; border-radius: var(--rand); background: rgba(255,255,255,0.16); }
.menue.auf .menue-ton { opacity: 0.9; }
.menue-anfrage .menue-ton { background: rgba(35,40,49,0.12); }
.menue-liste small { font-size: 15px; font-weight: 560; opacity: 0; transition: opacity 0.4s; transition-delay: calc(var(--i) * 55ms + 0.3s); }
.menue.auf .menue-liste b { transform: none; opacity: 1; }
.menue.auf .menue-liste small { opacity: 0.85; }
.menue.zu .menue-liste b, .menue.zu .menue-liste small { opacity: 0; transition-delay: 0s; transition-duration: 0.2s; }
@media (hover: hover) and (pointer: fine) {
  .menue-liste a:hover b { transform: translateX(14px); transition-delay: 0s; }
}
.menue-liste a:focus-visible { outline: 3px solid #fff; }
.menue-anfrage a { color: var(--schiefer); }
.menue-anfrage a:focus-visible { outline-color: var(--schiefer); }

/* ------------------------------------------------------------ Film */
.film { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #2b2d2f; color: #fff; }
.film-buehne, .film-buehne > * { position: absolute; inset: 0; }
.film-poster img, .film-ende img { width: 100%; height: 100%; object-fit: cover; }
.film-ende { opacity: 0; }
.film-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s; }
.film.hat-video .film-video { opacity: 1; }
.film.ist-ende .film-ende { opacity: 1; }
.film-wisch { background: center / cover no-repeat; clip-path: inset(0 100% 0 0); pointer-events: none; }
.film-wisch.laeuft { animation: wisch 0.95s var(--ease-roll) both; }
@keyframes wisch { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.film-schleier {
  background:
    linear-gradient(to top, rgba(18, 20, 24, 0.78) 0%, rgba(18, 20, 24, 0.34) 30%, rgba(18, 20, 24, 0) 55%),
    linear-gradient(to bottom, rgba(18, 20, 24, 0.35), rgba(18, 20, 24, 0) 22%);
  pointer-events: none;
}
.film-text {
  position: absolute; left: var(--seite); right: var(--seite);
  bottom: calc(clamp(96px, 13vh, 132px) + env(safe-area-inset-bottom));
  pointer-events: none;
}
.kap { position: absolute; left: 0; bottom: 0; max-width: min(64rem, 92%); }
.kap-zeile {
  font-size: clamp(15px, 1.1vw, 18px); font-weight: 560; letter-spacing: 0.01em;
  margin-top: 1.1em; display: inline-block; padding: 3px 10px; background: rgba(255,255,255,0.14);
  border-radius: var(--rand);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.kap-titel {
  font-size: clamp(2.5rem, 6.4vw, 7rem); line-height: 0.94; font-weight: 820; letter-spacing: -0.02em;
  font-stretch: 118%;
  text-wrap: balance;
}
.szene-1 .kap[data-k="0"] .kap-titel { font-size: clamp(2.9rem, 7.4vw, 8rem); }
/* Szene 2: der Kick weiter unten. Riesige Schrift, eine Farbrolle gibt den Raum frei. */
.szene-2 .kap { max-width: 100%; }
.szene-2 .kap-titel { font-size: clamp(3rem, 11vw, 13rem); line-height: 0.88; font-stretch: 112%; letter-spacing: -0.03em; }
.szene-farbe { position: absolute; inset: 0; display: flex; overflow: hidden; }
/* Drei grosse Farbkarten-Streifen in den Toenen der Szene: Tapete, Eiche, Senf. Sie fallen nacheinander und geben den Raum frei. */
.szene-farbe span {
  flex: 1; background: var(--f); transform: translateY(0);
  background-image: linear-gradient(to top, rgba(0,0,0,0.18), rgba(0,0,0,0) 18%), radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.5px);
  background-size: auto, 9px 9px;
}
.szene-2.rollt .szene-farbe span { animation: streifen-fallen 1.25s var(--ease-roll) forwards; animation-delay: calc(var(--i) * 140ms); }
.szene-2.offen .szene-farbe span { transform: translateY(101%); }
@keyframes streifen-fallen { from { transform: translateY(0); } to { transform: translateY(101%); } }
.szene-2:not(.offen) .film-text { color: var(--schiefer); }
.szene-2:not(.offen) .kap-zeile { background: rgba(35,40,49,0.12); }
.szene-2:not(.offen) .film-karten .k, .szene-2:not(.offen) .film-weiter { color: rgba(35,40,49,0.75); }
.szene-2:not(.offen) .film-karten i { background: rgba(35,40,49,0.2); }
.szene-2 .film-text { transition: color 0.6s 0.5s; }
.szene-2:not(.offen) .film-schleier { opacity: 0; }
.szene-2 .film-schleier { transition: opacity 0.8s 0.4s; }
/* Die Schrift steht von Anfang an in ihrer Endbreite (Umbruch bleibt fest, Lukas 25.10.2026);
   das Aufrollen ist nur optisch: Maske von links plus Stauchen per transform, das den Satz nie neu umbricht. */
.roll {
  display: inline-block;
  clip-path: inset(-0.2em 100% -0.2em 0);
  transform: scaleX(0.62);
  transform-origin: 0 50%;
  transition: clip-path 0.9s var(--ease-roll), transform 1.1s var(--ease-roll);
}
.kap .roll + .roll { transition-delay: 0.12s; }
.kap.ist-an .roll { clip-path: inset(-0.2em -0.05em -0.2em 0); transform: none; }
.kap.ist-an .kap-zeile { opacity: 1; transform: none; }
.kap.geht .roll { clip-path: inset(-0.2em 0 -0.2em 100%); transform: none; transition-duration: 0.5s, 0.5s; transition-delay: 0s; }
.kap.geht .kap-zeile { opacity: 0; transition-duration: 0.25s; }

.film-karten {
  position: absolute; right: var(--seite); bottom: calc(28px + env(safe-area-inset-bottom));
  display: flex; gap: 6px; margin: 0; padding: 0; list-style: none;
}
.film-karten .k {
  display: grid; gap: 6px; justify-items: start;
  width: 84px; padding: 0; text-align: left;
  font-size: 13px; font-weight: 560; color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s;
}
.film-karten i {
  display: block; width: 100%; height: 10px; border-radius: var(--rand);
  background: rgba(255, 255, 255, 0.22); position: relative; overflow: hidden;
}
.film-karten i::after {
  content: ""; position: absolute; inset: 0; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-roll);
}
.film-karten .k.ist-fertig i::after { transform: scaleX(1); }
.film-karten .k[aria-current] { color: #fff; }
.film-karten .k[aria-current] i { box-shadow: 0 0 0 2px #fff; }
.film-weiter {
  position: absolute; left: var(--seite); bottom: calc(30px + env(safe-area-inset-bottom));
  background: none; border: 0; padding: 6px 0; color: rgba(255, 255, 255, 0.78);
  font-size: 14px; font-weight: 560; text-decoration: underline; text-underline-offset: 4px;
}
.film-weiter:hover { color: #fff; }
.film-lader { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.12); }
.film-lader span { display: block; height: 100%; width: 100%; background: var(--gelb); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.film-lader.fertig { opacity: 0; transition: opacity 0.6s 0.4s; }

/* ------------------------------------------------------------ Auftakt */
.auftakt { padding: clamp(96px, 16vh, 180px) var(--seite) clamp(80px, 12vh, 140px); }
.auftakt-titel {
  font-size: clamp(2.2rem, 5.4vw, 5.6rem); line-height: 1.0; font-weight: 800; letter-spacing: -0.02em;
  font-stretch: 112%; max-width: 20ch;
}
.wort-farbe .w { color: #b7bbb6; transition: color 0.5s; transition-delay: calc(var(--i) * 28ms); }
.wort-farbe.ist-da .w { color: var(--schiefer); }
.wort-farbe .w.akzent { position: relative; }
.wort-farbe.ist-da .w.akzent { color: var(--blau); }
.auftakt-fuss {
  display: grid; grid-template-columns: repeat(2, minmax(0, 32rem)); gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(40px, 7vh, 72px);
  color: #3b4148;
}

/* ------------------------------------------------------------ Farbwaehler */
.farbe {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(56px, 9vh, 110px) var(--seite);
  background: color-mix(in srgb, var(--ton) 13%, var(--kalk));
  transition: background-color 0.9s;
}
.farbe-raum { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--rand); background: #444; }
.farbe-basis { width: 100%; height: 100%; object-fit: cover; }
.farbe-ton {
  position: absolute; inset: 0; background: var(--ton);
  mix-blend-mode: multiply;
  -webkit-mask: url("../bilder/farbwahl-maske.webp") center / cover no-repeat;
  mask: url("../bilder/farbwahl-maske.webp") center / cover no-repeat;
}
.farbe-ton-alt { opacity: 0; }
.farbe-ton-alt.rollt { opacity: 1; animation: rollen-weg 1.05s var(--ease-roll) both; }
@keyframes rollen-weg { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
.farbe-ton-neu { clip-path: inset(0 0 0 0); }
.farbe-ton-neu.rollt { animation: rollen 1.05s var(--ease-roll) both; }
@keyframes rollen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.farbe-rolle {
  position: absolute; top: 18%; bottom: 33%; width: 22px; left: 0; opacity: 0; pointer-events: none;
}
.farbe-rolle span {
  display: block; height: 100%; width: 100%; border-radius: 11px;
  background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(255,255,255,0.18) 40%, rgba(0,0,0,0.15)), var(--ton-neu, var(--ton));
  box-shadow: 4px 0 14px rgba(0,0,0,0.3);
}
.farbe-rolle.rollt { animation: rolle-fahrt 1.05s var(--ease-roll) both; }
@keyframes rolle-fahrt {
  0% { opacity: 0; transform: translateX(-30px); }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--weg, 800px)); }
}
.farbe-text h2 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); line-height: 1.02; font-weight: 780; font-stretch: 106%; letter-spacing: -0.015em; }
.farbe-text > p { margin-top: 18px; max-width: 34rem; }
.farbe-karte { border: 0; padding: 0; margin: 28px 0 0; }
.farbe-karte legend { font-weight: 640; font-size: 15px; margin-bottom: 12px; }
.farbe-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.farbe-chips label { position: relative; display: block; cursor: pointer; }
.farbe-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.farbe-chips span {
  display: flex; align-items: flex-end; min-height: 76px; padding: 8px 10px;
  background: #fff; border-radius: var(--rand); font-size: 14px; font-weight: 600;
  box-shadow: inset 0 46px 0 0 var(--c), 0 1px 0 rgba(0,0,0,0.06);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
@media (hover: hover) and (pointer: fine) { .farbe-chips label:hover span { transform: translateY(-3px); } }
.farbe-chips input:checked + span { box-shadow: inset 0 46px 0 0 var(--c), 0 0 0 2px var(--schiefer); transform: translateY(-3px); }
.farbe-chips input:focus-visible + span { outline: 3px solid var(--gelb); outline-offset: 3px; }
.farbe-name {
  margin-top: 26px; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 860; font-stretch: 125%; line-height: 1;
  color: color-mix(in srgb, var(--ton) 68%, var(--schiefer)); transition: color 0.9s; overflow: hidden;
}
.farbe-name span { display: inline-block; transform-origin: 0 50%; }
.farbe-name span.neu { animation: name-rein 0.7s var(--ease-out) both; }
@keyframes name-rein { from { transform: translateY(100%) scaleX(0.62); } to { transform: none; } }
.farbe-text .leise { margin-top: 10px; }

/* ------------------------------------------------------------ Faecher */
.faecher { background: var(--schiefer); color: #fff; padding: clamp(72px, 11vh, 130px) var(--seite) clamp(56px, 9vh, 110px); overflow: hidden; }
.faecher-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.faecher-kopf h2 { font-size: clamp(2.2rem, 5vw, 5rem); line-height: 0.98; font-weight: 820; font-stretch: 116%; letter-spacing: -0.02em; max-width: 14ch; }
.schalter, .faecher-schalter, .vergleich-schalter, .schicht-schalter {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--rand); background: rgba(255,255,255,0.1);
}
.faecher-schalter button, .vergleich-schalter button, .schicht-schalter button {
  border: 0; background: none; padding: 9px 16px; border-radius: var(--rand); font-weight: 600; font-size: 15px;
  transition: background-color 0.25s, color 0.25s;
}
.faecher-schalter [aria-selected="true"] { background: #fff; color: var(--schiefer); }
.faecher-buehne {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr); gap: clamp(24px, 4vw, 64px);
  align-items: end; margin-top: clamp(28px, 5vh, 56px);
}
.faecher-faecher { position: relative; height: clamp(440px, 64vh, 640px); outline: none; }
.faecher-faecher:focus-visible { outline: 3px solid var(--gelb); outline-offset: 6px; }
.streifen {
  --w: clamp(62px, 6.2vw, 96px);
  position: absolute; left: 50%; bottom: 26px; width: var(--w); height: var(--h, calc(100% - 40px));
  margin-left: calc(var(--w) / -2);
  transform-origin: 50% calc(100% - 26px);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transition: transform 0.32s var(--ease-out), opacity 0.3s, filter 0.3s;
  border-radius: var(--rand); overflow: hidden; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6);
  display: grid; grid-template-rows: 2.7fr repeat(4, 1fr) 0.5fr;
  background: #fff;
}
.streifen b { display: block; background: var(--f); }
.streifen b:nth-child(2) { background: color-mix(in srgb, var(--f) 76%, #fff); }
.streifen b:nth-child(3) { background: color-mix(in srgb, var(--f) 55%, #fff); }
.streifen b:nth-child(4) { background: color-mix(in srgb, var(--f) 36%, #fff); }
.streifen b:nth-child(5) { background: color-mix(in srgb, var(--f) 80%, #000); }
.streifen b:first-child { position: relative; }
.streifen em {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); writing-mode: vertical-rl;
  font-style: normal; font-size: clamp(12px, 1vw, 14px); font-weight: 640; color: var(--t, #fff); white-space: nowrap;
  max-height: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis;
}
.streifen .niet { background: #fff; position: relative; }
.streifen .niet::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #b9bdc2; box-shadow: inset 0 1px 2px rgba(0,0,0,0.4); }
.faecher-faecher.oeffnet .streifen { transition-duration: 0.9s, 0.4s, 0.4s; transition-delay: calc(var(--i) * 45ms); }
.faecher-faecher.links .streifen { left: calc(var(--w) / 2 + 6px); }
.streifen.gedreht em { transform: translateX(-50%) rotate(180deg); top: auto; bottom: 12px; }
.streifen.ist-weg { opacity: 0.18; filter: saturate(0.3); }
.streifen.ist-wahl { --y: -34px; z-index: 5; box-shadow: 0 0 0 3px #fff, 0 20px 40px -10px rgba(0,0,0,0.7); }
.faecher-info { padding-bottom: 26px; }
.faecher-bereich { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.65); }
.faecher-info h3 { margin-top: 8px; font-size: clamp(1.8rem, 2.8vw, 2.8rem); line-height: 1.02; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
.faecher-info h3::before { content: ""; display: block; width: 56px; height: 8px; border-radius: var(--rand); background: var(--f, var(--gelb)); margin-bottom: 18px; transition: background-color 0.4s; }
.faecher-was { margin-top: 16px; color: rgba(255,255,255,0.86); max-width: 32rem; }
.faecher-info.wechsel h3, .faecher-info.wechsel .faecher-was { animation: info-rein 0.26s var(--ease-out) both; }
@keyframes info-rein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.faecher-daten { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.js .faecher-daten { display: none; }
.faecher-daten li::before { content: attr(data-name) ": "; font-weight: 700; }

/* ------------------------------------------------------------ Vergleich */
.vergleich { padding: clamp(72px, 11vh, 130px) var(--seite); }
.vergleich-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.vergleich-kopf h2 { font-size: clamp(2.6rem, 7vw, 7.4rem); line-height: 0.9; font-weight: 860; font-stretch: 122%; letter-spacing: -0.025em; }
.vergleich-schalter { background: var(--kalk-2); }
.vergleich-schalter [aria-selected="true"], .schicht-schalter [aria-selected="true"] { background: var(--schiefer); color: #fff; }
.vergleich-feld {
  --v: 50%;
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--rand);
  width: min(100%, calc(82svh * 1.6)); margin: 0 auto;
  background: #888; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.vergleich-feld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.v-vorher-rahmen { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--v)) 0 0); }
.v-griff { position: absolute; top: 0; bottom: 0; left: var(--v); width: 0; }
.v-griff::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,0.35); }
.v-griff span {
  position: absolute; top: 50%; left: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--gelb); box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  display: grid; place-items: center;
}
.v-griff span::before, .v-griff span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.v-griff span::before { left: 14px; border-right: 9px solid var(--schiefer); }
.v-griff span::after { right: 14px; border-left: 9px solid var(--schiefer); }
.v-regler { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.v-regler:focus-visible ~ .v-griff span, .vergleich-feld:has(.v-regler:focus-visible) .v-griff span { outline: 3px solid #fff; outline-offset: 3px; }
.v-marke {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: var(--rand); font-size: 14px; font-weight: 640;
  background: rgba(255,255,255,0.92); color: var(--schiefer);
}
.v-marke-links { left: 16px; }
.v-marke-rechts { right: 16px; background: var(--schiefer); color: #fff; }
.vergleich-text { width: min(100%, calc(82svh * 1.6)); margin-left: auto; margin-right: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 22px; }
.vergleich-text .v-text { max-width: 44rem; }

/* ------------------------------------------------------------ Schichten */
.schicht {
  display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  background: var(--gruen); color: #fff; padding: clamp(72px, 11vh, 130px) var(--seite); overflow: hidden;
}
.schicht h2 { font-size: clamp(2.4rem, 5.4vw, 5.6rem); line-height: 0.95; font-weight: 840; font-stretch: 120%; letter-spacing: -0.02em; }
.schicht-schalter { margin-top: 26px; background: rgba(255,255,255,0.12); }
.schicht-schalter [aria-selected="true"] { background: #fff; color: var(--gruen); }
.schicht-satz { margin-top: 20px; max-width: 34rem; color: rgba(255,255,255,0.9); }
.schicht-liste { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: lage; }
.schicht-liste li {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: var(--rand);
  font-weight: 600; cursor: default; transition: background-color 0.25s; counter-increment: lage;
}
.schicht-liste li::before {
  content: ""; width: 26px; height: 18px; border-radius: var(--rand); background: var(--f); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.schicht-liste li:hover, .schicht-liste li:focus-visible, .schicht-liste li.ist-hell { background: rgba(255,255,255,0.14); }
.schicht-regler-feld { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; font-weight: 600; }
.schicht-regler, .holz input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; max-width: 260px; height: 28px; background: transparent; }
.schicht-regler::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.3); }
.schicht-regler::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.3); }
.schicht-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--gelb); border: 0; box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
.schicht-regler::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--gelb); border: 0; }
.schicht .leise { color: rgba(255,255,255,0.7); margin-top: 14px; }
.schicht-bild { position: relative; aspect-ratio: 1; width: 100%; max-width: 760px; justify-self: center; }
.lage {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translate(calc(var(--n) * var(--e) * 9.5% - var(--e) * 19%), calc(var(--n) * var(--e) * 4.5% - var(--e) * 9%));
  transition: opacity 0.35s, filter 0.35s;
}
.schicht-bild.gleitet .lage { transition: transform 1.4s var(--ease-out), opacity 0.35s, filter 0.35s; }
.schicht-bild.dimmt .lage:not(.ist-hell) { opacity: 0.28; filter: saturate(0.4); }
.lage.rein { animation: lage-rein 0.7s var(--ease-out) both; animation-delay: calc(var(--n) * 90ms); }
@keyframes lage-rein { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }

/* ------------------------------------------------------------ Holz */
.holz {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  background: var(--gelb); padding: clamp(72px, 11vh, 130px) var(--seite);
}
.holz-feld { position: relative; aspect-ratio: 16 / 10; border-radius: var(--rand); overflow: hidden; background: #6f6a62; touch-action: pan-y; cursor: crosshair; }
.holz-feld img, .holz-leinwand { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.holz-hinweis {
  position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: var(--rand);
  background: rgba(255,255,255,0.92); font-size: 14px; font-weight: 620; transition: opacity 0.4s; pointer-events: none;
}
.holz-feld.benutzt .holz-hinweis { opacity: 0; }
.holz-text h2 { font-size: clamp(2.4rem, 5vw, 5rem); line-height: 0.95; font-weight: 840; font-stretch: 118%; letter-spacing: -0.02em; }
.holz-text p { margin-top: 18px; max-width: 32rem; }
.holz-liste { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.holz-liste li { padding: 6px 12px; border-radius: var(--rand); background: rgba(35, 40, 49, 0.1); font-weight: 600; font-size: 15px; }
.holz-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.knopf, .knopf-leise {
  border: 0; border-radius: var(--rand); padding: 13px 18px; font-weight: 640; font-size: 15px;
  transition: transform 0.18s var(--ease-out), background-color 0.2s;
}
.knopf { background: var(--schiefer); color: #fff; }
.knopf-leise { background: transparent; box-shadow: inset 0 0 0 2px var(--schiefer); }
.knopf:active, .knopf-leise:active { transform: scale(0.97); }

/* ------------------------------------------------------------ Werte */
.werte { padding: clamp(80px, 13vh, 150px) var(--seite); }
.werte-frage { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 650; font-stretch: 100%; }
.werte-woerter { list-style: none; margin: 26px 0 0; padding: 0; }
.werte-woerter li { overflow: hidden; }
.werte-woerter span {
  position: relative; display: inline-block; padding: 0.02em 0.14em 0.06em;
  font-size: clamp(2.8rem, 8.2vw, 9.4rem); line-height: 0.92; font-weight: 880; font-stretch: 116%; letter-spacing: -0.03em;
  color: var(--schiefer); z-index: 0;
  transition: color 0.4s; transition-delay: calc(var(--i, 0) * 160ms + 0.45s);
}
.werte-woerter span::before {
  content: ""; position: absolute; inset: 0.08em 0 0.04em; background: var(--c); z-index: -1; border-radius: var(--rand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease-roll); transition-delay: calc(var(--i, 0) * 160ms);
}
.werte.ist-da .werte-woerter span { color: #fff; }
.werte.ist-da .werte-woerter span::before { transform: scaleX(1); }
.werte-woerter li:nth-child(even) { text-align: right; }
.werte-text { display: grid; grid-template-columns: repeat(2, minmax(0, 32rem)); gap: clamp(24px, 4vw, 72px); margin-top: clamp(40px, 7vh, 72px); color: #3b4148; }

/* ------------------------------------------------------------ Fuss */
.fuss { background: var(--schiefer); color: #fff; padding: clamp(80px, 13vh, 150px) var(--seite) clamp(28px, 5vh, 56px); overflow: hidden; }
.fuss-ruf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.fuss-satz { font-size: clamp(1.8rem, 3.6vw, 3.6rem); line-height: 1.02; font-weight: 800; font-stretch: 112%; max-width: 16ch; letter-spacing: -0.015em; }
.gross-knopf {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  min-width: 220px; min-height: 220px; padding: 24px; border-radius: 50%;
  background: var(--gelb); color: var(--schiefer); font-weight: 760; font-size: 19px; text-align: center; line-height: 1.15;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.gross-knopf span { display: block; max-width: 9ch; margin: 0 auto; text-align: center; transition: transform 0.5s var(--ease-out); }
.gross-knopf:hover { background: #fff; }
.fuss-zeile { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 16px 40px; margin-top: clamp(56px, 9vh, 96px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 15px; color: rgba(255,255,255,0.86); }
.fuss .leise { color: rgba(255,255,255,0.6); font-size: 14px; }
.fuss-zeile a { color: #fff; text-underline-offset: 3px; }
.fuss-kopf { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gelb); margin-bottom: 10px; }
.fuss-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fuss-nav a { display: inline-block; padding: 4px 0; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease-out); }
.fuss-nav a:hover, .fuss-nav a:focus-visible { background-size: 100% 1px; }
.fuss-nav a[aria-current="page"] { color: var(--gelb); }
.fuss-info p + p { margin-top: 6px; }
.fuss-entwurf { margin-top: 26px; font-size: 13px; }
.faecher-mehr { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 44px; color: #fff; font-weight: 700; text-decoration: none; }
.faecher-mehr::after { content: ""; width: 26px; height: 2px; background: var(--f, var(--gelb)); transition: width 0.35s var(--ease-out); }
.faecher-mehr:hover::after, .faecher-mehr:focus-visible::after { width: 44px; }

/* ------------------------------------------------------------ Einblenden beim Hereinkommen (spielt ganz ab) */
.js [data-ein] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-ein].ist-da { opacity: 1; transform: none; }
.js .bild-wachs { clip-path: inset(18% 22% 18% 22% round var(--rand)); transition: clip-path 1.2s var(--ease-roll); }
.js .bild-wachs.ist-da { clip-path: inset(0 0 0 0 round var(--rand)); }

/* ------------------------------------------------------------ Handy */
@media (max-width: 900px) {
  .kopf-marke { width: 100px; }
  .kopf-anfrage { font-size: 14px; }
  /* Daumen: der Deckel sitzt unten rechts und bleibt immer da */
  .deckel {
    position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 46px; padding: 10px 14px 10px 12px; gap: 10px;
    background: var(--schiefer); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(20,24,30,0.7);
  }
  .knopf-wort { font-size: 15px; }
  .kopf.weg:not(.menue-auf) .kopf-rechts > .deckel { transform: none; }
  .film-karten { right: calc(var(--seite) + 104px) !important; }
  .film-weiter { left: var(--seite); }
  .menue-liste a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 var(--seite); }
  .menue { padding-top: calc(84px + env(safe-area-inset-top)); }
  .menue-liste li:last-child a { padding-right: 96px; padding-bottom: env(safe-area-inset-bottom); }
  .menue-liste b { font-size: clamp(1.6rem, 8.6vw, 2.6rem); font-stretch: 108%; }
  .menue-liste small { font-size: 13px; text-align: left; max-width: none; }
  .menue-ton { display: none; }
  .film-text { bottom: calc(110px + env(safe-area-inset-bottom)); }
  .kap { max-width: 100%; }
  .kap-titel { font-size: clamp(2.2rem, 10.4vw, 3.4rem); font-stretch: 108%; }
  .szene-1 .kap[data-k="0"] .kap-titel { font-size: clamp(2.6rem, 12.4vw, 3.9rem); }
  .szene-2 .kap-titel { font-size: clamp(2.4rem, 11.6vw, 4.4rem); font-stretch: 100%; }
  .szene-2 .kap.ist-an .roll, .szene-2 .kap.geht .roll { font-stretch: 100%; }
  .szene-2[data-kapitel="0"] .film-karten .k { color: rgba(255,255,255,0.75); }
  .szene-2:not(.offen) .film-karten .k { color: rgba(35,40,49,0.75); }
  .kap.ist-an .roll, .kap.geht .roll { font-stretch: 108%; }
  .film-karten { left: var(--seite); right: var(--seite); bottom: calc(46px + env(safe-area-inset-bottom)); gap: 4px; }
  .film-karten li { flex: 1; }
  .film-karten .k { width: 100%; font-size: 11px; color: transparent; }
  .film-karten .k[aria-current] { color: #fff; white-space: nowrap; }
  .film-weiter { bottom: calc(12px + env(safe-area-inset-bottom)); font-size: 13px; }
  .auftakt-fuss, .werte-text { grid-template-columns: 1fr; margin-left: 0; }
  .farbe, .faecher-buehne, .schicht, .holz { grid-template-columns: 1fr; }
  .farbe-raum { aspect-ratio: 4 / 3; }
  .faecher-faecher { height: 380px; }
  .streifen { --w: 48px; }
  .streifen em { font-size: 11px; }
  .faecher-info { padding-bottom: 0; }
  .vergleich-feld { aspect-ratio: 4 / 5; }
  .vergleich-feld[data-motiv="raum"] { aspect-ratio: 4 / 3; }
  .schicht-bild { order: -1; max-width: 520px; }
  .holz-feld { aspect-ratio: 4 / 3; }
  .werte-woerter span { font-size: clamp(2rem, 10.6vw, 5rem); font-stretch: 100%; }
  .fuss-zeile { grid-template-columns: 1fr; }
  .gross-knopf { min-width: 170px; min-height: 170px; font-size: 17px; }
}

/* ------------------------------------------------------------ Ruhig: ?foto und weniger Bewegung */
.ruhig .film-video, .ruhig .film-lader, .ruhig .film-weiter { display: none; }
.ruhig .film-poster { opacity: 0; }
.ruhig .film-ende { opacity: 1; }
.ruhig .kap { display: none; }
.ruhig .szene-1 .kap[data-k="0"], .ruhig .szene-2 .kap[data-k="3"] { display: block; }
.ruhig .kap .roll { clip-path: none; transform: none; transition: none; }
.ruhig .kap .kap-zeile { opacity: 1; transform: none; transition: none; }
.ruhig .szene-farbe { display: none; }
.ruhig .film-karten i::after { transform: scaleX(1); transition: none; }
.ruhig *, .ruhig *::before, .ruhig *::after { transition-duration: 0s !important; animation-duration: 0s !important; transition-delay: 0s !important; animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-delay: 0s !important; }
}
[tabindex="-1"]:focus { outline: none; }
.kap.sofort .roll, .kap.sofort .kap-zeile { transition: none !important; }

/* Runde 7: Rueckwaerts-Video liegt deckungsgleich ueber dem Vorwaerts-Video; Wechsel ohne Ueberblenden */
.film-video { transition: none; }
.film.hat-video .film-video-rueck { opacity: 0; }
.film.hat-video.zeigt-rueck .film-video { opacity: 0; }
.film.hat-video.zeigt-rueck .film-video-rueck { opacity: 1; }
.szene-2.rollt-zurueck .szene-farbe span { animation: streifen-steigen 1.25s var(--ease-roll) forwards; animation-delay: calc((2 - var(--i)) * 140ms); }
@keyframes streifen-steigen { from { transform: translateY(101%); } to { transform: translateY(0); } }

/* Runde 7, Handy: Bedienung direkt unter dem Bild (Grafik und Regler bzw. Knoepfe auf einem Bildschirm) */
@media (max-width: 900px) {
  .schicht { gap: 14px; }
  .schicht-text { display: contents; }
  .schicht h2 { order: 1; }
  .schicht-schalter { order: 2; margin-top: 4px; justify-self: start; }
  .schicht-bild { order: 3; max-width: min(100%, 52svh); width: 100%; }
  .schicht-regler-feld { order: 4; margin-top: -6px; justify-content: center; }
  .schicht-regler { max-width: none; }
  .schicht-satz { order: 5; margin-top: 6px; }
  .schicht-liste { order: 6; margin-top: 4px; }
  .schicht .leise { order: 7; margin-top: 0; }
  .holz { gap: 14px; }
  .holz-text { display: contents; }
  .holz-text h2 { order: 1; }
  .holz-feld { order: 2; }
  .holz-knoepfe { order: 3; margin-top: 0; }
  .holz-text p { order: 4; margin-top: 6px; }
  .holz-liste { order: 5; margin-top: 0; }
}

/* Runde 9: Bedienung IN der Grafik bzw. im Bild, damit Bild und Bedienung immer zusammen sichtbar sind */
.schicht-lagen { position: absolute; inset: 0; }
.schicht-bild .schicht-regler-feld {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); width: min(92%, 440px); margin: 0;
  display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 999px;
  background: rgba(16, 58, 42, 0.86); color: #fff; box-shadow: 0 10px 24px -14px rgba(0,0,0,0.6); z-index: 2;
}
.schicht-bild .schicht-regler { max-width: none; flex: 1; }
.holz-feld .holz-knoepfe {
  position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
}
.holz-feld .knopf-leise { background: rgba(255, 255, 255, 0.92); box-shadow: none; color: var(--schiefer); }
.holz-feld .knopf { box-shadow: 0 8px 20px -10px rgba(0,0,0,0.6); }
.holz-hinweis { top: 12px; bottom: auto; }
@media (max-width: 900px) {
  .schicht-bild { order: 3; max-width: 100%; }
  .schicht-bild .schicht-regler-feld { bottom: 2%; padding: 6px 12px; gap: 8px; font-size: 13px; }
  .holz-feld .holz-knoepfe { left: 8px; right: 8px; bottom: 8px; justify-content: space-between; }
  .holz-feld .knopf, .holz-feld .knopf-leise { padding: 11px 14px; font-size: 14px; }
}

/* Runde 9: beim Ausweichen faehrt die ganze Kopfzone vollstaendig aus dem Bild, nichts bleibt angeschnitten */
.kopf.weg:not(.menue-auf) .kopf-marke, .kopf.weg:not(.menue-auf) .kopf-rechts > * {
  transform: translateY(calc(-100% - 160px - env(safe-area-inset-top))); opacity: 0; pointer-events: none;
}
.kopf.weg:not(.menue-auf)::before { transform: translateY(calc(-100% - 40px)); opacity: 0; }
@media (max-width: 900px) {
  .kopf.weg:not(.menue-auf) .kopf-rechts > .deckel { transform: none; opacity: 1; pointer-events: auto; }
}

/* Runde 9, Handy (echte sichtbare Hoehe am S25-Brave: 360 x 593): Bild und Bedienung immer zusammen */
@media (max-width: 900px) {
  /* Farbwaehler: Ueberschrift, Raumbild, direkt darunter die neun Toene kompakt, Text danach */
  .farbe { gap: 12px; }
  .farbe-text { display: contents; }
  .farbe-text h2 { order: 1; font-size: clamp(1.5rem, 6.6vw, 2rem); }
  .farbe-bild { order: 2; }
  .farbe-karte { order: 3; margin-top: 0; }
  .farbe-karte legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .farbe-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .farbe-chips span { min-height: 50px; padding: 4px 5px; font-size: 10.5px; line-height: 1.1; box-shadow: inset 0 30px 0 0 var(--c), 0 1px 0 rgba(0,0,0,0.06); }
  .farbe-chips input:checked + span { box-shadow: inset 0 30px 0 0 var(--c), 0 0 0 2px var(--schiefer); }
  .farbe-name { order: 4; margin-top: 0; font-size: 1.6rem; }
  .farbe-text > p:not(.farbe-name) { order: 5; margin-top: 0; }
  .farbe-text .leise { order: 6; }
  /* Vorher/Nachher: quadratisch, damit Schalter und Bild zusammen passen */
  .vergleich-kopf { margin-bottom: 14px; }
  .vergleich-kopf h2 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .vergleich-feld { aspect-ratio: 1 / 1; }
  /* Faecher: Faecher und Erklaerung ohne Luecke untereinander */
  .faecher-buehne { gap: 10px; margin-top: 18px; }
  .faecher-faecher { height: 300px; }
  .faecher-info h3 { font-size: 1.5rem; margin-top: 4px; }
  .faecher-info h3::before { margin-bottom: 10px; }
  .faecher-was { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  /* Schichten und Holz: Ueberschrift knapp, Grafik direkt danach */
  .schicht h2, .holz-text h2 { font-size: clamp(2rem, 9.6vw, 2.6rem); }
}
