/* =========================================================
   WebwerkOH (Tilo Schumacher): Webdesign für Handwerksbetriebe in Ostholstein
   Leitidee: "Maß genommen". Werkzeuge und Formulare aus dem
   Handwerk (Zollstock, Ortstafel, Mängelprotokoll, LV,
   Bauzeitenplan, RAL-Fächer) tragen die Seite.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Material-Farben */
  --kalk: #F1F1EC;        /* Kalkputz, Grundfläche */
  --papier: #FBFBF8;      /* Formulare, Protokoll */
  --beton: #D9DAD4;       /* Sichtbeton */
  --beton-2: #C5C7C0;
  --anthrazit: #383E42;   /* RAL 7016 */
  --graphit: #1E2326;     /* Schrift */
  --raps: #F5C400;        /* Zollstock, Ortstafel, Rapsfeld */
  --raps-2: #DDB000;
  --rot: #C42A1F;         /* Verkehrsrot: Stempel, Anriss */
  --bleistift: #5A6065;   /* Notizen */
  --linie: rgba(30, 35, 38, .16);

  --ff: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --ff-note: "Fraunces", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(84px, 11vw, 168px);

  --t-small: .875rem;
  --t-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.4375rem);
  --t-h3: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  --t-h2: clamp(2.5rem, 1.3rem + 4.4vw, 5.25rem);
  --t-hero: clamp(3rem, .6rem + 8.6vw, 9.25rem);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --hart: 6px 6px 0 var(--graphit);   /* harter Schatten: Schild, Werkzeug */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--graphit);
  font-family: var(--ff);
  font-size: var(--t-body);
  line-height: 1.55;
  font-stretch: 100%;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--graphit); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--raps); color: var(--graphit); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--sec); }

.h2 {
  font-size: var(--t-h2);
  font-weight: 820;
  font-stretch: 70%;
  line-height: .94;
  letter-spacing: -.008em;
  max-width: 16ch;
  margin-bottom: .45em;
  text-wrap: balance;
}
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 34em; }
.note {
  font-family: var(--ff-note);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24;
  color: var(--bleistift);
  font-size: 1.12em;
  line-height: 1.35;
}

/* ---------- Buttons: wie ein Schild, mit hartem Schatten ---------- */
.btn {
  --sh: var(--graphit);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: .7em 1.25em;
  border: 2px solid var(--graphit);
  border-radius: 6px;
  font-weight: 700;
  font-stretch: 88%;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--sh);
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sh); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sh); }
.btn--big { font-size: 1.0625rem; min-height: 56px; padding: .85em 1.5em; }
.btn--raps { background: var(--raps); color: var(--graphit); }
.btn--raps:hover { background: #FFD21F; }
.btn--line { background: var(--kalk); color: var(--graphit); }
.btn--dark { background: var(--graphit); color: var(--kalk); --sh: rgba(30,35,38,.35); }
.btn--dark:hover { background: var(--anthrazit); }
.btn--dark-line { background: transparent; color: var(--graphit); }
.btn--line-light { background: transparent; color: var(--kalk); border-color: var(--kalk); --sh: rgba(0,0,0,.45); }

/* ---------- Messband oben: Zollstock als Scroll-Fortschritt ---------- */
.meter {
  position: fixed; inset: 0 0 auto 0; height: 7px; z-index: 60; pointer-events: none;
}
.meter__bar {
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background:
    repeating-linear-gradient(90deg, rgba(30,35,38,.75) 0 1px, transparent 1px 8px) top / 100% 45% no-repeat,
    repeating-linear-gradient(90deg, rgba(30,35,38,.95) 0 2px, transparent 2px 160px) top / 100% 100% no-repeat,
    var(--raps);
  box-shadow: 0 1px 0 rgba(30,35,38,.35);
}
.meter__read {
  position: absolute; top: 76px; left: 0;
  transform: translateX(calc(var(--px, 0px) - 50%));
  background: var(--graphit); color: var(--raps);
  font-size: .75rem; font-weight: 700; font-stretch: 80%;
  font-variant-numeric: tabular-nums;
  padding: 3px 7px; border-radius: 3px;
  opacity: 0; transition: opacity .3s;
}
.meter.is-moving .meter__read { opacity: 1; }

/* ---------- Kopfzeile ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(12px, 2.4vw, 36px);
  padding: 12px max(var(--gutter), (100% - var(--wrap)) / 2);
  background: rgba(241,241,236,.9);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--linie); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
/* Zeichen: ein halb aufgeklappter Zollstock bildet das W von Webwerk.
   "OH" steht wie ein Kfz-Kennzeichen daneben (OH = Kreis Ostholstein). */
.brand__mark { flex: none; width: 44px; height: 32px; overflow: visible; }
.brand__shadow { fill: none; stroke: var(--graphit); stroke-width: 9; stroke-linejoin: miter; stroke-linecap: butt; }
.brand__wood { fill: none; stroke: var(--raps); stroke-width: 5.6; stroke-linejoin: miter; stroke-linecap: butt; }
.brand__mark circle { fill: var(--graphit); }
.brand__word { display: inline-flex; align-items: center; gap: 6px; font-size: 1.4rem; font-weight: 820; font-stretch: 100%; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.kennzeichen {
  display: inline-flex; align-items: center;
  height: 1.12em; padding: 0 .3em 0 calc(.42em + .26em);
  position: relative;
  background: #fff; color: var(--graphit);
  border: 2px solid var(--graphit); border-radius: 4px;
  font-size: .82em; font-weight: 750; font-stretch: 72%; letter-spacing: .04em;
  overflow: hidden;
}
.kennzeichen::before { /* blaues Euroband */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .42em;
  background: #1F4FA8;
}
.nav__menu ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; }
.nav__menu a { text-decoration: none; font-weight: 600; font-stretch: 90%; padding: 6px 0; background: linear-gradient(var(--raps), var(--raps)) 0 100% / 0 3px no-repeat; transition: background-size .25s var(--ease-out); }
.nav__menu a:hover { background-size: 100% 3px; }
.nav__toggle { display: none; }
.nav__cta { min-height: 44px; padding: .55em 1em; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 9vh, 120px) 0 clamp(64px, 9vw, 128px); }
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(56,62,66,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,62,66,.065) 1px, transparent 1px),
    linear-gradient(rgba(56,62,66,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,62,66,.12) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 20%, transparent 78%);
}
.hero__kicker { font-weight: 650; font-stretch: 92%; font-size: 1.0625rem; margin-bottom: clamp(36px, 5vw, 56px); color: var(--anthrazit); }
.hero__measured { position: relative; padding-top: 46px; }
.hero__title { font-size: var(--t-hero); font-weight: 830; font-stretch: 64%; line-height: .9; letter-spacing: -.012em; }
.hero__line { display: inline-block; }
.hero__line .l { display: block; }

