/* ==========================================================================
   AB Bedachungen UG – Stylesheet
   Aufbau: 1 Fonts · 2 Tokens · 3 Basis · 4 Layout · 5 Komponenten · 6 Sektionen
           7 Rechtsseiten · 8 Utilities · 9 Motion
   ========================================================================== */

/* 1 · Fonts (lokal gehostet, keine externen Anfragen) --------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* 2 · Tokens --------------------------------------------------------------- */
:root {
  /* Farben – aus dem Logo abgeleitet */
  --ink: #0b0c0e;
  --ink-2: #121417;
  --ink-3: #1a1d21;
  --ink-4: #262a2f;
  --paper: #f2f2f0;
  --white: #ffffff;
  --steel: #c9cacd;
  --steel-2: #8d9097;

  --red: #e8141b;          /* Markenrot: Flächen, Linien */
  --red-strong: #cf1118;   /* Buttons & roter Text auf hell (Kontrast ≥ 5:1) */
  --red-on-dark: #ff5a5f;  /* roter Text auf dunkel (Kontrast ≥ 5:1) */

  --text: #16181b;
  --text-muted: #50555c;
  --text-inv: #f4f4f3;
  --text-inv-muted: #a8acb2;

  --line: #d9d9d6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-strong: rgba(255, 255, 255, 0.22);

  /* Typografie */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --fs-xl: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-2xl: clamp(2.3rem, 1.5rem + 3.2vw, 4.1rem);
  --fs-hero: clamp(2.6rem, 1.3rem + 4.6vw, 5.4rem);

  /* Abstände */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 2.75rem);
  --container: 1320px;

  /* Sonstiges */
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pitch: 42px; /* Höhe der Giebel-Schnittkante */

  /* Breakpoints (Referenz, in Media Queries ausgeschrieben):
     --bp-sm: 600px · --bp-md: 860px · --bp-lg: 1100px */
}
@media (min-width: 860px) {
  :root { --header-h: 88px; }
}

/* 3 · Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 84%;
  line-height: 1.02;
  letter-spacing: -0.01em;
  word-spacing: 0.08em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--red-on-dark);
  outline-offset: 3px;
}
.on-light :focus-visible { outline-color: var(--red-strong); }
::selection { background: var(--red); color: var(--white); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 4 · Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section[id] { scroll-margin-top: var(--header-h); }
.on-dark { background: var(--ink); color: var(--text-inv); }
.on-dark-2 { background: var(--ink-2); color: var(--text-inv); }
.on-light { background: var(--white); color: var(--text); }
.on-paper { background: var(--paper); color: var(--text); }

/* Giebel-Schnitt: Oberkante einer Sektion nimmt die Dachform auf */
.cut-gable {
  clip-path: polygon(0 var(--pitch), 50% 0, 100% var(--pitch), 100% 100%, 0 100%);
  margin-top: calc(var(--pitch) * -1);
  padding-top: calc(var(--section-y) + var(--pitch) * 0.5);
}
/* Diagonaler Schnitt in Dachneigung */
.cut-slope {
  clip-path: polygon(0 0, 100% var(--pitch), 100% 100%, 0 100%);
  margin-top: calc(var(--pitch) * -1);
  padding-top: calc(var(--section-y) + var(--pitch) * 0.5);
}

/* Sektionskopf */
.section-head { display: grid; gap: var(--space-5); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 860px) {
  .section-head--split { grid-template-columns: 5fr 1fr 5fr; align-items: end; }
  .section-head--split > :last-child { grid-column: 3; }
}
.section-head h2 { font-size: var(--fs-2xl); max-width: 16ch; }
.label + h2 { margin-top: 1rem; }
.section-head .lead { max-width: 52ch; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.label__no { color: var(--red-strong); }
.on-dark .label, .on-dark-2 .label { color: var(--text-inv-muted); }
.on-dark .label__no, .on-dark-2 .label__no { color: var(--red-on-dark); }

.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--text-muted); }
.on-dark .lead, .on-dark-2 .lead { color: var(--text-inv-muted); }

/* 5 · Komponenten ---------------------------------------------------------- */
/* Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg.i-arrow { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--red-strong); --btn-fg: var(--white); --btn-bd: var(--red-strong); }
.btn--primary:hover { --btn-bg: #b30e14; --btn-bd: #b30e14; }
.btn--ghost { --btn-bd: var(--line-dark-strong); --btn-fg: var(--text-inv); }
.btn--ghost:hover { --btn-bd: var(--white); }
.on-light .btn--ghost, .on-paper .btn--ghost, .form .btn--ghost { --btn-bd: #b9bab8; --btn-fg: var(--text); }
.on-light .btn--ghost:hover, .on-paper .btn--ghost:hover { --btn-bd: var(--ink); }
.btn--block { width: 100%; }

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Telefon-Link groß */
.phone-xl {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 720;
  font-stretch: 88%;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.phone-xl svg { width: 0.8em; height: 0.8em; color: var(--red-on-dark); }
.on-light .phone-xl svg, .on-paper .phone-xl svg { color: var(--red-strong); }
.phone-xl:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--ink);
  color: var(--text-inv);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand { display: block; flex: none; padding-block: 8px; }
