/* FRITZ Holzbau demo — layout. Brand tokens (colours, fonts) 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(--kohle); }
body { margin: 0; font: 400 var(--t-body)/1.55 var(--sans); color: var(--tinte); background: var(--kohle); 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: 600; }
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(--gruen-h); outline-offset: 3px; }
[hidden] { display: none !important; }

:root {
  --hdr-h: 64px; --gut: clamp(16px, 4vw, 56px); --maxw: 1320px;
  --t-kick: 12px; --t-notiz: 11.5px; --t-lead: 18.5px; --t-body: 16.5px; --t-klein: 14.5px;
  --h1: clamp(3rem, min(5.4vw, 8.6svh), 6.2rem);
  --h2: clamp(2.6rem, min(4.2vw, 7svh), 4.6rem);
  --h3: clamp(1.25rem, min(1.6vw, 2.7svh), 1.5rem);
}
@media (max-width: 719px) { :root { --hdr-h: 56px; --t-kick: 11px; --t-notiz: 10.5px; --t-lead: 16.5px; --t-body: 15.5px; --t-klein: 14px; --h3: 1.2rem; --h2: clamp(2.3rem, 10.4vw, 2.9rem); } }

/* ---------- type roles ---------- */
.kicker { font: 600 var(--t-kick)/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gruen); }
.flaeche--dunkel .kicker, .start .kicker { color: var(--gruen-h); }
.notiz { font: 600 var(--t-notiz)/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tinte-2); }
.flaeche--dunkel .notiz, .bogen--dunkel .notiz { color: var(--grau); }
.text-l { font: 400 var(--t-lead)/1.5 var(--sans); color: var(--tinte-2); }
.flaeche--dunkel .text-l { color: var(--grau); }
.klein { font: 400 var(--t-klein)/1.5 var(--sans); }
.titel, .head2 { font-family: var(--cond); font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; }
.titel em, .head2 em { font-style: normal; color: var(--gruen); }
.flaeche--dunkel .head2 em, .titel em { color: var(--gruen-h); }
.head2 { font-size: var(--h2); margin-top: 10px; }
.head2 > span { display: block; }

/* ---------- buttons ---------- */
.tast { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1px solid var(--gruen); border-radius: var(--r); background: var(--gruen); color: #fff; font: 600 15.5px/1.1 var(--sans); letter-spacing: .02em;
  text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .18s ease, background-color .25s ease, border-color .25s ease;
  -webkit-touch-callout: none; user-select: none; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.tast svg { width: 18px; height: 18px; flex: none; }
.tast:hover { background: var(--gruen-d); border-color: var(--gruen-d); }
.tast:active { transform: scale(.97); }
.tast--rand { background: transparent; color: inherit; border-color: currentColor; }
.tast--rand:hover { background: rgba(127, 127, 127, .14); border-color: currentColor; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--hdr-h); display: flex; align-items: center; gap: 30px; padding: 0 var(--gut);
  background: rgba(29, 29, 27, .96); color: var(--weiss); border-bottom: 1px solid rgba(244, 241, 234, .07); }
