/*
  Sylt Works v3
  Richtung: genau, handfest, ruhig. Welt: Gipskarton, Zollstock, Bleistift.
  Farben: Gips (Fläche), Graphit (Schrift), Zollstockgelb (einziger Akzent, nur als Fläche mit Graphit-Schrift).
  Schrift: Archivo variabel (lokal). Überschriften schmal, Text normal breit. 4px-Raster, eine Easing-Kurve.
*/

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
}

:root {
  --bg: #eef0ed;
  --raised: #ffffff;
  --sunk: #e4e7e3;
  --ink: #1d2226;
  --ink-2: #474f54;
  --ink-3: #5a6368;
  --line: rgb(29 34 38 / 0.12);
  --line-2: rgb(29 34 38 / 0.22);
  --accent: #f2c12e;
  --accent-hover: #ffd04a;
  --on-accent: #1d2226;
  --hero: #0e1113;
  --on-hero: #eef0ed;
  --on-hero-2: #b4bcc1;
  --err: #a32121;
  --ok: #2d6a3e;
  --draw-paper: #fbfbf9;
  --field: #7a8287;
  --crew-1: #3f8a84;
  --crew-2: #66a39d;
  --crew-3: #1f4f4c;
  --crew-4: #3b6e6a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: 72%;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --r-ctl: 8px;
  --r-card: 16px;
  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --bg: #131618;
    --raised: #1b1f22;
    --sunk: #0f1214;
    --ink: #e9ece8;
    --ink-2: #b6bdc1;
    --ink-3: #9ea6ab;
    --line: rgb(233 236 232 / 0.12);
    --line-2: rgb(233 236 232 / 0.24);
    --hero: #0e1113;
    --err: #ff8a80;
    --ok: #8fd19e;
    --draw-paper: #1b1f22;
    --field: #7c858a;
    --crew-1: #8fd0c8;
    --crew-2: #6fb3ab;
    --crew-3: #4b9a93;
    --crew-4: #3a7d77;
  }
  :where(html:not([data-theme="light"])) .svc-media img, :where(html:not([data-theme="light"])) .aud-media img, :where(html:not([data-theme="light"])) .flow-media img { filter: brightness(0.9); }
}
/* Schalter im Footer: Nutzerwahl „dunkel“ (html[data-theme]) gilt auch ohne passende Geräteeinstellung */
:root:where([data-theme="dark"]) {
    --bg: #131618;
    --raised: #1b1f22;
    --sunk: #0f1214;
    --ink: #e9ece8;
    --ink-2: #b6bdc1;
    --ink-3: #9ea6ab;
    --line: rgb(233 236 232 / 0.12);
    --line-2: rgb(233 236 232 / 0.24);
    --hero: #0e1113;
    --err: #ff8a80;
    --ok: #8fd19e;
    --draw-paper: #1b1f22;
    --field: #7c858a;
    --crew-1: #8fd0c8;
    --crew-2: #6fb3ab;
    --crew-3: #4b9a93;
    --crew-4: #3a7d77;
  }
:where(html[data-theme="dark"]) .svc-media img, :where(html[data-theme="dark"]) .aud-media img, :where(html[data-theme="dark"]) .flow-media img { filter: brightness(0.9); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 20px; border-radius: var(--r-ctl);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--sunk { background: var(--sunk); }
.section:not(.section--sunk):not(.cta-band) + .section:not(.section--sunk):not(.cta-band) { padding-top: 0; }

/* ---------- Typografie ---------- */
h1, h2 {
  font-stretch: var(--narrow);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(52px, 8.4vw, 116px); }
h2 { font-size: clamp(36px, 4.8vw, 64px); }
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }
.lead { margin-top: 20px; max-width: 58ch; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); text-wrap: pretty; }
p { text-wrap: pretty; }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head .lead { margin-top: 0; }

.link {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 160ms ease;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-ctl);
  background: var(--accent); color: var(--on-accent);
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease), box-shadow 160ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--hero) 94%, transparent);
  color: var(--on-hero);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
@supports (backdrop-filter: blur(1px)) {
  .nav { background: color-mix(in srgb, var(--hero) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-stretch: var(--narrow); font-weight: 700; font-size: 24px; letter-spacing: 0; text-decoration: none; min-height: 44px; }
.brand-mark { width: auto; height: 34px; flex: none; overflow: visible; }
/* Wortmarke „Drei Winkel“: Werte als Variablen aus assets/logo.css (Admin › Logo anpassen) */
.brand-logo { display: inline-flex; align-items: flex-end; font-size: var(--lg-size, 20px); font-weight: var(--lg-weight, 800); font-stretch: var(--lg-stretch, 72%); line-height: 1; flex: none; }
.brand--foot .brand-logo { font-size: var(--lg-size-foot, 20px); }
.brand-logo__art { display: block; height: var(--lg-mark, 2.3em); width: auto; flex: none; }
.brand-logo__txt { display: flex; flex-direction: column; align-items: var(--lg-align, flex-end); line-height: var(--lg-lh, .9); letter-spacing: var(--lg-ls, 0); margin-left: var(--lg-shift, -.52em); margin-bottom: var(--lg-lift, .02em); white-space: nowrap; }
.brand-logo__txt > span { position: relative; }
.brand-logo__txt > span:nth-child(1) { font-size: calc(var(--lg-l1-scale, 1) * 1em); font-stretch: var(--lg-l1-stretch, var(--lg-stretch, 72%)); left: var(--lg-l1-x, 0em); top: calc(var(--lg-l1-y, 0em) * -1); transform: scaleY(var(--lg-l1-sy, 1)); transform-origin: 0 100%; margin-top: calc((var(--lg-l1-sy, 1) - 1) * var(--lg-lh, .9) * 1em); }
.brand-logo__txt > span:nth-child(2) { font-size: calc(var(--lg-l2-scale, 1) * 1em); font-stretch: var(--lg-l2-stretch, var(--lg-stretch, 72%)); left: var(--lg-l2-x, 0em); top: calc(var(--lg-l2-y, 0em) * -1); transform: scaleY(var(--lg-l2-sy, 1)); transform-origin: 0 100%; margin-top: calc((var(--lg-l2-sy, 1) - 1) * var(--lg-lh, .9) * 1em); }
.nav-links { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a, .nav-tel {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl);
  color: var(--on-hero-2); font-size: 15px; text-decoration: none; transition: color 160ms ease, background-color 160ms ease;
}
.nav-links a:hover, .nav-tel:hover { color: var(--on-hero); background: rgb(255 255 255 / 0.06); }
.nav-links a[aria-current="page"], .nav-list .is-in > a, .nav-list .is-in > .sub-btn--text { color: var(--on-hero); }
.nav-tel { font-variant-numeric: tabular-nums; color: var(--on-hero); }
.nav-tel--icon { justify-content: center; width: 44px; padding: 0; color: var(--accent); }
.nav-tel--icon:hover { color: var(--accent); background: rgb(242 193 46 / 0.12); }
.nav-tel--icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.burger { display: none; }
/* Hell/Dunkel-Schalter im Footer (linke Spalte unter der Adresse): gelbes Symbol, Mond im hellen, Sonne im dunklen Design */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 12px 0 0 -8px; padding: 0 12px 0 8px;
  border: 0; border-radius: var(--r-ctl); background: none; color: var(--on-hero-2); font: inherit; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease);
}
.theme-btn:hover { color: var(--on-hero); background: rgb(242 193 46 / 0.12); }
.theme-btn:active { transform: scale(0.97); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-ico { display: inline-grid; color: var(--accent); }
.theme-ico svg { grid-area: 1 / 1; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 200ms ease, transform 300ms var(--ease); }
.theme-btn .theme-sun { opacity: 0; transform: rotate(-60deg) scale(0.6); }
.theme-btn[data-dark="true"] .theme-moon { opacity: 0; transform: rotate(60deg) scale(0.6); }
.theme-btn[data-dark="true"] .theme-sun { opacity: 1; transform: none; }

.menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49; overflow-y: auto;
  background: var(--hero); color: var(--on-hero);
}
.menu-in { display: flex; flex-direction: column; padding-block: 24px 40px; }
.menu-in > .menu-top {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgb(255 255 255 / 0.1);
  font-stretch: var(--narrow); font-size: 30px; font-weight: 600; text-decoration: none;
}
.menu-foot { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.menu-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-hero-2); text-decoration: none; }
.js .menu { opacity: 0; transform: translateY(-8px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.js .menu.open { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero); color: var(--on-hero);
  margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 24px; align-items: center;
  min-height: clamp(560px, calc(100svh - var(--nav-h)), 920px); padding-block: 48px 72px;
}
.hero h1 { font-size: clamp(52px, 6.4vw, 96px); max-width: 7ch; }
.hero-lead { margin-top: 24px; max-width: 34ch; font-size: clamp(18px, 1.55vw, 21px); color: var(--on-hero-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--ghost { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.28); }
.hero .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-hero); }
.hero-fact { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 0.14); max-width: 40ch; font-size: 15px; color: var(--on-hero-2); }

