/* Kieber Holzbau demo — layout. Brand tokens (colours, font) live in brand.css; screens render from data.js. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--nacht); }
body { margin: 0; font: 400 var(--t-body)/1.55 var(--sans); color: var(--tinte); background: var(--nacht); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
b, strong { font-weight: 650; }
p, h1, h2, h3, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--laerche); outline-offset: 3px; }
[hidden] { display: none !important; }

:root {
  --kopf-h: 64px; --gut: clamp(16px, 4vw, 56px); --maxw: 1320px;
  --t-lab: 12px; --t-cap: 11px; --t-lead: 18px; --t-body: 16px; --t-small: 14px;
  --h1: clamp(2.7rem, min(4.6vw, 8.4svh), 4.6rem);
  --h3s: clamp(1.2rem, min(1.5vw, 2.6svh), 1.42rem);
  --wd: 87.5%;           /* width of headings: Archivo semi-condensed, as the logo caps */
}
@media (max-width: 719px) { :root { --kopf-h: 56px; --t-lab: 11px; --t-cap: 10.5px; --t-lead: 16px; --t-body: 15px; --t-small: 13.5px; --h3s: 1.18rem; } }

/* ---------- type roles ---------- */
.ueber { font: 650 var(--t-lab)/1.6 var(--sans); font-stretch: var(--wd); letter-spacing: .16em; text-transform: uppercase; color: var(--braun); }
.feld--dunkel .ueber, .first .ueber { color: var(--laerche); }
.kap { font: 550 var(--t-cap)/1.6 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--tinte-2); }
.feld--dunkel .kap, .bogen--dunkel .kap { color: var(--kalk-2); }
.vorspann { font: 400 var(--t-lead)/1.5 var(--sans); color: var(--tinte-2); }
.feld--dunkel .vorspann, .first .vorspann { color: var(--kalk-2); }
.fein { font: 400 var(--t-small)/1.5 var(--sans); }
.titel, .first__titel { font-weight: 760; font-stretch: var(--wd); letter-spacing: -.018em; line-height: 1.02; }
.titel em, .first__titel em { font-style: normal; color: var(--akzent); }
.feld--dunkel .titel em, .first__titel em { color: var(--akzent-l); }
.titel > span, .first__titel > span { display: block; }

/* ---------- buttons ---------- */
.knopf { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border: 1px solid var(--laerche); border-radius: var(--r); background: var(--laerche); color: var(--nacht); font: 650 15px/1.1 var(--sans); letter-spacing: .01em;
  text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .18s ease, background-color .25s ease;
  -webkit-touch-callout: none; user-select: none; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf::after { content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: 0; transition: opacity .25s ease; }
.knopf:hover::after { opacity: .18; }
.knopf:active { transform: scale(.97); }
.knopf--linie { background: transparent; color: inherit; border-color: currentColor; }
.knopf--linie::after { background: currentColor; }
.knopf--linie:hover::after { opacity: .12; }
.feld--hell .knopf:not(.knopf--linie), .bogen--hell .knopf:not(.knopf--linie) { background: var(--braun); border-color: var(--braun); color: var(--kalk); }

/* ---------- header ---------- */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--kopf-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gut);
  background: rgba(27, 19, 12, .96); color: var(--kalk); border-bottom: 1px solid rgba(243, 237, 228, .08); transition: background-color .35s ease, border-color .35s ease; }