.top__marke { display: block; width: 74px; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { text-decoration: none; font: 600 14px/1 var(--sans); letter-spacing: .04em; color: var(--grau); padding: 10px 0; transition: color .2s ease; }
.top__nav a:hover { color: var(--weiss); }
.top__ruf { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(63, 178, 122, .65); border-radius: var(--r);
  text-decoration: none; font: 600 14px/1 var(--sans); color: var(--weiss); white-space: nowrap; }
.top__ruf svg { width: 17px; height: 17px; color: var(--gruen-h); }
.top__ruf:hover { background: rgba(63, 178, 122, .14); }
@media (max-width: 899px) { .top__nav { display: none; } .top__ruf { margin-left: auto; } }
@media (max-width: 719px) { .top__ruf span { display: none; } .top__ruf { width: 44px; height: 44px; padding: 0; justify-content: center; } .top__marke { width: 64px; } }

.logo { width: 100%; height: auto; overflow: visible; }
.logo .lg-wort { fill: var(--gruen); } .logo .lg-holz { fill: var(--tinte); } .logo .lg-punkt { fill: var(--rot); }
.logo--weiss .lg-wort, .logo--weiss .lg-holz { fill: var(--weiss); }

/* ---------- hero: «Fixhaus wählen» ---------- */
.start { position: relative; height: 100svh; min-height: 600px; padding: var(--hdr-h) var(--gut) 0; background: var(--kohle); color: var(--weiss); overflow: hidden; overflow-anchor: none;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "kopf kopf" "mass aktion" "leiste leiste"; }
.modell { position: absolute; inset: calc(var(--hdr-h) + 4svh) 6vw 10svh 6vw; z-index: 0; }
.modell picture { display: contents; }
.modell__bild, .modell__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.modell__film { opacity: 0; transition: opacity .2s linear; transform: translateZ(0);
  /* decoders shift the dark ground by a level or two: the edges fade into the exact still underneath */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent); mask-composite: intersect; }
.modell.has-film .modell__film { opacity: 1; }
.modell__tipp { position: absolute; left: 30%; top: 28%; width: 40%; height: 46%; border: 0; background: none; padding: 0; border-radius: 50%; }
.start__kopf, .mass, .leiste, .aktion { position: relative; z-index: 2; }
.start__kopf { grid-area: kopf; text-align: center; padding-top: clamp(16px, 3.4svh, 40px); }
.titel { font-size: var(--h1); margin-top: 8px; }
.titel > span { display: inline; }
.titel > span + span::before { content: ' '; }
.mass { grid-area: mass; align-self: center; justify-self: start; max-width: 250px; padding-bottom: 4svh; }
.mass__typ { font: 600 var(--t-kick)/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gruen-h); }
.mass__zahl { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font: 900 clamp(4.6rem, min(7.6vw, 13svh), 8.4rem)/.86 var(--cond); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mass__einh { font-size: .36em; font-weight: 800; letter-spacing: .02em; color: var(--grau); }
.mass__info { margin-top: 10px; font: 600 var(--t-notiz)/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--grau); }
.mass__satz { margin-top: 12px; font: 400 var(--t-body)/1.45 var(--sans); color: var(--weiss); min-height: 4.35em; }
.mass__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 0; border: 0; background: none; color: var(--gruen-h);
  font: 600 var(--t-klein)/1.2 var(--sans); letter-spacing: .03em; border-bottom: 1px solid rgba(63, 178, 122, .45); }
.mass__link svg { width: 18px; height: 18px; transition: transform .25s ease; }
.mass__link:hover svg { transform: translateX(4px); }
.aktion { grid-area: aktion; align-self: center; justify-self: end; width: min(260px, 100%); padding-bottom: 4svh; }
.vorspann { font: 400 var(--t-body)/1.5 var(--sans); color: var(--grau); }
.start__status { margin-top: 10px; color: var(--gruen-h); font: 600 var(--t-klein)/1.4 var(--sans); }
.aktion__knoepfe { display: grid; gap: 10px; margin-top: 18px; }
.aktion__knoepfe .tast--rand { color: var(--weiss); }
.leiste { grid-area: leiste; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; width: min(100%, 900px); justify-self: center;
  margin-bottom: clamp(14px, 3svh, 34px); border-top: 1px solid var(--kohle-3); }
