/* ==========================================================================
   Gerüstbau Pfeiffer & Mannen — Basis: Schriften, Tokens, Typografie
   Richtung: "Industrial Editorial" — Anthrazit, Beton, Signalgelb, Rastermaß
   ========================================================================== */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #111316;
  --ink-2: #181b1f;
  --ink-3: #22262b;
  --steel: #8c939b;
  --steel-2: #c3c8ce;
  --paper: #f1f3f5;
  --paper-2: #e4e7eb;
  --white: #ffffff;
  --text: #15171a;
  --muted: #545a62;
  --muted-on-dark: #a4abb3;
  --line: #d3d8de;
  --line-dark: rgba(255, 255, 255, 0.12);
  --signal: #ffc20e;
  --signal-deep: #e9a900;
  --signal-ink: #111316;
  --ok: #3ddc84;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --fs-body: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  --fs-h1: clamp(3.1rem, 1.4rem + 7vw, 8.4rem);
  --fs-h1-sub: clamp(2.6rem, 1.5rem + 4.6vw, 5.6rem);
  --fs-h2: clamp(2.3rem, 1.3rem + 4vw, 5rem);
  --fs-h3: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  --fs-label: 0.78rem;

  --wrap: 1280px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --section: clamp(72px, 5rem + 5vw, 160px);
  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; overflow-wrap: break-word; hyphens: manual; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

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

/* ---------- Typografie ---------- */
.display {
  font-stretch: 66%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); }
.h1-sub { font-size: var(--fs-h1-sub); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-stretch: 78%; font-weight: 750; text-transform: uppercase; line-height: 1; letter-spacing: 0.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 38ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.signal { color: var(--signal); }

.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 22px;
}
.eyebrow .idx {
  display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px;
  background: var(--signal); color: var(--signal-ink); font-weight: 500;
}
.num { font-variant-numeric: tabular-nums; }

/* Platzhalter fuer vom Kunden zu bestaetigende Angaben (nur Vorschau) */
.todo {
  background: repeating-linear-gradient(-45deg, #fff4c9 0 8px, #ffe9a0 8px 16px);
  color: #5a4300; padding: 0 4px; border-radius: 2px; font-weight: 600;
}

/* ==========================================================================
   Layout: Container, Header, Navigation, Buttons, Footer, Formular
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.dark { background: var(--ink); color: var(--white); }
.dark .muted, .dark .lead { color: var(--muted-on-dark); }
.dark .lead strong { color: var(--white); }

/* Rastermaß: feine Gerüstlinien als Hintergrund */
.grid-bg {
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 19, 22, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(17, 19, 22, 0.94); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-stretch: 70%; font-weight: 800; text-transform: uppercase;
  font-size: 1.32rem; line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--signal); }
.brand-sub { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 5px; white-space: nowrap; }