.stage { position: relative; aspect-ratio: 3 / 2; margin-right: calc(var(--pad) * -1); margin-left: -24px; container-type: inline-size; }
.stage picture, .stage-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-img {
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 52%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 54% at 50% 52%, #000 52%, transparent 100%);
}

/* Markierungen im Schnittmodell */
.hs { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 2; width: 0; height: 0; text-decoration: none; color: var(--on-hero); }
.hs::before { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
.hs-dot {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: rgb(20 24 27 / 0.6); box-shadow: inset 0 0 0 2px var(--accent);
  transition: transform 200ms var(--ease);
}
.hs-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--accent); }
.hs-line { position: absolute; left: -1px; width: 2px; height: calc(var(--l) * 1cqw); background: var(--accent); }
.hs--up .hs-line { bottom: 11px; transform-origin: bottom; }
.hs--down .hs-line { top: 11px; transform-origin: top; }
.hs-label {
  position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 10px; border-radius: 6px; background: rgb(20 24 27 / 0.82);
  font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: background-color 160ms ease, color 160ms ease;
}
.hs--up .hs-label { bottom: calc(var(--l) * 1cqw + 11px); }
.hs--down .hs-label { top: calc(var(--l) * 1cqw + 11px); }
/* Unsichtbare Klickfläche zwischen Punkt und Schild (V nach oben bzw. umgedreht nach unten), damit Hover beim Wechsel nicht flackert */
.hs-label::after { content: ""; position: absolute; left: -6px; right: -6px; height: calc(var(--l) * 1cqw + 14px); }
.hs--up .hs-label::after { top: 100%; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hs--down .hs-label::after { bottom: 100%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hs:hover .hs-dot, .hs:focus-visible .hs-dot { transform: scale(1.2); }
.hs:hover .hs-label, .hs:focus-visible .hs-label { background: var(--accent); color: var(--on-accent); }
.hs:focus-visible { outline: none; }
.hs:focus-visible .hs-label { outline: 3px solid var(--on-hero); outline-offset: 2px; }

/* Lage der Markierungen im Bild (Prozent der Bildbreite/-höhe, Linienlänge in cqw) */
.hs[data-tab="entkernung"] { --x:33.9; --y:70; --l:13; --i:0; }
.hs[data-tab="trockenbau"] { --x:50.8; --y:55; --l:11; --i:1; }
.hs[data-tab="fenster-tueren"] { --x:64.8; --y:63; --l:12; --i:2; }
.hs[data-tab="boeden"] { --x:72; --y:72.5; --l:7; --i:3; }
.hs[data-tab="montageservice"] { --x:42.3; --y:46; --l:10; --i:4; }
.hs[data-tab="ausbessern-fugen"] { --x:42.8; --y:62.8; --l:12; --i:5; }
.hs[data-tab="garten-aussenanlagen"] { --x:87; --y:66; --l:9; --i:6; }

/* Zollstock am Fuß des Hero */
.rule { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; }
.rule > span, .crew-lens__rule {
  display: block; height: 100%;
  background:
    repeating-linear-gradient(90deg, var(--on-accent) 0 2px, transparent 2px 100px) bottom left / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, var(--on-accent) 0 1.5px, transparent 1.5px 50px) bottom left / 100% 60% no-repeat,
    repeating-linear-gradient(90deg, var(--on-accent) 0 1px, transparent 1px 10px) bottom left / 100% 30% no-repeat,
    var(--accent);
  transform-origin: left;
}

/* Einstieg: einmal beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { opacity: 0; transform: translateY(12px); animation: rise 600ms var(--ease) forwards; }
  .js .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .js .stage-img { opacity: 0; transform: scale(0.98); animation: fade-in 900ms var(--ease) 120ms forwards; }
  /* Zollstock: site.js wählt je Aufruf eine andere Variante (data-in); ohne site.js klappt er nach 1,5 s von links aus */
  .js .rule span { transform: scaleX(0); animation: unfold 1100ms cubic-bezier(0.77, 0, 0.175, 1) 1500ms forwards; }
  .js .rule[data-in] span { animation: rule-in 1100ms cubic-bezier(0.77, 0, 0.175, 1) 150ms forwards; }
  .js .rule[data-in="rechts"] span { transform-origin: right; }
  .js .rule[data-in="mitte"] span { transform-origin: center; }
  .js .rule[data-in="glieder"] span { transform: none; clip-path: inset(0 100% 0 0); animation: rule-clip 1300ms steps(10, end) 150ms forwards; }
  .js .rule[data-in="schieben"] span { transform: translateX(-101%); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); animation-duration: 1000ms; }
  .js .rule[data-in="heben"] span { transform: scaleY(0); transform-origin: bottom; animation-timing-function: cubic-bezier(0.34, 1.7, 0.64, 1); animation-duration: 700ms; }
  .js .rule[data-in="rechts-glieder"] span { transform: none; clip-path: inset(0 0 0 100%); animation: rule-clip 1300ms steps(10, end) 150ms forwards; }
  .js .hs { opacity: 0; animation: fade-in 400ms var(--ease) calc(700ms + var(--i) * 120ms) forwards; }
  .js .hs-line { transform: scaleY(0); animation: grow 500ms var(--ease) calc(760ms + var(--i) * 120ms) forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; transform: none; } }
@keyframes unfold { to { transform: none; } }
@keyframes rule-in { to { transform: none; } }
@keyframes rule-clip { to { clip-path: inset(0 0 0 0); } }
@keyframes grow { to { transform: none; } }

/* ---------- Leistungen ---------- */
.svc-list { display: none; }
.svc-panels { display: grid; gap: 24px; }
.svc-panel {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0;
  background: var(--raised); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.svc-media { position: relative; aspect-ratio: 4 / 3; background: var(--draw-paper); overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media--draw {
  display: grid; place-items: center; padding: 24px;
  background-color: var(--draw-paper);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.svc-text { padding: clamp(24px, 3vw, 40px); align-self: center; }
.svc-text h3 { display: flex; align-items: baseline; gap: 12px; font-stretch: var(--narrow); font-size: clamp(30px, 3vw, 40px); font-weight: 650; line-height: 1.05; }
.svc-text p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }
.svc-n { font-variant-numeric: tabular-nums; font-size: 0.5em; font-weight: 600; color: var(--ink-3); min-width: 1.2em; }
.ticks { margin-top: 20px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--ink); }
.svc-note { margin-top: 32px; font-size: 15px; color: var(--ink-3); }

/* Desktop mit JS: Register links, eine Leistung rechts */
@media (min-width: 900px) {
  .js .svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
  .js .svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
  .js .svc-panels { display: block; }
  .js .svc-panel { grid-template-columns: 1fr; }
  .js .svc-panel:not(.is-active) { display: none; }
  .js .svc-panel.is-active { animation: panel-in 260ms var(--ease); }
  .js .svc-text h3 { display: none; }
  .js .svc-media { aspect-ratio: 16 / 9; }
  .js .svc-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: start; }
  .js .svc-text p { margin-top: 0; }
  .js .svc-text .ticks { margin-top: 0; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .svc-panel.is-active { animation: none; } }
.svc-tab {
  display: flex; align-items: baseline; gap: 16px; width: 100%; min-height: 64px; padding: 12px 4px;
  border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; cursor: pointer;
  font-stretch: var(--narrow); font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; line-height: 1.1; color: var(--ink-3);
  transition: color 160ms ease, padding-left 200ms var(--ease);
}
.svc-tab .svc-n { font-size: 15px; font-stretch: 100%; }
.svc-tab:hover { color: var(--ink); }
.svc-tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 6px 0 0 var(--accent); padding-left: 20px; }
.svc-tab:focus-visible { outline-offset: -3px; }

