/* Tischlerei Josef Feuerstein — Entwurf. Farben nur aus Logo und bestehender Website. */
@font-face { font-family: "Fira Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/fira-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/fira-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/fira-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/fira-sans-600.woff2") format("woff2"); }

:root {
  --blau: #105B9F; --gruen: #00926A; --tinte: #1D1D1B; --grau: #4A4A4A; --hell: #F3F3F3; --linie: #D8D8D8; --weiss: #fff;
  --holz: #DFA16B;
  --sans: "Fira Sans", sans-serif;
  --hdr-h: 72px; --rand: clamp(20px, 4.6vw, 76px); --max: 1280px;
  --t-lab: 11.5px; --t-body: 15px; --t-lead: 17px;
  --h3m: clamp(1.45rem, 1.9vw, 1.8rem);
  --quote: clamp(1.25rem, min(1.6vw, 2.6svh), 1.6rem);
  --scr-t: calc(var(--hdr-h) + clamp(14px, 3.4svh, 46px));
  --scr-b: clamp(18px, 3.8svh, 50px);
  --scr-h: calc(100svh - var(--scr-t) - var(--scr-b));
  --h2s: clamp(2.1rem, min(3.4vw, 5.6svh), 3.7rem);
  --ease: cubic-bezier(.22, .8, .2, 1);
}
@media (max-width: 899px) { :root { --hdr-h: 56px; --scr-b: 30px; } }
@media (max-width: 719px) { :root { --t-lab: 11px; --t-lead: 15.5px; --h3m: 1.35rem; --quote: 1.05rem; --scr-t: 30px; --h2s: clamp(1.9rem, 8.2vw, 2.3rem); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body { margin: 0; font: 400 var(--t-body)/1.55 var(--sans); color: var(--tinte); background: var(--weiss); -webkit-font-smoothing: antialiased; font-synthesis: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
b, strong { font-weight: 500; }
main { overflow-x: clip; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; }

/* ---------- Type ---------- */
.lab { font: 600 var(--t-lab)/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--blau); }
.h2 { font: 300 var(--h2s)/1.08 var(--sans); letter-spacing: -.018em; margin-top: .28em; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--gruen); }
.ist-dunkel .h2 em { color: #fff; }
.ist-dunkel .lab { color: #fff; opacity: .72; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border: 1px solid var(--gruen); border-radius: 2px;
  background: var(--gruen); color: #fff; font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, transform .12s; -webkit-touch-callout: none; user-select: none; }
.btn:hover { box-shadow: inset 0 0 0 100px rgba(29, 29, 27, .14); }
.btn:active { transform: scale(.97); }
.btn--line { background: transparent; color: var(--tinte); border-color: currentColor; }
.btn--line:hover { box-shadow: inset 0 0 0 100px rgba(29, 29, 27, .08); }
.ist-dunkel .btn--line { color: #fff; }
.ist-dunkel .btn--line:hover { box-shadow: inset 0 0 0 100px rgba(255, 255, 255, .14); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopf ---------- */
.kopf { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--hdr-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--rand); background: var(--weiss); border-bottom: 1px solid transparent; transition: border-color .3s; }
.kopf.ist-unten { border-bottom-color: var(--linie); }
.kopf__logo { display: block; margin-right: auto; transition: opacity .35s; }
.kopf__logo img { height: 46px; width: auto; }
.kopf.hat-logo .kopf__logo { opacity: 0; pointer-events: none; }
.kopf__nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.kopf__nav a { position: relative; padding: 10px 0; font: 400 15px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.kopf__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gruen); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.kopf__nav a:hover::after { transform: scaleX(1); }
.kopf__tel { display: inline-flex; align-items: center; gap: 9px; height: 44px; font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.kopf__tel svg { width: 19px; height: 19px; fill: none; stroke: var(--gruen); stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 1039px) { .kopf__nav { display: none; } }
@media (max-width: 899px) { .kopf__logo img { height: 36px; } .kopf__tel span { display: none; } .kopf__tel { width: 44px; justify-content: center; margin-right: -10px; } .kopf__tel svg { width: 22px; height: 22px; } }

/* ---------- 1 · Wand und Flügeltür ---------- */
.wand { --boden: clamp(34px, 7svh, 72px); --th: min(calc(100svh - var(--hdr-h) - var(--boden) - clamp(18px, 5svh, 56px)), 790px);
  position: relative; min-height: 100vh; min-height: 100svh; padding: var(--hdr-h) var(--rand) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(30px, 6vw, 120px); align-items: end;
  background: linear-gradient(180deg, var(--weiss) 0, var(--weiss) calc(100% - var(--boden)), var(--hell) calc(100% - var(--boden))); overflow: hidden; }
.wand::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--boden); height: 1px; background: var(--linie); }
.wand__text { align-self: center; padding-bottom: var(--boden); max-width: 640px; }
.wand__logo .lg { display: block; width: clamp(300px, 37vw, 580px); height: auto; overflow: visible; }
.wand__zeile { margin-top: clamp(20px, 3.4svh, 40px); max-width: 25em; font: 300 clamp(1.1rem, 1.5vw, 1.45rem)/1.42 var(--sans); color: var(--grau); }
.wand__zeile span { color: var(--tinte); white-space: nowrap; }

.tuer { --zarge: clamp(9px, 1.1vw, 15px); --rahmen: clamp(13px, 1.6vw, 22px); position: relative; z-index: 1; height: var(--th); width: calc(var(--th) * .9); margin-bottom: var(--boden); padding: var(--zarge) var(--zarge) 0;
  background: var(--holz) url("../img/holz.webp") center / cover; box-shadow: 0 0 0 1px rgba(29, 29, 27, .16), 0 46px 50px -44px rgba(29, 29, 27, .55); }
.tuer__loch { position: absolute; inset: var(--zarge) var(--zarge) 0; overflow: hidden; background: var(--tinte); perspective: 1500px; box-shadow: inset 0 0 0 1px rgba(29, 29, 27, .4); }
.tuer__raum, .tuer__raum img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tuer__raum img { object-fit: cover; object-position: 50% 30%; }

.fluegel { position: absolute; z-index: 2; top: 0; bottom: 0; width: 50%; margin: 0; padding: 0; border: 0; border-radius: 0; text-align: left; color: var(--tinte); cursor: pointer;
  transition: transform 1.15s var(--ease); will-change: transform; -webkit-touch-callout: none; user-select: none; }
.fluegel::after { content: ""; position: absolute; inset: 0; background: var(--tinte); opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.fluegel--holz { left: 0; transform-origin: 0 50%; background: var(--holz) url("../img/holz.webp") center / cover; box-shadow: inset 0 0 0 1px rgba(29, 29, 27, .22), inset -2px 0 0 rgba(29, 29, 27, .28); }
.fluegel--glas { right: 0; transform-origin: 100% 50%; color: #fff; background: transparent; border: var(--rahmen) solid var(--holz); border-image: url("../img/holz.webp") 44 / var(--rahmen) stretch; }
.fluegel--glas::after { inset: calc(var(--rahmen) * -1); }
.fluegel__scheibe { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(29, 29, 27, .55), inset 0 0 26px rgba(29, 29, 27, .3);
  background: linear-gradient(112deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .07) 21%, rgba(255, 255, 255, .15) 21.5%, rgba(255, 255, 255, .03) 44%, rgba(255, 255, 255, 0) 44.5%), linear-gradient(180deg, rgba(29, 29, 27, .08) 0%, rgba(29, 29, 27, .16) 46%, rgba(29, 29, 27, .78) 100%); }
.fluegel__txt { position: absolute; z-index: 1; left: 11%; right: 9%; bottom: clamp(18px, 7%, 58px); display: grid; gap: 7px; transition: opacity .4s ease .6s, visibility 0s .6s; }
.fluegel--glas .fluegel__txt { left: 9%; right: 5%; }
.fluegel__lab { font: 600 var(--t-lab)/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.fluegel__wort { font: 500 clamp(1.4rem, 2.5vw, 2.5rem)/1.04 var(--sans); letter-spacing: -.012em; }
.griff { position: absolute; z-index: 1; top: 49%; width: clamp(30px, 3.4vw, 50px); height: clamp(7px, .75vw, 10px); border-radius: 6px; background: linear-gradient(180deg, #fff 0%, #D8D8D8 38%, #9B9B9B 78%, #4A4A4A 100%); box-shadow: 0 2px 3px rgba(29, 29, 27, .4); }
.griff::before { content: ""; position: absolute; top: 50%; width: clamp(15px, 1.6vw, 21px); aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%); background: radial-gradient(circle at 36% 30%, #fff, #D8D8D8 46%, #9B9B9B 100%); box-shadow: 0 1px 2px rgba(29, 29, 27, .45); }
.fluegel--holz .griff { right: clamp(9px, 1.1vw, 16px); }
.fluegel--holz .griff::before { right: -3px; }
.fluegel--glas .griff { left: calc(var(--rahmen) * -1 + 3px); }
.fluegel--glas .griff::before { left: -3px; }

/* offen: beim Start (bis .ist-da) und nach dem Antippen (.ist-auf) */
.js:not(.no-anim) .tuer:not(.ist-da) .fluegel--holz, .tuer.ist-auf .fluegel--holz { transform: rotateY(84deg); }
.js:not(.no-anim) .tuer:not(.ist-da) .fluegel--glas, .tuer.ist-auf .fluegel--glas { transform: rotateY(-84deg); }
.js:not(.no-anim) .tuer:not(.ist-da) .fluegel::after, .tuer.ist-auf .fluegel::after { opacity: .5; }
.js:not(.no-anim) .tuer:not(.ist-da) .fluegel { transition: none; }
.tuer.ist-auf .fluegel { pointer-events: none; }
.js:not(.no-anim) .tuer:not(.ist-da) .fluegel__txt, .tuer.ist-auf .fluegel__txt { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
.fluegel__scheibe { overflow: hidden; }
.fluegel__scheibe::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 46%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .32) 50%, rgba(255, 255, 255, 0) 100%); transform: translateX(-140%) skewX(-14deg); pointer-events: none; }
.tuer.ist-da:not(.ist-auf) .fluegel__scheibe::after { animation: glanz 1.5s cubic-bezier(.4, 0, .2, 1) 1.2s 1 both; }
@keyframes glanz { to { transform: translateX(340%) skewX(-14deg); } }
@media (hover: hover) and (pointer: fine) {
  .tuer.ist-da:not(.ist-auf) .fluegel--holz:hover { transform: rotateY(10deg); }
  .tuer.ist-da:not(.ist-auf) .fluegel--glas:hover { transform: rotateY(-10deg); }
  .tuer.ist-da:not(.ist-auf) .fluegel:hover { transition-duration: .6s; }
}
.fluegel:focus-visible { outline: 3px solid var(--blau); outline-offset: -6px; }

.tuer__innen { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.8svh, 18px); padding: clamp(12px, 2.2svh, 26px) 9.5% clamp(16px, 3svh, 34px); color: #fff;
  background: linear-gradient(180deg, rgba(29, 29, 27, .5) 0%, rgba(29, 29, 27, .18) 26%, rgba(29, 29, 27, .7) 52%, rgba(29, 29, 27, .94) 100%); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.tuer.ist-auf .tuer__innen { opacity: 1; visibility: visible; transition: opacity .6s ease .5s, visibility 0s; }
.tuer__kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: auto; }
.tuer__wahl { display: flex; gap: clamp(14px, 1.8vw, 26px); min-width: 0; }
.tuer__tab { padding: 8px 0; min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: none; color: #fff; opacity: .58; font: 500 var(--h3m)/1.1 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: opacity .25s, border-color .25s; }
.tuer__tab:hover { opacity: .85; }
.tuer__tab[aria-selected="true"] { opacity: 1; border-bottom-color: var(--gruen); }
.tuer__zu { flex: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: #fff; cursor: pointer; border-radius: 50%; transition: background-color .2s; }
.tuer__zu:hover { background: rgba(255, 255, 255, .16); }
.tuer__zu svg, .note__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tuer__frage { font: 500 var(--t-lead)/1.3 var(--sans); }
.tuer__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }

/* ---------- Chips ---------- */
.chip { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid var(--linie); border-radius: 2px; background: var(--weiss); color: var(--tinte); font: 500 15px/1.22 var(--sans); text-align: left; cursor: pointer;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-touch-callout: none; user-select: none; }
.chip:hover { border-color: var(--tinte); }
.chip.ist-an { border-color: var(--gruen); background: var(--gruen); color: #fff; }
.chip:active { transform: scale(.98); }
.tuer__chips .chip { border-color: transparent; }
.tuer__chips .chip:hover { box-shadow: inset 0 0 0 2px var(--gruen); }

/* ---------- Screens ---------- */
main > section:not(.wand) { padding: var(--scr-t) var(--rand) var(--scr-b); }
@media (min-width: 900px) { main > section:not(.wand) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
@media (max-width: 899px) { main > section { scroll-margin-top: var(--hdr-h); } }
.bogen__in, .lehre__in, .proj__in, .kont__in { width: 100%; max-width: var(--max); margin-inline: auto; display: grid; gap: clamp(26px, 5vw, 92px); align-items: center; }
.bogen__in > *, .lehre__in > *, .proj__in > *, .kont__in > * { min-width: 0; }

/* ---------- 2 + 5 · Bogen mit Ablauf ---------- */
.bogen { background: var(--hell); }
.bogen--anf { background: var(--weiss); }
.bogen__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.bogen--anf .bogen__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }

.flow { margin-top: clamp(16px, 2.8svh, 30px); }
.flow__weg { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 clamp(14px, 2.4svh, 24px); }
.flow__weg li { flex: 1 1 0; min-width: 0; padding-top: 9px; border-top: 3px solid var(--linie); font: 600 var(--t-lab)/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); white-space: nowrap; overflow: hidden; transition: border-color .3s, color .3s; }
.bogen--anf .flow__weg li { border-top-color: var(--linie); }
.flow__weg li.ist-fertig { border-top-color: var(--gruen); color: var(--tinte); }
.flow__weg li.ist-jetzt { border-top-color: var(--blau); color: var(--blau); }
.flow__blatt { min-height: 262px; }
.flow__frage { font: 500 1.2rem/1.25 var(--sans); margin-bottom: 14px; }
.wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.wahl:not(.wahl--reihe) .chip { min-height: 86px; align-items: flex-end; padding: 14px 16px; font-size: 16px; }
.wahl--reihe { display: flex; flex-wrap: wrap; }
.wahl--reihe .chip { min-height: 44px; padding: 6px 16px; }
.gruppe + .gruppe, .felder + .gruppe, .gruppe + .datei { margin-top: 14px; }
.gruppe__lab, .feld__lab { display: block; margin-bottom: 6px; font: 600 var(--t-lab)/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.felder--1 { grid-template-columns: minmax(0, 1fr); max-width: 320px; }
.feld input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 2px; background: var(--weiss); font: 500 16px/1 var(--sans); }
.feld input::placeholder { color: #9B9B9B; font-weight: 400; }
.feld input:focus { outline: 2px solid rgba(16, 91, 159, .3); outline-offset: 0; border-color: var(--blau); }
.datei { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.datei__n { font: 500 14px/1.3 var(--sans); color: var(--grau); }
.flow__fuss { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.flow__hin { flex: 1; min-width: 0; font: 500 14px/1.3 var(--sans); color: var(--blau); }
.flow__zur[hidden] { display: none; }
.flow__vor { margin-left: auto; }
.flow.wackelt .flow__blatt { animation: wackel .4s; }
.stups { animation: stups .45s var(--ease); }
@keyframes stups { 40% { transform: scale(1.03); } }
@keyframes wackel { 20% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 80% { transform: translateX(-3px); } }

.zettel { padding: 18px 20px 16px; border: 1px solid var(--linie); border-top: 3px solid var(--gruen); background: var(--weiss); animation: zettel .7s var(--ease) both; }
@keyframes zettel { from { opacity: 0; transform: translateY(18px); } }
.zettel__kopf { font: 500 1.2rem/1.25 var(--sans); margin-bottom: 10px; }
.zettel dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 18px; align-items: baseline; }
.zettel dt { font: 600 var(--t-lab)/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }
.zettel dd { font: 500 15px/1.35 var(--sans); }
.zettel__an { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--linie); font: 500 15px/1.35 var(--sans); color: var(--gruen); }
.zettel__hin { margin-top: 2px; font: 600 var(--t-lab)/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }

.stimme { position: relative; justify-self: end; width: 100%; max-width: calc(min(var(--scr-h), 620px) * .84); aspect-ratio: 600 / 714; overflow: hidden; background: var(--linie); }
.stimme img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.stimme figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 70px 24px 22px; color: #fff; background: linear-gradient(180deg, rgba(29, 29, 27, 0), rgba(29, 29, 27, .86)); transition: opacity .3s ease; }
.stimme__zitat { font: 300 var(--quote)/1.3 var(--sans); }
.stimme__name { font: 600 var(--t-lab)/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.stimme.wechselt img, .stimme.wechselt figcaption, .thema.wechselt img, .proj__fig.wechselt img, .kont__fig.wechselt img { opacity: 0; }

.thema { position: relative; width: 100%; max-width: calc(min(var(--scr-h), 620px) * .92); aspect-ratio: 720 / 760; overflow: hidden; background: var(--hell); }
.thema img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.thema figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 22px; color: #fff; font: 300 var(--quote)/1.3 var(--sans); background: linear-gradient(180deg, rgba(29, 29, 27, 0), rgba(29, 29, 27, .86)); }

/* ---------- 3 · Lehre ---------- */
.lehre__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.film { position: relative; }
.film picture { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tinte); }
.film picture img, .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film__play { position: absolute; left: clamp(14px, 2vw, 26px); top: 0; margin-top: calc(56.25% - 48px - clamp(14px, 2vw, 26px)); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 14px; border: 0; border-radius: 2px; background: var(--weiss); color: var(--tinte); font: 500 15px/1 var(--sans); cursor: pointer; transition: box-shadow .2s, transform .12s; }
.film__play:hover { box-shadow: inset 0 0 0 100px rgba(0, 146, 106, .14); }
.film__play:active { transform: scale(.97); }
.film__play svg { width: 22px; height: 22px; fill: var(--gruen); }
.film__hin { margin-top: 10px; font: 400 13.5px/1.4 var(--sans); color: var(--grau); }
.film.laeuft .film__play { display: none; }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; margin-top: clamp(14px, 2.4svh, 24px); border: 1px solid var(--linie); border-radius: 2px; background: var(--weiss); }
.seg__b { height: 40px; padding: 0 18px; border: 0; border-radius: 1px; background: transparent; color: var(--grau); font: 500 14.5px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.seg__b:hover { background: var(--hell); }
.seg__b.is-on { background: var(--tinte); color: #fff; }
.seg--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
.seg--3 .seg__b { padding: 0 6px; }

.fakten { list-style: none; padding: 0; margin: clamp(12px, 2svh, 20px) 0 0; }
.fakten li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: center; padding: clamp(8px, 1.5svh, 13px) 0; border-top: 1px solid var(--linie); }
.fakten li:last-child { border-bottom: 1px solid var(--linie); }
.fakten svg { width: 28px; height: 28px; fill: none; stroke: var(--blau); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fakten b { display: block; font: 500 16px/1.3 var(--sans); }
.fakten span { display: block; font: 400 14px/1.35 var(--sans); color: var(--grau); }
.lehre__los { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: clamp(14px, 2.4svh, 22px); }
.lehre__an { font: 400 14px/1.35 var(--sans); color: var(--grau); }

/* ---------- 4 · Projekte ---------- */
.proj { background: var(--tinte); color: #fff; }
.proj .lab { color: #fff; opacity: .7; }
.proj__in { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.proj__fig { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: #2b2b29; }
.proj__fig img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.proj__nav { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.pfeil { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 2px; background: transparent; color: #fff; cursor: pointer; transition: background-color .2s; }
.pfeil:hover { background: rgba(255, 255, 255, .14); }
.pfeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.proj__zahl { min-width: 5em; text-align: center; font: 600 var(--t-lab)/1 var(--sans); letter-spacing: .16em; }
.proj__karte { margin-top: clamp(14px, 2.6svh, 26px); min-height: 9.6em; }
.proj__titel { font: 500 var(--h3m)/1.15 var(--sans); letter-spacing: -.008em; margin-bottom: 8px; }
.proj__karte ul { list-style: none; padding: 0; margin: 0; }
.proj__karte li { position: relative; padding-left: 18px; font: 400 15px/1.45 var(--sans); color: rgba(255, 255, 255, .84); }
.proj__karte li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--gruen); }
.proj__karte li:first-child { padding-left: 0; color: #fff; font-weight: 500; margin-bottom: 4px; }
.proj__karte li:first-child::before { display: none; }
.proj__liste { list-style: none; padding: 0; margin: clamp(12px, 2.2svh, 22px) 0 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.proj__liste button { display: block; width: 100%; padding: clamp(5px, 1svh, 9px) 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .2); background: none; color: rgba(255, 255, 255, .7); font: 400 15px/1.45 var(--sans); text-align: left; cursor: pointer; transition: color .2s, padding-left .3s var(--ease), box-shadow .3s; }
.proj__liste button:hover { color: #fff; }
.proj__liste button.is-on { color: #fff; padding-left: 14px; box-shadow: inset 3px 0 0 var(--gruen); }

/* ---------- 6 · Kontakt ---------- */
.kont { background: var(--hell); }
.kont__in { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.kont__fig { aspect-ratio: 4 / 3; max-height: var(--scr-h); overflow: hidden; background: var(--linie); }
.kont__fig img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.kont__karte { margin-top: clamp(14px, 2.6svh, 26px); min-height: 12.5em; }
.kont__name { font: 500 var(--h3m)/1.15 var(--sans); margin-bottom: 8px; }
.kont__karte p { font: 400 var(--t-lead)/1.5 var(--sans); color: var(--grau); }
.kont__los { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Fuß ---------- */
.fuss { padding: clamp(26px, 4.4vw, 52px) var(--rand) 0; background: var(--weiss); border-top: 1px solid var(--linie); color: var(--tinte); }
.fuss__in { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.fuss__logo { width: 280px; height: auto; }
.fuss__adr { font: 400 14px/1.5 var(--sans); color: var(--grau); }
.fuss__links { display: flex; gap: 24px; }
.fuss__links a { display: inline-flex; align-items: center; min-height: 44px; font: 500 14px/1 var(--sans); text-underline-offset: 4px; }
.fuss__links a:hover { color: var(--gruen); }

/* VCSLV credit (templates/credit) */
.vc-credit-row { margin-top: clamp(28px, 4vw, 44px); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); display: flex; justify-content: center; grid-column: 1 / -1; flex: 0 0 100%; width: 100%; box-sizing: border-box; }
.vc-credit { --vc-dot: #D2664A; display: inline-flex; align-items: center; gap: .7em; min-height: 44px; padding: 0 6px; color: inherit; text-decoration: none; font-size: 12px; line-height: 1; letter-spacing: .04em; opacity: .72; transition: opacity .4s ease; }
.vc-credit--light { --vc-dot: #A8452F; }
.vc-credit__mark { display: block; height: .92em; width: auto; overflow: visible; }
.vc-credit__dot { fill: var(--vc-dot); transform-box: fill-box; transform-origin: center; transition: transform .8s cubic-bezier(.2, .9, .25, 1.35) .15s, filter .4s ease; }
.vc-credit__line { padding-left: .7em; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.vc-credit.is-arm .vc-credit__dot { transform: scale(0); }
.vc-credit.is-arm.is-in .vc-credit__dot { transform: scale(1); }
.vc-credit:hover, .vc-credit:focus-visible { opacity: 1; }
.vc-credit:hover .vc-credit__dot, .vc-credit:focus-visible .vc-credit__dot { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--vc-dot) 80%, transparent)); }
.vc-credit:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 520px) {
  .vc-credit { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 10px 6px; }
  .vc-credit__line { flex-basis: 100%; text-align: center; padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .vc-credit.is-arm .vc-credit__dot { transform: none; transition: none; } }

/* ---------- Entwurf-Hinweis, Dock ---------- */
.note__tab { position: fixed; z-index: 45; left: 0; top: 50%; padding: 14px 7px; border: 0; border-radius: 0 2px 2px 0; background: var(--tinte); color: #fff; font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); cursor: pointer; transition: padding .2s; }
.note__tab:hover { padding-left: 10px; }
.note { position: fixed; z-index: 70; left: 18px; bottom: 18px; width: min(340px, calc(100vw - 36px)); padding: 22px 22px 18px; display: grid; gap: 12px; background: var(--weiss); border: 1px solid var(--linie); border-top: 3px solid var(--blau); box-shadow: 0 30px 60px -24px rgba(29, 29, 27, .45); font-size: 14.5px; }
.note[hidden] { display: none; }
.note .btn { height: 44px; padding: 0 14px; font-size: 14px; }
.note__small { font-size: 12.5px; color: var(--grau); }
.note__x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.dock { display: none; }
@media (max-width: 899px) {
  .note__tab { display: none; }
  .note { left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); width: auto; }
  .dock { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: var(--weiss); border-top: 1px solid var(--linie); transform: translateY(110%); transition: transform .35s var(--ease); }
  .dock.is-on { transform: none; }
  .dock .btn { flex: 1 1 0; height: 44px; padding: 0 8px; }
  .dock__call { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: 2px; }
  .dock__call svg { width: 20px; height: 20px; fill: none; stroke: var(--gruen); stroke-width: 1.6; stroke-linejoin: round; }
  .dock__note { flex: none; height: 44px; padding: 0 4px; border: 0; background: none; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }
  .fuss { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- Logo-Auftakt ---------- */
.js:not(.no-anim) .lg__m, .js:not(.no-anim) .lg__l, .js:not(.no-anim) .lg__tag, .js:not(.no-anim) .wand__zeile { opacity: 0; }
.js:not(.no-anim) .lg__m { transform: translateY(-34px); }
.js:not(.no-anim) .lg__l { transform: translateY(40px); }
.js.ist-drin .lg__m { opacity: 1; transform: none; transition: opacity .6s ease calc(var(--i) * 90ms), transform 1s var(--ease) calc(var(--i) * 90ms); }
.js.ist-drin .lg__l { opacity: 1; transform: none; transition: opacity .55s ease calc(320ms + var(--i) * 45ms), transform .9s var(--ease) calc(320ms + var(--i) * 45ms); }
.js.ist-drin .lg__tag { opacity: 1; transition: opacity .9s ease 1s; }
.js.ist-drin .wand__zeile { opacity: 1; transition: opacity .9s ease 1.25s; }
@media (prefers-reduced-motion: reduce) {
  .fluegel, .fluegel::after, .tuer__innen, .fluegel__txt { transition: none !important; }
  .tuer .fluegel__scheibe::after { animation: none !important; }
  .js .lg__m, .js .lg__l, .js .lg__tag, .js .wand__zeile { opacity: 1 !important; transform: none !important; transition: none !important; }
  .zettel, .flow.wackelt .flow__blatt, .stups { animation: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 899px) {
  .wand { --boden: 16px; display: flex; flex-direction: column; padding-top: calc(var(--hdr-h) + 2px); }
  .wand__text { padding: 0 0 14px; margin-block: auto; }
  .wand__logo .lg { width: min(80vw, 340px); }
  .wand__zeile { margin-top: 12px; font-size: 1.02rem; line-height: 1.38; max-width: 22em; }
  .tuer { flex: 1 1 318px; width: 100%; height: auto; min-height: 318px; max-height: 132vw; }
  .tuer__tab { font-size: 1.12rem; }
  .tuer__chips .chip { min-height: 46px; padding: 6px 11px; font-size: 14px; }

  .bogen__in, .bogen--anf .bogen__in, .lehre__in, .proj__in, .kont__in { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .flow { margin-top: 14px; }
  .flow__weg { margin-bottom: 14px; }
  .flow__weg li { letter-spacing: .06em; font-size: 10px; }
  .flow__blatt { min-height: 232px; }
  .flow__frage { font-size: 1.08rem; margin-bottom: 8px; }
  .wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wahl:not(.wahl--reihe) .chip { min-height: 50px; align-items: center; padding: 6px 12px; font-size: 14.5px; }
  .wahl--reihe .chip { min-height: 42px; padding: 6px 13px; }
  .gruppe + .gruppe, .felder + .gruppe, .gruppe + .datei { margin-top: 10px; }
  .felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .feld input { height: 46px; padding: 0 11px; }
  .flow__fuss { margin-top: 12px; gap: 8px; }
  .flow__fuss .btn { height: 46px; padding: 0 16px; }
  .flow__hin { font-size: 13px; }
  .zettel { padding: 14px 14px 12px; }
  .zettel dl { gap: 3px 12px; }
  .zettel dd { font-size: 14.5px; }

  .stimme { justify-self: stretch; max-width: none; aspect-ratio: auto; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; background: none; overflow: visible; }
  .stimme img { width: 58px; height: 69px; }
  .stimme figcaption { position: static; padding: 0; gap: 3px; color: var(--tinte); background: none; }
  .stimme__name { color: var(--grau); opacity: 1; }
  .thema { display: none; }
  .bogen:has(.flow.ist-fertig) .stimme { display: none; }

  .lehre__text, .proj__text, .proj__bild, .kont__text { display: contents; }
  .lehre .lab, .proj .lab, .kont .lab { order: 1; margin-bottom: -9px; }
  .lehre .h2, .proj .h2, .kont .h2 { order: 2; margin-top: 0; }
  .film { order: 3; }
  .film picture { aspect-ratio: 2.4 / 1; }
  .film__play { margin-top: calc(41.66% - 44px - 10px); left: 10px; height: 44px; }
  .film__hin { margin-top: 6px; font-size: 12.5px; }
  .lehre .seg { order: 4; margin-top: 0; justify-self: start; }
  .seg__b { height: 38px; padding: 0 14px; }
  .fakten { order: 5; margin-top: -4px; }
  .fakten li { padding: 6px 0; gap: 12px; }
  .fakten li:nth-child(4) { display: none; }
  .fakten li:nth-child(3) { border-bottom: 1px solid var(--linie); }
  .fakten b { font-size: 15px; }
  .fakten span { font-size: 13.5px; }
  .lehre__los { order: 6; margin-top: 0; }
  .lehre__an { display: none; }

  .proj__fig { order: 3; }
  .proj__nav { order: 4; margin-top: -4px; }
  .proj__karte { order: 5; margin-top: 0; min-height: 12.2em; }
  .proj__karte li { font-size: 14.5px; }
  .proj__liste { display: none; }

  .kont__fig { order: 3; aspect-ratio: 2 / 1; }
  .kont .seg { order: 4; margin-top: 0; }
  .seg--3 .seg__b { font-size: 13.5px; padding: 0 2px; }
  .kont__karte { order: 5; margin-top: 0; min-height: 13.5em; }
  .kont__karte p { font-size: 15px; }
  .kont__los .btn { flex: 1 1 auto; }
  .fuss__in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 899px) and (max-height: 700px) { :root { --h2s: 1.72rem; } .wand__zeile span { display: none; } }
@media (min-width: 900px) and (max-height: 760px) {
  .flow__blatt { min-height: 240px; }
  .wahl:not(.wahl--reihe) .chip { min-height: 66px; padding: 10px 14px; }
}