.kopf.has-wappen { background: rgba(27, 19, 12, 0); border-bottom-color: transparent; }
.kopf__marke { display: block; width: 132px; transition: opacity .35s ease, transform .35s ease; }
.kopf.has-wappen .kopf__marke { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.kopf__nav { display: flex; gap: 26px; margin-left: auto; }
.kopf__nav a { text-decoration: none; font: 550 14px/1 var(--sans); color: var(--kalk); opacity: .78; padding: 10px 0; transition: opacity .2s ease; text-shadow: 0 1px 10px rgba(27, 19, 12, .35); }
.kopf__nav a:hover { opacity: 1; }
.kopf__ruf { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(211, 156, 94, .8); border-radius: var(--r);
  text-decoration: none; font: 550 14px/1 var(--sans); color: var(--kalk); white-space: nowrap; background: rgba(27, 19, 12, .35); }
.kopf__ruf svg { width: 17px; height: 17px; color: var(--laerche); }
.kopf__ruf:hover { background: rgba(211, 156, 94, .2); }
@media (max-width: 899px) { .kopf__nav { display: none; } .kopf__ruf { margin-left: auto; } .kopf.has-wappen { background: rgba(27, 19, 12, .96); } }
@media (max-width: 719px) { .kopf__ruf span { display: none; } .kopf__ruf { width: 44px; height: 44px; padding: 0; justify-content: center; } .kopf__marke { width: 116px; } }

.zeichen { width: 100%; height: auto; overflow: visible; }
.zeichen .zg-braun { fill: var(--logo-braun); } .zeichen .zg-weiss { fill: var(--logo-weiss); } .zeichen .zg-tinte { fill: var(--kalk); }

/* ---------- hero: the Richtfest scene, full bleed; the text on the calm sky at the left ---------- */
.first { position: relative; min-height: 100svh; background: var(--nacht); color: var(--kalk); overflow: hidden; overflow-anchor: none; display: flex; align-items: center; }
.szene { position: absolute; inset: 0; overflow: hidden; container-type: size; --fx: .5; --fy: .3; }
/* the 16:9 plate covers its box; --fx/--fy choose which part stays when the box is narrower or taller */
.buehne { --W: max(100cqw, calc(100cqh * 16 / 9));
  position: absolute; width: var(--W); aspect-ratio: 16 / 9; height: auto;
  left: clamp(calc(100cqw - var(--W)), calc(50cqw - var(--fx) * var(--W)), 0px);
  top: calc((100cqh - var(--W) * 9 / 16) * var(--fy)); }
.buehne picture { display: contents; }
.buehne__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buehne__film { position: absolute; opacity: 0; transition: opacity .2s linear; object-fit: fill;
  /* the film is a crop of the same render: its edges fade into the still underneath */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.buehne.has-film .buehne__film { opacity: 1; }
.buehne__film.is-off { display: none; }
.buehne__ui { position: absolute; inset: 0; pointer-events: none; }
.buehne__ui > * { pointer-events: auto; }
.buehne__ui:not(.is-placed) > * { visibility: hidden; }
.buehne__linien { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none !important; overflow: visible; }
.linie { fill: none; stroke: rgba(243, 237, 228, .9); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.3, .7, .2, 1); }
.linie.is-on { stroke-dashoffset: 0; }
.linie__knoten { fill: rgba(243, 237, 228, 0); stroke: rgba(243, 237, 228, .65); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill .4s ease, stroke .4s ease; }
.linie__knoten.is-on { fill: var(--kalk); stroke: var(--kalk); }
.buehne__baum { position: absolute; width: 6.2%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: none; padding: 0; }
.buehne__baum i { position: absolute; inset: 0; border-radius: 50%; }
.buehne__baum i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--kalk); opacity: 0; transform: scale(.7); }
.buehne.is-ready .buehne__baum i::after { animation: ring 1.9s ease-out 3; }
.buehne.is-ready.is-off .buehne__baum i::after { animation-play-state: paused; }
@keyframes ring { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: .85; } 100% { opacity: 0; transform: scale(1.4); } }
.buehne__baum:hover i::after { opacity: .9; transform: scale(1.05); transition: transform .3s ease, opacity .3s ease; }
.buehne__tipp { position: absolute; transform: translate(-100%, -50%); font: 650 var(--t-cap)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--kalk);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .5s ease; text-shadow: 0 1px 8px rgba(27, 19, 12, .45); }
.buehne.is-ready .buehne__tipp { opacity: .9; }

