/* seite.css · KAPPE, Graffiti und Fassadenkunst, Linz (Beispiel). lp-201, gebaut 27.10.2026.
 * Idee: die Seite ist eine Wand. Der Kopf zeigt die fertige Wand bei Nacht, die Überschrift wird gesprüht, die Maus ist der
 * Baustrahler. Die Schlüsselszene fährt seitwärts an der Wand entlang, Nacht 1 bis 5, und die Wand malt sich dabei aus zwei
 * Fotos derselben Wand (roh und fertig). Danach: Entwurf, Preise (Regelbruch: die 180 ragt in den Rand), Lack-Wisch, Fächer
 * mit Workshops, Fragen, Anfrage. Bewegung nur mit transform, opacity, clip-path und Masken, gesteuert über --p aus bewegung.js. */

@font-face { font-family: "Bungee"; src: url("../fonts/bungee-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../fonts/saira-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../fonts/saira-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("../fonts/caveat-brush-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --t-riesig: clamp(2.4rem, 1.5rem + 3.3vw, 4.5rem);     /* Überschriften höchstens rund 4,5 rem (Martin) */
  --t-gross: clamp(1.6rem, 1.15rem + 1.7vw, 2.9rem);
  --kreide: #ece7da;
  --schrift-kreide: "Caveat Brush", "Segoe Print", cursive;
  --cyan: #1fc4e8;
  --blau: #1a3f9c;
}
h1, h2, h3 { font-weight: 400; letter-spacing: 0; line-height: 1.04; }
.marke { font-size: 1.25rem; letter-spacing: 0.04em; }
.kopfzeile .menue a { font-weight: 500; }
strong { font-weight: 500; color: var(--text); }
.abschnitt { overflow-x: clip; }   /* eingerückte Zeilen vor ihrer Bewegung ragen sonst rechts hinaus */
.abschnitt h2 { font-size: var(--t-gross); max-width: 16ch; }
.abschnitt-satz { max-width: 38rem; }

/* ===================================================================================================
   1 · Erster Bildschirm: die fertige Wand, Text links unten, die Maus ist der Baustrahler
   =================================================================================================== */
.anfang { --mx: 24%; --my: 46%; position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: end; padding-top: calc(var(--kopf-hoehe) + 24px); overflow: clip; }
.anfang-bild { position: absolute; inset: 0; z-index: -1; background: var(--grund); }
.anfang-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; transform: translate3d(0, calc(var(--p, 0) * 12vh), 0) scale(calc(1 + var(--p, 0) * 0.08)); transform-origin: 50% 100%; }
/* Abdunkelung aus dem Bild heraus, damit der Text links unten trägt: Verlauf, kein Kasten */
.anfang-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 22, 26, 0.86) 0%, rgba(21, 22, 26, 0.45) 38%, rgba(21, 22, 26, 0) 68%), linear-gradient(0deg, rgba(21, 22, 26, 0.96) 0%, rgba(21, 22, 26, 0.55) 28%, rgba(21, 22, 26, 0) 55%); }
/* Der Baustrahler: alles außerhalb des Lichtkegels liegt in der Nacht, der Kegel folgt der Maus (licht.js setzt --mx/--my) */
.anfang-licht { position: absolute; inset: 0; background: radial-gradient(ellipse 34vw 46vh at var(--mx) var(--my), rgba(21, 22, 26, 0) 0%, rgba(21, 22, 26, 0.1) 45%, rgba(21, 22, 26, 0.62) 100%); transition: opacity 0.6s ease; }
.anfang-text { position: relative; max-width: 46rem; padding-bottom: clamp(56px, 10vh, 120px); transform: translate3d(0, calc(var(--p, 0) * -8vh), 0); opacity: calc(1 - var(--p, 0) * 1.4); }
.anfang-tag { font-family: var(--schrift-kreide); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); color: var(--akzent); line-height: 1; transform: rotate(-5deg); transform-origin: 0 100%; margin-bottom: 0.1em; display: inline-block; }
.titel { position: relative; color: var(--kreide); font-size: var(--t-riesig); line-height: 1.02; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.titel-zeile { display: inline; }
.sprueht .titel { color: transparent; text-shadow: none; }          /* der Canvas zeigt die gesprühte Fassung; der Text bleibt da */
.titel-spray { position: absolute; left: 0; top: 0; pointer-events: none; display: none; }
.sprueht .titel-spray { display: block; }
html:not(.js) .titel-spray { display: none; }
.unterzeile { max-width: 32rem; color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.beleg { max-width: 34rem; color: var(--text-2); }
.beruhigung { color: var(--text-2); }
.anfang-hinweis { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; font-size: 0.85rem; color: var(--text-2); opacity: calc(1 - var(--p, 0) * 3); padding-top: 26px; }
.anfang-hinweis::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 18px; background: var(--akzent); }
@media (max-width: 899px) {
  .anfang-bild img { object-position: 52% 50%; }
  .anfang-bild::after { background: linear-gradient(0deg, rgba(21, 22, 26, 0.97) 0%, rgba(21, 22, 26, 0.75) 42%, rgba(21, 22, 26, 0.15) 68%, rgba(21, 22, 26, 0.35) 100%); }
  .anfang-licht { background: radial-gradient(ellipse 70vw 40vh at 30% 42%, rgba(21, 22, 26, 0) 0%, rgba(21, 22, 26, 0.5) 100%); }
  .anfang-text { padding-bottom: 64px; }
  .anfang-hinweis { display: none; }
}

/* ===================================================================================================
   2 · Die Fahrt: 6 Tafeln, das Band fährt seitwärts, die Wand malt sich Nacht für Nacht
   =================================================================================================== */
.fahrt { --n: 6; position: relative; height: calc(var(--n) * 100svh); background: var(--grund); }
.fahrt-buehne { --pb: var(--p, 1); position: sticky; top: 0; height: 100svh; overflow: clip; }
.fahrt-band { display: flex; height: 100%; width: calc(var(--n) * 100%); transform: translate3d(calc(var(--pb) * -83.3333%), 0, 0); will-change: transform; }   /* 6 Tafeln, Fahrt über 5 Tafelbreiten */
.tafel { position: relative; flex: none; width: calc(100% / var(--n)); height: 100%; }
.tafel-innen { position: relative; height: 100%; display: grid; grid-template-columns: minmax(14rem, 0.3fr) minmax(0, 0.7fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: calc(var(--kopf-hoehe) + 8px) calc(var(--kante) * 0.3) 96px var(--kante); }   /* die Wand läuft rechts fast bis an den Rand */
.tafel--null { --i: 0; } .tafel--1 { --i: 1; } .tafel--2 { --i: 2; } .tafel--3 { --i: 3; } .tafel--4 { --i: 4; } .tafel--5 { --i: 5; }
/* Fortschritt dieser Tafel: wird 1, sobald sie in der Mitte steht; fängt an, während sie hereinfährt */
.tafel { --q: clamp(0, calc(var(--pb) * 5 - (var(--i) - 1)), 1); }
.tafel-text { position: relative; z-index: 1; transform: translate3d(calc((1 - var(--q)) * -3vw), 0, 0); }
.tafel-titel { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); color: var(--kreide); }
.tafel-schritt { display: block; color: var(--akzent); }
.tafel-text p { margin-top: 14px; color: var(--text-2); max-width: 30rem; }
.tafel-zahl { font-size: 0.95rem; color: var(--text-3); }
.tafel-zahl strong { color: var(--akzent); font-family: var(--schrift-display); font-weight: 400; font-size: 1.05em; }
.tafel-knopf { margin-top: 22px; }
.tafel-nacht { position: absolute; left: var(--kante); top: calc(var(--kopf-hoehe) + 10px); z-index: 0; margin: 0; display: grid; line-height: 0.9; pointer-events: none; transform: translate3d(0, calc((1 - var(--q)) * 40px), 0); }
.tafel-nacht .kreide { font-family: var(--schrift-kreide); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); color: var(--kreide); opacity: 0.55; transform: rotate(-6deg); transform-origin: 0 100%; }
.tafel-nacht .ziffer { font-family: var(--schrift-display); font-size: clamp(6rem, 3rem + 12vw, 15rem); color: transparent; -webkit-text-stroke: 1.5px rgba(236, 231, 218, 0.28); margin-top: -0.1em; }
.tafel-wand { position: relative; margin: 0; aspect-ratio: 1424 / 800; max-height: calc(100svh - var(--kopf-hoehe) - 140px); justify-self: end; width: 100%; overflow: hidden; background: #0d0e11; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); transform: translate3d(calc((1 - var(--q)) * 5vw), 0, 0); }
.tafel-wand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Nacht 2: Farbe ohne Kante, weich, durch Sprühflecken, die mit der Fahrt wachsen (nur Deckkraft bewegt sich) */
.wand-flaeche { filter: blur(7px) saturate(0.9); opacity: var(--q); -webkit-mask-image: radial-gradient(ellipse 48% 60% at 44% 52%, #000 55%, transparent 100%), radial-gradient(circle at 22% 38%, #000 10%, transparent 34%), radial-gradient(circle at 70% 60%, #000 14%, transparent 40%), radial-gradient(circle at 56% 30%, #000 8%, transparent 28%); mask-image: radial-gradient(ellipse 48% 60% at 44% 52%, #000 55%, transparent 100%), radial-gradient(circle at 22% 38%, #000 10%, transparent 34%), radial-gradient(circle at 70% 60%, #000 14%, transparent 40%), radial-gradient(circle at 56% 30%, #000 8%, transparent 28%); }
.tafel--3 .wand-flaeche { opacity: 1; }
/* Nacht 3: die Kontur kommt scharf von links nach rechts */
.tafel--3 .wand-fertig { clip-path: inset(0 calc((1 - var(--q)) * 100%) 0 0); }
.tafel--3 .tafel-wand::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-left: 2px solid var(--akzent); transform: translate3d(calc(var(--q) * 100%), 0, 0); opacity: calc(1 - var(--q)); pointer-events: none; }
/* Nacht 4: Strahler auf volle Kraft (ein dunkler Schleier geht weg, ein warmer Kegel kommt) */
.tafel--4 .wand-fertig { filter: none; }
.wand-licht { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)); opacity: calc(1 - var(--q)); }
.wand-licht::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 75% at 16% 55%, rgba(255, 218, 170, 0.32), transparent 70%); opacity: calc(var(--q) * 1.3 - 0.3); }
/* Nacht 5: Glanz läuft über den frischen Lack */
.wand-glanz { position: absolute; inset: -10% -40%; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.16) 52%, transparent 60%); transform: translate3d(calc(-70% + var(--q) * 140%), 0, 0); }
/* Maßband unter dem Band: 0 bis 60 m, die Nadel steht fest in der Mitte, die Zahl zählt mit */
.massband { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; pointer-events: none; }
.massband-skala { position: absolute; left: 0; bottom: 30px; display: flex; width: calc(var(--n) * 100%); transform: translate3d(calc(var(--pb) * -83.3333%), 0, 0); border-top: 1px solid rgba(236, 231, 218, 0.35); background: repeating-linear-gradient(90deg, rgba(236, 231, 218, 0.35) 0 1px, transparent 1px 10vw); background-size: 100% 10px; background-repeat: no-repeat; }
.massband-skala span { width: calc(100% / var(--n)); text-align: center; padding-top: 14px; font-family: var(--schrift-display); font-size: 0.8rem; color: var(--text-3); }
.massband-nadel { position: absolute; left: 50%; bottom: 24px; width: 2px; height: 22px; background: var(--akzent); transform: translateX(-1px); }
.massband-wert { display: none; }   /* der Zähler stand doppelt unter der Nadel; die Skala reicht */
/* Handy, ruhige Fassung, ohne JavaScript: die Tafeln stehen untereinander, jede im Endzustand bzw. mit eigener Bewegung */
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .fahrt { height: auto; }
  .fahrt-buehne { position: static; height: auto; overflow: visible; }
  .fahrt-band { width: auto; flex-direction: column; transform: none; will-change: auto; }
  .tafel { --q: clamp(0, calc(var(--p, 1) * 2.4 - 0.5), 1); width: auto; height: auto; }
  .tafel-innen { height: auto; grid-template-columns: minmax(0, 1fr); padding: 64px var(--rand) 48px; gap: 18px; }
  .tafel--null .tafel-innen { padding-top: 56px; }
  .tafel-text { transform: none; order: 2; }
  .tafel-wand { max-height: none; transform: none; order: 1; }
  .tafel-nacht { position: static; margin-bottom: -10px; }
  .tafel-nacht .ziffer { font-size: 5rem; }
  .massband { display: none; }
}
html:not(.js) .fahrt { height: auto; }
html:not(.js) .fahrt-buehne { position: static; height: auto; overflow: visible; }
html:not(.js) .fahrt-band { width: auto; flex-direction: column; transform: none; }
html:not(.js) .tafel { --q: 1; width: auto; height: auto; }
html:not(.js) .tafel-innen { height: auto; grid-template-columns: minmax(0, 1fr); padding: 64px var(--rand) 48px; }
html:not(.js) .tafel-nacht { position: static; }
html:not(.js) .massband { display: none; }
@media (prefers-reduced-motion: reduce) { .tafel { --q: 1; } }