/* Zeichnungen */
.draw { width: 100%; max-width: 520px; height: 100%; max-height: 100%; overflow: visible; }
.draw .d-wall { fill: none; stroke: var(--ink); stroke-width: 6; }
.draw .d-line { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.draw .d-fine { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.draw .d-gone { stroke: var(--ink-3); stroke-width: 3; stroke-dasharray: 10 8; }
.draw .d-mark { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.draw .d-hatch { fill: var(--sunk); }
.draw .d-cut { fill: var(--draw-paper); }
.draw .d-dim line { stroke: var(--ink-2); stroke-width: 1.5; }
.draw .d-txt { fill: var(--ink-2); font: 600 15px var(--font); }
.draw rect.d-mark + text, .draw .d-txt { paint-order: stroke; }

/* ---------- Für wen ---------- */
.aud { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.aud h2 { max-width: 14ch; }
.aud-list { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.aud-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding-block: 24px; border-bottom: 1px solid var(--line-2); }
.aud-item p { color: var(--ink-2); }
.aud-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; }
.aud-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }

/* ---------- Zeitfenster ---------- */
.gw { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.gw-form { margin-top: 32px; display: grid; gap: 24px; }
.gw-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.gw-form legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.gw-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; }
.gw-field { display: grid; gap: 4px; min-width: 0; font-size: 14px; color: var(--ink-3); }
.gw-card { background: var(--raised); border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 48px); box-shadow: 0 0 0 1px var(--line); }
.gw-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.gw-sum b { font-stretch: var(--narrow); font-size: clamp(72px, 9vw, 120px); font-weight: 650; line-height: 0.9; font-variant-numeric: tabular-nums; }
.gw-sum #gw-unit { font-stretch: var(--narrow); font-size: clamp(28px, 3vw, 40px); font-weight: 600; }
.gw-sub { flex-basis: 100%; margin-top: 8px; color: var(--ink-2); }
.gw-track { margin-top: 32px; }
.gw-days { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.gw-days span { padding: 0 0 8px 8px; border-left: 1px solid var(--line-2); }
.gw-bar {
  position: relative; height: 40px; border-radius: 6px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / var(--hours, 48) * 6)),
    var(--sunk);
}
.gw-win {
  --from: 0.2083; --to: 0.8333;
  position: absolute; top: 0; bottom: 0; left: calc(var(--from) * 100%); width: calc((var(--to) - var(--from)) * 100%);
  background:
    repeating-linear-gradient(90deg, rgb(29 34 38 / 0.35) 0 1px, transparent 1px 12px) bottom / 100% 30% no-repeat,
    var(--accent);
  transition: left 260ms var(--ease), width 260ms var(--ease);
}
.gw-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.gw-list { margin-top: 28px; display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.gw-list li { position: relative; padding-left: 24px; color: var(--ink-2); }
.gw-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.gw-card .btn { margin-top: 28px; white-space: normal; text-align: center; }

/* ---------- Ablauf ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.flow-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; }
.flow-media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.steps { margin-top: 40px; counter-reset: s; position: relative; display: grid; gap: 0; }
.steps > li { counter-increment: s; position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding-block: 20px; }
.steps > li::before {
  content: counter(s); grid-row: span 2;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-ctl);
  background: var(--accent); color: var(--on-accent);
  font-stretch: var(--narrow); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 76px; bottom: -8px; width: 2px;
  background: repeating-linear-gradient(var(--ink-3) 0 6px, transparent 6px 12px);
}
.steps h3 { font-stretch: var(--narrow); font-size: 26px; font-weight: 650; }
.steps p { margin-top: 4px; color: var(--ink-2); max-width: 48ch; }

/* ---------- Fragen ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 48px 16px 0;
  font-size: 19px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transition: transform 200ms var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.faq-a { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.form { position: relative; margin-top: 40px; display: grid; gap: 20px; padding: clamp(20px, 3vw, 40px); background: var(--raised); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .chips legend { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-3); }
.hint { font-size: 14px; color: var(--ink-3); }
.err { font-size: 14px; font-weight: 600; color: var(--err); }
input[type="text"], input[type="email"], input[type="tel"], input[type="time"], textarea, select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--field); background: var(--bg); font-size: 17px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
input:hover, textarea:hover, select:hover { border-color: var(--ink); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.select { position: relative; display: block; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
input[type="time"] { font-variant-numeric: tabular-nums; }
.chips { margin: 0; padding: 0; border: 0; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chip-row { 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-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--field); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:checked + span::before { content: ""; width: 10px; height: 6px; margin-right: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-note { flex: 1 1 260px; font-size: 14px; color: var(--ink-3); }
.form-status { padding: 16px 20px; border-radius: var(--r-ctl); background: var(--sunk); border-left: 6px solid var(--accent); }
.form-status.is-error { border-left-color: var(--err); }
.form-status strong { display: block; margin-bottom: 4px; }
.form-status:focus { outline: none; }

.contact-side { display: grid; gap: 40px; padding-top: 8px; }
.contact-list { display: grid; gap: 20px; }
.contact-list dt { font-size: 14px; color: var(--ink-3); }
.contact-list dd { overflow-wrap: anywhere; font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.map { max-width: 300px; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map-land { fill: transparent; stroke: var(--ink-2); stroke-width: 4; stroke-linejoin: round; }
.map-pt circle { fill: var(--ink-3); }
.map-pt text, .map-home text { fill: var(--ink-2); font: 500 54px var(--font); paint-order: stroke; stroke: var(--sunk); stroke-width: 14px; stroke-linejoin: round; }
.map-home circle { fill: var(--accent); stroke: var(--ink); stroke-width: 4; }
.map-home .map-home-core { fill: var(--ink); stroke: none; }
.map-home text { fill: var(--ink); font-weight: 700; font-size: 60px; }
.map figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; }

/* ---------- Fuß ---------- */
.footer { background: var(--hero); color: var(--on-hero-2); padding-block: 56px 32px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.brand--foot { color: var(--on-hero); margin-bottom: 8px; }
.footer address { font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
.footer .link { text-decoration-color: rgb(255 255 255 / 0.3); }
.footer .link:hover { color: var(--on-hero); text-decoration-color: currentColor; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 14px; }

.actionbar { display: none; }

/* ---------- Unterseiten ---------- */
.page-head { position: relative; background: var(--sunk); padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px); }
.page-head h1 { font-size: clamp(40px, 5.6vw, 76px); max-width: 16ch; }
.legal { padding-block: 56px 96px; }
.legal-in { max-width: 72ch; }
.legal h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 48px; line-height: 1.1; }
.legal h3 { margin-top: 28px; font-size: 19px; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-2); }
.legal ul { list-style: none; display: grid; gap: 6px; }
.legal ul li { padding-left: 20px; position: relative; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 2px; background: var(--ink-3); }
.legal .todo { padding: 12px 16px; border-left: 6px solid var(--accent); background: var(--sunk); }
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 24px; padding-block: 96px; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 0 8px; }
  .nav-tel:not(.nav-tel--icon) { display: none; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta, .nav-tel { display: none; }
  .nav-in > .brand { margin-right: auto; } /* Telefon, Anfrage und Burger rechtsbündig */
  .nav-links--sub { display: flex; }
  .burger {
    display: inline-grid; place-content: center; gap: 6px; width: 48px; height: 48px; margin-right: -8px;
    border: 0; border-radius: var(--r-ctl); background: none; color: var(--on-hero); cursor: pointer;
  }
  .burger i { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 200ms var(--ease); }
  .burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 40px 64px; gap: 24px; }
  .hero h1 { max-width: none; }
  .stage { margin: 0; width: 100%; }
  .head, .aud, .gw, .flow, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .aud-media { aspect-ratio: 3 / 2; }
  .flow-media { aspect-ratio: 16 / 9; order: 2; }
  .map { max-width: 220px; }
}
@media (max-width: 899px) {
  .svc-panel { grid-template-columns: minmax(0, 1fr); }
  .svc-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .two, .aud-item { grid-template-columns: minmax(0, 1fr); }
  .gw-row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .hero-cta .btn { width: 100%; }
  .hs-label { font-size: 13px; padding: 4px 8px; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--hero) 96%, transparent); color: var(--on-hero);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    transform: translateY(110%); transition: transform 240ms var(--ease);
  }
  .actionbar .btn--ghost { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.3); }
  .actionbar.show { transform: none; }
  body.has-bar .footer { padding-bottom: 96px; }
}
/* Handys: Punkte liegen zu dicht für Beschriftungen (überlagerten sich bei 402 px), nur Punkte als Links */
@media (max-width: 640px) {
  .hs-line { display: none; }
  /* Beschriftung nur optisch ausblenden, damit der Link seinen Namen behält */
  .hs-label { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}


/* ================= Mehrseiter (13.11.2026) ================= */
/* Untermenüs */
.nav-list > li { position: relative; display: flex; align-items: center; }
.sub-btn {
  display: inline-grid; place-items: center; width: 28px; min-height: 44px; margin-left: -8px; padding: 0;
  border: 0; border-radius: var(--r-ctl); background: none; color: var(--on-hero-2); cursor: pointer;
}
.sub-btn::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 160ms var(--ease); }
.sub-btn--text { width: auto; margin-left: 0; padding: 0 12px; gap: 8px; grid-auto-flow: column; font-size: 15px; }
.sub-btn:hover { color: var(--on-hero); }
.sub-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.sub {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 248px; margin: 0; padding: 8px; list-style: none;
  background: var(--raised); color: var(--ink); border-radius: var(--r-card);
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgb(0 0 0 / 0.18);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms;
}
.has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.nav-links .sub a { display: flex; min-height: 44px; padding: 0 12px; color: var(--ink); border-radius: var(--r-ctl); font-size: 15px; }
.nav-links .sub a:hover { background: var(--sunk); color: var(--ink); }
.nav-links .sub a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); }
.menu-label { margin: 0; color: var(--on-hero-2); }
.menu-sub { margin: 0 0 8px; padding: 0 0 0 16px; list-style: none; }
.menu-sub a { display: flex; align-items: center; min-height: 44px; color: var(--on-hero-2); text-decoration: none; font-size: 18px; }
.menu-in a[aria-current="page"] { color: var(--accent); }