.band { position: absolute; transform: translateY(-50%); border: 0; padding: 4px 0 4px 2px; background: none; text-align: left; color: var(--kalk);
  display: flex; flex-direction: column; gap: 2px; opacity: .5; transition: opacity .5s ease; text-shadow: 0 1px 12px rgba(27, 19, 12, .5); }
.band.is-on { opacity: 1; }
.band__t { font: 650 clamp(15px, 1.15vw, 21px)/1.08 var(--sans); font-stretch: var(--wd); white-space: nowrap; }
.band__s { font: 550 clamp(10px, .62vw, 11.5px)/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--kalk); opacity: .82; white-space: nowrap; }
.band--kunde .band__t { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .band:hover .band__t { text-decoration: underline 1px; text-underline-offset: 5px; }
}

/* the text column sits on a soft dusk shade over the left sky */
.first::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(27, 19, 12, .78) 0, rgba(27, 19, 12, .55) 26%, rgba(27, 19, 12, .12) 44%, rgba(27, 19, 12, 0) 54%),
              linear-gradient(180deg, rgba(27, 19, 12, .5) 0, rgba(27, 19, 12, 0) 16%); }
.first::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(27, 19, 12, 0), rgba(27, 19, 12, .55)); }
.szene { z-index: 0; } .buehne__ui { z-index: 2; }
.first__text { position: relative; z-index: 3; width: min(560px, 42vw); margin-left: var(--gut); padding: calc(var(--kopf-h) + 12px) 0 40px; }
.wappen__logo { width: clamp(220px, 19vw, 320px); }
.first__ort { margin-top: clamp(24px, 4.6svh, 48px); }
.first__titel { font-size: var(--h1); margin-top: 10px; text-shadow: 0 2px 24px rgba(27, 19, 12, .35); }
.first__zeile { max-width: 36ch; margin-top: 18px; color: var(--kalk) !important; opacity: .86; }
.first__hinweis { margin-top: 12px; color: var(--laerche); font: 550 var(--t-small)/1.4 var(--sans); }
.first__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4.4svh, 40px); }
.first__knoepfe .knopf--linie { color: var(--kalk); background: rgba(27, 19, 12, .3); }
/* the scene's own UI sits above the shade, the text column above everything */
.szene { z-index: auto; }
.first .buehne__ui { z-index: 2; }
@media (min-width: 900px) and (max-width: 1239px) { .szene { --fx: .6; } .first__text { width: min(440px, 44vw); } .first::before { background: linear-gradient(90deg, rgba(27, 19, 12, .84) 0, rgba(27, 19, 12, .64) 34%, rgba(27, 19, 12, .1) 52%, rgba(27, 19, 12, 0) 60%), linear-gradient(180deg, rgba(27, 19, 12, .5) 0, rgba(27, 19, 12, 0) 16%); } }

/* phone + portrait tablet: logo and place, the title, the scene in its own box, two doors */
@media (max-width: 899px) {
  .first { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "titel" "szene" "knoepfe"; align-content: start;
    padding: calc(var(--kopf-h) + 10px) 0 16px; min-height: 0; }
  .first::before, .first::after { display: none; }
  .first__text { display: contents; }
  .wappen { grid-area: logo; padding: 0 var(--gut); z-index: 3; }
  .wappen__logo { width: min(46vw, 210px); }
  .first__zeile { display: none; }
  .first__ort { grid-area: logo; justify-self: end; align-self: center; max-width: 42%; margin: 0 var(--gut) 0 0; text-align: right; font-size: 10px; line-height: 1.5; letter-spacing: .14em; z-index: 3; }
  .first__titel { grid-area: titel; z-index: 3; margin: 16px var(--gut) 12px; font-size: clamp(1.75rem, 8.2vw, 2.7rem); }
  .first__hinweis { grid-area: knoepfe; margin: 0 var(--gut) 8px; }
  .szene { grid-area: szene; position: relative; inset: auto; height: clamp(280px, calc(100svh - var(--kopf-h) - 268px), 560px); --fx: .665; --fy: .28; }
  .first__knoepfe { grid-area: knoepfe; display: grid; grid-template-columns: 1fr 1fr; padding: 0 var(--gut); margin-top: 12px; z-index: 3; }
  .first__knoepfe .knopf { padding: 0 12px; }
  .first__knoepfe .knopf--linie { background: transparent; }
  .buehne__tipp { display: none; }
  .band { gap: 1px; }
  .band__t { font-size: 13.5px; white-space: normal; width: 7.2em; }
  .band__s { display: none; }
  .buehne__baum { width: 11%; }
}