/* ===================================================================================================
   3 · Entwurf: das Blatt dreht sich gerade, die Farbkarten fächern auf
   =================================================================================================== */
.ablauf { background: var(--grund); overflow: clip; }
.ablauf-raster { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .ablauf-raster { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.blatt { margin: 0; --e: clamp(0, calc(var(--p, 1) * 2.2 - 0.3), 1); transform: rotate(calc(-9deg + var(--e) * 7deg)) translate3d(0, calc((1 - var(--e)) * 40px), 0); transform-origin: 50% 60%; }
.blatt img { width: 100%; height: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.blatt figcaption { margin-top: 12px; font-family: var(--schrift-kreide); font-size: 1.25rem; color: var(--text-2); }
.schritte { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.schritte li { --e: clamp(0, calc(var(--p, 1) * 2.4 - var(--d, 0.3)), 1); display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-top: 1px dashed rgba(236, 231, 218, 0.28); transform: translate3d(calc((1 - var(--e)) * 48px), 0, 0); opacity: calc(0.3 + var(--e) * 0.7); }
.schritte li:nth-child(1) { --d: 0.3; } .schritte li:nth-child(2) { --d: 0.55; } .schritte li:nth-child(3) { --d: 0.8; }
.schritt-nr { grid-row: 1 / 3; font-family: var(--schrift-display); color: var(--akzent); font-size: 1.4rem; line-height: 1; }
.schritte h3 { font-size: 1.15rem; color: var(--kreide); }
.schritte p { color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.farbkarten { list-style: none; margin: 30px 0 0 10px; padding: 0; display: flex; gap: 0; }
.karte { --e: clamp(0, calc(var(--p, 1) * 2.4 - 0.9), 1); width: 5.4rem; height: 7rem; margin-right: -1.6rem; padding: 8px 8px 0; font-size: 0.72rem; font-weight: 500; color: #1a0c04; transform-origin: 50% 110%; transform: rotate(calc(var(--w) * var(--e))) translate3d(0, calc((1 - var(--e)) * 16px), 0); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.3); border-radius: 3px; }
.karte--cyan { --w: -16deg; background: var(--cyan); }
.karte--blau { --w: -5deg; background: var(--blau); color: var(--kreide); }
.karte--orange { --w: 6deg; background: var(--akzent); }
.karte--beton { --w: 17deg; background: #7b7d84; color: #111; }

/* ===================================================================================================
   4 · Preise: Zeilen kommen aus dem Regal, die Riesenzahl wirft ihren Schatten weg von der Maus (Regelbruch: ragt in den Rand)
   =================================================================================================== */
.preise { position: relative; overflow: clip; background: #1b1d23; }
.preise-regal { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.preise-regal img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transform: translate3d(0, calc((var(--p, 1) - 0.5) * -6vh), 0) scale(1.06); }
.preise-innen { position: relative; z-index: 1; }
.riesenzahl { --sx: 10px; --sy: 14px; position: absolute; left: calc(-0.55 * var(--kante)); top: -0.32em; margin: 0; z-index: 0; font-family: var(--schrift-display); font-size: clamp(7rem, 2rem + 20vw, 19rem); line-height: 1; color: #2c2f38; text-shadow: var(--sx) var(--sy) 0 #0a0b0d, -1px -1px 0 rgba(255, 255, 255, 0.07); pointer-events: none; user-select: none; transform: translate3d(0, calc((1 - var(--p, 1)) * 30px), 0); }
.preise h2, .preise .abschnitt-satz, .preisliste, .preise-satz { position: relative; z-index: 1; }
.preise h2 { padding-top: 2.4em; }
.preisliste { list-style: none; margin: 36px 0 0; padding: 0; max-width: 40rem; }
.preisliste li { --e: clamp(0, calc(var(--p, 1) * 2.4 - var(--d, 0.4)), 1); display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px dashed rgba(236, 231, 218, 0.3); transform: translate3d(calc((1 - var(--e)) * 70px), 0, 0); opacity: calc(0.25 + var(--e) * 0.75); }
.preisliste li:nth-child(1) { --d: 0.4; } .preisliste li:nth-child(2) { --d: 0.5; } .preisliste li:nth-child(3) { --d: 0.6; } .preisliste li:nth-child(4) { --d: 0.7; } .preisliste li:nth-child(5) { --d: 0.85; }
.preis-was { color: var(--text-2); }
.preis-wert { font-family: var(--schrift-display); font-size: 1.1rem; color: var(--kreide); white-space: nowrap; }
.preis-beispiel { margin-top: 12px; padding: 18px 16px; background: rgba(255, 106, 31, 0.1); border: 1px dashed var(--akzent); }
.preis-beispiel .preis-wert { color: var(--akzent); font-size: 1.4rem; }
.preise-satz { margin-top: 20px; max-width: 38rem; font-size: 0.95rem; color: var(--text-3); }
@media (max-width: 899px) {
  .preise-regal { position: relative; width: auto; height: 42vw; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 50%); mask-image: linear-gradient(0deg, transparent 0%, #000 50%); margin-top: calc(-1 * var(--abstand) + 20px); }
  .riesenzahl { left: calc(-0.3 * var(--rand)); top: -0.2em; font-size: clamp(6rem, 30vw, 9rem); }
  .preise h2 { padding-top: 1.6em; }
  .preisliste li { flex-direction: column; gap: 4px; }
}

/* ===================================================================================================
   5 · Lack: die Farbe wischt mit dem Scrollen ins graue Bild, Zahlenband
   =================================================================================================== */
.lack-raster { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .lack-raster { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.lack-bild { --e: clamp(0, calc(var(--p, 1) * 2.4 - 0.5), 1); position: relative; margin: 0; aspect-ratio: 1; max-width: 560px; justify-self: end; width: 100%; overflow: hidden; }
.lack-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lack-grau { filter: grayscale(1) brightness(0.55) contrast(1.1); }
.lack-farbe { clip-path: inset(0 calc((1 - var(--e)) * 100%) 0 0); }
.lack-bild::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-left: 3px solid var(--akzent); transform: translate3d(calc(var(--e) * 100%), 0, 0); opacity: calc(1 - var(--e)); }
.lack-bild figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-family: var(--schrift-kreide); font-size: 1.2rem; color: var(--kreide); background: linear-gradient(0deg, rgba(21, 22, 26, 0.85), transparent); }
.zahlenband { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 34px 0 0; padding: 0; }
.zahlenband div { --e: clamp(0, calc(var(--p, 1) * 2.4 - var(--d, 0.5)), 1); padding: 16px 0 0; border-top: 2px solid var(--akzent); transform: translate3d(0, calc((1 - var(--e)) * 26px), 0); opacity: calc(0.3 + var(--e) * 0.7); }
.zahlenband div:nth-child(1) { --d: 0.5; } .zahlenband div:nth-child(2) { --d: 0.65; } .zahlenband div:nth-child(3) { --d: 0.8; }
.zahlenband dt { font-size: 0.9rem; color: var(--text-3); }
.zahlenband dd { margin: 4px 0 0; font-family: var(--schrift-display); font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); color: var(--kreide); line-height: 1; }
.lack-klein { margin-top: 24px; color: var(--text-2); font-size: 1rem; max-width: 34rem; }

/* ===================================================================================================
   6 · Workshops: Fächer beim Scrollen (Idee aus Effekt 370, neu gebaut), Karte für Karte
   =================================================================================================== */
.workshops { position: relative; height: calc(100svh + 5 * 60vh); background: var(--grund-2); }
.workshops-buehne { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding: calc(var(--kopf-hoehe) + 12px) 0 32px; overflow: clip; }
.workshops h2 { font-size: var(--t-gross); }
.workshops .abschnitt-satz { margin-top: 12px; }
.faecher { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 12px; height: min(520px, 56svh); }
.fach { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 20px 18px; background: var(--grund); border: 1px solid var(--linie); overflow: hidden; transition: flex-grow 0.7s cubic-bezier(0.2, 0.75, 0.15, 1), border-color 0.35s; }
.fach-nr { font-family: var(--schrift-display); font-size: 1rem; color: var(--akzent); }
.fach h3 { margin-top: auto; font-size: 1.25rem; color: var(--kreide); writing-mode: vertical-rl; align-self: flex-start; max-height: calc(100% - 50px); transition: font-size 0.3s; }
.fach-inhalt { display: grid; gap: 14px; }
.js .fach-inhalt { position: absolute; left: 24px; right: 24px; bottom: 24px; opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none; min-width: 300px; transition: opacity 0.35s 0.15s, transform 0.55s cubic-bezier(0.2, 0.75, 0.15, 1) 0.15s; }
.fach-inhalt p { color: var(--text-2); max-width: 36ch; line-height: 1.55; }
.fach-inhalt img { width: 100%; max-height: 42svh; height: auto; object-fit: cover; }
.fach.offen { flex-grow: 4.4; border-color: var(--akzent); }
.fach.offen h3 { writing-mode: horizontal-tb; max-height: none; margin-top: 28px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); max-width: 16ch; }
.js .fach.offen .fach-inhalt { opacity: 1; transform: none; pointer-events: auto; }
.faecher-stand { margin-top: 18px; display: flex; gap: 8px; }
.faecher-stand i { flex: 1; height: 3px; background: var(--linie); overflow: hidden; }
.faecher-stand i::after { content: ""; display: block; height: 100%; width: 100%; background: var(--akzent); transform-origin: left; transform: scaleX(var(--f, 0)); }
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .workshops { height: auto; padding-block: var(--abstand); }
  .workshops-buehne { position: static; height: auto; padding: 0; overflow: visible; }
  .faecher { flex-direction: column; height: auto; gap: 10px; }
  .fach { flex: none; padding: 16px; }
  .fach h3, .fach.offen h3 { writing-mode: horizontal-tb; max-height: none; margin-top: 6px; font-size: 1.2rem; max-width: none; }
  .js .fach-inhalt, .js .fach.offen .fach-inhalt { position: static; min-width: 0; opacity: 1; transform: none; pointer-events: auto; margin-top: 10px; transition: none; }
  .fach-inhalt img { max-height: 46vw; }
  .faecher-stand { display: none; }
}
html:not(.js) .workshops { height: auto; padding-block: var(--abstand); }
html:not(.js) .workshops-buehne { position: static; height: auto; padding: 0; }
html:not(.js) .faecher { flex-direction: column; height: auto; }
html:not(.js) .fach h3 { writing-mode: horizontal-tb; max-height: none; }
html:not(.js) .fach-inhalt { margin-top: 10px; }
html:not(.js) .faecher-stand { display: none; }

/* ===================================================================================================
   7 · Fragen: die Antwort sprüht sich beim Öffnen, die Zeilen rücken beim Scrollen versetzt ein
   =================================================================================================== */
.fragen-liste { margin-top: 32px; max-width: 46rem; }
.fragen-liste details { --e: clamp(0, calc(var(--p, 1) * 2.4 - var(--d, 0.3)), 1); border-top: 1px dashed rgba(236, 231, 218, 0.3); transform: translate3d(calc((1 - var(--e)) * var(--w, 40px)), 0, 0); opacity: calc(0.3 + var(--e) * 0.7); }
.fragen-liste details:last-child { border-bottom: 1px dashed rgba(236, 231, 218, 0.3); }
.fragen-liste details:nth-child(1) { --d: 0.3; --w: -40px; } .fragen-liste details:nth-child(2) { --d: 0.42; --w: 40px; } .fragen-liste details:nth-child(3) { --d: 0.54; --w: -40px; } .fragen-liste details:nth-child(4) { --d: 0.66; --w: 40px; } .fragen-liste details:nth-child(5) { --d: 0.78; --w: -40px; }
.fragen-liste summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; font-family: var(--schrift-display); font-size: 1.05rem; color: var(--kreide); }
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--linie-feld); color: var(--akzent); font-family: var(--schrift-text); font-size: 1.3rem; transition: transform 0.3s var(--aus); }
.fragen-liste details[open] summary::after { transform: rotate(45deg); }
.fragen-liste summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.antwort { padding: 0 0 22px; color: var(--text-2); max-width: 40rem; }
.antwort p { padding-left: 14px; border-left: 2px solid var(--akzent); }
@media (prefers-reduced-motion: no-preference) {
  .js .fragen-liste details[open] .antwort { animation: spruehen 0.7s var(--aus) both; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  @keyframes spruehen {
    from { -webkit-mask-image: radial-gradient(circle at 0% 40%, #000 60%, transparent 100%); mask-image: radial-gradient(circle at 0% 40%, #000 60%, transparent 100%); -webkit-mask-size: 0% 100%; mask-size: 0% 100%; opacity: 0.4; }
    to   { -webkit-mask-image: radial-gradient(circle at 0% 40%, #000 60%, transparent 100%); mask-image: radial-gradient(circle at 0% 40%, #000 60%, transparent 100%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; opacity: 1; }
  }
}

/* ===================================================================================================
   8 · Anfrage: die Fläche wird hell, als schalte jemand den Strahler ein
   =================================================================================================== */
.kontakt { position: relative; overflow: clip; background: var(--grund); }
.kontakt-strahler { --e: clamp(0, calc(var(--p, 1) * 2.6 - 0.5), 1); position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 12% 10%, rgba(255, 170, 110, 0.16), transparent 65%); opacity: var(--e); pointer-events: none; }
.kontakt .innen { position: relative; }
.kontakt .direkt a { font-family: var(--schrift-display); font-size: 1.05rem; }
.kontakt .direkt p { color: var(--text-2); }
.feld select { background-color: var(--grund-2); }