.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; font-stretch: 90%;
  color: var(--steel-2); position: relative; transition: color 0.2s;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line-dark); color: var(--white);
  height: 44px; padding: 0 14px; border-radius: var(--radius); cursor: pointer;
  font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars span { opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: var(--radius);
  font-weight: 750; font-stretch: 82%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-signal { --bg: var(--signal); --fg: var(--signal-ink); --bd: var(--signal); }
.btn-signal:hover { --bg: #ffcd3a; box-shadow: 0 14px 30px -12px rgba(255, 194, 14, 0.55); }
.btn-ink { --bg: var(--ink); --fg: var(--white); --bd: var(--ink); }
.btn-ink:hover { box-shadow: 0 14px 30px -14px rgba(17, 19, 22, 0.6); }
.btn-line:hover { --bg: rgba(255, 255, 255, 0.08); }
.btn-lg { min-height: 64px; padding: 0 30px; font-size: 1.12rem; }
.btn-call { min-height: 48px; padding: 0 18px; font-size: 0.98rem; }
.btn-call .num { font-stretch: 90%; letter-spacing: 0.02em; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 750; font-stretch: 82%; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 2px solid var(--signal); padding-bottom: 4px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- mobile Anruf-Leiste ---------- */
.callbar { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0c0e; color: var(--muted-on-dark); padding: 72px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); font-weight: 500; margin-bottom: 16px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand .brand-name { color: var(--white); font-size: 1.8rem; }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.footer-areas { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.footer-areas h2 { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); font-weight: 500; margin-bottom: 14px; }
.footer-areas ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-areas a { text-decoration: none; }
.footer-areas a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.85rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Formular ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 650; font-size: 0.95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 1.02rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 194, 14, 0.45);
}
.field input:user-invalid { border-color: #c2410c; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 100px; background: var(--white);
  font-weight: 600; font-size: 0.95rem; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
/* Foto-Upload */
.field-label { font-weight: 650; font-size: 0.95rem; }
.upload { position: relative; }
.field .upload-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; }
.upload-drop {
  display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 22px 18px; background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.upload-drop svg { width: 32px; height: 32px; color: var(--ink); }
.upload-drop:hover, .upload.is-drag .upload-drop { border-color: var(--ink); background: var(--paper); }
.upload-input:focus-visible + .upload-drop { outline: 3px solid var(--signal); outline-offset: 2px; }
.upload-text strong { font-weight: 750; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.upload-or { color: var(--muted); font-weight: 400; }
@media (hover: none) { .upload-or { display: none; } }
.upload-hint { font-size: 0.85rem; font-weight: 400; color: var(--muted); max-width: 46ch; }
.upload-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.upload-list:empty { display: none; }
.upload-list li { position: relative; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; border-radius: var(--radius); }
.upload-list img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove {
  position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(17, 19, 22, 0.85); color: var(--white); font-size: 18px; line-height: 30px; padding: 0;
}
.upload-remove:focus-visible { outline: 3px solid var(--signal); }
.upload-status { margin: 8px 0 0; font-size: 0.88rem; color: var(--muted); min-height: 1em; }
.upload-status.is-warn { color: #9a3a00; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Breakpoints (Layout) ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink);
    padding: 24px var(--gutter) 120px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line-dark); }
  .nav a { font-size: 2rem; font-stretch: 68%; font-weight: 800; text-transform: uppercase; padding: 18px 0; color: var(--white); }
  .nav a::after { display: none; }
  .nav a[aria-current='page'] { color: var(--signal); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { display: none; }
  .btn-call .num { display: none; }
  .btn-call { width: 44px; min-height: 44px; padding: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form .btn-lg { width: 100%; padding: 0 16px; font-size: 1rem; }
  .btn { white-space: normal; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding-bottom: 104px; }
  .callbar {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(17, 19, 22, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-dark);
  }
  .callbar .btn { min-height: 52px; padding: 0 12px; font-size: 0.98rem; }
}

/* ==========================================================================
   Sektionen: Hero (Video), Laufband, Fakten, Leistungen, Ablauf (Gerüst-Scroll),
   Betriebe, Einsatzgebiet, FAQ, Kontakt, Unterseiten
   ========================================================================== */

/* ---------- Hero mit Hintergrundvideo ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end;
  background: var(--ink); color: var(--white);
}
.hero-sub { min-height: clamp(460px, 72svh, 760px); }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -2; }
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.is-playing { opacity: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 19, 22, 0.92) 0%, rgba(17, 19, 22, 0.72) 38%, rgba(17, 19, 22, 0.18) 72%, rgba(17, 19, 22, 0.05) 100%),
    linear-gradient(0deg, rgba(17, 19, 22, 0.9) 0%, rgba(17, 19, 22, 0) 46%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero-inner { width: 100%; padding-block: clamp(56px, 9vh, 120px) clamp(40px, 7vh, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: end; }
.hero h1 { margin: 0 0 28px; }
.hero h1 .signal { display: inline-block; }
.hero .lead { color: #d9dde1; max-width: 44ch; margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--steel-2); font-size: 0.95rem; }

.status { display: inline-flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--steel); position: relative; flex: none; }
.status.is-open .status-dot { background: var(--ok); }
.status.is-open .status-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ok);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

.contact-card {
  background: rgba(17, 19, 22, 0.66); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark); border-left: 4px solid var(--signal); padding: 22px 22px 20px;
}
.contact-card .label { color: var(--muted-on-dark); }
.contact-card .who { font-size: 2rem; margin: 8px 0 4px; }
.contact-card .role { color: var(--steel-2); margin: 0 0 16px; font-size: 0.95rem; }
.contact-card a.tel { display: block; font-weight: 800; font-stretch: 75%; font-size: 1.7rem; text-decoration: none; color: var(--signal); letter-spacing: 0.01em; }
.contact-card .status { margin-top: 14px; font-size: 0.9rem; color: var(--steel-2); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--steel-2); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--steel); }

/* ---------- Laufband ---------- */
.ticker { background: var(--signal); color: var(--signal-ink); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, 0.12); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 16px 14px;
  font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: 1.4rem; letter-spacing: 0.02em; white-space: nowrap;
}
.ticker-track span::after { content: ''; width: 12px; height: 12px; background: var(--signal-ink); transform: rotate(45deg); margin-left: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Fakten ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 36px 28px 34px; border-left: 1px solid var(--line); position: relative; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact .label { color: var(--muted); margin-bottom: 14px; display: block; }
.fact strong { display: block; font-size: 1.55rem; font-stretch: 72%; font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-bottom: 10px; }
.fact p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.fact::before { content: ''; position: absolute; top: -1px; left: 0; width: 42px; height: 3px; background: var(--signal); }
.fact:not(:first-child)::before { left: 28px; }

/* ---------- Sektionskopf ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .lead { margin: 0; color: var(--muted); }
.sec-head.single { grid-template-columns: 1fr; }
.rule {
  height: 10px; margin-bottom: 36px;
  background:
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px) 0 100% / 100% 10px no-repeat;
}
.dark .rule {
  background:
    linear-gradient(var(--line-dark), var(--line-dark)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 24px) 0 100% / 100% 10px no-repeat;
}

/* ---------- Leistungen ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc + .svc { margin-top: clamp(80px, 9vw, 140px); }
.svc.reverse .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media figure { margin: 0; position: relative; overflow: hidden; background: var(--ink); }
.svc-media img { width: 100%; transition: transform 1.2s var(--ease); }
.svc-media figure:hover img { transform: scale(1.03); }
.svc-media figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white);
  padding: 10px 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.svc-media .inset {
  position: absolute; width: 44%; right: -6%; bottom: -12%; border: 8px solid var(--paper);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.svc-media .corner { position: absolute; width: 28px; height: 28px; border: 3px solid var(--signal); z-index: 2; }
.svc-media .corner.tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.svc-media .corner.br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.svc h3 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem); margin-bottom: 18px; }
.svc > div > p { color: var(--muted); max-width: 46ch; }
.spec { margin: 28px 0 34px; border-bottom: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.spec .label { color: var(--muted); padding-top: 4px; }
.spec strong { display: block; font-size: 1.12rem; font-weight: 750; }
.spec p { grid-column: 2; margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Ablauf: Gerüst baut sich beim Scrollen auf ---------- */
.process { background: var(--white); }
.process-stage { position: relative; padding-block: var(--section); }
.process-sticky { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Scroll-Modus (nur mit JS, Desktop, Bewegung erlaubt): Bühne 320vh, Inhalt klebt */
.process.is-live .process-stage { height: 320vh; padding-block: 0; }
.process.is-live .process-sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); }
.scaffold-wrap { position: relative; height: min(76svh, 640px); display: grid; place-items: center; }
.scaffold { --p: 1; width: auto; height: 100%; max-width: 100%; overflow: visible; }
.scaffold .sc-line, .scaffold .sc-deck, .scaffold .sc-rail, .scaffold .sc-diag, .scaffold .sc-ladder, .scaffold .sc-ground {
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - var(--s)) / var(--d), 1)); fill: none; stroke-linecap: square;
}
.sc-line { stroke: var(--ink); stroke-width: 5; }
.sc-deck { stroke: var(--ink); stroke-width: 7; }
.sc-rail { stroke: var(--steel); stroke-width: 3.2; }
.sc-diag { stroke: var(--steel); stroke-width: 3; }
.sc-ladder { stroke: var(--steel); stroke-width: 2.2; }
.sc-ground { stroke: var(--ink); stroke-width: 2; }
.sc-toe, .sc-fade, .sc-tag { opacity: clamp(0, (var(--p) - var(--s)) / var(--d), 1); }
.sc-toe { fill: var(--signal); transform-box: fill-box; transform-origin: left; transform: scaleX(clamp(0, (var(--p) - var(--s)) / var(--d), 1)); }
.sc-fade { fill: #7a5a2e; }
.sc-house path, .sc-house rect { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 6; }
.sc-tag rect { fill: var(--signal); stroke: var(--ink); stroke-width: 2; }
.sc-tag path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sc-tag line { stroke: var(--ink); stroke-width: 2; }
.sc-dim line { stroke: var(--steel); stroke-width: 1.5; }
.height-readout { position: absolute; left: 0; top: 0; text-align: left; }
.height-readout .value { font-size: clamp(3rem, 2rem + 3vw, 5rem); font-weight: 800; font-stretch: 66%; line-height: 1; }
.height-readout .label { color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; padding: 22px 0 22px 84px; border-top: 1px solid var(--line); transition: opacity 0.4s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n {
  position: absolute; left: 0; top: 18px; font-size: 3.4rem; font-weight: 800; font-stretch: 62%; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--steel); transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.step h3 { font-size: 1.6rem; font-stretch: 74%; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); max-width: 44ch; }
.js .process.is-live .step { opacity: 0.38; }
.js .process.is-live .step.is-active { opacity: 1; }
.step.is-active .n { color: var(--signal); -webkit-text-stroke-color: var(--ink); }

/* ---------- Für Betriebe (Signalgelb) ---------- */
.b2b { background: var(--signal); color: var(--signal-ink); overflow: hidden; }
.b2b-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.b2b .lead { color: #1f2226; }
.b2b .eyebrow .idx { background: var(--ink); color: var(--signal); }
.b2b-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 32px 0 40px; border-top: 2px solid var(--ink); }
.b2b-list li { padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(17, 19, 22, 0.25); font-weight: 650; display: flex; gap: 12px; align-items: flex-start; }
.b2b-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.b2b-media { position: relative; }
.b2b-media img { width: 100%; filter: grayscale(0.15) contrast(1.05); }
.b2b-media .tag {
  position: absolute; left: -18px; top: 28px; background: var(--ink); color: var(--white); padding: 16px 18px;
  font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 1.3rem; line-height: 1.1;
}
.b2b-media .tag span { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--signal); margin-bottom: 6px; }