.typ { position: relative; display: grid; gap: 2px; justify-items: center; padding: 12px 6px 6px; border: 0; background: none; color: var(--grau); text-align: center; transition: color .3s ease; }
.typ::before { content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 2px; background: var(--gruen-h); transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.typ__n { font: 600 var(--t-notiz)/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.typ__m { font: 800 clamp(1.5rem, min(2.2vw, 3.6svh), 2.1rem)/1 var(--cond); color: inherit; font-variant-numeric: tabular-nums; }
.typ__s { font: 400 12.5px/1.3 var(--sans); color: rgba(167, 161, 151, .8); }
.typ.is-seen { color: rgba(244, 241, 234, .72); }
.typ.is-on { color: var(--weiss); }
.typ.is-on::before { transform: scaleX(1); }
.typ.is-on .typ__n { color: var(--gruen-h); }
@media (hover: hover) and (pointer: fine) { .typ:hover { color: var(--weiss); } }

/* phone + portrait tablet: title, the model in its own frame with the m² on it, the six types, two doors */
@media (max-width: 899px) {
  .start { height: auto; min-height: 0; padding: calc(var(--hdr-h) + 10px) 0 24px; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto; grid-template-areas: "kopf" "modell" "leiste" "aktion"; align-content: start; }
  .start__kopf { text-align: left; padding: 0 var(--gut); }
  .titel { font-size: clamp(2.5rem, 11.6vw, 3.4rem); line-height: .9; margin-top: 6px; }
  .titel > span { display: block; }
  .titel > span + span::before { content: none; }
  .modell { position: relative; inset: auto; grid-area: modell; width: 100%; height: min(calc(100vw / 1.25), calc(100svh - var(--hdr-h) - 374px)); min-height: 180px; margin-top: 4px; }
  .modell__bild, .modell__film { object-fit: contain; }
  .modell__tipp { left: 22%; top: 25%; width: 62%; height: 62%; }
  .mass { grid-area: modell; align-self: start; justify-self: start; max-width: 60%; padding: 10px var(--gut) 0; }
  .mass__zahl { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .mass__einh { font-size: .5em; }
  .mass__info, .mass__satz, .mass__link { display: none; }
  .leiste { grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; justify-self: stretch; margin: 8px var(--gut) 0; gap: 0; border-top: 0; }
  .typ { gap: 0; padding: 8px 8px 7px; border-top: 1px solid var(--kohle-3); text-align: left; justify-items: start; }
  .typ__m { white-space: nowrap; }
  .typ::before { left: 0; right: 0; top: auto; bottom: -1px; }
  .typ.is-on { background: rgba(244, 241, 234, .05); }
  .leiste .typ:nth-child(n+4) { border-bottom: 1px solid var(--kohle-3); }
  .typ__s { display: none; }
  .typ__m { font-size: 1.45rem; }
  .aktion { justify-self: stretch; width: auto; padding: 0 var(--gut); margin-top: 12px; }
  .vorspann { display: none; }
  .aktion__knoepfe { grid-template-columns: minmax(0, 1fr) auto; margin-top: 0; }
  .aktion__knoepfe .tast { padding: 0 16px; }
}

/* ---------- screens layer ---------- */
:root {
  --scr-t: calc(var(--hdr-h) + clamp(14px, 3.4svh, 44px));
  --scr-b: clamp(18px, 3.6svh, 46px);
  --scr-h: calc(100svh - var(--scr-t) - var(--scr-b));
}
@media (max-width: 899px) { :root { --scr-b: 26px; } }
@media (max-width: 719px) { main > section { scroll-margin-top: var(--hdr-h); } :root { --scr-t: 24px; } }
main > section.flaeche { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) { main > section.flaeche { 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); }
.flaeche--hell { background: var(--papier); color: var(--tinte); }
.flaeche--dunkel { background: var(--kohle); color: var(--weiss); }

.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: .22em; width: 16px; height: 16px; background: var(--gruen);
  -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; }

/* ---------- tabs (Fixhaus types, roles) ---------- */
.reiter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(14px, 2.6svh, 24px); }
.reiter__b { min-height: 40px; padding: 0 14px; border: 1px solid #cbc4b8; border-radius: var(--r); background: transparent; font: 600 14px/1 var(--sans); color: var(--tinte); white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.reiter__b:hover { border-color: var(--tinte); }
.reiter__b[aria-selected="true"] { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }

/* ---------- console (Richtpreis-Anfrage + Bewerbung) ---------- */
.bogen { position: relative; border-radius: var(--r); padding: 20px 22px 22px; display: flex; flex-direction: column; min-height: 470px; }
.bogen--hell { background: #fff; color: var(--tinte); border: 1px solid var(--papier-2); box-shadow: 0 34px 70px -40px rgba(29, 29, 27, .45); }
.bogen--dunkel { background: var(--kohle); color: var(--weiss); box-shadow: 0 30px 60px -30px rgba(29, 29, 27, .6); }
.bogen__kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 36px; }
.bogen__zur { width: 36px; height: 36px; margin-left: -8px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.bogen__zur svg { width: 20px; height: 20px; }
.bogen__zur:hover { background: rgba(128, 128, 128, .16); }
.bogen__zur[hidden] + .bogen__titel { grid-column: 1 / 3; }
.bogen__titel { font: 800 var(--h3)/1.1 var(--cond); text-transform: uppercase; letter-spacing: .01em; min-width: 0; font-size: calc(var(--h3) * 1.2); }
.bogen__titel small { font: 600 var(--t-notiz)/1 var(--sans); letter-spacing: .14em; color: var(--gruen); margin-left: 8px; vertical-align: middle; }
.bogen--dunkel .bogen__titel small { color: var(--gruen-h); }
.bogen__schritt { white-space: nowrap; }
/* progress as boards: one per step, the done ones in their larch tone, the current one half laid */
.bretter { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 14px 0 16px; }
.bretter i { position: relative; height: 8px; border-radius: 1px; background: var(--papier-2); overflow: hidden; }
.bretter--dunkel i { background: var(--kohle-3); }
.bretter i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #b9824c, #d3a46c 45%, #c28d57); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.bogen__inhalt { flex: 1; display: flex; flex-direction: column; }
.frage { font: 600 var(--h3)/1.25 var(--sans); }
.frage + .frage-hint { margin-top: 4px; }
.frage-hint { font: 400 var(--t-klein)/1.45 var(--sans); color: var(--tinte-2); }
.bogen--dunkel .frage-hint { color: var(--grau); }
.gruppe { margin-top: 12px; }
.gruppe > .notiz { display: block; margin-bottom: 6px; }
.optionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.gruppe .optionen { margin-top: 0; }
.optionen--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.optionen--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.optionen--1 { grid-template-columns: minmax(0, 1fr); }
.option { min-height: 50px; padding: 10px 12px; text-align: left; border-radius: var(--r); font: 500 15px/1.25 var(--sans);
  border: 1px solid var(--papier-2); background: var(--papier); transition: border-color .2s ease, background-color .2s ease; }
.option small { display: block; margin-top: 3px; font: 400 12.5px/1.3 var(--sans); color: var(--tinte-2); }
.option:hover { border-color: var(--gruen); }
.option.is-on { border-color: var(--gruen); background: rgba(0, 125, 70, .09); }
.option--k { min-height: 42px; padding: 8px 10px; text-align: center; font-size: 14.5px; }
.bogen--dunkel .option { border-color: rgba(244, 241, 234, .18); background: rgba(244, 241, 234, .04); }
.bogen--dunkel .option:hover { border-color: rgba(63, 178, 122, .8); }
.bogen--dunkel .option.is-on { border-color: var(--gruen-h); background: rgba(63, 178, 122, .14); }
.gewerke { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.gewerk { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 9px 3px 7px; border-radius: 13px; font: 500 12.5px/1.2 var(--sans);
  color: #9a9388; background: transparent; border: 1px solid var(--papier-2); transition: color .3s ease, background-color .3s ease, border-color .3s ease; }
.gewerk::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; transition: opacity .3s ease; }
.gewerk.is-on { color: var(--tinte); background: rgba(0, 125, 70, .08); border-color: rgba(0, 125, 70, .35); }
.gewerk.is-on::before { background: var(--gruen); opacity: 1; }
.gewerke__fuss { margin-top: 8px; font: 400 12.5px/1.4 var(--sans); color: var(--tinte-2); }
.form { display: grid; gap: 14px; margin-top: 12px; }
.eingabe { display: grid; gap: 4px; }
.eingabe > span { font: 600 var(--t-notiz)/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-2); }
.bogen--dunkel .eingabe > span { color: var(--grau); }
.eingabe input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid #cdc5b9; background: transparent; padding: 8px 0 9px; font: 400 17px/1.3 var(--sans); border-radius: 0; }
.bogen--dunkel .eingabe input { border-bottom-color: rgba(244, 241, 234, .3); }
.eingabe input:focus { outline: 0; border-bottom-color: var(--gruen); }
.zeile2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bogen__los { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bogen__los .tast { flex: 1 1 auto; }
.bogen__fehler { font: 500 var(--t-klein)/1.4 var(--sans); color: #b3261e; flex-basis: 100%; }
.bogen--dunkel .bogen__fehler { color: #f0a39b; }
.beleg { border: 1px dashed #cdc5b9; border-radius: var(--r); padding: 14px 16px; }
.bogen--dunkel .beleg { border-color: rgba(244, 241, 234, .3); }
.beleg__t { display: flex; align-items: center; gap: 10px; font: 800 calc(var(--h3) * 1.15)/1.15 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
.beleg__t svg { width: 22px; height: 22px; color: var(--gruen); flex: none; }
.bogen--dunkel .beleg__t svg { color: var(--gruen-h); }
.beleg dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin-top: 12px; font: 400 var(--t-klein)/1.4 var(--sans); }
.beleg dt { color: var(--tinte-2); }
.bogen--dunkel .beleg dt { color: var(--grau); }
.beleg dd { min-width: 0; overflow-wrap: anywhere; }
.beleg__note { margin-top: 12px; font: 400 var(--t-klein)/1.45 var(--sans); color: var(--tinte-2); }
.bogen--dunkel .beleg__note { color: var(--grau); }
.beleg__note b { color: var(--tinte); font-weight: 600; }
.bogen--dunkel .beleg__note b { color: var(--weiss); }

/* ---------- Richtpreis-Anfrage ---------- */
.anfr__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 450px); gap: clamp(28px, 4.4vw, 80px); align-items: center; }
.anfr__lead { margin-top: 12px; max-width: 48ch; }
.ansicht { margin-top: 12px; }
.ansicht__buehne { position: relative; height: clamp(220px, calc(var(--scr-h) - 330px), 470px); overflow: hidden; border-radius: var(--r); background: var(--papier-2); }
.ansicht__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .32s ease; }
.ansicht__img.is-out { opacity: 0; }
.ansicht__plan { position: absolute; inset: 0; background: #fff; display: grid; place-items: center; padding: 10px; }
.ansicht__plan img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ansicht__sicht { position: absolute; right: 10px; top: 10px; display: flex; gap: 0; background: rgba(29, 29, 27, .82); border-radius: var(--r); padding: 3px; }
.sicht { min-height: 34px; padding: 0 12px; border: 0; border-radius: 1px; background: transparent; color: #d9d3c8; font: 600 13px/1 var(--sans); letter-spacing: .04em; }
.sicht[aria-selected="true"] { background: var(--weiss); color: var(--tinte); }
.sicht:hover { color: #fff; }
.sicht[aria-selected="true"]:hover { color: var(--tinte); }
.ansicht__fakten { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: baseline; margin-top: 10px; font: 400 var(--t-klein)/1.4 var(--sans); color: var(--tinte-2); }
.ansicht__fakten b { font: 800 1.5rem/1 var(--cond); color: var(--tinte); margin-right: 12px; }
.ansicht__fakten span + span::before { content: '·'; margin: 0 9px; color: #b3ab9f; }

/* ---------- Referenzen ---------- */
.refs__raster { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 80px); align-items: center; }
.refs__rahmen { position: relative; height: clamp(240px, calc(var(--scr-h) - 40px), 640px); overflow: hidden; border-radius: var(--r); background: var(--kohle-2); }
.refs__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .34s ease; filter: saturate(.92); }
.refs__img.is-out { opacity: 0; }
.refs__cap { margin-top: 8px; }
.orte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin-top: clamp(16px, 3svh, 28px); border-top: 1px solid var(--kohle-3); }
.ort { display: grid; gap: 1px; width: 100%; padding: 10px 0 9px; border: 0; border-bottom: 1px solid var(--kohle-3); background: none; text-align: left; color: var(--grau); transition: color .25s ease; }
.ort__n { font: 800 clamp(1.25rem, min(1.7vw, 3svh), 1.6rem)/1.05 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
.ort__t { font: 500 12.5px/1.3 var(--sans); letter-spacing: .04em; }
.ort:hover { color: var(--weiss); }
.ort[aria-pressed="true"] { color: var(--weiss); }
.ort[aria-pressed="true"] .ort__t { color: var(--gruen-h); }
.refs__detail { margin-top: clamp(14px, 2.6svh, 24px); }
.refs__satz { font: 400 var(--t-body)/1.5 var(--sans); color: var(--weiss); min-height: 3em; max-width: 46ch; }
.refs__link { margin-top: 8px; }

/* ---------- Jobs ---------- */
.karriere__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 450px); gap: clamp(28px, 4.4vw, 80px); align-items: center; }
.karriere__lead { margin-top: 12px; max-width: 46ch; }
.karriere__kurz { display: none; }
.profil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: clamp(16px, 3svh, 28px); }
.profil .haken { margin-top: 2px; }
.zitat { margin-top: clamp(16px, 3svh, 28px); padding-left: 16px; border-left: 2px solid var(--gruen); font: 400 var(--t-lead)/1.45 var(--sans); color: var(--tinte); max-width: 46ch; }
.zitat cite { display: block; margin-top: 6px; font: 600 var(--t-notiz)/1.4 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-2); }

/* ---------- Kontakt ---------- */
.erreich__raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 80px); align-items: center; }
.erreich__fig { position: relative; width: 100%; height: min(calc(var(--scr-h) - 10px), 600px); }
.erreich__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; transform: translateZ(0);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-composite: intersect; }
.erreich__img--abend { opacity: 0; }
.erreich__fig.is-abend .erreich__img--abend { opacity: 1; }
.erreich__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(--grau); }
.zeiten dd span { white-space: nowrap; }
.zeiten .is-heute { color: var(--weiss); }
.erreich__termin { margin-top: 12px; color: var(--grau); }
.erreich__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.6svh, 34px); }
.erreich__knoepfe .tast--rand { color: var(--weiss); }