/* Bemaßung über der Überschrift (Schrägstriche wie in der Bauzeichnung) */
.dim { position: absolute; left: 0; top: 0; width: var(--dimw, 0px); height: 42px; color: var(--graphit); }
.js .dim { --d: 0; }
@media (prefers-reduced-motion: reduce) { .js .dim { --d: 1; } }
.dim__ext { position: absolute; top: 10px; bottom: 0; width: 1.5px; background: currentColor; opacity: .55; transform-origin: 50% 100%; transform: scaleY(var(--d, 1)); }
.dim__ext--l { left: 0; }
.dim__ext--r { right: 0; }
.dim__line { position: absolute; left: 0; right: 0; top: 20px; height: 1.5px; background: currentColor; transform: scaleX(var(--d, 1)); }
.dim__tick { position: absolute; top: 20px; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; transform: rotate(-50deg) scale(var(--d, 1)); }
.dim__tick--l { left: 0; }
.dim__tick--r { left: 100%; }
.dim__text {
  position: absolute; left: 50%; top: -6px;
  transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 12px; white-space: nowrap;
  padding: 0 10px; background: var(--kalk);
  opacity: var(--d, 1);
}
.dim__label { font-weight: 700; font-stretch: 80%; font-size: 1rem; font-variant-numeric: tabular-nums; }
.dim__note { font-size: 1.05rem; }

/* Zollstock: zehn Glieder, ineinander verschachtelt, JS dreht die Gelenke */
.zollstock {
  --n: 10; --ov: 10px; --h: 30px;
  --seg: 120px;
  position: relative;
  width: var(--zw, 100%);
  height: var(--h);
  margin-top: clamp(20px, 2.6vw, 30px);
  cursor: pointer;
  filter: drop-shadow(0 4px 0 rgba(30,35,38,.16));
  -webkit-tap-highlight-color: transparent;
}
.zs__seg {
  --cm: calc(var(--seg) / 20);
  position: absolute; left: 0; top: 0;
  width: var(--seg); height: var(--h);
  border-radius: 2px;
  transform-origin: calc(var(--ov) / 2) 50%;
  background:
    repeating-linear-gradient(90deg, rgba(30,35,38,.82) 0 1px, transparent 1px var(--cm)) top / 100% 22% no-repeat,
    repeating-linear-gradient(90deg, rgba(30,35,38,.82) 0 1px, transparent 1px var(--cm)) bottom / 100% 22% no-repeat,
    repeating-linear-gradient(90deg, rgba(30,35,38,.9) 0 1.5px, transparent 1.5px calc(var(--cm) * 5)) top / 100% 36% no-repeat,
    repeating-linear-gradient(90deg, rgba(30,35,38,.9) 0 1.5px, transparent 1.5px calc(var(--cm) * 5)) bottom / 100% 36% no-repeat,
    linear-gradient(180deg, #FFDA3D 0%, #F5C400 46%, #E7B500 100%);
  box-shadow: inset 0 0 0 1px rgba(150,110,0,.55);
  will-change: transform;
}
.zs__seg .zs__seg { left: calc(var(--seg) - var(--ov)); }
.zs__seg .zs__seg::before {
  content: ""; position: absolute; z-index: 2;
  left: calc(var(--ov) / 2 - 4px); top: calc(50% - 4px);
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0, #aeb3b5 45%, #5d6368 100%);
  box-shadow: 0 0 0 1px rgba(30,35,38,.35);
}
.zs__num {
  position: absolute; top: 50%; z-index: 1;
  transform: translate(-50%, -50%);
  font-size: calc(var(--h) * .44); line-height: 1; font-weight: 750; font-stretch: 70%;
  font-variant-numeric: tabular-nums;
  color: var(--graphit);
  background: #F7CB12; padding: 0 1px;
}
.zs__num--dm { color: var(--rot); }
.zs__num--start { left: calc(var(--ov) + var(--h) * .55); }

.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; margin-top: clamp(40px, 6vw, 80px); }
.hero__lead { font-size: var(--t-lead); line-height: 1.45; max-width: 31em; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Ortstafeln ---------- */
.orte { background: var(--anthrazit); color: var(--kalk); padding: 34px 0 40px; overflow: hidden; }
.orte__title { font-size: 1rem; font-weight: 600; font-stretch: 92%; text-align: center; margin: 0 var(--gutter) 22px; color: rgba(241,241,236,.78); }
.orte__road { position: relative; }
.orte__road::after { /* Leitlinie */
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(241,241,236,.55) 0 48px, transparent 48px 96px);
}
.orte__track { display: flex; width: max-content; animation: fahrt 70s linear infinite; }
.orte:hover .orte__track { animation-play-state: paused; }
.orte__list { display: flex; gap: 22px; padding: 0 11px; margin: 0; list-style: none; }
@keyframes fahrt { to { transform: translateX(-50%); } }
.tafel {
  display: grid; place-items: center; gap: 4px;
  min-width: 200px; padding: 14px 26px 12px;
  background: var(--raps); color: var(--graphit);
  border-radius: 9px;
  box-shadow: inset 0 0 0 4px var(--raps), inset 0 0 0 7px var(--graphit), 0 10px 0 -4px rgba(0,0,0,.25);
  white-space: nowrap;
}
.tafel__name { font-size: 1.7rem; font-weight: 700; font-stretch: 86%; line-height: 1.05; letter-spacing: .01em; }
.tafel__kreis { font-size: .78rem; font-weight: 600; font-stretch: 92%; }

/* ---------- Mängelprotokoll ---------- */
.maengel { background: var(--beton); }
.maengel__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.maengel__intro { position: sticky; top: 120px; }
.maengel__note { margin-top: 1.4em; transform: rotate(-2deg); transform-origin: 0 50%; }