/* ---------- Einsatzgebiet ---------- */
.area-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.area-grid > :first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.areamap { width: 100%; height: auto; }
.am-ring { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-dasharray: 4 6; }
.am-ring-label, .am-note { fill: var(--steel); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.am-axis { stroke: rgba(255, 255, 255, 0.06); }
.am-region { fill: rgba(255, 255, 255, 0.07); font-weight: 800; font-stretch: 66%; font-size: 40px; letter-spacing: 0.02em; }
.am-town circle { fill: var(--steel-2); }
.am-town text { fill: var(--steel-2); font-size: 13.5px; font-weight: 600; }
.am-home circle { fill: var(--signal); }
.am-home .am-pulse { fill: rgba(255, 194, 14, 0.18); transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
.am-home text { fill: var(--white); font-weight: 800; font-stretch: 70%; font-size: 20px; text-transform: uppercase; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.towns { columns: 2; column-gap: 28px; margin: 28px 0; }
.towns li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); }
.towns .label { color: var(--muted-on-dark); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-weight: 750; font-size: 1.18rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 36px; height: 36px; flex: none; border: 1.5px solid var(--ink); border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--signal); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.big-tel { display: inline-block; font-size: clamp(2.8rem, 1.6rem + 5vw, 6rem); font-weight: 800; font-stretch: 66%; line-height: 0.95; color: var(--signal); text-decoration: none; margin: 8px 0 28px; }
.big-tel:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 0 0 32px; }
.contact-list dt { color: var(--muted-on-dark); }
.contact-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-list a:hover { border-color: var(--signal); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-weight: 500; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--signal); font-weight: 750; }
.hours tr.is-today th::after { content: ' · heute'; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.form-card { background: var(--paper); color: var(--text); padding: clamp(24px, 3.5vw, 44px); position: relative; }
.form-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--signal); }
.form-card h3 { font-size: 2rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); }