/* ---------- footer ---------- */
.fuss { background: var(--kohle); color: var(--grau); 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(--kohle-3); }
.fuss__links { display: flex; gap: 22px; }
.fuss a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167, 161, 151, .5); }
.fuss a:hover { color: var(--weiss); }
.fuss .vc-credit-row { margin-top: 18px; }

/* ---------- draft note + dock ---------- */
.notiz__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(--kohle-3); color: var(--weiss); font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.notiz__lasche:hover { background: #4a4843; }
.hinweis { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(18, 18, 16, .58); }
.hinweis__karte { 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); }
.hinweis__karte .tast--rand { color: var(--tinte); }
.hinweis__fein { color: var(--tinte-2); }
.hinweis__x { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--papier); }
.hinweis__x::before, .hinweis__x::after { content: ''; position: absolute; left: 13px; right: 13px; top: 21px; height: 1.6px; background: var(--tinte); transform: rotate(45deg); }
.hinweis__x::after { transform: rotate(-45deg); }
.dock { display: none; }
@media (max-width: 899px) {
  .notiz__lasche { display: none; }
  .dock { 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(29, 29, 27, .97); border-top: 1px solid var(--kohle-3);
    transform: translateY(110%); transition: transform .35s ease; }
  .dock.is-on { transform: none; }
  .dock__haupt { min-height: 48px; border: 0; border-radius: var(--r); background: var(--gruen); color: #fff; font: 600 15.5px/1 var(--sans); }
  .dock__ruf { display: grid; place-items: center; height: 48px; border: 1px solid var(--gruen-h); border-radius: var(--r); color: var(--weiss); }
  .dock__ruf svg { width: 20px; height: 20px; }
  .dock__hinweis { min-height: 48px; padding: 0 10px; border: 0; background: none; color: var(--grau); font: 600 10.5px/1 var(--sans); letter-spacing: .2em; 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) {
  .anfr__raster, .karriere__raster { grid-template-columns: minmax(0, 1fr) minmax(0, 410px); }
  .profil { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .orte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .anfr__raster, .refs__raster, .karriere__raster, .erreich__raster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bogen { min-height: 0; }
  .anfr__lead { display: none; }
  .ansicht__buehne { height: clamp(150px, 26svh, 240px); }
  .refs__text { order: -1; }
  .refs__rahmen { height: clamp(170px, 30svh, 300px); }
  .orte { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0 18px; margin: 12px calc(var(--gut) * -1) 0; padding: 0 var(--gut); border-top: 0; scroll-snap-type: x proximity; }
  .orte::-webkit-scrollbar { display: none; }
  .orte > li { flex: none; scroll-snap-align: start; }
  .ort { border-bottom-width: 2px; padding: 8px 0 7px; }
  .ort[aria-pressed="true"] { border-bottom-color: var(--gruen-h); }
  .refs__fig { order: 0; }
  .refs__detail { order: 1; }
  .erreich__fig { height: clamp(140px, 24svh, 240px); }
}
@media (max-width: 719px) {
  .reiter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px calc(var(--gut) * -1) 0; padding: 0 var(--gut); scroll-snap-type: x proximity; }
  .reiter::-webkit-scrollbar { display: none; }
  .reiter__b { scroll-snap-align: start; min-height: 38px; padding: 0 12px; }
  .bogen { padding: 12px 14px 14px; }
  .bogen__los { padding-top: 12px; }
  .frage { font-size: 1.12rem; }
  .bretter { margin: 10px 0 12px; }
  .ansicht { margin-top: 10px; }
  .ansicht__fakten { display: none; }
  .optionen--4 .option--k { padding: 6px 4px; font-size: 13.5px; }
  .flaeche .head2 { font-size: clamp(2rem, 9.2vw, 2.5rem); }
  .anfr .head2 { margin-top: 6px; }
  .option { min-height: 46px; padding: 8px 10px; font-size: 14.5px; }
  .option--k { min-height: 40px; }
  .gruppe { margin-top: 10px; }
  .gewerke { gap: 4px; margin-top: 10px; }
  .gewerk { min-height: 22px; font-size: 11.5px; padding: 1px 7px 1px 6px; }
  .gewerke__fuss { margin-top: 6px; }
  .option small { font-size: 11.5px; }
  .karriere__lead, .profil, .zitat { display: none; }
  .karriere__kurz { display: block; margin-top: 8px; }
  .refs__satz { min-height: 0; font-size: var(--t-klein); }
  .zeiten { gap: 4px 14px; margin-top: 12px; font-size: var(--t-klein); }
  .erreich__termin { margin-top: 8px; }
  .erreich__knoepfe { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 16px; }
  .erreich__knoepfe .tast { padding: 0 12px; }
  .fuss__zeile { flex-direction: column; }
}
/* short phones (Safari's visible height): the Fixhaus picture gives way to the console */
@media (max-width: 719px) {
  .ansicht__buehne { height: clamp(110px, 15svh, 160px); }
  .anfr .head2 { font-size: clamp(1.5rem, 6.6vw, 1.9rem); }
  .anfr .head2 > span { display: inline; }
  .anfr .head2 > span + span::before { content: ' '; }
}
@media (max-width: 719px) and (max-height: 760px) { .ansicht { display: none; } }
@media (max-width: 719px) and (max-height: 690px) { .gewerke { display: none; } }

/* ---------- motion states ---------- */
.js .start__kicker, .js .titel, .js .mass, .js .aktion, .js .leiste { opacity: 0; }
.no-anim .start__kicker, .no-anim .titel, .no-anim .mass, .no-anim .aktion, .no-anim .leiste,
.is-static .start__kicker, .is-static .titel, .is-static .mass, .is-static .aktion, .is-static .leiste { opacity: 1 !important; }
@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; } }

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