/* Brotkrumen */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: currentColor; }
.crumbs [aria-current] { color: var(--ink); }

/* Seitenkopf mit Bild */
.page-head-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.page-head--img .page-head-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); }
.page-head .lead { margin-top: 20px; }
.page-head .hero-cta { margin-top: 28px; }
.page-head .btn--ghost { box-shadow: inset 0 0 0 1.5px var(--field); }
.page-head-media { margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--raised); }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--raised);
  box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sunk); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; flex: 1; }
.card-title { font-stretch: var(--narrow); font-size: 28px; font-weight: 650; line-height: 1.05; }
.card-body p { color: var(--ink-2); }
.card-more { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 12px 32px rgb(0 0 0 / 0.08); }
  .card:hover .card-media img { transform: scale(1.03); }
}
.card:focus-visible { outline-offset: 4px; }
.more-row { margin-top: 32px; }

/* Leistungsübersicht */
.svc-rows { display: grid; gap: clamp(40px, 6vw, 72px); }
.svc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row-text h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(30px, 3.4vw, 44px); }
.svc-row-text h2 a { color: inherit; text-decoration: none; }
.svc-row-text h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.svc-row-text > p { margin-top: 12px; color: var(--ink-2); max-width: 52ch; }
.svc-row-text .ticks { margin-block: 16px 20px; }
.svc-row-text > .link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Detailseiten */
.detail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.detail-main { display: grid; gap: clamp(40px, 5vw, 56px); min-width: 0; }
.block h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.block > p { color: var(--ink-2); max-width: 64ch; }
.block > p + p { margin-top: 12px; }
.block .ticks { margin-top: 16px; }
.detail-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.side-box { display: grid; gap: 12px; padding: 24px; border-radius: var(--r-card); background: var(--sunk); }
.side-h { font-size: 14px; color: var(--ink-3); }
.side-name { font-stretch: var(--narrow); font-size: 28px; font-weight: 650; line-height: 1.05; margin-top: -8px; }
.side-box .link { display: inline-block; padding-block: 4px; }
.side-box .btn { margin-top: 4px; }
.side-note { font-size: 14px; color: var(--ink-3); }
.steps--compact { margin-top: 8px; }
.steps--compact > li { padding-block: 12px; grid-template-columns: 56px minmax(0, 1fr); }
.steps--compact > li::before { width: 40px; height: 40px; font-size: 22px; }
.steps--compact > li:not(:last-child)::after { left: 19px; top: 60px; }
.steps--compact p { margin-top: 0; padding-top: 8px; }
.steps--big { margin-top: 0; }
.steps--big p { margin-top: 8px; }
.rel-h { font-size: clamp(28px, 3vw, 40px); margin-bottom: 32px; }
.gw-block .gw { margin-top: 24px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.gw-block .gw-form { margin-top: 0; }
.gw-block .gw-form fieldset { display: block; }
.gw-block .gw-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gw-block .gw-sum b { font-size: clamp(64px, 7vw, 96px); }

/* Abschluss-Band */
.cta-band { background: var(--hero); color: var(--on-hero); }
.cta-band .lead { color: var(--on-hero-2); }
.cta-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-band .btn--ghost { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.3); }
.cta-band .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-hero); }
.cta-band :focus-visible { outline-color: var(--accent); }

/* Fragen-Sammlung */
.faq-groups { display: grid; gap: clamp(40px, 5vw, 64px); max-width: 880px; }
.faq-group h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.faq-group h2 a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.faq-group h2 a:hover { text-decoration-color: var(--accent); }

/* Kontakt */
.contact .form { margin-top: 0; }
.area h2 { font-size: 24px; line-height: 1.15; }
.area > p { margin-top: 8px; color: var(--ink-2); }
.places { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 24px; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }

/* Fuß mit Sitemap */
.footer-col h2 { font-size: 15px; font-weight: 600; color: var(--on-hero); margin: 0 0 8px; font-stretch: 100%; line-height: 1.3; }
.footer-col h2 + ul + h2 { margin-top: 20px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-brand address { margin-top: 12px; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .page-head--img .page-head-in, .detail, .cta-in, .svc-row { grid-template-columns: minmax(0, 1fr); }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }
  .detail-side { position: static; }
  .cta-actions { justify-content: flex-start; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cards, .cards--3, .footer-in { grid-template-columns: minmax(0, 1fr); }
  .gw-block .gw-form { grid-template-columns: minmax(0, 1fr); }
  .cta-actions .btn, .page-head .hero-cta .btn { width: 100%; }
  .card-title { font-size: 24px; }
}

.flow-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: f; }
.flow-chips li { counter-increment: f; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--sunk); font-weight: 600; }
.flow-chips li::before { content: counter(f); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-stretch: var(--narrow); font-weight: 700; }
.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }

.partner-box { margin-top: 40px; padding: 24px; border-radius: var(--r-card); background: var(--raised); box-shadow: inset 6px 0 0 var(--accent), 0 0 0 1px var(--line); max-width: 880px; }
.section--sunk .partner-box, .faq-groups .partner-box { background: var(--raised); }
.partner-box h2, .partner-box h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin-bottom: 8px; }
.partner-box p { color: var(--ink-2); max-width: 70ch; }
.detail-main .partner-box, .faq-groups .partner-box { margin-top: 0; }

.detail-main--wide { max-width: 880px; }
.step-sub { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.contact-more { margin-top: 48px; display: grid; gap: 40px; }
.ticks li strong { font-weight: 600; color: var(--ink); }
.block > p .link, .ticks .link { font-weight: 500; }

.steps > li > * { grid-column: 2; }
.steps .ticks { margin-top: 8px; }

/* Startseite: 7 Leistungen + Übersichtskachel = 8 Kacheln (4/2/1 Spalten) */
.cards--svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--svc .card-title { font-size: 24px; }
.card--all { background: var(--sunk); box-shadow: inset 0 0 0 1.5px var(--line-2); justify-content: flex-end; }
.card--all .card-body { justify-content: flex-end; }
.card--all .card-title { font-size: 28px; }
@media (max-width: 1100px) { .cards--svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--svc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Vorher-Nachher-Vergleich (.cmp) ---------- */
.cmp { margin: 8px 0 0; }
.cmp-stage { display: grid; gap: 12px; }
.cmp-pane { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sunk); }
.cmp-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-tag {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 6px;
  background: rgb(20 24 27 / 0.82); color: #f3f4f1; font-size: 14px; font-weight: 600; pointer-events: none;
}
.cmp-pane--before .cmp-tag { left: 12px; }
.cmp-pane--after .cmp-tag { right: 12px; }
.cmp-handle, .cmp-range { display: none; }
.cmp figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-3); }
/* mit JS: übereinander, Nachher-Bild rechts vom Regler sichtbar */
.js .cmp-stage { --pos: 50; position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.js .cmp-pane { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.js .cmp-pane--after { clip-path: inset(0 0 0 calc(var(--pos) * 1%)); }
.js .cmp-range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.js .cmp-handle { display: block; position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 0; pointer-events: none; }
.js .cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.25); }
.cmp-knob {
  position: absolute; top: 50%; left: 0; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 4px 16px rgb(0 0 0 / 0.3);
}
.cmp-knob::before, .cmp-knob::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 2.5px solid var(--on-accent); border-left: 2.5px solid var(--on-accent);
}
.cmp-knob::before { left: 11px; transform: translateY(-50%) rotate(-45deg); }
.cmp-knob::after { right: 11px; transform: translateY(-50%) rotate(135deg); }
.js .cmp-range:focus-visible + .cmp-handle .cmp-knob { outline: 3px solid var(--ink); outline-offset: 3px; }
.js .cmp-stage.is-drag .cmp-knob { transform: translate(-50%, -50%) scale(1.06); }
@media (prefers-reduced-motion: no-preference) { .cmp-knob { transition: transform 160ms var(--ease); } }

.cmp-img { -webkit-user-drag: none; user-select: none; }

.js .cmp-img { pointer-events: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.cmp-stage img { user-select: none; -webkit-user-select: none; }

/* ---------- Bild-Abschnitt (.pic) ---------- */
.pic { margin: 8px 0 0; }
.pic-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); background: var(--sunk); }
.pic figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-3); }

/* ---------- Karriere ---------- */
.job-band-wrap { padding-block: clamp(32px, 5vw, 56px); }
.job-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 28px; border-radius: var(--r-card); background: var(--raised); box-shadow: inset 6px 0 0 var(--accent), 0 0 0 1px var(--line); }
.job-band h2 { font-size: clamp(24px, 2.4vw, 32px); }
.job-band p { margin-top: 6px; color: var(--ink-2); max-width: 62ch; }
.job-meta { font-size: 14px; color: var(--ink-3); }
.job-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line-2); }
.job-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 24px; padding-block: 12px; border-bottom: 1px solid var(--line-2); }
.job-facts dt { font-weight: 600; }
.job-facts dd { margin: 0; color: var(--ink-2); }
.side-apply { margin-top: 12px; }
input[type="file"] { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--r-ctl); border: 1.5px dashed var(--field); background: var(--bg); font-size: 15px; }
input[type="file"]:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent); }
.chip input[type="radio"] + span { cursor: pointer; }
@media (max-width: 640px) { .job-facts > div { grid-template-columns: minmax(0, 1fr); } .job-band .btn { width: 100%; } }