.brand img { height: calc(var(--header-h) - 18px); width: auto; }

.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: block; }
  .nav ul { display: flex; gap: clamp(1rem, 2vw, 2.1rem); list-style: none; }
  .nav a {
    position: relative;
    display: block;
    padding-block: 0.5rem;
    color: var(--text-inv-muted);
    font-size: 0.96rem;
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="true"] { color: var(--white); }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
}
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-phone {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s;
}
.header-phone svg { width: 18px; height: 18px; color: var(--red-on-dark); }
.header-phone:hover { border-color: var(--white); }
@media (min-width: 600px) { .header-phone { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; width: 70%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4px; width: 100%; transform: rotate(-45deg); }
@media (min-width: 1100px) { .menu-toggle { display: none; } }

/* Mobiles Menü: Panel unter dem Header, kein Vollbild */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--ink-2);
  color: var(--text-inv);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-nav ul { list-style: none; padding-block: var(--space-3); }
.mobile-nav li + li { border-top: 1px solid var(--line-dark); }
.mobile-nav a.mobile-nav__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 86%;
  font-size: 1.35rem;
  text-decoration: none;
}
.mobile-nav a.mobile-nav__link span { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--text-inv-muted); }
.mobile-nav__actions { display: grid; gap: var(--space-3); padding-bottom: var(--space-5); }
@media (min-width: 1100px) { .mobile-nav { display: none; } }

/* Mobile Kontaktleiste */
.contact-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.contact-bar.is-visible { transform: none; }
.contact-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--line-dark-strong);
}
.contact-bar a:last-child { background: var(--red-strong); border-color: var(--red-strong); }
.contact-bar svg { width: 18px; height: 18px; }
@media (min-width: 860px) { .contact-bar { display: none; } }

/* 6 · Sektionen ------------------------------------------------------------ */
/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--ink);
  color: var(--text-inv);
  min-height: min(calc(100svh - var(--header-h)), 900px);
  display: flex;
  flex-direction: column;
}
.hero__art {
  position: absolute;
  right: -30%;
  bottom: 0;
  width: min(125vw, 760px);
  opacity: 0.2;
  pointer-events: none;
}
.hero__art svg { width: 100%; height: auto; }
@media (min-width: 600px) { .hero__art { right: -12%; opacity: 0.3; } }
@media (min-width: 1000px) {
  .hero__art { right: -2%; width: min(56vw, 880px); opacity: 1; }
}
/* Hero-Foto, bildschirmfüllend mit Abdunklung für lesbaren Text */
.hero__photo { position: absolute; inset: 0 0 auto 0; height: 64%; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 18%; }
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.2) 0%, rgba(11,12,14,0.1) 22%, rgba(11,12,14,0.72) 46%, rgba(11,12,14,0.94) 70%, var(--ink) 100%);
}
@media (max-width: 859px) {
  .hero .hero__body { padding-top: clamp(10rem, 44vw, 15rem); }
}
@media (min-width: 860px) {
  .hero__photo { inset: 0; height: auto; }
  .hero__photo img { object-position: 60% 35%; }
  .hero__photo::after {
    background:
      linear-gradient(90deg, rgba(11,12,14,0.95) 0%, rgba(11,12,14,0.84) 32%, rgba(11,12,14,0.4) 58%, rgba(11,12,14,0.12) 100%),
      linear-gradient(180deg, rgba(11,12,14,0.25) 0%, rgba(11,12,14,0) 30%, rgba(11,12,14,0) 62%, rgba(11,12,14,0.8) 100%);
  }
}
/* Optional: Motiv spiegeln (Klasse im HTML ergänzen) */
.hero__photo--flip img { transform: scaleX(-1); }
.hero__hours { white-space: nowrap; }

/* Scroll-Hinweis (Desktop) */
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  display: none;
  align-items: center;
  gap: 0.9rem;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-inv-muted);
  text-decoration: none;
}
.scroll-cue:hover { color: var(--white); }
.scroll-cue__line { position: relative; width: 1px; height: 64px; background: var(--line-dark-strong); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: var(--red); }
@media (min-width: 1100px) { .scroll-cue { display: inline-flex; } }

.hero__body { padding-top: clamp(10rem, 44vw, 15rem); }
}
@media (min-width: 860px) {
  .hero__photo { inset: 0; height: auto; }
  .hero__photo img { object-position: 62% 30%; }
  .hero__photo::after {
    background:
      linear-gradient(90deg, rgba(11,12,14,0.94) 0%, rgba(11,12,14,0.82) 34%, rgba(11,12,14,0.35) 62%, rgba(11,12,14,0.1) 100%),
      linear-gradient(180deg, rgba(11,12,14,0) 60%, rgba(11,12,14,0.75) 100%);
  }
}
/* Motiv gespiegelt, damit die Person rechts neben dem Text steht (Klasse im HTML entfernen = Original) */
.hero__photo--flip img { transform: scaleX(-1); }
.hero__hours { white-space: nowrap; }