.protokoll {
  position: relative;
  background: var(--papier);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(24px, 3vw, 36px);
  margin: 30px 16px 16px;
  border-radius: 3px;
  /* Klemmbrett als breiter Rand, darunter der harte Schatten */
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 0 16px #3A4044, 6px 6px 0 16px var(--graphit);
}
.protokoll::after { /* Klemme */
  content: ""; position: absolute; top: -34px; left: 50%; width: 150px; height: 48px; margin-left: -75px;
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, #eef0ee, #a9aeb0 55%, #7d8386);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 6px rgba(0,0,0,.25);
}
.protokoll__head { border-bottom: 2px solid var(--graphit); padding-bottom: 14px; margin-bottom: 8px; }
.protokoll__title { font-size: var(--t-h3); font-weight: 820; font-stretch: 78%; line-height: 1; margin-bottom: 14px; }
.protokoll__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin: 0; font-size: .9375rem; }
.protokoll__meta div { display: flex; gap: 8px; }
.protokoll__meta dt { color: var(--bleistift); }
.protokoll__meta dd { margin: 0; font-weight: 650; }
.protokoll__list { list-style: none; counter-reset: pos; margin: 0; padding: 0; }
.protokoll__list li { counter-increment: pos; border-bottom: 1px solid var(--linie); }
.protokoll__list label { display: grid; grid-template-columns: 2.2em 34px 1fr; align-items: center; gap: 14px; padding: 14px 4px; cursor: pointer; }
.protokoll__list label::before { content: counter(pos, decimal-leading-zero); font-weight: 700; font-stretch: 78%; color: var(--bleistift); font-variant-numeric: tabular-nums; }
.protokoll__list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kreuz { width: 32px; height: 32px; border: 2px solid var(--graphit); background: #fff; border-radius: 2px; }
.kreuz svg { width: 100%; height: 100%; overflow: visible; }
.kreuz path { fill: none; stroke: var(--rot); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset .18s ease-out; }
.kreuz path + path { transition-delay: 0s; }
.protokoll__list input:checked + .kreuz path { stroke-dashoffset: 0; }
.protokoll__list input:checked + .kreuz path + path { transition-delay: .14s; }
.protokoll__list input:focus-visible + .kreuz { outline: 3px solid var(--graphit); outline-offset: 3px; }
.protokoll__list label:hover .kreuz { background: #FFF6CC; }
.protokoll__txt { line-height: 1.35; }
.protokoll__list input:checked ~ .protokoll__txt { text-decoration: underline wavy rgba(196,42,31,.55) 1.5px; text-underline-offset: 5px; }
.protokoll__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.protokoll__result { margin: 0; font-weight: 650; max-width: 28em; }

.stempel {
  position: absolute; right: clamp(-8px, 1vw, 24px); top: 18px; z-index: 3;
  display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 12px;
  padding: 10px 18px 10px 14px;
  color: var(--rot);
  border: 4px solid currentColor; border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--papier), inset 0 0 0 5px currentColor;
  font-weight: 850; font-stretch: 76%; text-transform: uppercase; letter-spacing: .05em; line-height: .95;
  font-size: 1.15rem;
  transform: rotate(-11deg);
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='300' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='300' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stempel__n { font-size: 3.4rem; font-stretch: 62%; line-height: .8; grid-row: span 2; }
.stempel__txt { font-size: 1.05rem; }

/* ---------- Vorher / Nachher ---------- */
.sanierung__head { margin-bottom: clamp(32px, 4vw, 56px); }
.vn {
  border: 2px solid var(--graphit); border-radius: 12px; overflow: hidden;
  background: #fff;
  box-shadow: 10px 10px 0 var(--graphit);
}
.vn__chrome, .mock__chrome {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  background: var(--beton); border-bottom: 2px solid var(--graphit);
}
.vn__chrome i, .mock__chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--kalk); border: 1.5px solid var(--graphit); }
.vn__url, .mock__url {
  margin-left: 12px; flex: 1; min-width: 0;
  background: var(--kalk); border-radius: 6px; padding: 4px 12px;
  font-size: .8125rem; font-weight: 550; color: var(--anthrazit);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vn__view {
  --pos: 50;
  position: relative;
  height: clamp(520px, 56vw, 680px);
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.vn__alt, .vn__neu { position: absolute; inset: 0; overflow: hidden; }
.vn__neu { clip-path: inset(0 0 0 calc(var(--pos) * 1%)); container-type: inline-size; }
.vn__handle { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 0; z-index: 4; pointer-events: none; }
.vn__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2.5px; width: 5px; background: var(--raps); box-shadow: 0 0 0 1.5px var(--graphit); }
.vn__grip {
  position: absolute; top: 50%; left: 0; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--raps); border: 2.5px solid var(--graphit);
  box-shadow: 3px 3px 0 var(--graphit);
}
.vn__grip::before, .vn__grip::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -8px;
  border: 8px solid transparent;
}
.vn__grip::before { left: 5px; border-right: 10px solid var(--graphit); }
.vn__grip::after { right: 5px; border-left: 10px solid var(--graphit); }
.vn__range { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; opacity: 0; pointer-events: none; }
.vn__view:has(.vn__range:focus-visible) .vn__grip { outline: 3px solid var(--graphit); outline-offset: 4px; }
.vn__tag {
  position: absolute; bottom: 14px; z-index: 5; pointer-events: none;
  padding: 5px 10px; border-radius: 4px;
  font-size: .8125rem; font-weight: 750; font-stretch: 86%;
  background: var(--graphit); color: var(--kalk);
}
.vn__tag--alt { left: 14px; }
.vn__tag--neu { right: 14px; background: var(--raps); color: var(--graphit); border: 1.5px solid var(--graphit); }
.vn__note { margin: 26px 0 0; }

