/* PLENUM · Planungsbüro (Beispiel) · lp-286
   Schrift-Ordnung: eine Familie (Outfit, variabel), fünf Größen. Ecken: 2 px, wie Deckenplatten. */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --tinte: #10151F; --tinte-2: #1B2230; --platte: #F2F1EC; --linie: #D9D7CF;
  --rot: #D5351F; --gelb: #FFC21A; --blau: #2E6BFF;
  --akzent: var(--rot);
  --g1: clamp(2.2rem, 6vw, 5.5rem);
  --g2: clamp(1.85rem, 4.1vw, 3.6rem);
  --g3: clamp(1.4rem, 2.3vw, 2.1rem);
  --g4: 1.0625rem;
  --g5: .8125rem;
  --rand: clamp(1.1rem, 4vw, 3.5rem);
  --leiste: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--leiste); }
body { margin: 0; background: var(--platte); color: var(--tinte); font: 400 var(--g4)/1.55 "Outfit", system-ui, sans-serif; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
.rand { width: min(100% - 2 * var(--rand), 1600px); margin-inline: auto; }
.sprung { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--gelb); color: var(--tinte); padding: .8rem 1.1rem; }
.sprung:focus { left: 0; }

.gross { font-size: var(--g2); line-height: 1.04; font-weight: 700; letter-spacing: -.02em; max-width: 21ch; text-wrap: balance; }
.lauf { max-width: 52ch; margin-top: 1.2rem; }
.vor { font-size: var(--g5); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }

.knopf { display: inline-flex; align-items: center; min-height: 52px; padding: .2rem 1.6rem; background: var(--rot); color: #fff; font: 600 var(--g4)/1 "Outfit", sans-serif; text-decoration: none; border: 0; border-radius: 2px; cursor: pointer; transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .25s; }
.knopf:hover { transform: translateY(-2px); background: #BF2C18; }
.knopf:active { transform: translateY(0) scale(.98); }
.knopf-klein { min-height: 44px; padding-inline: 1.1rem; font-size: .95rem; }
.knopf-hell { background: var(--tinte); }
.knopf-hell:hover { background: #000; }
.knopf-satz { font-size: var(--g5); opacity: .85; }

/* Kopfleiste */
.leiste { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--leiste); display: flex; align-items: center; gap: 1.5rem; padding-inline: var(--rand); background: rgba(16, 21, 31, .9); color: #fff; }
.marke { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; min-height: 44px; }
.marke small { font-weight: 400; letter-spacing: 0; opacity: .7; font-size: var(--g5); }
.marke-raster { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.marke-raster i { width: 9px; height: 9px; background: #fff; }
.marke-raster i:nth-child(2) { background: var(--rot); transform: skewY(-28deg) scaleX(.5); transform-origin: left; }
.leiste-nav { margin-left: auto; display: flex; gap: 1.6rem; }
.leiste-nav a { text-decoration: none; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; opacity: .86; }
.leiste-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Bühne: der Raum mit der Decke */
.bahn { position: relative; background: var(--tinte); color: #fff; }
.buehne { position: relative; overflow: hidden; }
.buehne-bild { width: 100%; height: 72vh; object-fit: cover; object-position: 50% 30%; }
.buehne-leinwand, .buehne-schatten, .schiene { display: none; }
.kopf, .kapitel { padding: 2.2rem var(--rand); }
h1 { font-size: var(--g1); line-height: .98; font-weight: 800; letter-spacing: -.025em; max-width: 13ch; text-wrap: balance; }
.kopf-satz { max-width: 44ch; margin-top: 1.1rem; font-size: 1.125rem; }
.kopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.5rem; }
.kap { max-width: 36rem; margin-bottom: 2.6rem; }
.kap-nr { font-size: var(--g3); font-weight: 800; color: var(--akzent); line-height: 1; }
.kap h2 { font-size: var(--g2); line-height: 1; font-weight: 800; letter-spacing: -.02em; margin-top: .3rem; }
.kap-kern { font-size: var(--g3); font-weight: 500; margin: .5rem 0 .8rem; color: var(--akzent); }
.kap-1 { --akzent: #FF6A55; } .kap-2 { --akzent: var(--gelb); } .kap-3 { --akzent: #7FA5FF; } .kap-4 { --akzent: #fff; }
.werte { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 1.1rem; font-variant-numeric: tabular-nums; }
.werte dt { font-size: var(--g5); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.werte dd { font-size: var(--g3); font-weight: 700; border-top: 3px solid var(--akzent); padding-top: .2rem; min-width: 5.5ch; }
.ruhig-bild { width: 100%; }

html.bewegt .bahn { height: 640vh; }
html.bewegt .buehne { position: sticky; top: 0; height: 100vh; height: 100svh; }
html.bewegt .buehne-bild, html.bewegt .buehne-leinwand { position: absolute; inset: 0; width: 100%; height: 100%; }
html.bewegt .buehne-leinwand { display: block; visibility: hidden; }
html.bewegt .buehne-leinwand.gezeichnet { visibility: visible; }
html.bewegt .buehne-schatten { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 21, 31, 0) 44%, rgba(16, 21, 31, .5) 66%, rgba(16, 21, 31, .9) 100%), linear-gradient(90deg, rgba(16, 21, 31, .5), rgba(16, 21, 31, 0) 52%); pointer-events: none; }
html.bewegt .ruhig-bild { display: none; }
html.bewegt .kopf, html.bewegt .kapitel { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--rand) clamp(1.6rem, 6vh, 4rem); pointer-events: none; }
html.bewegt .kopf > *, html.bewegt .kapitel > * { pointer-events: auto; }
html.bewegt .kopf { transition: opacity .5s, transform .7s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
html.bewegt .buehne:not([data-kap="0"]) .kopf { opacity: 0; transform: translateY(-22px); visibility: hidden; transition: opacity .35s, transform .5s, visibility 0s .35s; }
html.bewegt .kap { position: absolute; left: var(--rand); bottom: clamp(1.6rem, 6vh, 4rem); margin: 0; width: min(36rem, 100% - 2 * var(--rand)); opacity: 0; transform: translateY(26px); visibility: hidden; transition: opacity .35s, transform .5s, visibility 0s .35s; }
html.bewegt .buehne[data-kap="1"] .kap-1, html.bewegt .buehne[data-kap="2"] .kap-2, html.bewegt .buehne[data-kap="3"] .kap-3, html.bewegt .buehne[data-kap="4"] .kap-4 { opacity: 1; transform: none; visibility: visible; transition: opacity .55s .12s, transform .75s .12s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
html.bewegt .buehne[data-kap="2"] .kap-2 { left: auto; right: var(--rand); }
html.bewegt:not(.bereit) .kapitel, html.bewegt:not(.bereit) .schiene { visibility: hidden; }

html.bewegt .schiene { display: flex; position: absolute; right: var(--rand); top: calc(var(--leiste) + 1.1rem); gap: 1.4rem; font-size: var(--g5); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .4s; }
html.bewegt .buehne:not([data-kap="0"]) .schiene { opacity: 1; }
.schiene li { padding-top: .5rem; border-top: 3px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .7); text-shadow: 0 1px 10px rgba(16, 21, 31, .7); transition: border-color .4s, color .4s; }
.buehne[data-kap="1"] .schiene li:nth-child(1) { border-color: var(--rot); color: #fff; }
.buehne[data-kap="2"] .schiene li:nth-child(2) { border-color: var(--gelb); color: #fff; }
.buehne[data-kap="3"] .schiene li:nth-child(3) { border-color: var(--blau); color: #fff; }
.buehne[data-kap="4"] .schiene li:nth-child(4) { border-color: #fff; color: #fff; }

/* Leistungen: Farbfelder, Fotos gehen wie Lamellen auf */
[data-p] { --p: 1; }
.leistungen { padding-top: clamp(4rem, 11vh, 8rem); }
.leistungen > .rand { padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.zeile { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); min-height: min(78vh, 46rem); }
.zeile-um .zeile-foto { order: 2; }
.zeile-foto { position: relative; overflow: hidden; background: var(--tinte); }
.zeile-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - var(--p) * .14)); }
.lam-blatt { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); pointer-events: none; }
.lam-blatt i { background: var(--platte); box-shadow: inset -1px 0 0 var(--linie); transform-origin: left; transform: scaleX(clamp(0, calc(1.25 - var(--p) * 2.3 + var(--n) * .07), 1)); }
.zeile-um .lam-blatt i { transform-origin: right; }
.lam-blatt i:nth-child(1), .kontakt-blatt i:nth-child(1) { --n: 0; } .lam-blatt i:nth-child(2), .kontakt-blatt i:nth-child(2) { --n: 1; }
.lam-blatt i:nth-child(3), .kontakt-blatt i:nth-child(3) { --n: 2; } .lam-blatt i:nth-child(4), .kontakt-blatt i:nth-child(4) { --n: 3; }
.lam-blatt i:nth-child(5), .kontakt-blatt i:nth-child(5) { --n: 4; } .lam-blatt i:nth-child(6), .kontakt-blatt i:nth-child(6) { --n: 5; }
.lam-blatt i:nth-child(7), .kontakt-blatt i:nth-child(7) { --n: 6; } .lam-blatt i:nth-child(8), .kontakt-blatt i:nth-child(8) { --n: 7; }
.zeile-text { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.6rem, 4vw, 3.6rem); overflow: hidden; }
.zeile-nr { position: absolute; top: -.12em; right: .08em; font-size: clamp(7rem, 17vw, 15rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; opacity: .16; transform: translateY(calc((1 - var(--p)) * 38%)); }
.zeile-text h3 { overflow-wrap: anywhere; font-size: var(--g2); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.zeile-text > p:not(.zeile-nr) { margin-top: .9rem; font-size: 1.2rem; max-width: 30ch; }
.zeile-text ul { margin-top: 1.4rem; border-top: 2px solid currentColor; }
.zeile-text li { padding: .65rem 0; border-bottom: 1px solid currentColor; }
.zeile-rot .zeile-text { background: var(--rot); color: #fff; }
.zeile-gelb .zeile-text { background: var(--gelb); color: var(--tinte); }
.zeile-blau .zeile-text { background: var(--blau); color: #fff; }
.zeile-dunkel .zeile-text { background: var(--tinte); color: #fff; }

/* Projekte */
.projekte { background: var(--tinte); color: #fff; padding-top: clamp(4rem, 11vh, 8rem); }
.projekte-kopf { padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.projekt { position: relative; height: 96vh; min-height: 34rem; margin-bottom: 4vh; }
.projekt-foto { position: absolute; inset: 0; overflow: hidden; clip-path: inset(calc((1 - var(--p)) * 30%) calc((1 - var(--p)) * 16%)); }
.projekt-foto img { width: 100%; height: 124%; object-fit: cover; transform: translateY(calc(var(--p) * -16%)); }
.projekt-text { position: absolute; left: var(--rand); bottom: 7vh; width: min(31rem, 100% - 2 * var(--rand)); background: var(--tinte); padding: 1.6rem 1.8rem 1.4rem; border-top: 5px solid var(--gelb); transform: translateY(calc((1 - var(--p)) * 9rem)); }
.projekt:nth-child(odd) .projekt-text { left: auto; right: var(--rand); border-top-color: var(--rot); }
.projekt:nth-child(4) .projekt-text { border-top-color: var(--blau); }
.projekt-art { font-size: var(--g5); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.projekt-text h3 { font-size: var(--g3); font-weight: 700; margin: .25rem 0 .5rem; }
.projekt-daten { display: flex; gap: 1.6rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .25); font-variant-numeric: tabular-nums; }
.projekt-daten dt { font-size: var(--g5); opacity: .7; }
.projekt-daten dd { font-weight: 700; }

/* Ablauf: neun Platten klappen herunter */
.ablauf { padding: clamp(4rem, 12vh, 9rem) 0; }
.phasen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: clamp(2rem, 6vh, 4rem); perspective: 1400px; counter-reset: none; }
.phasen li { position: relative; background: #fff; padding: 1.3rem 1.4rem 1.5rem; min-height: 11.5rem; display: flex; flex-direction: column; border-radius: 2px; transform-origin: 50% 0; --q: clamp(0, calc(var(--p) * 3 - var(--n) * .16 - .35), 1); transform: rotateX(calc((1 - var(--q)) * -86deg)); opacity: clamp(0, calc(var(--q) * 3), 1); box-shadow: 0 1px 0 var(--linie); }
.phasen li:nth-child(1) { --n: 0; } .phasen li:nth-child(2) { --n: 1; } .phasen li:nth-child(3) { --n: 2; } .phasen li:nth-child(4) { --n: 3; } .phasen li:nth-child(5) { --n: 4; }
.phasen li:nth-child(6) { --n: 5; } .phasen li:nth-child(7) { --n: 6; } .phasen li:nth-child(8) { --n: 7; } .phasen li:nth-child(9) { --n: 8; }
.phasen b { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .9; font-weight: 800; color: var(--rot); }
.phasen li:nth-child(3n+2) b { color: var(--blau); } .phasen li:nth-child(3n) b { color: #D99A00; }
.phasen span { font-size: var(--g3); font-weight: 700; line-height: 1.1; margin-top: auto; padding-top: 1.2rem; }
.phasen small { font-size: .95rem; margin-top: .35rem; opacity: .8; }

/* Kontakt: acht Lamellen schließen sich zum roten Feld */
.kontakt { position: relative; padding: clamp(4.5rem, 13vh, 9rem) 0; color: #fff; overflow: hidden; }
.kontakt-blatt { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); }
.kontakt-blatt i { background: var(--rot); transform-origin: top; transform: scaleY(clamp(0, calc(var(--p) * 2.6 - var(--n) * .09), 1)); }
.kontakt-raster { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); opacity: clamp(0, calc(var(--p) * 3.4 - 1.5), 1); }
.kontakt-direkt { margin-top: 1.6rem; font-size: var(--g3); font-weight: 600; line-height: 1.3; }
.formular { display: grid; gap: 1.1rem; align-content: start; }
.eingabe label, .wahl legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.eingabe input, .eingabe textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; font: inherit; color: var(--tinte); background: #fff; border: 2px solid transparent; border-radius: 2px; }
.eingabe input:focus-visible, .eingabe textarea:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
.eingabe [aria-invalid="true"] { border-color: var(--tinte); }
.feld-fehler { font-size: var(--g5); font-weight: 600; min-height: 1.1em; margin-top: .2rem; }
.wahl { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl legend { width: 100%; }
.wahl label { position: relative; }
.wahl input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 2px solid #fff; border-radius: 2px; font-weight: 600; transition: background-color .2s, color .2s; }
.wahl input:checked + span { background: #fff; color: var(--rot); }
.wahl input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 2px; }
.formular .knopf { justify-self: start; }
.formular-meldung { font-weight: 700; min-height: 1.5em; }
.formular-meldung:focus { outline: none; }
.kontakt a:focus-visible, .kontakt .knopf:focus-visible { outline-color: var(--tinte); }

/* Fuß */
.fuss { background: var(--tinte); color: #fff; padding-bottom: 2rem; overflow: hidden; }
.fuss-wort { font-size: 24.5vw; line-height: .8; font-weight: 800; letter-spacing: -.03em; text-align: center; color: var(--platte); padding-top: 2.5rem; white-space: nowrap; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2rem; padding-top: 2.6rem; }
.fuss-raster a { text-underline-offset: 4px; display: inline-block; padding: .28rem 0; }
.zeichen-liste { display: flex; gap: .4rem; align-items: flex-start; }
.zeichen-link { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 2px; transition: background-color .2s, color .2s; }
.zeichen-link:hover { background: #fff; color: var(--tinte); }
.zeichen { width: 20px; height: 20px; }
.fuss-klein { font-size: var(--g5); opacity: .7; margin-top: 2rem; }
.fuss-recht { padding: 2rem 0; }

/* Rechtliches */
.recht { padding: calc(var(--leiste) + 3rem) 0 4rem; max-width: 46rem; }
.recht h1 { font-size: var(--g2); max-width: none; margin-bottom: 1.5rem; }
.recht h2 { font-size: var(--g3); margin: 2rem 0 .5rem; }
.recht p { margin-bottom: .8rem; }

@media (max-width: 860px) {
  .leiste-nav { display: none; }
  .leiste .knopf { margin-left: auto; }
  .marke small { display: none; }
  .zeile { grid-template-columns: 1fr; min-height: 0; }
  .zeile-um .zeile-foto { order: 0; }
  .zeile-foto { aspect-ratio: 16 / 10; }
  .zeile-text { padding-top: 5.5rem; }
  .projekt { height: auto; min-height: 0; margin-bottom: 3rem; }
  .projekt-foto { position: relative; height: 62vh; }
  .projekt-text, .projekt:nth-child(odd) .projekt-text { position: relative; left: 0; right: 0; bottom: 0; width: auto; margin: -3rem var(--rand) 0; transform: translateY(calc((1 - var(--p)) * 3rem)); }
  .phasen { grid-template-columns: 1fr 1fr; }
  .phasen li { min-height: 9.5rem; }
  .kontakt-raster { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; }
  html.bewegt .schiene { gap: .7rem; font-size: .68rem; left: var(--rand); right: var(--rand); justify-content: space-between; }
  html.bewegt .buehne[data-kap="2"] .kap-2 { left: var(--rand); right: auto; }
  .kap h2 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  html.bewegt .buehne-schatten { background: linear-gradient(180deg, rgba(16, 21, 31, 0) 34%, rgba(16, 21, 31, .78) 56%, rgba(16, 21, 31, .96) 100%); }
}
@media (max-width: 480px) { .phasen { grid-template-columns: 1fr; } .phasen li { min-height: 0; } }
@media (max-height: 540px) and (min-width: 600px) {
  h1 { font-size: clamp(1.9rem, 9.5vh, 3rem); max-width: 20ch; }
  .kopf-satz { display: none; }
  .kopf-zeile { margin-top: .8rem; }
  .kap h2 { font-size: 1.8rem; } .kap-kern { font-size: 1.1rem; margin: .2rem 0 .3rem; } .kap p { font-size: .92rem; line-height: 1.4; }
  html.bewegt .kap { width: min(34rem, 62%); }
  .werte { margin-top: .4rem; } .werte dd { font-size: 1.1rem; }
  html.bewegt .buehne-schatten { background: linear-gradient(180deg, rgba(16, 21, 31, 0) 22%, rgba(16, 21, 31, .8) 50%, rgba(16, 21, 31, .96) 100%); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