/* ---------- screens layer ---------- */
:root {
  --scr-t: calc(var(--kopf-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.2rem, min(3.6vw, 6svh), 3.8rem);
}
@media (max-width: 899px) { :root { --scr-b: 28px; } }
@media (max-width: 719px) { main > section { scroll-margin-top: var(--kopf-h); } :root { --scr-t: 26px; --h2s: clamp(2rem, 8.8vw, 2.5rem); } }
main .titel { font-size: var(--h2s); }
main > section.feld { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) { main > section.feld { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
.rahmen { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.feld--hell { background: var(--papier); color: var(--tinte); }
.feld--dunkel { background: var(--nacht); color: var(--kalk); }
.feld .titel { margin-top: 8px; }
.feld .vorspann { margin-top: 14px; max-width: 44ch; }

.haken li { position: relative; padding-left: 26px; margin-top: 8px; font: 400 var(--t-body)/1.45 var(--sans); }
.haken li::before { content: ''; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; background: var(--braun);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 4.8 4.8L19.5 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 4.8 4.8L19.5 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.haken--dunkel li::before, .feld--dunkel .haken li::before { background: var(--laerche); }

/* ---------- sheet (jobs + inquiry) ---------- */
.bogen { position: relative; border-radius: var(--r); padding: 20px 22px 22px; display: flex; flex-direction: column; min-height: 380px; }
.bogen--dunkel { background: var(--nacht); color: var(--kalk); box-shadow: 0 30px 60px -30px rgba(27, 19, 12, .6); }
.bogen--hell { background: #fff; color: var(--tinte); border: 1px solid var(--papier-2); box-shadow: 0 30px 60px -36px rgba(27, 19, 12, .35); }
.bogen__kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 36px; }
.bogen__zurueck { width: 36px; height: 36px; margin-left: -8px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.bogen__zurueck svg { width: 20px; height: 20px; }
.bogen__zurueck:hover { background: rgba(128, 128, 128, .16); }
.bogen__zurueck[hidden] + .bogen__titel { grid-column: 1 / 3; }
.bogen__titel { font: 650 var(--h3s)/1.2 var(--sans); font-stretch: var(--wd); min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.bogen__schritt { white-space: nowrap; }
/* progress = a batten that fills with the colour of fresh larch */
.latte { position: relative; height: 10px; margin: 14px 0 16px; border-radius: 1px; overflow: hidden; background: rgba(243, 237, 228, .08); box-shadow: inset 0 0 0 1px rgba(243, 237, 228, .16); }
.latte--hell { background: var(--papier); box-shadow: inset 0 0 0 1px var(--papier-2); }
.latte__fill { position: absolute; inset: 2px; border-radius: 1px; background: linear-gradient(180deg, #e6b47a 0, #d39c5e 55%, #b47a3e 100%);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.latte--hell .latte__fill { background: linear-gradient(180deg, #7a4818 0, #5e3409 60%, #4f2c08 100%); }
.bogen__inhalt { flex: 1; display: flex; flex-direction: column; }
.bogen__frage { font: 650 var(--h3s)/1.25 var(--sans); font-stretch: var(--wd); }
.bogen__hinweis { margin-top: 6px; font: 400 var(--t-small)/1.45 var(--sans); color: var(--kalk-2); }
.bogen--hell .bogen__hinweis { color: var(--tinte-2); }
.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wahl__punkt { min-height: 52px; padding: 12px 14px; text-align: left; border-radius: var(--r); font: 400 15px/1.3 var(--sans);
  border: 1px solid rgba(243, 237, 228, .2); background: rgba(243, 237, 228, .04); transition: border-color .2s ease, background-color .2s ease; }
.wahl__punkt:hover { border-color: rgba(211, 156, 94, .75); }
.wahl__punkt.is-on { border-color: var(--laerche); background: rgba(211, 156, 94, .26); }
.bogen__stand { margin-top: 10px; min-height: 1.45em; font: 400 var(--t-small)/1.45 var(--sans); color: var(--laerche); }
.bogen--hell .wahl__punkt { border-color: var(--papier-2); background: var(--papier); }
.bogen--hell .wahl__punkt:hover { border-color: var(--braun); }
.bogen--hell .wahl__punkt.is-on { border-color: var(--braun); background: rgba(79, 44, 8, .09); }
.wahl--eins { grid-template-columns: minmax(0, 1fr); }
.wahl--klein { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wahl--klein .wahl__punkt { min-height: 44px; padding: 9px 12px; font-size: 14px; }
.wahl2 { margin-top: 14px; }
.wahl2 .wahl { margin-top: 6px; }
.felder { display: grid; gap: 14px; margin-top: 14px; }
.eingabe { display: grid; gap: 4px; }
.eingabe > span { font: 550 var(--t-cap)/1.5 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--kalk-2); }
.bogen--hell .eingabe > span { color: var(--tinte-2); }
.eingabe input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid rgba(243, 237, 228, .35); background: transparent; padding: 8px 0 9px; font: 400 17px/1.3 var(--sans); border-radius: 0; }
.bogen--hell .eingabe input { border-bottom-color: #cbbfae; }
.eingabe input:focus { outline: 0; border-bottom-color: var(--laerche); }
.bogen--hell .eingabe input:focus { border-bottom-color: var(--braun); }
.bogen__weiter { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bogen__weiter .knopf { flex: 1 1 auto; }
.bogen__fehler { font: 400 var(--t-small)/1.4 var(--sans); color: var(--laerche); flex-basis: 100%; }
.bogen--hell .bogen__fehler { color: var(--braun); }
.zettel { border: 1px dashed rgba(243, 237, 228, .35); border-radius: var(--r); padding: 14px 16px; }
.bogen--hell .zettel { border-color: #cbbfae; }
.zettel__titel { display: flex; align-items: center; gap: 10px; font: 650 var(--h3s)/1.25 var(--sans); font-stretch: var(--wd); }
.zettel__titel svg { width: 22px; height: 22px; color: #3f9a5a; flex: none; }
.zettel dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin-top: 12px; font: 400 var(--t-small)/1.4 var(--sans); }
.zettel dt { color: var(--kalk-2); }
.bogen--hell .zettel dt { color: var(--tinte-2); }
.zettel dd { min-width: 0; overflow-wrap: anywhere; }
.zettel__notiz { margin-top: 12px; font: 400 var(--t-small)/1.45 var(--sans); color: var(--kalk-2); }
.bogen--hell .zettel__notiz { color: var(--tinte-2); }
.zettel__notiz b { color: var(--kalk); font-weight: 650; }
.bogen--hell .zettel__notiz b { color: var(--tinte); }

/* ---------- Stellen ---------- */
.stellen__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(28px, 5vw, 88px); align-items: center; }
.reiter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 3.4svh, 30px); }
.reiter__knopf { min-height: 42px; padding: 0 15px; border: 1px solid #d2c6b6; border-radius: var(--r); background: transparent; font: 550 14px/1 var(--sans); color: var(--tinte); white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.reiter__knopf:hover { border-color: var(--tinte); }
.reiter__knopf[aria-selected="true"] { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.profil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: clamp(18px, 3.4svh, 30px); }
.profil .haken { margin-top: 2px; }
.stellen .vorspann--kurz { display: none; }

/* ---------- Lehre ---------- */
.lehre__raster { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.lehre__vorteile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: clamp(16px, 3svh, 26px); }
.lehre__vorteile li { font-size: var(--t-small); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; min-width: 0; }
.lehre__eltern { margin-top: 16px; color: var(--kalk-2); }
.lehre__text .knopf { margin-top: clamp(18px, 3.4svh, 30px); }
.lehre .titel { font-size: min(var(--h2s), 3.2rem); hyphens: manual; }
.drei { position: relative; }
.drei__buehne { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); }
.drei__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drei__schatten { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 24% 42% at var(--sx, 50%) var(--sy, 50%), rgba(27, 19, 12, 0) 45%, rgba(27, 19, 12, .5) 100%); }
.drei__punkte { position: absolute; inset: 0; }
.drei__punkt { position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; border-radius: 50%; }
.drei__punkt i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1.5px solid var(--kalk); background: rgba(27, 19, 12, .3); transition: transform .3s ease, background-color .3s ease; }
.drei__punkt.is-on i { background: var(--laerche); border-color: var(--laerche); transform: scale(1.25); }
.drei__punkt:hover i { transform: scale(1.25); }
.drei__reiter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4px; border-top: 1px solid var(--nacht-3); }
.drei__tab { min-height: 48px; border: 0; background: none; font: 550 15px/1.2 var(--sans); color: var(--kalk-2); border-top: 2px solid transparent; margin-top: -1px; transition: color .2s ease, border-color .2s ease; }
.drei__tab:hover { color: var(--kalk); }
.drei__tab[aria-selected="true"] { color: var(--kalk); border-top-color: var(--laerche); }
.drei__zeile { margin-top: 10px; min-height: 3em; text-align: center; font: 400 var(--t-lead)/1.5 var(--sans); color: var(--kalk); }

/* ---------- Anfrage ---------- */
.anfrage__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 5vw, 88px); align-items: center; }
.projekt { margin-top: clamp(16px, 3svh, 28px); }
.projekt__rahmen { position: relative; height: clamp(170px, calc(var(--scr-h) - 400px), 400px); overflow: hidden; border-radius: var(--r); background: var(--papier-2); }
.projekt__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.projekt__bild.is-out { opacity: 0; }
.projekt__unter { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 10px; }
.projekt__unter .fein { color: var(--tinte-2); }
.stimme { margin-top: clamp(14px, 2.6svh, 24px); padding-left: 16px; border-left: 2px solid var(--braun); max-width: 46ch; }
.stimme p { font: 400 var(--t-body)/1.45 var(--sans); color: var(--tinte); }
.stimme cite { display: block; margin-top: 4px; font-style: normal; color: var(--tinte-2); }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.kachel { position: relative; height: clamp(84px, 11.5svh, 112px); border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--papier-2); text-align: left; color: #fff; }
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kachel::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(27, 19, 12, 0) 30%, rgba(27, 19, 12, .8)); }
.kachel span { position: absolute; z-index: 2; left: 12px; right: 10px; bottom: 9px; font: 650 15px/1.2 var(--sans); font-stretch: var(--wd); }
.kachel::after { content: ''; position: absolute; inset: 0; z-index: 3; border: 2px solid transparent; border-radius: var(--r); transition: border-color .2s ease; }
.kachel.is-on::after { border-color: var(--laerche); }
.kachel:hover img { transform: scale(1.04); }
.fotos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fotos__neu { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1px dashed #bcae9b; border-radius: var(--r); background: var(--papier); cursor: pointer; font: 550 15px/1.2 var(--sans); }
.fotos__neu svg { width: 22px; height: 22px; color: var(--braun); }
.fotos__neu input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fotos__mini { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; background: var(--papier-2); }
.fotos__notiz { margin-top: 10px; font: 400 var(--t-small)/1.45 var(--sans); color: var(--tinte-2); }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- Kontakt ---------- */
.kontakt { position: relative; }
.kontakt__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.abend { position: relative; width: min(100%, calc(var(--scr-h) - 10px), 620px); aspect-ratio: 1; justify-self: center; overflow: hidden; border-radius: var(--r); }
.abend__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.abend__bild--nacht { opacity: 0; }
.abend.is-nacht .abend__bild--nacht { opacity: 1; }
.kontakt__jetzt { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; font: 550 var(--t-body)/1.4 var(--sans); color: var(--kalk); }
.kontakt__jetzt::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--kalk-2); flex: none; }
.kontakt__jetzt.is-offen::before { background: #4fb66e; box-shadow: 0 0 0 4px rgba(79, 182, 110, .2); }
.kontakt__wer { margin-top: 12px; }
.zeiten { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin-top: clamp(16px, 3svh, 26px); font: 400 var(--t-body)/1.45 var(--sans); }
.zeiten dt { color: var(--kalk-2); }
.zeiten dd span { white-space: nowrap; }
.zeiten .is-today { color: var(--kalk); }
.kontakt__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.6svh, 34px); }
.kontakt__knoepfe .knopf--linie { color: var(--kalk); }