.hero__body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.hero__content { max-width: 820px; }
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-xs);
  font-stretch: 100%;
  letter-spacing: 0.12em;
  word-spacing: 0;
  text-transform: uppercase;
  color: var(--text-inv-muted);
  line-height: 1.4;
}
.hero__kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.hero h1 { font-size: var(--fs-hero); font-stretch: 80%; font-weight: 780; line-height: 0.94; letter-spacing: -0.015em; }
.hero h1 .line { display: block; }
.hero h1 .dot { color: var(--red); }
.hero__sub {
  margin-top: var(--space-6);
  max-width: 50ch;
  font-size: var(--fs-md);
  color: var(--text-inv-muted);
}
.hero__sub strong { color: var(--text-inv); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 599px) { .hero__ctas .btn { flex: 1 1 100%; } }

.hero__foot { position: relative; border-top: 1px solid var(--line-dark-strong); background: rgba(11, 12, 14, 0.82); }
.hero__foot .container {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-5);
}
@media (min-width: 860px) {
  .hero__foot .container { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-7); }
}
.hero__call { display: flex; flex-direction: column; gap: 0.1rem; }
.hero__call small, .meta-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inv-muted);
}
.hero__hours { color: var(--text-inv-muted); font-size: var(--fs-sm); }
.hero__region {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-inv-muted);
}

/* Trust-Leiste */
.trust { background: var(--white); color: var(--text); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.trust li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  align-content: start;
  padding: 1.4rem 0.75rem 1.4rem 0;
}
.trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
.trust li:nth-child(even) { padding-left: 0.9rem; border-left: 1px solid var(--line); }
.trust .icon { grid-row: span 2; color: var(--red-strong); margin-top: 2px; }
.trust strong { font-weight: 600; line-height: 1.3; }
.trust span { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; }
@media (max-width: 420px) {
  .trust .icon { display: none; }
  .trust li { grid-template-columns: 1fr; }
}
@media (min-width: 860px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li { padding: 1.8rem 1.5rem; border-top: 0 !important; border-left: 1px solid var(--line); }
  .trust li:first-child { border-left: 0; padding-left: 0; }
}

/* Leistungen */
.services {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.svc {
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.svc__top { display: flex; align-items: center; justify-content: space-between; }
.svc__no { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--red-strong); }
.svc__icon { width: 44px; height: 44px; color: var(--ink); transition: transform 0.35s var(--ease); }
.svc h3 { font-size: var(--fs-lg); margin-top: var(--space-2); }
.svc p { color: var(--text-muted); }
.svc__gain {
  display: flex;
  gap: 0.6rem;
  padding-top: var(--space-3);
  margin-top: auto;
  font-size: var(--fs-sm);
  color: var(--text) !important;
}
.svc__gain::before {
  content: "";
  flex: none;
  width: 14px; height: 2px;
  margin-top: 0.7em;
  background: var(--red);
}
.svc::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.svc:hover::before { transform: scaleX(1); }
.svc:hover .svc__icon { transform: translateY(-3px); }

/* Feature-Leistung (dunkel, mit Ziegelraster) */
.svc--feature {
  background: var(--ink-2);
  color: var(--text-inv);
  padding: 2rem var(--gutter) 2.25rem;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
  border-bottom: 0;
}
.svc--feature .svc__icon { color: var(--white); }
.svc--feature .svc__no { color: var(--red-on-dark); }
.svc--feature p { color: var(--text-inv-muted); }
.svc--feature .svc__gain { color: var(--text-inv) !important; }
.svc--feature h3 { font-size: var(--fs-xl); max-width: 12ch; }
.svc--feature .svc__art {
  position: absolute;
  right: -40px; bottom: -20px;
  width: 300px;
  opacity: 0.55;
  pointer-events: none;
}
.svc--feature > *:not(.svc__art) { position: relative; }
@media (max-width: 699px) { .svc--feature .svc__art { display: none; } }
.svc__list { list-style: none; display: grid; gap: 0.35rem; margin-top: var(--space-2); }
.svc__list li { display: flex; gap: 0.6rem; color: var(--text-inv); font-size: var(--fs-sm); }
.svc__list li::before { content: "—"; color: var(--red-on-dark); }

@media (min-width: 700px) {
  .services { grid-template-columns: 1fr 1fr; border-top: 0; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .svc { background: var(--white); padding: 2rem; border-bottom: 0; }
  .svc--feature { grid-column: 1 / -1; margin-inline: 0; padding: 2.5rem; background: var(--ink-2); }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; }
  .svc--feature { grid-column: 1; grid-row: 1 / span 2; padding: 3rem; min-height: 100%; }
  .svc--feature .svc__art { width: 420px; right: -60px; bottom: -40px; }
}

/* Weitere Arbeiten */
.services-more {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .services-more { grid-template-columns: 220px 1fr; align-items: baseline; border-top: 0; padding-top: 0; }
}
.services-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.services-more li {
  padding: 0.45rem 0.8rem;
  border: 1px solid #c4c5c2;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--white);
}

/* CTA-Band */
.cta-band { background: var(--ink-2); color: var(--text-inv); position: relative; overflow: hidden; }
.cta-band__grid { display: grid; gap: var(--space-6); }
.cta-band h2 { font-size: var(--fs-2xl); max-width: 15ch; }
.cta-band__text { color: var(--text-inv-muted); max-width: 48ch; margin-top: var(--space-4); font-size: var(--fs-md); }
.cta-band__actions { display: grid; gap: var(--space-5); align-content: center; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-band__urgent {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--red);
  font-size: var(--fs-sm);
  color: var(--text-inv-muted);
}
.cta-band__urgent strong { display: block; color: var(--text-inv); font-size: 1rem; }
.cta-band__urgent a { color: var(--white); font-weight: 600; white-space: nowrap; }
@media (min-width: 960px) {
  .cta-band__grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: var(--space-8); }
}
.cta-band__lines { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }

/* Über uns */
.about__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1.15fr 1fr; } }
.about h2 { font-size: var(--fs-2xl); max-width: 14ch; margin-top: var(--space-4); }
.about__text { display: grid; gap: var(--space-4); margin-top: var(--space-6); max-width: 60ch; color: var(--text-muted); font-size: var(--fs-md); }
.about__text strong { color: var(--text); font-weight: 600; }

.person {
  position: relative;
  align-self: start;
  background: var(--ink);
  color: var(--text-inv);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  overflow: hidden;
}
.person__mark { width: 100%; max-width: 360px; margin: -0.5rem 0 1.5rem auto; opacity: 0.9; }
.person__photo { margin: calc(clamp(1.75rem, 1.2rem + 2vw, 2.75rem) * -1) calc(clamp(1.75rem, 1.2rem + 2vw, 2.75rem) * -1) 1.75rem; }
.person__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.person__role { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-inv-muted); }
.person .person__name { font-family: var(--font-display); font-weight: 760; font-stretch: 84%; word-spacing: 0.08em; line-height: 1.05; color: var(--white); font-size: var(--fs-xl); margin: 0.35rem 0 0.75rem; }
.person p { color: var(--text-inv-muted); }
.person .phone-xl { margin-top: var(--space-5); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }

.rules { list-style: none; display: grid; margin-top: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); counter-reset: rule; }
@media (min-width: 700px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rules li { padding: 1.75rem 0; border-bottom: 1px solid var(--line); counter-increment: rule; }
@media (min-width: 700px) {
  .rules li { padding: 1.75rem 1.5rem 1.75rem 0; }
  .rules li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .rules li { border-bottom: 0; }
  .rules li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
.rules li::before {
  content: "Regel " counter(rule, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-strong);
  margin-bottom: 0.9rem;
}
.rules h3 { font-size: var(--fs-lg); margin-bottom: 0.6rem; }
.rules p { color: var(--text-muted); font-size: 0.98rem; }

/* Referenzen */
.refs .section-head h2 { max-width: 18ch; }
.projects { list-style: none; display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { background: var(--ink-2); border: 1px solid var(--line-dark); }
.project figure { margin: 0; overflow: hidden; clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 100%, 0 100%); }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.project:hover img { transform: scale(1.04); }
.project__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 0.5rem; }
.project__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.project h3 { font-size: var(--fs-lg); }
.project p { color: var(--text-inv-muted); font-size: 0.98rem; }
.refs:has(.project) .refs-empty { display: none; }
.refs:not(:has(.project)) .projects { display: none; }

.refs-empty {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
@media (min-width: 960px) { .refs-empty { grid-template-columns: 1fr 1fr; align-items: center; } }
.refs-empty h3 { font-size: var(--fs-xl); max-width: 16ch; }
.refs-empty p { color: var(--text-inv-muted); margin-top: var(--space-4); max-width: 46ch; }
.refs-empty__slots { width: 100%; height: auto; max-width: 540px; justify-self: end; }
@media (max-width: 599px) { .refs-empty__slots { display: none; } }
.refs-empty__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Ablauf */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 0 2.25rem 3.25rem; }
.step::before {
  content: "";
  position: absolute;
  left: 0.6rem; top: 0.4rem; bottom: 0;
  width: 1px;
  background: #c4c5c2;
}
.step:last-child::before { display: none; }
.step::after {
  content: "";
  position: absolute;
  left: calc(0.6rem - 5px); top: 0.35rem;
  width: 11px; height: 11px;
  background: var(--paper);
  border: 2px solid var(--red);
  transform: rotate(45deg);
}
.step__no { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--red-strong); }
.step h3 { font-size: var(--fs-lg); margin: 0.35rem 0 0.6rem; }
.step p { color: var(--text-muted); max-width: 40ch; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
  .step { padding: 2.5rem 0 0; }
  .step::before { left: 0; right: calc(var(--space-6) * -1); top: 5px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: block; right: 0; }
  .step::after { left: 0; top: 0; }
}