/* ---------- Seitenkopf ohne Medien (Kontakt, Rechtliches) ---------- */
.page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.page-head .lead { margin-top: 20px; }
.page-head .breadcrumb { color: var(--muted-on-dark); }

/* ---------- Orts- und Leistungsseiten ---------- */
.local-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; color: var(--steel-2); }
.local-facts li { border: 1px solid var(--line-dark); padding: 8px 12px; }
.local-facts b { color: var(--signal); font-weight: 500; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; }
.prose .chip-list li { padding: 8px 14px; margin: 0; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.prose .chip-list li::before { display: none; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 10px 0; text-decoration: none; font-weight: 650; }
.link-list a:hover { color: var(--signal-deep); }
.price-table { border: 1px solid var(--line); background: var(--white); margin: 28px 0 10px; }
.price-table > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.price-table > div:first-child { border-top: 0; }
.price-table .pt-head { background: var(--ink); color: var(--white); font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; }
.price-table span:last-child { text-align: right; font-weight: 700; }
.price-table .pt-head span:last-child { font-weight: 500; }
.small { font-size: 0.88rem; }

/* ---------- Einsatzgebiet: Ringe-Liste ---------- */
.ring-list { display: grid; gap: 22px; margin: 28px 0; }
.ring-list h3 { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); font-weight: 500; margin-bottom: 10px; }
.ring-list ul { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.ring-list li { padding: 7px 12px; border: 1px solid var(--line-dark); font-size: 0.95rem; color: var(--steel-2); }
.ring-list li a { color: var(--white); font-weight: 650; text-decoration: none; }
.ring-list li:has(a) { border-color: rgba(255, 194, 14, 0.55); }
.ring-list li a::after { content: ' →'; color: var(--signal); }

/* ---------- Unterseiten-Inhalte ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); margin: 56px 0 16px; }
.prose h2.h2 { font-size: var(--fs-h2); margin: 0 0 24px; }
.prose h3 { font-size: 1.3rem; margin: 32px 0 10px; }
.prose p, .prose li { color: #33363b; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 3px; background: var(--signal-deep); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.aside-card { background: var(--ink); color: var(--white); padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card h2 { font-size: 2.2rem; margin-bottom: 14px; }
.aside-card p { color: var(--muted-on-dark); }
.aside-card img { margin: -32px -32px 24px; width: calc(100% + 64px); max-width: none; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); margin: 32px 0; }
.type-grid article { background: var(--paper); padding: 28px; }
.type-grid.four { grid-template-columns: repeat(4, 1fr); }
.type-grid .label { color: var(--muted); }
.type-grid h3 { font-size: 1.5rem; font-stretch: 74%; font-weight: 800; text-transform: uppercase; margin: 10px 0 8px; }
.type-grid p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.cta-band { background: var(--ink); color: var(--white); padding: clamp(48px, 6vw, 80px) 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; font-stretch: 80%; text-transform: uppercase; }
.legal p, .legal li { color: #33363b; }

/* ---------- Breakpoints (Sektionen) ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-card { max-width: 420px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(3)::before { left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .type-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sec-head, .svc, .b2b-grid, .area-grid, .faq-grid, .contact-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .svc.reverse .svc-media { order: 0; }
  .svc-media .inset { right: 12px; bottom: -40px; width: 46%; }
  .svc-media { margin-bottom: 40px; }
  .faq-grid .sticky, .aside-card, .area-grid > :first-child { position: static; }
  .process-sticky { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .scaffold-wrap { height: 420px; }
  .js .process.is-live .step { opacity: 1; }
  .b2b-media .tag { left: 12px; }
}
@media (max-width: 720px) {
  .hero { min-height: calc(100svh - var(--header-h) - 72px); }
  .hero::before {
    background: linear-gradient(0deg, rgba(17, 19, 22, 0.96) 0%, rgba(17, 19, 22, 0.78) 52%, rgba(17, 19, 22, 0.25) 100%);
  }
  .hero .btn-row .btn { width: 100%; }
  .contact-card { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(3) { border-left: 0; padding: 26px 0; }
  .fact::before, .fact:not(:first-child)::before { left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .b2b-list { grid-template-columns: 1fr; }
  .towns { columns: 1; }
  .type-grid, .type-grid.four { grid-template-columns: 1fr; }
  .scaffold-wrap { height: 340px; }
  .height-readout { top: 0; }
  .step { padding-left: 64px; }
  .step .n { font-size: 2.6rem; }
  .ticker-track span { font-size: 1.15rem; padding: 12px 10px; }
}

/* Karte: verlinkte Orte */
.am-link circle { fill: var(--signal); }
.am-link text { fill: var(--white); font-weight: 700; }
.am-link:hover text, .am-link:focus text { fill: var(--signal); text-decoration: underline; }

/* Filmische, langsame Kamerafahrt auf dem Titelbild (statt KI-Video) */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 70% 40%; will-change: transform; }
}
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