.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .cards--2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bautrupp auf dem Zollstock (Szenen aus assets/crew.js) ---------- */
.crew {
  position: absolute; left: 0; bottom: 100%; width: 100%; height: 72px; pointer-events: none; overflow: visible;
  --c1: var(--on-hero); --c2: var(--on-hero-2); --w1: var(--crew-1); --w2: var(--crew-2); --w3: var(--crew-3); --w4: var(--crew-4); --g1: #93b3c8; --g2: #6f8ea3;
  --edge: rgb(0 0 0 / 0.35); --wood: #c4935c; --wood2: #9c7146; --board: #d3d8d2; --metal: #9aa4aa; --door: #e9e6df;
  --green: #6aa65f; --green2: #4f8a48; --soil: #7d5b3c; --glass: rgb(160 200 222 / 0.5); --red: #d0553f; --white: #f1f1ec;
  --wool: #e6cd73; --carpet: #8291aa; --paper: #f4f1e8; --mulde: #d97f2a; --blue: #4d7fa6; --dust: #c9c3b6; --carton: #c9a06a;
  --brick: #b9614a; --reet: #9a8458; --sack: #4b5257; --dog: #b9895a; --rubble: #9a948a; --broom: #c9a64a;
}
.page-head .crew { --c1: var(--ink); --c2: var(--ink-2); --w1: var(--crew-1); --w2: var(--crew-2); --w3: var(--crew-3); --w4: var(--crew-4); }
@media (prefers-color-scheme: light) {
  :where(html:not([data-theme="dark"])) .crew { --g1: #4f6f86; --g2: #7d97a9; --edge: rgb(29 34 38 / 0.42); --board: #ebe7df; --white: #ffffff; --door: #f6f3ec; --dust: #b3ab9b; --glass: rgb(120 172 204 / 0.38); --paper: #ffffff; }
}
/* Schalter im Footer: Nutzerwahl „hell“ (html[data-theme]) gilt auch ohne passende Geräteeinstellung */
:where(html[data-theme="light"]) .crew { --g1: #4f6f86; --g2: #7d97a9; --edge: rgb(29 34 38 / 0.42); --board: #ebe7df; --white: #ffffff; --door: #f6f3ec; --dust: #b3ab9b; --glass: rgb(120 172 204 / 0.38); --paper: #ffffff; }
.crew g { transform-box: view-box; transform-origin: 0 0; }
.crew line, .crew path { stroke-linecap: round; stroke-linejoin: round; }
.crew .c-front { stroke: var(--w1); stroke-width: 4.2; }
.crew .c-back { stroke: var(--w2); stroke-width: 4.2; }
.crew .c-torso { stroke: var(--w1); stroke-width: 7.5; }
.crew .c-head { fill: var(--w1); }
.crew .c-leg.c-front { stroke: var(--w3); }
.crew .c-leg.c-back { stroke: var(--w4); }
.crew .g-front { stroke: var(--g1); stroke-width: 4.2; }
.crew .g-back { stroke: var(--g2); stroke-width: 4.2; }
.crew .g-torso { stroke: var(--g1); stroke-width: 7.5; }
.crew .g-head { fill: var(--g1); }
.crew .h-helmet { fill: var(--accent); }
.crew .h-partner { fill: var(--white); stroke: var(--edge); stroke-width: 0.8; }
.crew .h-cap { fill: var(--blue); }
.crew .h-hair { fill: var(--c2); }
.crew :where(.prop) :where(rect, circle, ellipse, path, polygon) { stroke: var(--edge); stroke-width: 0.8; }
.crew .p-board { fill: var(--board); }
.crew .p-wood { fill: var(--wood); }
.crew .p-wood2 { fill: var(--wood2); }
.crew .p-metal { fill: var(--metal); }
.crew .p-door { fill: var(--door); }
.crew .p-frame { fill: none; stroke: var(--wood2) !important; stroke-width: 2.4 !important; }
.crew .p-white { fill: var(--white); }
.crew .p-glass { fill: var(--glass); }
.crew .p-carton { fill: var(--carton); }
.crew .p-tape { stroke: var(--wood2); stroke-width: 1.4; }
.crew .p-red { fill: var(--red); }
.crew .p-acc { fill: var(--accent); }
.crew .p-dark { fill: var(--c1); }
.crew .p-mulde { fill: var(--mulde); }
.crew .p-green { fill: var(--green); }
.crew .p-green2 { fill: var(--green2); }
.crew .p-soil { fill: var(--soil); }
.crew .p-carpet { fill: var(--carpet); }
.crew .p-wool { fill: var(--wool); }
.crew .p-paper { fill: var(--paper); }
.crew .p-blue { fill: var(--blue); }
.crew .p-sack { fill: var(--sack); }
.crew .p-rubble { fill: var(--rubble); }
.crew .p-brick { fill: var(--brick); }
.crew .p-reet { fill: var(--reet); }
.crew .p-dog { fill: var(--dog); }
.crew .p-broom { fill: var(--broom); }
.crew .p-ink { fill: none; stroke: var(--c1) !important; stroke-width: 1.8 !important; }
.crew .p-ink-dark { fill: none; stroke: #1d2226 !important; stroke-width: 1.6 !important; }
.crew .p-ink-thin { fill: none; stroke: var(--c1) !important; stroke-width: 1.2 !important; }
.crew .p-ink-hair { fill: none; stroke: var(--c2) !important; stroke-width: 0.7 !important; }
.crew .p-ink-thin-fill { fill: var(--c2); stroke: none !important; }
.crew .p-stem { stroke: var(--green2); stroke-width: 1.6; }
.crew .p-green-line { stroke: var(--green); stroke-width: 1.6; }
.crew .p-wood-line { stroke: var(--wood2); stroke-width: 1.8; }
.crew .p-wool-line { fill: none; stroke: var(--wood2) !important; stroke-width: 0.6 !important; opacity: 0.6; }
.crew .p-ladder { stroke: var(--metal); stroke-width: 2.2; }
.crew .p-ladder-thin { stroke: var(--metal); stroke-width: 1.4; }
.crew .p-acc-line { stroke: var(--accent); stroke-width: 1.2; }
.crew .p-acc-ring { fill: none; stroke: var(--accent) !important; stroke-width: 1.2 !important; }
.crew .p-dog-line { stroke: var(--dog); stroke-width: 2; }
.crew .p-label { font: 600 6.4px var(--font); fill: #1d2226; letter-spacing: 0.02em; }
.crew .fx-line { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.crew .fx-fill { fill: var(--accent); }
.crew .fx-dust { fill: var(--dust); }
.crew .fx-bubble { fill: var(--white); stroke: var(--edge); stroke-width: 0.8; }
.crew .fx-text { font: 700 8.4px var(--font); fill: #1d2226; }
@media (prefers-color-scheme: light) {
  :where(html:not([data-theme="dark"])) .crew .fx-line { stroke: #c39410; }
  :where(html:not([data-theme="dark"])) .crew .fx-fill { fill: #c39410; }
}
/* Schalter im Footer: Nutzerwahl „hell“ (html[data-theme]) gilt auch ohne passende Geräteeinstellung */
:where(html[data-theme="light"]) .crew .fx-line { stroke: #c39410; }
:where(html[data-theme="light"]) .crew .fx-fill { fill: #c39410; }
/* Schalter für Besucher rechts auf dem Zollstock (aus crew.js, nur wenn Animationen im Admin an sind) */
.crew-toggle {
  position: absolute; right: var(--pad); bottom: 2px; z-index: 6; /* über der Lupe */
  display: inline-flex; align-items: center; gap: 6px; height: 16px; padding: 0 3px 0 8px;
  border: 0; border-radius: 8px; background: var(--on-accent); color: #eef0ed;
  font: 600 11px/1 var(--font); letter-spacing: 0.01em; cursor: pointer;
  transition: background-color 160ms ease;
}
.crew-toggle::before { content: ""; position: absolute; inset: -26px -10px -4px; }
.crew-toggle:hover { background: #2e353a; }
.crew-toggle:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 2px; }
.crew-toggle__sw { position: relative; width: 20px; height: 10px; border-radius: 5px; background: rgb(255 255 255 / 0.28); transition: background-color 160ms ease; }
.crew-toggle__knob { position: absolute; top: 1px; left: 1px; width: 8px; height: 8px; border-radius: 50%; background: #eef0ed; transition: transform 200ms var(--ease), background-color 160ms ease; }
.crew-toggle[aria-pressed="true"] .crew-toggle__sw { background: var(--accent); }
.crew-toggle[aria-pressed="true"] .crew-toggle__knob { transform: translateX(10px); background: var(--on-accent); }
@media (prefers-reduced-motion: no-preference) {
  .js .crew-toggle { animation: crew-toggle-in 400ms var(--ease) 1300ms backwards; }
}
@keyframes crew-toggle-in { from { opacity: 0; transform: translateY(4px); } }

/* Zollstock steht sofort, ohne Ausklappen: Besucher hat den Bautrupp aus (crew-off) oder Admin › Einstellungen „Zollstock klappt auf“ aus (rule-still) */
.crew-off .rule span, .rule-still .rule span { animation: none !important; transform: none !important; clip-path: none !important; }
.crew-off .crew-toggle { animation: none; }

/* Lupe über dem Bautrupp (crew.js, nur Maus, nur während eine Szene läuft) */
.crew-lens {
  position: absolute; left: 0; bottom: 0; z-index: 4; width: 400px; height: 150px; border-radius: 12px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(0.6); transform-origin: 50% 100%;
  box-shadow: 0 0 0 2px var(--on-accent), 0 0 0 5px var(--accent), 0 12px 28px rgb(0 0 0 / 0.28);
  transition: opacity 160ms ease, transform 240ms var(--ease);
}
.crew-lens.is-on { opacity: 1; transform: none; }
.crew-lens__stage { position: absolute; top: 58px; height: 92px; }
.crew-lens__svg { left: 0; top: 0; bottom: auto; height: 72px; }
.crew-lens__rule { position: absolute; left: 0; right: 0; top: 72px; height: 20px; }
.crew-cta {
  position: absolute; left: 0; bottom: 162px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 500 15px/1.1 var(--font); white-space: nowrap; text-decoration: none;
  box-shadow: 0 0 0 1.5px var(--on-accent), 0 8px 20px rgb(0 0 0 / 0.22);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 200ms var(--ease), visibility 0s linear 200ms;
}
.crew-cta strong { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.crew-cta.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.crew-cta:hover { background: #ffd34a; }
.crew-cta.is-pulse { animation: crew-cta-pulse 900ms cubic-bezier(0.45, 0, 0.55, 1) 2; }
/* weich: kleine Größenänderung, sinusartige Kurve, Ring blendet über die ganze Dauer aus */
@keyframes crew-cta-pulse {
  0%   { transform: translate(-50%, 0) scale(1);     box-shadow: 0 0 0 1.5px var(--on-accent), 0 8px 20px rgb(0 0 0 / 0.22), 0 0 0 0 rgb(242 193 46 / 0.55); }
  50%  { transform: translate(-50%, 0) scale(1.045); box-shadow: 0 0 0 1.5px var(--on-accent), 0 10px 24px rgb(0 0 0 / 0.24), 0 0 0 9px rgb(242 193 46 / 0.22); }
  100% { transform: translate(-50%, 0) scale(1);     box-shadow: 0 0 0 1.5px var(--on-accent), 0 8px 20px rgb(0 0 0 / 0.22), 0 0 0 16px rgb(242 193 46 / 0); }
}
.crew-off .crew-lens, .crew-off .crew-cta { display: none; }

/* Raum aus dem Schnitthaus im Seitenkopf (Leistungen mit Hotspot auf der Startseite) */
.page-head-media--raum { aspect-ratio: 3 / 2; background: transparent; }
.page-head-media--raum picture { display: block; height: 100%; }
@media (min-width: 961px) {
  .page-head--raum .page-head-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Hotspots im Haus (nur Geräte mit Maus): beim Laden baut sich jeder Hotspot von links nach rechts auf
   (Punkt springt auf + Ring, Linie fährt aus, Beschriftung gleitet herein) und fährt danach wieder ein.
   Danach nur bei Hover oder Tastaturfokus auf dem Haus. Touch-Geräte und reduzierte Bewegung: dauerhaft sichtbar. */
.hs[data-tab="entkernung"] { --o:0; }
.hs[data-tab="montageservice"] { --o:1; }
.hs[data-tab="ausbessern-fugen"] { --o:2; }
.hs[data-tab="trockenbau"] { --o:3; }
.hs[data-tab="fenster-tueren"] { --o:4; }
.hs[data-tab="boeden"] { --o:5; }
.hs[data-tab="garten-aussenanlagen"] { --o:6; }
.hs--up { --dy: 10px; }
.hs--down { --dy: -10px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js .hs { opacity: 1; animation: none; }
  /* Grundzustand: eingefahren. Reihenfolge beim Einfahren: Beschriftung, Linie, Punkt */
  .js .hs-dot { transform: scale(0); opacity: 0; transition: transform 220ms cubic-bezier(0.55, 0, 1, 0.45) 150ms, opacity 120ms linear 230ms; }
  .js .hs-line { transform: scaleY(0); transition: transform 200ms cubic-bezier(0.55, 0, 1, 0.45) 60ms; }
  .js .hs-label { opacity: 0; translate: 0 var(--dy); transition: opacity 120ms linear, translate 160ms ease-in; }
  /* Einstieg nach dem Laden */
  .js .hs-dot, .js .hs-line, .js .hs-label { animation-duration: 3600ms; animation-delay: calc(450ms + var(--o) * 110ms); animation-timing-function: linear; animation-fill-mode: backwards; }
  .js .hs-dot { animation-name: hs-dot-in; }
  .js .hs-line { animation-name: hs-line-in; }
  .js .hs-label { animation-name: hs-label-in; }
  /* Einstieg nur einmal: site.js setzt .hs-done nach dem Durchlauf oder beim ersten Hover/Fokus, sonst startet er nach jedem Hover neu */
  .js .stage.hs-done .hs-dot, .js .stage.hs-done .hs-line, .js .stage.hs-done .hs-label { animation: none; }
  /* Hover/Fokus: gleicher Aufbau wie beim Laden (links nach rechts, Punkt + Ring → Linie → Beschriftung), ~60 % der Zeit */
  .js .stage:hover .hs, .js .stage:focus-within .hs { --hd: calc(var(--o) * 70ms); }
  .js .stage:hover .hs-dot, .js .stage:focus-within .hs-dot {
    transform: scale(1); opacity: 1; animation: hs-ping 650ms ease-out var(--hd) backwards;
    transition: transform 300ms cubic-bezier(0.34, 1.7, 0.64, 1) var(--hd), opacity 80ms linear var(--hd);
  }
  .js .stage:hover .hs-line, .js .stage:focus-within .hs-line { transform: scaleY(1); animation: none; transition: transform 270ms cubic-bezier(0.16, 1, 0.3, 1) calc(150ms + var(--hd)); }
  .js .stage:hover .hs-label, .js .stage:focus-within .hs-label { opacity: 1; translate: 0 0; animation: none; transition: opacity 180ms linear calc(330ms + var(--hd)), translate 300ms cubic-bezier(0.16, 1, 0.3, 1) calc(330ms + var(--hd)); }
  /* Zurück vom Hotspot aufs Haus: kein erneuter Einzel-Ring (site.js setzt .hs-quiet, bis die Maus das Haus verlässt) */
  .js .stage:hover .hs.hs-quiet .hs-dot, .js .stage:focus-within .hs.hs-quiet .hs-dot { animation: none; }
  /* Aktiver Hotspot (Maus darauf oder Tastaturfokus): Ring pulsiert dauerhaft */
  .js .stage .hs:hover .hs-dot, .js .stage .hs:focus-visible .hs-dot { transform: scale(1.2); transition-delay: 0s; animation: hs-pulse 1800ms ease-out infinite; }
}
/* 3,6 s: Punkt 0–0,5 s, Linie 0,25–0,7 s, Beschriftung 0,55–1 s, stehen bis 2,4 s, dann rückwärts einfahren */
@keyframes hs-dot-in {
  0% { transform: scale(0); opacity: 0; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); animation-timing-function: cubic-bezier(0.34, 1.7, 0.64, 1); }
  4% { opacity: 1; }
  12% { transform: scale(1); }
  30% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 22px transparent; }
  80% { transform: scale(1); opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  88% { transform: scale(0); opacity: 0; }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes hs-line-in {
  0%, 7% { transform: scaleY(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  19% { transform: scaleY(1); }
  73% { transform: scaleY(1); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  80%, 100% { transform: scaleY(0); }
}
@keyframes hs-label-in {
  0%, 15% { opacity: 0; translate: 0 var(--dy); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  28% { opacity: 1; translate: 0 0; }
  66% { opacity: 1; translate: 0 0; animation-timing-function: ease-in; }
  72%, 100% { opacity: 0; translate: 0 var(--dy); }
}
@keyframes hs-ping {
  0%, 15% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  100% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 22px transparent; }
}
/* Aktiver Hotspot: 1,8 s je Puls (~0,7 s ausdehnen, dann Pause) */
@keyframes hs-pulse {
  0% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  40%, 100% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 22px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hs, .js .hs-line { opacity: 1; transform: none; animation: none; }
}

/* ---------- WhatsApp-Knopf im Stil des Bautrupps (sf_whatsapp_button, Verhalten in site.js) ---------- */
.wa-worker {
  --wa-ink: #1d2226; --wa-paper: #fffdf7; --wa-top: #3f8a84; --wa-top-2: #66a39d; --wa-pants: #1f4f4c;
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 6px; padding: 8px 20px 14px 8px; overflow: hidden;
  border-radius: 18px; background: var(--wa-paper); color: var(--wa-ink); text-decoration: none;
  box-shadow: 0 0 0 1px rgb(29 34 38 / 0.1), 0 12px 30px rgb(29 34 38 / 0.18), 0 2px 6px rgb(29 34 38 / 0.08);
  transition: transform 280ms var(--ease), opacity 220ms ease, bottom 240ms var(--ease), box-shadow 200ms ease, visibility 0s linear 0s;
}
.wa-worker::after { /* Zollstock-Streifen an der Unterkante */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--wa-ink) 0 1.5px, transparent 1.5px 50px) bottom left / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, var(--wa-ink) 0 1px, transparent 1px 10px) bottom left / 100% 50% no-repeat, var(--accent);
}
.wa-worker:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(29 34 38 / 0.14), 0 16px 34px rgb(29 34 38 / 0.22), 0 2px 6px rgb(29 34 38 / 0.08); }
.wa-worker:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wa-fig { width: 60px; height: 64px; flex: none; overflow: visible; }
.wa-fig line { stroke: var(--wa-ink); stroke-width: 4; stroke-linecap: round; }
.wa-fig .wa-torso { stroke-width: 8; }
.wa-fig .wa-hand { fill: var(--wa-top); }
.wa-fig .wa-torso, .wa-fig .wa-limb { stroke: var(--wa-top); }
.wa-fig .wa-body line:nth-child(4) { stroke: var(--wa-top-2); }
.wa-fig .wa-body line:nth-child(-n+2) { stroke: var(--wa-pants); }
.wa-fig .wa-face { fill: #fbe3cc; stroke: var(--wa-ink); stroke-width: 1.8; }
.wa-fig .wa-eye { fill: var(--wa-ink); }
.wa-fig .wa-smile { fill: none; stroke: var(--wa-ink); stroke-width: 1.6; stroke-linecap: round; }
.wa-fig .wa-cheek { fill: #f08f7a; opacity: 0.55; }
.wa-fig .wa-helmet { fill: var(--accent); stroke: var(--wa-ink); stroke-width: 1.1; stroke-linejoin: round; }
.wa-fig .wa-helmet-ridge { stroke: var(--wa-ink); stroke-width: 1.1; stroke-linecap: round; opacity: 0.55; }
.wa-fig .wa-bubble { fill: #25d366; }
.wa-fig .wa-phone { fill: none; stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.wa-fig .wa-arm { transform-box: view-box; transform-origin: 24px 36.5px; }
.wa-fig .wa-bubble-g { transform-box: fill-box; transform-origin: 30% 90%; }
.wa-worker__txt { display: grid; gap: 2px; line-height: 1.15; }
.wa-worker__txt strong { font-size: 16px; font-weight: 650; }
.wa-worker__txt small { font-size: 13px; color: #474f54; }
.wa-worker.is-away { opacity: 0; visibility: hidden; transform: translateY(18px); transition: transform 280ms var(--ease), opacity 220ms ease, visibility 0s linear 280ms; }
@media (prefers-reduced-motion: no-preference) {
  .wa-worker:hover .wa-arm, .wa-worker.is-wave .wa-arm { animation: wa-wave 1200ms cubic-bezier(0.45, 0, 0.55, 1); }
  .wa-worker:hover .wa-bubble-g, .wa-worker.is-wave .wa-bubble-g { animation: wa-pop 1200ms cubic-bezier(0.45, 0, 0.55, 1); }
}
@keyframes wa-wave { 0%, 100% { transform: rotate(0); } 18% { transform: rotate(14deg); } 40% { transform: rotate(-10deg); } 62% { transform: rotate(12deg); } 82% { transform: rotate(-4deg); } }
@keyframes wa-pop { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.1) rotate(-6deg); } 70% { transform: scale(0.98) rotate(2deg); } }
@media (max-width: 640px) {
  .wa-worker { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 6px 6px 13px; border-radius: 18px; }
  .wa-worker__txt { display: none; }
  .actionbar.show ~ .wa-worker { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media print { .wa-worker { display: none; } }

/* Leistungsseiten: vorige / nächste Leistung */
.svc-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.svc-pager a {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border-radius: var(--r-card);
  background: var(--raised); box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.svc-pager-next { align-items: flex-end; text-align: right; }
.svc-pager-a { color: var(--ink-2); font-weight: 600; }
.svc-pager-prev .svc-pager-a { margin-right: 10px; }
.svc-pager-next .svc-pager-a { margin-left: 10px; }
.svc-pager-t { font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; line-height: 1.2; }
.svc-pager a:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.svc-pager-prev:hover { transform: translateX(-3px); }
.svc-pager-next:hover { transform: translateX(3px); }
.svc-pager a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .svc-pager { grid-template-columns: minmax(0, 1fr); }
}

/* Einsatzgebiet (Ablauf): Text links, Inselkarte rechts */
.area { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.area .map { max-width: 340px; justify-self: center; }
.area h2 { font-size: clamp(32px, 3.6vw, 48px); }
.area .map figcaption { display: none; }
.area .map-credit { margin-top: 8px; text-align: center; font-size: 12px; color: var(--ink-3); }
.area .map-credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.area .map-credit a:hover { text-decoration-color: currentColor; }
.area .map-pt text, .area .map-home text { stroke: var(--bg); }
.steps-lead { margin: 16px 0 40px; max-width: 60ch; }
.area-places { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.area-places li { padding: 6px 12px; border-radius: 999px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; }
.area-places li.is-home { background: var(--accent); color: var(--on-accent); box-shadow: none; }
/* Orte hervorheben: Liste <-> Karte (site.js, Abschnitt Einsatzgebiet) */
.area-places li[data-place] { cursor: default; transition: box-shadow 160ms ease, background-color 160ms ease; }
.area-places li.is-lit { box-shadow: 0 0 0 2px var(--ink); }
.area .map :where(.map-pt, .map-home) { transition: opacity 200ms ease; }
.area .map :where(.map-pt, .map-home) circle { transform-box: fill-box; transform-origin: center; transition: transform 220ms var(--ease), fill 160ms ease; }
.area .map :where(.map-pt, .map-home) text { transition: opacity 160ms ease, fill 160ms ease; }
.area .map-pt--small text { opacity: 0; }
.area .map.has-lit :where(.map-pt, .map-home):not(.is-lit) { opacity: 0.35; }
.area .map .map-pt.is-lit circle { fill: var(--accent); stroke: var(--ink); stroke-width: 4; transform: scale(1.9); }
.area .map .map-home.is-lit circle:first-child { transform: scale(1.25); }
.area .map .is-lit text { opacity: 1; fill: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .area .map :where(.map-pt, .map-home) circle { transition: none; } }
.area-note { margin-top: 24px; color: var(--ink-2); }
@media (max-width: 860px) {
  .area { grid-template-columns: minmax(0, 1fr); }
  .area .map { max-width: 240px; }
}

/* Kundenstimmen */
.quotes { columns: 3 320px; column-gap: 24px; }
.quote { break-inside: avoid; margin: 0 0 24px; padding: 28px 28px 24px; border-radius: var(--r-card); background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.quote blockquote p + p { margin-top: 12px; }
.quote figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-name { font-weight: 700; }
.quote-meta { font-size: 14px; color: var(--ink-2); }
.quote-stars { margin: 0 0 12px; color: var(--accent); font-size: 18px; letter-spacing: 2px; }
.quote-stars-off { color: var(--line); }

/* Projekte */
.card-meta { margin: -4px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.proj-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.proj-meta li { padding: 6px 12px; border-radius: 999px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; }
.proj-meta a { color: inherit; text-decoration: none; }
.proj-meta a:hover { text-decoration: underline; }

/* Hauptmenü mit mehr Punkten: kein Umbruch, bis 1180 px enger */
.nav-links a, .sub-btn--text { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .nav-in { gap: 16px; }
  .nav-links a { padding: 0 8px; font-size: 14.5px; }
}

/* Kopf auf schmalen Bildschirmen: Telefon-Symbol + Anfrage bleiben neben dem Burger, solange Platz ist */
.nav-tel--narrow, .nav-cta-short { display: none; }
@media (max-width: 1100px) {
  .nav-tel--narrow { display: inline-flex; }
}
@media (max-width: 960px) {
  .nav-in { gap: 8px; }
  .nav-in > .theme-btn { margin-left: auto; margin-right: 0; }
  .nav-in > .nav-tel--icon { display: inline-flex; }
  .nav-in > .nav-cta { display: inline-flex; margin-left: 4px; }
}
@media (max-width: 480px) {
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
}
@media (max-width: 379px) {
  .nav-in > .nav-cta { display: none; }
}