/* Karriere */
.career__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
@media (min-width: 960px) {
  .career__intro { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: var(--space-8); align-items: end; }
  .career__intro > .label { grid-column: 1 / -1; }
  .career__intro h2, .career__intro .lead { grid-column: 1; }
  .career__contact { grid-column: 2; grid-row: 2 / span 2; align-self: end; margin-top: 0; }
}
.career h2 { font-size: var(--fs-2xl); margin-top: var(--space-4); }
.career__intro .lead { margin-top: var(--space-5); }
.career__contact { display: grid; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line-dark); }
.career__contact .btn { justify-self: start; }

.jobs { display: grid; gap: var(--space-3); }
.job { border: 1px solid var(--line-dark); background: var(--ink); }
.job[hidden] { display: none; }
.job__head { margin: 0; }
.job__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: 1.35rem 1.25rem;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--text-inv);
}
@media (min-width: 600px) { .job__toggle { padding: 1.6rem 1.75rem; } }
.job__title { display: block; font-family: var(--font-display); font-weight: 740; font-stretch: 86%; font-size: var(--fs-lg); line-height: 1.1; }
.job__meta { display: block; margin-top: 0.45rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-inv-muted); font-weight: 500; }
.job__plus {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  flex: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.job__plus::before, .job__plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.job__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.job__toggle[aria-expanded="true"] .job__plus { background: var(--red-strong); border-color: var(--red-strong); }
.job__toggle[aria-expanded="true"] .job__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.job__toggle:hover .job__plus { border-color: var(--white); }
.job__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.job__panel > div { overflow: hidden; }
.job.is-open .job__panel { grid-template-rows: 1fr; }
.no-js .job__panel { grid-template-rows: 1fr; }
.job__content { padding: 0 1.25rem 1.75rem; display: grid; gap: var(--space-6); }
@media (min-width: 600px) { .job__content { padding: 0 1.75rem 2rem; } }
.job__content > p { color: var(--text-inv-muted); padding-top: var(--space-5); border-top: 1px solid var(--line-dark); }
.job__cols { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .job__cols { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.job__cols h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-on-dark);
  margin-bottom: 0.9rem;
}
.job__cols ul { list-style: none; display: grid; gap: 0.6rem; }
.job__cols li { position: relative; padding-left: 1.1rem; font-size: 0.97rem; line-height: 1.5; color: var(--text-inv); }
.job__cols li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 2px; background: var(--steel-2); }
.job__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* FAQ */
.faq__grid { display: grid; gap: var(--space-7); }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-8); } .faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faq h2 { font-size: var(--fs-2xl); margin-top: var(--space-4); }
.faq__intro .lead { margin-top: var(--space-5); }
.faq__intro .phone-xl { margin-top: var(--space-5); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 720;
  font-stretch: 88%;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 12px;
  margin-right: 6px;
  border-right: 2px solid var(--red-strong);
  border-bottom: 2px solid var(--red-strong);
  transform: rotate(45deg) translateY(-4px);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item summary:hover { color: var(--red-strong); }
.faq-item__a { padding: 0 2.5rem 1.6rem 0; color: var(--text-muted); display: grid; gap: 0.75rem; }
.faq-item__a ul { padding-left: 1.2rem; display: grid; gap: 0.3rem; }

/* Kontakt */
.contact__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 1100px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact h2 { font-size: var(--fs-2xl); margin-top: var(--space-4); max-width: 13ch; }
.contact__intro { margin-top: var(--space-5); }
.contact__phone { margin-top: var(--space-6); }
.contact__phone .phone-xl { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.info-list { display: grid; margin-top: var(--space-6); border-top: 1px solid var(--line-dark); }
.info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 520px) { .info-row { grid-template-columns: 150px 1fr; gap: var(--space-5); } }
.info-row dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-inv-muted); padding-top: 0.2rem; }
.info-row dd { margin: 0; }
.info-row address { font-style: normal; }
.info-row small { display: block; color: var(--text-inv-muted); font-size: var(--fs-sm); margin-top: 0.2rem; }
.info-row a { color: var(--white); }
.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 400; padding: 0.1rem 1.25rem 0.1rem 0; color: var(--text-inv-muted); }
.hours td { padding: 0.1rem 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--white); font-weight: 600; }