/* ---------- footer ---------- */
.fuss { background: var(--nacht); color: var(--kalk-2); padding-top: 8px; }
.fuss__zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--nacht-3); }
.fuss__links { display: flex; gap: 22px; }
.fuss__fotos { margin-top: 8px; opacity: .8; }
.fuss a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(184, 169, 150, .5); }
.fuss a:hover { color: var(--kalk); }
.fuss .vc-credit-row { margin-top: 18px; }

/* ---------- draft note + dock ---------- */
.entwurf__lasche { position: fixed; left: 0; top: 50%; z-index: 45; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 14px 7px; border: 0; border-radius: 0 var(--r) var(--r) 0;
  background: var(--nacht-3); color: var(--kalk); font: 650 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.entwurf__lasche:hover { background: #4b3a29; }
.entwurf { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(20, 14, 9, .55); }
.entwurf__blatt { position: relative; width: min(440px, 100%); padding: 26px 24px 22px; border-radius: var(--r); background: var(--papier); color: var(--tinte); display: grid; gap: 16px; justify-items: start; font: 400 var(--t-body)/1.55 var(--sans); }
.entwurf__blatt .knopf--linie { color: var(--tinte); }
.entwurf__fein { color: var(--tinte-2); }
.entwurf__zu { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--papier); }
.entwurf__zu::before, .entwurf__zu::after { content: ''; position: absolute; left: 13px; right: 13px; top: 21px; height: 1.6px; background: var(--tinte); transform: rotate(45deg); }
.entwurf__zu::after { transform: rotate(-45deg); }
.leiste { display: none; }
@media (max-width: 899px) {
  .entwurf__lasche { display: none; }
  .leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 42; display: grid; grid-template-columns: minmax(0, 1fr) 52px auto; gap: 8px; align-items: center;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(27, 19, 12, .97); border-top: 1px solid var(--nacht-3);
    transform: translateY(110%); transition: transform .35s ease; }
  .leiste.is-on { transform: none; }
  .leiste__haupt { min-height: 48px; border: 0; border-radius: var(--r); background: var(--laerche); color: var(--nacht); font: 650 15px/1 var(--sans); }
  .leiste__ruf { display: grid; place-items: center; height: 48px; border: 1px solid var(--laerche); border-radius: var(--r); color: var(--kalk); }
  .leiste__ruf svg { width: 20px; height: 20px; }
  .leiste__entwurf { min-height: 48px; padding: 0 10px; border: 0; background: none; color: var(--kalk-2); font: 650 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
  main > section:last-of-type { padding-bottom: calc(var(--scr-b) + 20px); }
  .fuss { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1100px) and (min-width: 900px) {
  .stellen__raster, .anfrage__raster { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .profil { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 899px) {
  .stellen__raster, .anfrage__raster, .lehre__raster, .kontakt__raster { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bogen { min-height: 0; }
  .projekt, .stimme { display: none; }
  .abend { width: 100%; aspect-ratio: auto; height: clamp(150px, 26svh, 260px); justify-self: stretch; }
  .abend__bild { object-position: 50% 30%; }
}
@media (max-width: 719px) {
  .stellen__vorspann, .anfrage__vorspann { display: none; }
  .stellen .vorspann--kurz { display: block; margin-top: 8px; max-width: none; }
  .reiter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 16px calc(var(--gut) * -1) 0; padding: 0 var(--gut); scroll-snap-type: x proximity; }
  .reiter::-webkit-scrollbar { display: none; }
  .reiter__knopf { scroll-snap-align: start; min-height: 40px; padding: 0 13px; }
  .profil { display: none; }
  .bogen { padding: 16px 16px 18px; }
  .lehre__raster { gap: 11px; }
  .lehre__text { display: contents; }
  .lehre__text > .ueber { order: 1; } .lehre__text > .titel { order: 2; margin-top: 4px; } .drei { order: 3; } .lehre__text > .vorspann { display: none; }
  .lehre__vorteile { order: 4; margin-top: 0; } .lehre__eltern { display: none; } .lehre__text > .knopf { order: 5; margin-top: 0; justify-self: start; }
  .drei__zeile { min-height: 0; font-size: var(--t-body); }
  .lehre__vorteile li { margin-top: 4px; }
  .kontakt__wer { margin-top: 8px; }
  .zeiten { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin-top: 12px; font-size: var(--t-small); }
  .kontakt__knoepfe { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 16px; }
  .kontakt__knoepfe .knopf { padding: 0 10px; }
  .kontakt__raster > .abend { order: 0; height: clamp(120px, 20svh, 200px); }
  .kontakt__raster { gap: 14px; }
  .kontakt__jetzt { margin-top: 8px; font-size: var(--t-small); }
  .lehre__vorteile li:nth-child(n+3) { display: none; }
  .drei__tab { min-height: 40px; }
  .drei__zeile { margin-top: 6px; }
  .reiter { margin-top: 12px; }
  .kachel { height: clamp(70px, 10svh, 96px); }
  .fuss__zeile { flex-direction: column; }
}

/* ---------- motion states ---------- */
.js .wappen__logo, .js .first__ort, .js .first__titel, .js .first__zeile, .js .first__knoepfe { opacity: 0; }
.no-anim .wappen__logo, .no-anim .first__ort, .no-anim .first__titel, .no-anim .first__zeile, .no-anim .first__knoepfe,
.is-static .wappen__logo, .is-static .first__ort, .is-static .first__titel, .is-static .first__zeile, .is-static .first__knoepfe { opacity: 1 !important; }
@media (max-width: 899px) { .js .first__zeile { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* VCSLV credit — one quiet line under the footer. Takes the footer's colour and font; the mark is vector
   (Onest 700 outlines, no font download). Only the dot carries our terracotta. */
.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; } }

.nur-s { display: none; }
@media (max-width: 719px) { .ohne-s { display: none; } .nur-s { display: inline; } }

/* phones: the first step of the application (experience + licence) fits one screen down to Safari's 390×664 */
@media (max-width: 719px) {
  .wahl { margin-top: 10px; }
  .wahl__punkt { min-height: 44px; padding: 9px 12px; font-size: 14.5px; }
  .wahl2 { margin-top: 10px; }
  .wahl2 .wahl__punkt { min-height: 40px; }
  .bogen__weiter { padding-top: 12px; }
  .latte { margin: 10px 0 12px; }
}
@media (max-width: 719px) and (max-height: 700px) {
  .bogen__hinweis, .stellen .vorspann--kurz { display: none; }
}