/* Vorher-Seite (bewusst von gestern) */
.alt {
  position: absolute; left: 0; top: 0;
  width: 980px; height: var(--ah, 100%);
  transform: scale(var(--as, 1)); transform-origin: 0 0;
  font-family: "Times New Roman", Times, serif; font-size: 18px; line-height: 1.3; color: #000;
  background-color: #cfcfcf;
  background-image: radial-gradient(#bdbdbd 1px, transparent 1.5px), radial-gradient(#e2e2e2 1px, transparent 1.5px);
  background-size: 14px 14px, 14px 14px; background-position: 0 0, 7px 7px;
  overflow: hidden;
}
.alt__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; background: linear-gradient(180deg, #000080, #1084d0); border-bottom: 5px ridge #9a9a9a; }
.alt__logo { font: bold 46px/1 "Comic Sans MS", "Comic Sans", cursive; color: #ffde00; text-shadow: 3px 3px 0 #000, -1px -1px 0 #000; }
.alt__eimer { position: relative; width: 74px; height: 70px; }
.alt__eimer::before { content: ""; position: absolute; left: 10px; bottom: 0; width: 54px; height: 52px; background: linear-gradient(90deg, #888, #eee 40%, #999); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.alt__eimer::after { content: ""; position: absolute; left: 6px; top: 0; width: 62px; height: 34px; border: 4px solid #444; border-bottom: 0; border-radius: 40px 40px 0 0; }
.alt__eimer span { position: absolute; left: 14px; top: 16px; width: 46px; height: 16px; border-radius: 50%; background: #e00000; z-index: 1; }
.alt__ticker { background: #ffff99; border: 3px inset #999; overflow: hidden; white-space: nowrap; font: bold 17px Arial, sans-serif; color: #d00000; padding: 6px 0; }
.alt__ticker span { display: inline-block; padding-left: 100%; animation: ticker 16s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
.alt__body { display: grid; grid-template-columns: 210px 1fr; min-height: 100%; }
.alt__side { background: #e4e4e4; border-right: 3px outset #fff; padding: 18px 14px; font: 17px Arial, sans-serif; }
.alt__side a { display: block; color: #0000ee; text-decoration: underline; margin-bottom: 10px; }
.alt__counter { margin-top: 28px; font-size: 13px; text-align: center; }
.alt__counter b { display: inline-block; margin: 6px 1px 0; padding: 2px 4px; background: #000; color: #39ff14; font: bold 15px "Courier New", monospace; }
.alt__main { background: #fff; padding: 22px 30px 60px; }
.alt__h { font: bold 36px "Comic Sans MS", "Comic Sans", cursive; color: #cc0000; text-align: center; margin-bottom: 14px; }
.alt__bild { display: grid; place-items: center; width: 280px; height: 170px; margin: 20px auto; border: 2px inset #999; background: #f0f0f0; font: 13px Arial, sans-serif; color: #777; }
.alt__bild span::before { content: "\00D7"; display: inline-block; width: 16px; height: 16px; margin-right: 6px; border: 1px solid #c00; color: #c00; font-size: 13px; line-height: 13px; text-align: center; }
.alt__bau { margin: 18px 0; padding: 10px; text-align: center; font: bold 18px Arial, sans-serif; background: repeating-linear-gradient(45deg, #ffcc00 0 16px, #111 16px 32px); color: #000; text-shadow: 0 0 4px #ffcc00, 0 0 4px #ffcc00, 0 0 4px #ffcc00; }
.alt__klein { font: 12px Arial, sans-serif; color: #555; text-align: center; margin-top: 24px; }

/* Nachher-Seite (passt sich der Breite an) */
.neu { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; font-family: var(--ff); color: #16222E; overflow: hidden; }
.neu__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 26px; border-bottom: 1px solid #E3E7EB; }
.neu__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 90%; font-size: 16px; white-space: nowrap; }
.neu__logo i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #154889; color: #fff; font-style: normal; font-size: 13px; font-weight: 800; }
.neu__nav { display: flex; gap: 22px; font-size: 14px; font-weight: 550; color: #4A5562; }
.neu__call { background: #154889; color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 7px; white-space: nowrap; }
.neu__hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.neu__art { order: -1; }
.neu__copy { padding: clamp(24px, 5cqi, 56px) 26px; display: flex; flex-direction: column; justify-content: center; }
.neu__h { font-size: clamp(30px, 5.6cqi, 62px); font-weight: 820; font-stretch: 74%; line-height: .95; margin-bottom: 16px; text-wrap: balance; }
.neu__p { font-size: clamp(15px, 1.6cqi, 18px); color: #4A5562; max-width: 30em; margin-bottom: 22px; }
.neu__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.neu__btn { background: #154889; color: #fff; padding: 12px 18px; border-radius: 7px; font-weight: 700; font-size: 15px; }
.neu__btn--line { background: #fff; color: #154889; box-shadow: inset 0 0 0 2px #154889; }
.neu__art { position: relative; min-height: 0; }
.neu__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.neu__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 26px; padding-left: calc(50% + 26px); }
.neu__tiles span { border: 1px solid #E3E7EB; border-top: 4px solid #154889; border-radius: 6px; padding: 12px 14px; font-weight: 650; font-size: 15px; }
.neu__azubi { background: #EEF3F9; color: #154889; font-weight: 650; font-size: 15px; padding: 14px 26px; }
.neu__sticky { display: none; }
@container (max-width: 640px) {
  .neu__nav, .neu__call { display: none; }
  .neu__bar { padding: 12px 16px; }
  .neu__hero { grid-template-columns: 1fr; grid-template-rows: 140px auto; }
  .neu__art { order: -1; }
  .neu__copy { padding: 22px 16px 10px; }
  .neu__h { font-size: 34px; }
  .neu__tiles { grid-template-columns: 1fr; padding: 10px 16px; gap: 8px; }
  .neu__hero { grid-template-columns: 1fr; }
  .neu__azubi { padding: 12px 16px; font-size: 14px; }
  .neu__sticky { display: block; position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px; text-align: center; background: #154889; color: #fff; border-radius: 9px; font-weight: 750; box-shadow: 0 8px 18px -6px rgba(21,72,137,.6); }
}

/* ---------- Werkstatt (Konfigurator) ---------- */
.werkstatt { background: var(--anthrazit); color: var(--kalk); position: relative; overflow: hidden; }
.werkstatt :focus-visible { outline-color: var(--raps); }
.werkstatt__head { margin-bottom: clamp(36px, 5vw, 64px); }
.werkstatt .lead { color: rgba(241,241,236,.86); }
.werk { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.werk__form { display: grid; gap: 26px; }
.feld { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.feld__label { font-weight: 700; font-stretch: 90%; font-size: .9375rem; color: rgba(241,241,236,.8); padding: 0; }
.feld__input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: #2B3034; color: var(--kalk);
  border: 2px solid rgba(241,241,236,.28); border-radius: 6px;
  font-size: 1.0625rem; font-weight: 600;
}
.feld__input::placeholder { color: rgba(241,241,236,.45); font-weight: 500; }
.feld__input:focus { border-color: var(--raps); outline: none; box-shadow: 0 0 0 3px rgba(245,196,0,.25); }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.5px solid var(--raps); border-bottom: 2.5px solid var(--raps); transform: rotate(45deg); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select option { background: #2B3034; color: var(--kalk); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 12px; border-radius: 4px;
  border: 1.5px solid rgba(241,241,236,.3);
  font-weight: 650; font-stretch: 88%; font-size: .9375rem; line-height: 1.15;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover span { border-color: var(--raps); }
.chip input:checked + span { background: var(--raps); color: var(--graphit); border-color: var(--raps); }
.chip input:focus-visible + span { outline: 3px solid var(--raps); outline-offset: 2px; }

/* RAL-Fächer */
.faecher { position: relative; height: 270px; margin-top: 4px; }
.blatt {
  position: absolute; left: 6px; bottom: 6px;
  width: min(272px, 82vw); height: 44px;
  transform-origin: 22px 50%;
  transform: rotate(calc(var(--i) * var(--open, 0) * -8.6deg)) translateX(var(--pull, 0px));
  transition: transform .55s cubic-bezier(.3, 1.35, .45, 1) calc(var(--i) * 35ms);
  cursor: pointer;
  z-index: calc(20 - var(--i));
}
.faecher.is-open .blatt { --open: 1; }
.blatt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.blatt__face {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  height: 100%; padding: 0 12px 0 40px;
  background: var(--c); color: var(--on, #fff);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.28);
  font-size: .8125rem; font-weight: 650; font-stretch: 86%; white-space: nowrap;
}
.blatt__face::before { /* Niet */
  content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #aeb3b5 50%, #5d6368);
}
.blatt__face b { font-weight: 800; }
.blatt.is-on { --pull: 16px; z-index: 30; }
.blatt.is-on .blatt__face { box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.28), 0 0 0 2.5px var(--kalk), 0 8px 18px rgba(0,0,0,.45); }
.blatt input:focus-visible + .blatt__face { outline: 3px solid var(--raps); outline-offset: 3px; }

/* Bühne mit Geräten */
.werk__stage { position: relative; display: grid; gap: 22px; }
.werk__geraete { position: relative; padding-right: 9%; }
.mock { background: #fff; color: var(--graphit); overflow: hidden; }
.mock--browser { border-radius: 10px; border: 2px solid var(--graphit); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.mock__view { position: relative; overflow: hidden; }
.mock--browser .mock__view { aspect-ratio: 1100 / 640; }
.mock__scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, 1)); }
.mock--phone {
  position: absolute; right: 0; top: 18%;
  width: 24%; min-width: 132px;
  border-radius: 26px; border: 7px solid #15191B;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.7);
}
.mock--phone .mock__view { aspect-ratio: 360 / 740; }
.mock__notch { position: absolute; top: 6px; left: 50%; width: 30%; height: 12px; margin-left: -15%; border-radius: 8px; background: #15191B; z-index: 5; }

/* Generierte Beispielseite */
.site {
  --c: #45322E; --on: #fff; --tint: rgba(69,50,46,.08);
  width: 1100px; height: 640px;
  display: flex; flex-direction: column;
  background: #fff; color: #1B2228;
  font-family: var(--ff); font-size: 16px; line-height: 1.45;
  transition: background-color .3s;
}
.site--phone { width: 360px; height: 740px; position: relative; }
.site__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 32px; border-bottom: 1px solid #E6E8EA; }
.site--phone .site__bar { padding: 30px 18px 14px; }
.site__logo { display: flex; align-items: center; gap: 11px; min-width: 0; }
.site__logo i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--c); color: var(--on); font-style: normal; font-weight: 800; font-size: 15px; font-stretch: 85%; transition: background-color .3s, color .3s; }
.site__logo b { font-weight: 800; font-stretch: 88%; font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.site--phone .site__logo b { max-width: 210px; font-size: 15px; }
.site__nav { display: flex; gap: 24px; font-size: 14.5px; font-weight: 550; color: #4C5660; }
.site__burger { width: 26px; height: 18px; background: linear-gradient(#1B2228 0 0) 0 0 / 100% 2.5px no-repeat, linear-gradient(#1B2228 0 0) 0 50% / 100% 2.5px no-repeat, linear-gradient(#1B2228 0 0) 0 100% / 100% 2.5px no-repeat; }
.site__call { background: var(--c); color: var(--on); font-weight: 700; font-size: 14.5px; padding: 11px 18px; border-radius: 8px; white-space: nowrap; transition: background-color .3s, color .3s; }
.site__hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.08fr 1fr; }
.site--phone .site__hero { flex: none; grid-template-columns: 1fr; grid-template-rows: 150px auto; }
.site__copy { padding: 44px 34px; display: flex; flex-direction: column; justify-content: center; }
.site--phone .site__copy { padding: 20px 18px 10px; }
.site__ort { font-size: 14px; font-weight: 700; color: var(--ink, var(--c)); margin-bottom: 10px; }
.site__h { font-size: 58px; font-weight: 830; font-stretch: 72%; line-height: .94; margin-bottom: 16px; text-wrap: balance; }
.site--phone .site__h { font-size: 34px; margin-bottom: 10px; }
.site__p { font-size: 17px; color: #4C5660; max-width: 30em; margin-bottom: 22px; }
.site--phone .site__p { font-size: 14.5px; margin-bottom: 14px; }
.site__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.site__btn { background: var(--c); color: var(--on); font-weight: 700; padding: 13px 18px; border-radius: 8px; font-size: 15px; transition: background-color .3s, color .3s; }
.site__btn--line { background: #fff; color: var(--ink, var(--c)); box-shadow: inset 0 0 0 2px var(--ink, var(--c)); }
.site__art { position: relative; background-color: var(--c); transition: background-color .3s; overflow: hidden; }
.site--phone .site__art { order: -1; }
.site__card { position: absolute; left: 28px; bottom: 28px; background: #fff; color: #1B2228; border-radius: 10px; padding: 14px 18px; font-size: 14px; font-weight: 650; line-height: 1.3; box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); }
.site__card b { display: block; font-size: 12px; color: #6A737C; font-weight: 600; margin-bottom: 3px; }
.site__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 32px; }
.site--phone .site__tiles { grid-template-columns: 1fr; gap: 8px; padding: 10px 18px; }
.site__tile { display: flex; align-items: center; gap: 12px; border: 1px solid #E6E8EA; border-radius: 9px; padding: 12px 14px; font-weight: 700; font-size: 15px; }
.site__tile i { flex: none; width: 34px; height: 34px; border-radius: 7px; background-color: var(--c); transition: background-color .3s; }
.site__azubi { background: var(--tint); color: #1B2228; font-size: 15px; padding: 14px 32px; transition: background-color .3s; }
.site__azubi b { color: var(--ink, var(--c)); }
.site--phone .site__azubi { padding: 12px 18px; font-size: 13.5px; }
.site__sticky { position: absolute; left: 12px; right: 12px; bottom: 14px; padding: 14px; text-align: center; background: var(--c); color: var(--on); border-radius: 10px; font-weight: 750; font-size: 15px; box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); transition: background-color .3s, color .3s; }

/* Muster pro Gewerk (weiße Linien über der Betriebsfarbe) */
.pat--holz { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.12' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.7 0 0 0 -0.66'/%3E%3C/filter%3E%3Crect width='520' height='260' filter='url(%23f)'/%3E%3C/svg%3E"); background-size: 520px 260px; }
.pat--fachwerk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='140'%3E%3Cg fill='none' stroke='rgba(255,255,255,.34)' stroke-width='10'%3E%3Cpath d='M0 5H180M0 135H180M5 0V140M90 0V140M5 135L90 5M175 135L90 5'/%3E%3C/g%3E%3C/svg%3E"); background-size: 180px 140px; }
.pat--ziegel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='34'%3E%3Cg fill='none' stroke='rgba(255,255,255,.38)' stroke-width='2.6'%3E%3Cpath d='M0 0a22 22 0 0 0 44 0M-22 17a22 22 0 0 0 44 0M22 17a22 22 0 0 0 44 0'/%3E%3C/g%3E%3C/svg%3E"); background-size: 44px 34px; }
.pat--schaltung { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='rgba(255,255,255,.36)' stroke-width='3'%3E%3Cpath d='M0 30H44L66 52H140M0 96H30L52 74H86V140M100 0V20L122 42V74'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,.55)'%3E%3Ccircle cx='44' cy='30' r='5'/%3E%3Ccircle cx='86' cy='74' r='5'/%3E%3Ccircle cx='122' cy='74' r='5'/%3E%3Ccircle cx='30' cy='96' r='4'/%3E%3C/g%3E%3C/svg%3E"); background-size: 140px 140px; }
.pat--rohre { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-10 44H70a34 34 0 0 1 34 34V170' stroke='rgba(255,255,255,.26)' stroke-width='16'/%3E%3Cpath d='M-10 44H70a34 34 0 0 1 34 34V170' stroke='rgba(255,255,255,.3)' stroke-width='3' transform='translate(-3 -4)'/%3E%3Cpath d='M170 120H140' stroke='rgba(255,255,255,.26)' stroke-width='16'/%3E%3C/g%3E%3C/svg%3E"); background-size: 160px 160px; }
.pat--pinsel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-20 60C70 28 160 92 340 40' stroke='rgba(255,255,255,.22)' stroke-width='40'/%3E%3Cpath d='M-20 160C90 126 210 190 340 136' stroke='rgba(255,255,255,.15)' stroke-width='30'/%3E%3C/g%3E%3C/svg%3E"); background-size: 320px 220px; }
.pat--klinker { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='40'%3E%3Cg fill='none' stroke='rgba(255,255,255,.42)' stroke-width='3'%3E%3Cpath d='M0 1.5H64M0 21.5H64M1.5 0V20M33.5 20V40'/%3E%3C/g%3E%3C/svg%3E"); background-size: 64px 40px; }
.pat--blatt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cg fill='rgba(255,255,255,.24)'%3E%3Cpath d='M20 70C20 38 52 26 64 26C64 54 48 76 20 70Z'/%3E%3Cpath d='M84 120C84 92 112 82 122 82C122 106 108 126 84 120Z'/%3E%3Cpath d='M92 40C100 16 124 10 130 12C126 34 110 48 92 40Z'/%3E%3C/g%3E%3Cg stroke='rgba(255,255,255,.34)' stroke-width='2' fill='none'%3E%3Cpath d='M20 70L58 32M84 120L118 86M92 40L126 14'/%3E%3C/g%3E%3C/svg%3E"); background-size: 130px 130px; }

/* Firmenwagen */
.van { position: relative; width: min(100%, 640px); margin-top: 6px; will-change: transform; }
.van__svg { width: 100%; height: auto; overflow: visible; }
.van__shadow { fill: rgba(0,0,0,.35); }
.van__paint { fill: #F5F6F3; stroke: var(--graphit); stroke-width: 3; }
.van__stripe { fill: var(--c, #45322E); transition: fill .3s; }
.van__stripe2 { fill: var(--c, #45322E); opacity: .45; transition: fill .3s; }
.van__window { fill: #33414A; stroke: var(--graphit); stroke-width: 2.5; }
.van__line { fill: none; stroke: rgba(30,35,38,.35); stroke-width: 2; }
.van__handle { fill: #5d6368; }
.van__mirror { fill: var(--graphit); }
.van__lamp { fill: #FFF4C2; stroke: var(--graphit); stroke-width: 2; }
.van__rear { fill: #D13A2E; }
.van__bumper { fill: #2A2F32; }
.van__lettering text { fill: var(--graphit); font-family: var(--ff); }
.van__name { font-size: 31px; font-weight: 830; font-stretch: 78%; }
.van__trade { font-size: 15px; font-weight: 600; font-stretch: 92%; fill: #4C5660 !important; }
.van__tel { font-size: 15px; font-weight: 700; font-stretch: 92%; }
.van__web { font-size: 19px; font-weight: 800; font-stretch: 90%; }
.van__badgebg { fill: var(--c, #45322E); transition: fill .3s; }
.van__badge text { fill: var(--on, #fff); font-family: var(--ff); font-size: 17px; font-weight: 820; font-stretch: 82%; }
.van__wheel { transform-box: fill-box; transform-origin: center; }
.van__tyre { fill: #16191B; }
.van__rim { fill: #BFC3C0; stroke: #8b908d; stroke-width: 2; }
.van__spoke { stroke: #7d827f; stroke-width: 3.5; }

.werk__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid rgba(241,241,236,.2); }
.werk__ask { font-size: var(--t-h3); font-weight: 780; font-stretch: 80%; line-height: 1.1; margin: 0; max-width: 20em; }
.werk__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.werkstatt .btn--raps { --sh: rgba(0,0,0,.5); border-color: var(--raps); }

/* ---------- Arbeiten ---------- */
.arbeiten__head { margin-bottom: clamp(48px, 7vw, 100px); }
.projekt { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.projekt + .projekt { margin-top: clamp(80px, 10vw, 150px); }
.projekt--flip .projekt__text { order: 2; }
.projekt__gewerk { font-weight: 650; font-stretch: 90%; color: var(--bleistift); margin-bottom: .5em; }
.projekt__name { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); font-weight: 830; font-stretch: 70%; line-height: .95; margin-bottom: .45em; }
.projekt__text p:not(.projekt__gewerk):not(.projekt__status) { max-width: 30em; }
.projekt__status { display: inline-block; font-size: .875rem; font-weight: 650; padding: 4px 10px; border: 1.5px dashed var(--bleistift); border-radius: 4px; color: var(--bleistift); }
.projekt__shots { position: relative; padding: 0 9% 9% 0; }
.projekt--flip .projekt__shots { padding: 0 0 9% 9%; }
.shot { margin: 0; overflow: hidden; background: var(--beton); }
.shot img { width: 100%; }
.shot--desk { border: 2px solid var(--graphit); border-radius: 10px; box-shadow: var(--hart); }
.shot--desk::before { content: ""; display: block; height: 26px; border-bottom: 2px solid var(--graphit); background: radial-gradient(circle at 14px 50%, var(--graphit) 0 4px, transparent 4.5px), radial-gradient(circle at 30px 50%, var(--graphit) 0 4px, transparent 4.5px), radial-gradient(circle at 46px 50%, var(--graphit) 0 4px, transparent 4.5px), var(--beton); }
.shot--phone { position: absolute; right: 0; bottom: 0; width: 24%; border: 6px solid #15191B; border-radius: 22px; box-shadow: 0 24px 40px -18px rgba(30,35,38,.7); }
.projekt--flip .shot--phone { right: auto; left: 0; }

/* ---------- Leistungsverzeichnis ---------- */
.lv { background: var(--beton); }
.lv__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.lv__intro { position: sticky; top: 120px; }
.lv__note { margin-top: 1.2em; transform: rotate(-1.5deg); transform-origin: 0 50%; }
.lv__sheet { background: var(--papier); border: 2px solid var(--graphit); box-shadow: var(--hart); font-variant-numeric: tabular-nums; }
.lv__cols, .lv__pos summary { display: grid; grid-template-columns: 82px minmax(0, 1fr) 54px 64px; gap: 14px; align-items: baseline; }
.lv__cols { padding: 12px 20px; background: var(--anthrazit); color: var(--kalk); font-size: .8125rem; font-weight: 700; font-stretch: 88%; }
.lv__cols span:nth-child(n+3), .lv__menge, .lv__einh { text-align: right; }
.lv__titel { margin: 0; padding: 16px 20px 8px; font-weight: 800; font-stretch: 84%; font-size: 1rem; border-top: 2px solid var(--graphit); background: var(--kalk); }
.lv__cols + .lv__titel { border-top: 0; }
.lv__pos { border-top: 1px dashed rgba(30,35,38,.28); }
.lv__pos summary { list-style: none; padding: 14px 20px; cursor: pointer; transition: background-color .15s; }
.lv__pos summary::-webkit-details-marker { display: none; }
.lv__pos summary:hover { background: rgba(245,196,0,.18); }
.lv__nr { font-weight: 650; color: var(--bleistift); font-size: .9375rem; }
.lv__kurz { font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.lv__kurz::after { content: "+"; font-weight: 600; color: var(--bleistift); transition: transform .2s; }
.lv__pos[open] .lv__kurz::after { transform: rotate(45deg); }
.lv__pos[open] summary { background: rgba(245,196,0,.28); }
.lv__lang { margin: 0; padding: 4px 20px 18px calc(20px + 82px + 14px); color: var(--anthrazit); max-width: 46em; }
.lv__summe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 20px; border-top: 4px double var(--graphit); font-weight: 820; font-stretch: 86%; font-size: 1.1875rem; }

/* ---------- Bauzeitenplan ---------- */
.ablauf__head { margin-bottom: clamp(36px, 5vw, 64px); }
.gantt { border: 2px solid var(--graphit); background: var(--papier); box-shadow: var(--hart); }
.gantt__row { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); border-top: 1px solid var(--linie); }
.gantt__row--head { border-top: 0; background: var(--anthrazit); color: var(--kalk); font-size: .8125rem; font-weight: 700; font-stretch: 88%; }
.gantt__label { padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 750; border-right: 2px solid var(--graphit); }
.gantt__row--head .gantt__label { border-right-color: rgba(241,241,236,.3); }
.gantt__label b { font-weight: 800; color: var(--bleistift); font-stretch: 80%; }
.gantt__label small { flex-basis: 100%; font-size: .875rem; font-weight: 500; color: var(--bleistift); }
.gantt__weeks { display: grid; grid-template-columns: repeat(6, 1fr); }
.gantt__weeks span { padding: 14px 10px; border-left: 1px solid rgba(241,241,236,.2); }
.gantt__track {
  position: relative; min-height: 64px;
  background: repeating-linear-gradient(90deg, var(--linie) 0 1px, transparent 1px calc(100% / 6));
}
.gantt__bar {
  position: absolute; top: 50%; height: 32px; margin-top: -16px;
  left: calc(var(--s) / 6 * 100%); width: calc((var(--e) - var(--s)) / 6 * 100%);
  display: flex; align-items: center; padding: 0 10px;
  background: var(--anthrazit); color: var(--kalk);
  border-radius: 4px;
  font-size: .8125rem; font-weight: 700; font-stretch: 86%; white-space: nowrap;
  transform-origin: 0 50%; transform: scaleX(var(--p, 1));
}
.gantt__bar--sie { background: var(--raps); color: var(--graphit); box-shadow: inset 0 0 0 1.5px var(--graphit); }
.gantt__bar--klein { z-index: 1; }
.gantt__bar--offen { background: linear-gradient(90deg, var(--anthrazit) 55%, rgba(56,62,66,0)); }

/* ---------- Rechner ---------- */
.rechner { background: var(--anthrazit); color: var(--kalk); }
.rechner .lead { color: rgba(241,241,236,.86); }
.rechner__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.rechner__form { display: grid; gap: 30px; }
.regler { display: grid; gap: 12px; }
.regler__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 650; font-stretch: 92%; }
.regler output { font-size: 1.375rem; font-weight: 820; font-stretch: 78%; color: var(--raps); font-variant-numeric: tabular-nums; white-space: nowrap; }
.regler input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.regler input[type=range]::-webkit-slider-runnable-track {
  height: 26px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(30,35,38,.8) 0 1px, transparent 1px 7px) top / 100% 28% no-repeat,
    repeating-linear-gradient(90deg, rgba(30,35,38,.9) 0 1.5px, transparent 1.5px 35px) top / 100% 46% no-repeat,
    linear-gradient(180deg, #FFDA3D, #F5C400 46%, #E7B500);
  box-shadow: inset 0 0 0 1px rgba(150,110,0,.6);
}
.regler input[type=range]::-moz-range-track {
  height: 26px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(30,35,38,.8) 0 1px, transparent 1px 7px) top / 100% 28% no-repeat,
    repeating-linear-gradient(90deg, rgba(30,35,38,.9) 0 1.5px, transparent 1.5px 35px) top / 100% 46% no-repeat,
    linear-gradient(180deg, #FFDA3D, #F5C400 46%, #E7B500);
}
.regler input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 42px; margin-top: -8px;
  background: var(--rot); border-radius: 2px;
  box-shadow: 0 0 0 2px var(--kalk), 2px 3px 0 2px rgba(0,0,0,.4);
}
.regler input[type=range]::-moz-range-thumb { width: 14px; height: 42px; border: 0; background: var(--rot); border-radius: 2px; box-shadow: 0 0 0 2px var(--kalk); }
.regler input[type=range]:focus-visible { outline: 3px solid var(--raps); outline-offset: 4px; }
.rechnung {
  position: relative; display: grid; gap: 6px;
  margin-top: 12px; padding: 30px 28px 26px;
  background: var(--papier); color: var(--graphit);
  border-radius: 2px;
  box-shadow: var(--hart);
}
.rechnung::before { /* Abrisskante */
  content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
  background: radial-gradient(circle at 8px 8px, var(--papier) 6px, transparent 6.5px) 0 0 / 16px 8px repeat-x;
}
.rechnung__label { font-weight: 650; color: var(--bleistift); }
.rechnung__summe { justify-self: start; font-size: clamp(3rem, 1.6rem + 5vw, 5.5rem); font-weight: 850; font-stretch: 66%; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; border-bottom: 7px double var(--graphit); padding-bottom: 4px; }
.rechnung__weg { font-size: .9375rem; color: var(--bleistift); font-variant-numeric: tabular-nums; margin-top: 8px; }
.rechner__klein { font-size: .9375rem; color: rgba(241,241,236,.72); margin: 0; }

/* ---------- Fragen ---------- */
.fragen { background: var(--beton); }
.fragen__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.fragen__intro .note { margin-top: .4em; }
.fragen__list { border-top: 2px solid var(--graphit); }
.frage { border-bottom: 2px solid var(--graphit); }
.frage summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: 16px;
  padding: 22px 0;
  font-size: var(--t-h3); font-weight: 780; font-stretch: 78%; line-height: 1.1;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(var(--graphit), var(--graphit)) center / 16px 2.5px no-repeat, linear-gradient(var(--graphit), var(--graphit)) center / 2.5px 16px no-repeat, var(--raps);
  border: 2px solid var(--graphit);
  transition: transform .25s var(--ease-out);
}
.frage[open] summary::after { transform: rotate(45deg); }
.frage summary:hover::after { background-color: #FFD21F; }
.frage p { margin: -4px 56px 24px 0; font-size: var(--t-lead); line-height: 1.45; max-width: 32em; }

/* ---------- Abgemacht ---------- */
.abgemacht { background: var(--raps); color: var(--graphit); padding: var(--sec) 0 clamp(56px, 7vw, 96px); overflow: hidden; position: relative; }
.abgemacht__title { font-size: clamp(4.6rem, 1rem + 16vw, 16rem); font-weight: 900; font-stretch: 62%; line-height: .82; letter-spacing: -.02em; margin-bottom: .18em; }
.abgemacht__lead { font-size: var(--t-lead); max-width: 30em; }
.deal { position: relative; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; min-height: 64px; }
.deal .btn--dark { --sh: rgba(30,35,38,.4); }
.deal .btn--dark-line { --sh: rgba(30,35,38,.4); }
.btn--nein { background: var(--kalk); color: var(--graphit); --sh: rgba(30,35,38,.4); position: relative; z-index: 2; will-change: transform; }
.btn--nein.is-yes { background: var(--graphit); color: var(--raps); }
.deal__note { min-height: 1.5em; margin: 18px 0 0; color: var(--graphit); }
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; margin-top: clamp(56px, 8vw, 110px); padding-top: 32px; border-top: 2px solid var(--graphit); }
.kontakt__wer { display: flex; align-items: center; gap: 20px; }
.kontakt__wer p { margin: 0; }
.kontakt__foto { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--graphit); font-size: .8125rem; font-weight: 650; text-align: center; }
.kontakt__label { font-size: .9375rem; font-weight: 600; }
.kontakt__name { font-size: var(--t-h3); font-weight: 820; font-stretch: 80%; line-height: 1.1; }
.kontakt__wege { display: grid; gap: 4px; justify-items: end; }
.kontakt__tel { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); font-weight: 850; font-stretch: 70%; text-decoration: none; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kontakt__mail { font-size: 1.125rem; font-weight: 650; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--graphit); color: rgba(241,241,236,.8); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; }
.footer .brand { color: var(--kalk); }
.footer .brand__shadow { stroke: #0d0f10; }
.footer .brand__mark circle { fill: #0d0f10; }
.footer .kennzeichen { border-color: #0d0f10; }
.footer__claim { margin: 0; }
.footer__links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.footer__links a { color: var(--kalk); text-underline-offset: 4px; }
.footer__klein { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(241,241,236,.14); font-size: .8125rem; color: rgba(241,241,236,.6); }
.footer :focus-visible { outline-color: var(--raps); }

/* ---------- Anrufleiste (Handy) ---------- */
.callbar { display: none; }

/* =========================================================
   Responsiv
   ========================================================= */
@media (max-width: 1080px) {
  .nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--kalk); border-bottom: 2px solid var(--graphit); padding: 8px var(--gutter) 18px; }
  .nav__menu.is-open { display: block; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu a { display: block; padding: 12px 0; font-size: 1.25rem; border-bottom: 1px solid var(--linie); background: none; }
  .nav__toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: transparent; border: 2px solid var(--graphit); border-radius: 6px; font-weight: 700; font-stretch: 88%; }
  .werk { grid-template-columns: 1fr; }
  .werk__stage { display: contents; }
  .werk__geraete { order: -1; }
  .van { justify-self: center; }
  .werk__form { grid-template-columns: 1fr 1fr; gap: 22px 28px; }
  .faecher { height: 250px; }
}

@media (max-width: 860px) {
  .hero__foot { grid-template-columns: 1fr; }
  .maengel__grid, .lv__grid, .fragen__grid, .rechner__grid { grid-template-columns: 1fr; }
  .maengel__intro, .lv__intro { position: static; }
  .projekt, .projekt--flip { grid-template-columns: 1fr; }
  .projekt--flip .projekt__text { order: 0; }
  .projekt--flip .projekt__shots { padding: 0 9% 9% 0; }
  .projekt--flip .shot--phone { left: auto; right: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .kontakt { grid-template-columns: 1fr; }
  .kontakt__wege { justify-items: start; }
}

@media (max-width: 680px) {
  .nav { padding-block: 10px; }
  .nav__cta { display: none; }
  .brand { gap: 8px; }
  .brand__mark { width: 40px; height: 29px; }
  .brand__word { font-size: 1.25rem; }
  .hero__kicker { font-size: 1rem; margin-bottom: 40px; }
  .dim__note { display: none; }
  .zollstock { --h: 22px; --ov: 7px; }
  .zs__num--start { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .tafel { min-width: 150px; padding: 11px 18px 10px; }
  .tafel__name { font-size: 1.3rem; }
  .werk__form { grid-template-columns: 1fr; }
  .werk__geraete { padding: 0 6% 22% 0; }
  .mock--phone { top: auto; bottom: 0; right: 0; width: 34%; border-width: 5px; border-radius: 18px; }
  .protokoll { margin-top: 34px; }
  .protokoll__list label { grid-template-columns: 1.8em 30px 1fr; gap: 10px; }
  .kreuz { width: 30px; height: 30px; }
  .protokoll__meta { grid-template-columns: 1fr 1fr; }
  .stempel { top: auto; bottom: 74px; right: 10px; font-size: 1rem; }
  .stempel__n { font-size: 2.8rem; }
  .vn { box-shadow: 6px 6px 0 var(--graphit); }
  .vn__view { height: 560px; }
  .lv__cols, .lv__pos summary { grid-template-columns: 58px minmax(0, 1fr) 30px 40px; gap: 8px; }
  .lv__cols, .lv__pos summary, .lv__titel, .lv__summe { padding-left: 14px; padding-right: 14px; }
  .lv__nr { font-size: .8125rem; }
  .lv__lang { padding: 2px 14px 16px; }
  .gantt__row { grid-template-columns: 1fr; }
  .gantt__row--head .gantt__label { display: none; }
  .gantt__label { border-right: 0; padding: 12px 14px 0; }
  .gantt__weeks span { padding: 10px 6px; font-size: .75rem; }
  .gantt__track { min-height: 52px; }
  .gantt__bar { font-size: 0; padding: 0; height: 24px; margin-top: -12px; }
  .frage summary { padding: 18px 0; grid-template-columns: 1fr 34px; }
  .frage summary::after { width: 34px; height: 34px; }
  .frage p { margin-right: 0; }
  .deal .btn { flex: 1 1 100%; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(241,241,236,.94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 2px solid var(--graphit);
    transform: translateY(110%); transition: transform .35s var(--ease-out);
  }
  .callbar .btn { min-height: 50px; font-size: 1rem; box-shadow: 3px 3px 0 var(--graphit); padding: .6em .6em; }
  .callbar.is-on { transform: none; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (max-width: 400px) {
  .chip span { padding: 8px 10px; font-size: .875rem; }
  .blatt { width: 240px; }
}

/* Weniger Bewegung: alles sofort im Endzustand */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orte__track { animation: none; width: auto; }
  .orte__track > .orte__list[aria-hidden] { display: none; }
  .orte__list { flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .alt__ticker span { animation: none; padding-left: 0; }
  .blatt, .kreuz path, .btn, .callbar, .frage summary::after { transition: none !important; }
}