/* Formular */
.form {
  background: var(--paper);
  color: var(--text);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  position: relative;
}
.form::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 80px; height: 3px;
  background: var(--red);
}
.form h3 { font-size: var(--fs-xl); }
.form__intro { color: var(--text-muted); margin-top: 0.5rem; }
.form__grid { display: grid; gap: 1.1rem; margin-top: var(--space-6); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .req { color: var(--red-strong); }
.field .opt { color: var(--text-muted); font-weight: 400; font-size: var(--fs-sm); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid #b7b9b6;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316181b' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(207, 17, 24, 0.25); }
.field [aria-invalid="true"] { border-color: var(--red-strong); }
.field__error { color: var(--red-strong); font-size: var(--fs-sm); font-weight: 600; }
.field__error:empty { display: none; }
.field__hint { color: var(--text-muted); font-size: var(--fs-sm); }
.field--file[hidden] { display: none; }
.field--file input[type="file"] { padding: 0.65rem; min-height: auto; background: var(--white); }
.field--file input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
}
.field .check { font-weight: 400; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; color: var(--text-muted); }
.check input { width: 22px; height: 22px; margin: 0.1rem 0 0; accent-color: var(--red-strong); }
.check a { color: var(--text); font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
@media (min-width: 640px) { .form__submit { grid-template-columns: auto 1fr; align-items: center; } }
.form__note { font-size: var(--fs-sm); color: var(--text-muted); }
.form-status { margin-top: var(--space-5); padding: 1rem 1.1rem; border-left: 3px solid; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status--ok { border-color: #1f7a3d; background: #e6f2ea; color: #135a2b; }
.form-status--error { border-color: var(--red-strong); background: #fbe9ea; color: #8a0c11; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* Footer */
.site-footer { background: #070809; color: var(--text-inv-muted); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.footer__grid { display: grid; gap: var(--space-7); padding-bottom: var(--space-7); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 0.8fr; } }
.footer__brand img { width: 180px; height: auto; }
.footer__brand p { margin-top: var(--space-5); max-width: 34ch; font-size: var(--fs-sm); }
.site-footer h2 { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-inv); margin-bottom: var(--space-4); font-stretch: 100%; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--text-inv); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.footer__block + .footer__block { margin-top: var(--space-5); }
.footer__closed { margin-top: 0.5rem; }
.footer__block small { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5) calc(var(--space-5) + 70px);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
}
@media (min-width: 860px) { .footer__bottom { padding-bottom: var(--space-5); } }
.site-footer .footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; }
.social-link { display: inline-flex; align-items: center; gap: 0.6rem; }
.social-link svg { width: 20px; height: 20px; }

/* 7 · Rechtsseiten --------------------------------------------------------- */
.legal-page { background: var(--white); }
.legal-header { background: var(--ink); color: var(--text-inv); }
.legal-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 80px; }
.legal-header img { height: 62px; width: auto; }
.legal-header a.back { font-size: var(--fs-sm); color: var(--text-inv); }
.legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); color: var(--text); }
.legal .container { max-width: 860px; }
.legal h1 { font-size: var(--fs-2xl); margin: var(--space-4) 0 var(--space-6); }
.legal h2 { font-size: var(--fs-lg); margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal ul { margin-bottom: 1rem; color: #33373c; }
.legal ul { padding-left: 1.25rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal nav.toc { padding: 1.25rem 1.5rem; background: var(--paper); margin-bottom: 2rem; }
.legal nav.toc ol { padding-left: 1.2rem; display: grid; gap: 0.25rem; }
.todo {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background: #fff3cd;
  border: 1px dashed #b98900;
  color: #6b4f00;
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.todo-box {
  padding: 1.25rem 1.5rem;
  background: #fff8e1;
  border-left: 4px solid #b98900;
  margin-bottom: 2rem;
  color: #5a4300;
}
.todo-box p { color: inherit; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; background: var(--ink); color: var(--text-inv); text-align: center; padding: var(--gutter); }
.notfound h1 { font-size: var(--fs-2xl); margin: 1.5rem 0 1rem; }
.notfound p { color: var(--text-inv-muted); margin-bottom: 2rem; }
.notfound img { margin-inline: auto; width: 200px; }

/* 9 · Motion ---------------------------------------------------------------
   Alle Effekte nur mit JS aktiv (.js) und nur ohne "Bewegung reduzieren".
   Ohne JS oder mit reduzierter Bewegung ist jeder Inhalt sofort sichtbar. */
:root { interpolate-size: allow-keywords; }

.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Allgemeines Einblenden */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: 0.08s; }
  .js .reveal-d2 { transition-delay: 0.16s; }
  .js .reveal-d3 { transition-delay: 0.24s; }

  /* Überschriften: Masken-Reveal von unten */
  .js h2.reveal { opacity: 1; transform: translateY(0.35em); clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease); }
  .js h2.reveal.is-visible { transform: none; clip-path: inset(-0.2em -0.2em -0.35em -0.2em); }

  /* Rote Label-Linie zeichnet sich */
  .js .label::before { transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease) 0.1s; }
  .js .label.is-visible::before { transform: none; }

  /* Hero: Foto zoomt sanft ein, Inhalte folgen gestaffelt */
  /* Foto: sanfter Einstieg, danach dauerhaftes langsames Rein- und Rauszoomen mit leichter Drift */
  .hero__photo img {
    will-change: scale, transform-origin;
    animation: hero-in 2.4s var(--ease) both, hero-breathe 22s ease-in-out 2.4s infinite alternate;
  }
  @keyframes hero-in { from { scale: 1.12; opacity: 0.6; } to { scale: 1.02; opacity: 1; } }
  @keyframes hero-breathe {
    0%   { scale: 1.02; transform-origin: 62% 40%; }
    50%  { scale: 1.09; transform-origin: 70% 32%; }
    100% { scale: 1.04; transform-origin: 56% 46%; }
  }
  .scroll-cue__line::after { animation: cue 2.4s var(--ease) infinite; }
  @keyframes cue { 0% { transform: translateY(-24px); } 60%, 100% { transform: translateY(68px); } }
  .hero__kicker::before { animation: grow-x 0.9s var(--ease) 0.3s both; transform-origin: left; }
  @keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
  .hero .line { animation: mask-up 0.9s var(--ease) both; }
  .hero .line + .line { animation-delay: 0.12s; }
  @keyframes mask-up { from { clip-path: inset(0 0 100% 0); transform: translateY(0.3em); } to { clip-path: inset(-0.2em -0.2em -0.3em -0.2em); transform: none; } }
  .hero__sub, .hero__ctas { animation: fade-up 0.9s var(--ease) both; }
  .hero__sub { animation-delay: 0.3s; }
  .hero__ctas { animation-delay: 0.42s; }
  .hero__foot .container > * { animation: fade-up 0.8s var(--ease) both; }
  .hero__foot .container > :nth-child(2) { animation-delay: 0.1s; }
  .hero__foot .container > :nth-child(3) { animation-delay: 0.2s; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* Trust-Leiste: Punkte nacheinander */
  .js [data-stagger] > * { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js [data-stagger].is-visible > * { opacity: 1; transform: none; }
  .js [data-stagger].is-visible > :nth-child(2) { transition-delay: 0.1s; }
  .js [data-stagger].is-visible > :nth-child(3) { transition-delay: 0.2s; }
  .js [data-stagger].is-visible > :nth-child(4) { transition-delay: 0.3s; }
  .js [data-stagger].is-visible > :nth-child(5) { transition-delay: 0.4s; }
  .js [data-stagger].is-visible > :nth-child(6) { transition-delay: 0.5s; }
  .js [data-stagger].is-visible > :nth-child(7) { transition-delay: 0.6s; }

  /* Leistungs-Piktogramme zeichnen sich beim Erscheinen */
  .js .svc .svc__icon { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.6s var(--ease) 0.25s, transform 0.35s var(--ease); }
  .js .svc.is-visible .svc__icon { stroke-dashoffset: 0; }
  .js .svc--feature .svc__art path:last-child { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2s var(--ease) 0.3s; }
  .js .svc--feature.is-visible .svc__art path:last-child { stroke-dashoffset: 0; }
  .svc { transition: background-color 0.3s var(--ease); }
  .svc:not(.svc--feature):hover { background: #fcfcfb; }
  .svc__list li { transition: transform 0.3s var(--ease); }
  .svc__list li:hover { transform: translateX(4px); }
  .services-more li { transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease); }
  .services-more li:hover { border-color: var(--red-strong); transform: translateY(-2px); }

  /* Über uns: Karte gleitet ein, Regeln bekommen rote Akzentlinie */
  .js .person .person__mark { opacity: 0; transform: translateX(28px); transition: opacity 1s var(--ease) 0.25s, transform 1s var(--ease) 0.25s; }
  .js .person.is-visible .person__mark { opacity: 0.9; transform: none; }
  .rules li { position: relative; }
  .rules li::after {
    content: ""; position: absolute; left: 0; top: -1px;
    width: 48px; height: 2px; background: var(--red);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.8s var(--ease) 0.3s;
  }
  .rules li:nth-child(even)::after { left: 1.5rem; }
  @media (min-width: 1100px) { .rules li + li::after { left: 1.5rem; } }
  .rules li.is-visible::after { transform: scaleX(1); }
  .no-js .rules li::after { transform: scaleX(1); }

  /* Referenzen: Platzhalter-Giebel zeichnen sich */
  .js .refs-empty__slots path { stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s var(--ease); }
  .js .refs-empty__slots g path { stroke-dasharray: 4 5; }
  .js .refs-empty__slots > path { stroke-dasharray: 600; }
  .js .refs-empty.is-visible .refs-empty__slots path { stroke-dashoffset: 0; }

  /* Ablauf: Linie läuft von Schritt zu Schritt, Rauten füllen sich */
  .steps .step { --d: 0s; }
  .steps .step:nth-child(2) { --d: 0.45s; }
  .steps .step:nth-child(3) { --d: 0.9s; }
  .steps .step:nth-child(4) { --d: 1.35s; }
  .js .steps .step::before { transform: scaleY(0); transform-origin: top; transition: transform 0.6s var(--ease) calc(var(--d) + 0.15s); }
  .js .steps .step::after { transform: rotate(45deg) scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d), background-color 0.4s var(--ease) calc(var(--d) + 0.35s); }
  .js .steps .step > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease) calc(var(--d) + 0.12s), transform 0.6s var(--ease) calc(var(--d) + 0.12s); }
  .js .steps.is-visible .step::before { transform: none; }
  .js .steps.is-visible .step::after { transform: rotate(45deg) scale(1); background-color: var(--red); }
  .js .steps.is-visible .step > * { opacity: 1; transform: none; }
  @media (min-width: 860px) {
    .js .steps .step::before { transform: scaleX(0); transform-origin: left; }
    .js .steps.is-visible .step::before { transform: none; }
  }
  .step h3 { transition: color 0.25s; }
  .step:hover h3 { color: var(--red-strong); }

  /* Kontakt: Zeilen nacheinander */
  .info-row a { transition: color 0.2s; }
  .info-row a:hover { color: var(--red-on-dark); }

  /* Buttons: Füllung läuft von links ein, Pfeil schiebt nach, leichter Druck-Effekt */
  .btn { position: relative; isolation: isolate; overflow: hidden; transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease), background-color 0.35s var(--ease); }
  .btn::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background: var(--btn-fill, rgba(0, 0, 0, 0.18));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
  }
  .btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
  .btn:active { transform: translateY(1px) scale(0.99); }
  .btn--primary { --btn-fill: #9e0c11; }
  .btn--primary:hover { --btn-bg: var(--red-strong); --btn-bd: #9e0c11; }
  .btn--ghost { --btn-fill: var(--white); }
  .btn--ghost:hover, .btn--ghost:focus-visible { --btn-fg: var(--ink); --btn-bd: var(--white); }
  .on-light .btn--ghost, .on-paper .btn--ghost, .form .btn--ghost { --btn-fill: var(--ink); }
  .on-light .btn--ghost:hover, .on-paper .btn--ghost:hover, .form .btn--ghost:hover { --btn-fg: var(--white); --btn-bd: var(--ink); }
  .btn svg { transition: transform 0.35s var(--ease); }
  .btn:hover svg:not(.i-arrow) { transform: scale(1.12); }

  /* Header-Telefon & Kontaktleiste mit gleicher Füllung */
  .header-phone { position: relative; isolation: isolate; overflow: hidden; transition: color 0.35s var(--ease), border-color 0.35s var(--ease); }
  .header-phone::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red-strong); transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--ease); }
  .header-phone:hover { border-color: var(--red-strong); }
  .header-phone:hover::before { transform: scaleY(1); }
  .header-phone:hover svg { color: var(--white); }

  /* Textlinks: Unterstreichung läuft neu ein */
  .link-arrow, .info-row a, .footer__legal a, .faq__intro a:not(.phone-xl) { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; }
  .info-row a, .footer__legal a { text-decoration: none; background-size: 0 1px; transition: background-size 0.4s var(--ease), color 0.2s; }
  .info-row a:hover, .footer__legal a:hover { background-size: 100% 1px; }
  .site-footer a:hover { text-decoration: none; }

  /* Lichtkegel folgt der Maus auf dunklen Flächen (nur mit Maus) */
  @media (hover: hover) and (pointer: fine) {
    [data-spotlight] { position: relative; }
    [data-spotlight]::after {
      content: "";
      position: absolute; inset: 0;
      pointer-events: none;
      background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.06), transparent 60%);
      opacity: 0;
      transition: opacity 0.4s var(--ease);
    }
    [data-spotlight]:hover::after { opacity: 1; }
  }

  /* Formular: rote Linie wächst beim Fokussieren unter dem Feld */
  .field { position: relative; }
  .field input:not([type="checkbox"]):not([type="file"]), .field textarea {
    background-image: linear-gradient(var(--red-strong), var(--red-strong));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: border-color 0.2s, box-shadow 0.2s, background-size 0.45s var(--ease);
  }
  .field input:not([type="checkbox"]):not([type="file"]):focus, .field textarea:focus { background-size: 100% 2px; }
  .field:focus-within > label { color: var(--red-strong); transition: color 0.2s; }

  /* Karriere-Akkordeon: Kopf reagiert */
  .job { transition: border-color 0.3s var(--ease); }
  .job:hover { border-color: var(--line-dark-strong); }
  .job__title { transition: transform 0.35s var(--ease); }
  .job__toggle:hover .job__title { transform: translateX(4px); }

  /* FAQ-Frage verschiebt sich leicht */
  .faq-item summary { transition: color 0.2s, padding-left 0.35s var(--ease); }
  .faq-item summary:hover { padding-left: 0.4rem; }

  /* Header-Telefon: Icon wackelt kurz beim Hover */
  .header-phone:hover svg, .phone-xl:hover svg { animation: ring 0.6s var(--ease); }
  @keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }

  /* FAQ: weiches Auf- und Zuklappen (moderne Browser) */
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
  .faq-item__a { transition: opacity 0.4s var(--ease); }
  .faq-item:not([open]) .faq-item__a { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .scroll-progress { display: none; }
}

/* 8 · Utilities ------------------------------------------------------------ */
.nw { white-space: nowrap; }
