/* =========================================================================
   Steinwerk — Website-Stylesheet nach DESIGN.md
   Gilt für index.html, impressum.html und datenschutz.html.
   admin.html und konfigurator.html nutzen weiterhin css/styles.css.

   Werte (Farben, Schriftgrade, Abstände, Radien) stammen aus DESIGN.md.
   Abweichungen sind dort kommentiert, wo sie stehen.
   ========================================================================= */

/* ---------- Schriften (lokal, SIL Open Font License, Lizenz in assets/fonts/OFL-*.txt) ---------- */
/* Barlow Semi Condensed für Überschriften, Marke und Zahlen; Barlow für Text und Bedienung.
   Nur die verwendeten Schnitte. Inter und EB Garamond liegen noch in assets/fonts/,
   werden aber nicht mehr geladen. */
@font-face { font-family: "Barlow Semi Condensed"; src: url("../assets/fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Marken-Token (eine Quelle für Farbe, Schrift, Grade, Radien, Abstände) */
  --color-canvas:         #faf9f5;
  --color-surface:        #efe9de;
  --color-surface-alt:    #e1dfd8;
  --color-text:           #141413;
  --color-text-muted:     #65635d; /* #6c6a64 erreichte auf der Kartenfläche nur 4,48:1 */
  --color-divider:        #c6c4bd;
  --color-control-border: #6b6963;
  --color-accent:         #a9583e;
  --color-accent-hover:   #8f4630;
  --color-on-accent:      #ffffff;
  --color-accent-text:    #8f4630; /* Akzenttext auf hellen Flächen, mind. 4,5:1 */
  --color-focus-ring:     #a9583e;
  /* Auswahlpfeil für select, Strichfarbe = --color-text */
  --pfeil-auswahl: 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 1.5l5 5 5-5' fill='none' stroke='%23141413' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --font-primary:   "Barlow Semi Condensed", sans-serif;
  --font-secondary: "Barlow", sans-serif;
  --text-display: clamp(2.125rem, 1rem + 4vw, 4.25rem);
  --text-h1:      clamp(2.125rem, 1rem + 4vw, 4.25rem);
  --text-h2:      clamp(2rem, 1.35rem + 2vw, 3rem);
  --text-h3:      clamp(1.375rem, 1.2rem + .6vw, 1.625rem);
  --text-body:    1.0625rem;
  --text-small:   .9375rem;
  --text-label:   .9375rem;
  --radius-1: 8px; --radius-2: 12px; --radius-3: 16px; --radius-pill: 999px;
  --space-section: clamp(64px, 4rem + 2.5vw, 96px);
  --space-gutter:  clamp(20px, 4vw, 48px);
  --space-stack:   24px;

  /* Farben (DESIGN.md › colors) */
  --primary:          #cc785c;
  --primary-active:   var(--color-accent);
  --primary-tief:     var(--color-accent-hover); /* Hover für Knöpfe und Akzenttext */
  --ink:              var(--color-text);
  --body:             #3d3d3a;
  --body-strong:      #252523;
  --muted:            var(--color-text-muted);
  --muted-soft:       #8e8b82;
  --hairline:         #e6dfd8;
  --canvas:           var(--color-canvas);
  --surface-soft:     #f5f0e8;
  --surface-card:     var(--color-surface);
  --surface-strong:   #e8e0d2;
  --dark:             #181715;
  --dark-elevated:    #252320;
  --dark-soft:        #1f1e1b;
  --on-dark:          #faf9f5;
  --on-dark-soft:     #a09d96;
  --success:          #5db872;
  --error:            #c64545;
  --error-text:       #a63636; /* Fehlertext: #c64545 erreicht auf Kartenfläche nur 4:1 */

  /* Schrift: --titel für Überschriften, Marke und Zahlen, --text für alles andere.
     Zurück zur Serifenvariante: hier die Familien tauschen und @font-face oben anpassen. */
  --titel: var(--font-primary);
  --text:  var(--font-secondary);

  /* Schriftgrade (DESIGN.md › typography), auf dem Handy nach Tabelle verkleinert */
  --display-xl: var(--text-h1);                             /* 68px, Handy 34px */
  --display-lg: var(--text-h2);                             /* 48px */
  --display-md: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem);   /* 36px */
  --display-sm: clamp(1.5rem, 1.3rem + .6vw, 1.75rem);     /* 28px */
  --title-lg: 1.375rem;  /* 22px */
  --title-md: 1.125rem;  /* 18px */
  --body-md: var(--text-body); /* 17px: Barlow läuft kleiner als Inter */
  --body-sm: var(--text-small); /* 15px */

  /* Abstände (DESIGN.md › spacing, Basis 4px) */
  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px;
  --s-lg: var(--space-stack); --s-xl: 32px; --s-xxl: 48px; --s-section: var(--space-section);

  /* Radien (DESIGN.md › rounded) */
  --r-xs: 4px; --r-sm: 6px; --r-md: var(--radius-1); --r-lg: var(--radius-2); --r-xl: var(--radius-3);

  --rand: var(--space-gutter);   /* gleicher Seitenrand links und rechts */
  --breite: 1200px;                 /* DESIGN.md: max. Inhaltsbreite */
  --kopf: 64px;                     /* DESIGN.md: top-nav height */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--text);
  font-size: var(--body-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none; /* nur geladene Schnitte, keine künstlichen Fettungen */
}

h1, h2, h3 {
  font-family: var(--titel);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); line-height: 1.06; letter-spacing: -0.015em; }
h3 { font-size: var(--text-h3); line-height: 1.1;  letter-spacing: -0.01em; }
p  { margin: 0; text-wrap: pretty; }
a[href^="tel:"] { white-space: nowrap; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--color-accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 600; color: var(--body-strong); }

:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--surface-strong); color: var(--ink); }

.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;
}

.wrap {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

.skip-link {
  position: absolute; left: var(--rand); top: 8px; z-index: 100;
  transform: translateY(-200%);
  background: var(--ink); color: var(--on-dark);
  padding: 10px 16px; border-radius: var(--r-md); text-decoration: none;
}
.skip-link:focus { transform: none; }

/* Demo-Hinweis: bleibt bewusst sichtbar, bis ein echter Kunde live geht */
.demo-banner {
  background: var(--dark);
  color: var(--on-dark-soft);
  font-size: .9375rem;
  line-height: 1.45;
  padding: 10px var(--rand);
  text-align: center;
}
.demo-banner strong { color: var(--on-dark); }

/* ---------- Knöpfe (DESIGN.md › button-*) ---------- */
/* Abweichung: Ruhezustand in primary-active statt primary. Weiße 14–16px-Schrift
   auf #cc785c erreicht nur 3:1 Kontrast, auf #a9583e 4,9:1 (WCAG AA). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--text);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 16px 24px; font-size: 1rem; }
.btn--primary { background: var(--primary-active); color: #fff; }
.btn--primary:hover { background: var(--primary-tief); color: #fff; }
/* Stiller Geschwisterknopf: gleiche Form, Kartenfläche */
.btn--ghost, .btn--still { background: var(--surface-card); color: var(--ink); }
.btn--ghost:hover, .btn--still:hover { background: var(--surface-strong); color: var(--ink); }
.section--dunkel .btn--still { background: var(--dark-elevated); color: var(--on-dark); }
.section--dunkel .btn--still:hover { background: #33302b; }
/* Auf der Akzentfläche: Canvas-Knopf (DESIGN.md › callout-card-coral) */
.btn--hell { background: var(--canvas); color: var(--ink); }
.btn--hell:hover { background: var(--surface-card); color: var(--ink); }
.btn--full, .btn--voll { width: 100%; }
.btn[disabled] { background: var(--hairline); color: var(--muted); cursor: not-allowed; }

/* ---------- Kopfzeile (DESIGN.md › top-nav) ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background-color .2s var(--ease);
}
.header.is-stuck { background: var(--canvas); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg);
  height: var(--kopf);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 26px; height: 26px; fill: var(--ink); }
.brand__mark .brand__fuge { fill: var(--primary); }
.brand__text { font-family: var(--titel); font-weight: 600; font-size: 1.375rem; line-height: 1; letter-spacing: -0.015em; }

.nav { display: flex; align-items: center; gap: var(--s-lg); }
.nav a:not(.btn) {
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline 1.5px transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s var(--ease);
}
.nav a:not(.btn):hover { text-decoration-color: currentColor; }
.nav a:not(.btn), .footer__nav a { min-width: 44px; }
/* Links mitten im Satz: größere Trefferfläche ohne Zeilensprung */
.section__intro a, .check a { padding-block: 13px; }
.nav__cta { margin-left: var(--s-xs); transition: opacity .2s var(--ease), visibility .2s, background-color .18s var(--ease); }
/* Solange der Hero-Knopf zu sehen ist, steht dieselbe Aktion nicht doppelt im Kopf */
.hero-sichtbar .nav__cta { opacity: 0; visibility: hidden; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-md);
  background: var(--canvas);
  cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  /* DESIGN.md: Menü öffnet als ganzflächiges Creme-Blatt */
  .nav {
    position: fixed; inset: var(--kopf) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-lg) var(--rand) var(--s-xxl);
    background: var(--canvas);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) {
    font-family: var(--titel); font-weight: 600; font-size: var(--display-sm); letter-spacing: -0.01em;
    padding: 14px 0;
  }
  .nav .nav__cta { margin: var(--s-lg) 0 0; min-height: 52px; font-size: 1rem; }
  .hero-sichtbar .nav.is-open .nav__cta { opacity: 1; visibility: visible; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--s-section); }
.section--dunkel { background: var(--dark); color: var(--on-dark-soft); }
.section--dunkel h2, .section--dunkel h3 { color: var(--on-dark); }
.section--dunkel strong { color: var(--on-dark); }
.section--dunkel a { color: var(--primary); }
.section--flaeche { background: var(--surface-soft); }

.section__head { max-width: 760px; margin-bottom: var(--s-xxl); }
.section__head h2 + .section__intro { margin-top: var(--s-md); }
.section__intro { font-size: var(--title-md); line-height: 1.5; color: var(--body); max-width: 60ch; }
.section--dunkel .section__intro { color: var(--on-dark-soft); }

/* Breiter Kopf: wie alle Köpfe linksbündig, Überschrift über der Einleitung
   (Spalten 1–8), damit jeder Abschnitt gleich beginnt */
.section__head--breit { max-width: calc(8 / 12 * 100%); }
.section__head--breit .section__intro { max-width: 58ch; }
@media (max-width: 860px) { .section__head--breit { max-width: none; } }

/* ---------- Hero ---------- */
/* Der Hero reicht bis unter die Kopfzeile, damit das Hintergrundfoto oben durchläuft. */
.hero {
  display: flex; align-items: flex-end;
  min-height: max(560px, 78svh);
  margin-top: calc(-1 * var(--kopf));
  padding-block: calc(var(--kopf) + var(--s-xxl)) var(--s-section);
  position: relative; isolation: isolate;
  background-color: var(--surface-card);
}
/* Foto (Kleber und Fliesen) blass hinter dem Text, wie vorher das Fliesenmuster */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/fotos/kleber-fliesen-1600.jpg") center 40% / cover no-repeat;
  opacity: .26;
  pointer-events: none;
}
@media (max-width: 860px) { .hero::before { background-image: url("../assets/fotos/kleber-fliesen-800.jpg"); } }
.hero__inner { display: block; }
.hero__copy { max-width: calc(8 / 12 * 100%); }
@media (max-width: 860px) { .hero__copy { max-width: none; } }
.hero__lead { margin-top: var(--s-lg); font-size: 1.3125rem; font-weight: 500; line-height: 1.45; color: var(--ink); max-width: 30em; }
.hero__actions { margin-top: var(--s-xl); display: flex; flex-wrap: wrap; gap: var(--s-sm); }

/* Öffnungszeiten, als ruhige Zeile unter dem Knopf */
.topbar {
  margin-top: var(--s-sm);
  align-items: center;
  display: flex; flex-wrap: wrap; gap: 4px var(--s-md);
  font-size: .9375rem; color: var(--body);
}
.topbar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; }

@media (max-width: 640px) {
  .hero { align-items: flex-start; min-height: 0; padding-top: calc(var(--kopf) + var(--s-xxl)); }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Kennzahlen als Aussage ---------- */
.stats { padding-block: var(--s-section); }
.stats__satz {
  margin-left: calc(3 / 12 * 100%);
  text-indent: calc(2 / 12 * 100%);
  font-family: var(--titel);
  font-weight: 500;
  font-size: var(--display-md);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--body);
}
.stats__satz strong { font-weight: 600; color: var(--ink); }
@media (max-width: 1023px) { .stats__satz { margin-left: 0; text-indent: calc(100% / 6); } }
@media (max-width: 639px)  { .stats__satz { text-indent: 1em; } }

/* ---------- Notdienst ---------- */
.notdienst__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.notdienst h2 { max-width: 18ch; }
.notdienst__text { margin-top: var(--s-lg); font-size: var(--title-md); max-width: 48ch; }
.notdienst__punkte { margin-top: var(--s-lg); list-style: none; display: grid; gap: var(--s-xs); }
.notdienst__punkte li { position: relative; padding-left: 22px; color: var(--on-dark); }
.notdienst__punkte li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--on-dark-soft);
}
.notdienst__karte {
  background: var(--dark-elevated);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  display: grid; gap: var(--s-lg);
}
.notdienst__feld { display: grid; gap: var(--s-xs); }
.notdienst__feld label { color: var(--on-dark); font-weight: 500; }
.notdienst__feld-reihe { display: flex; gap: var(--s-xs); }
.notdienst__feld-reihe input {
  flex: 1; min-width: 0; height: 44px;
  background: var(--dark); color: var(--on-dark);
  border: 1px solid #3a3733; border-radius: var(--r-md);
  padding: 10px 14px;
}
.notdienst__feld-reihe input::placeholder { color: var(--on-dark-soft); }
.notdienst__feld-reihe input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(204, 120, 92, .25); } /* taste-skill-ignore: Fokusring, kein Ruheschatten */
.notdienst__status { font-size: .9375rem; }
.notdienst__status:empty { margin-top: calc(-1 * var(--s-xs)); }
.notdienst__status.is-treffer { color: var(--success); }
.notdienst__status.is-aussen { color: var(--primary); }
.notdienst__hinweis { font-size: var(--body-sm); color: var(--on-dark-soft); }
.notdienst .btn--primary { white-space: normal; text-align: center; color: #fff; }
.notdienst__karte .btn--still { background: #3a3733; color: var(--on-dark); }
.notdienst__karte .btn--still:hover { background: #4a4640; }

@media (max-width: 860px) {
  .notdienst__inner { grid-template-columns: minmax(0, 1fr); }
  .notdienst__karte { padding: var(--s-lg); }
}

/* ---------- Leistungen (DESIGN.md › feature-card) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-lg); }
.card {
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  display: flex; flex-direction: column; gap: var(--s-sm);
  transition: background-color .2s var(--ease);
}
.card:hover { background: var(--surface-strong); }
.card h3 { color: var(--ink); }
.card > p { color: var(--body); font-size: 1.0625rem; text-wrap: wrap; }
.card__list { list-style: none; display: grid; gap: 6px; padding-top: var(--s-xs); }
.card__list li { position: relative; padding-left: 18px; color: var(--body-strong); }
.card__list li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; border-radius: 1px; background: var(--muted-soft); }

/* Leistungen: Foto und Name sofort sichtbar, Text und Stichpunkte klappen auf.
   Ohne JavaScript bleibt alles offen. */
.cards { align-items: start; }
.card.leistung { padding: 0; overflow: hidden; gap: 0; }
.leistung__foto { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-strong); }
.leistung__foto[src*="reparatur"] { object-position: center 70%; }
.leistung h3 { margin: 0; }
.leistung__knopf {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
  width: 100%; min-height: 56px; padding: var(--s-sm) var(--s-lg);
  font: inherit; color: var(--ink);
}
.leistung__knopf:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: -4px; border-radius: var(--r-lg); }
.leistung__mehr-innen { display: flex; flex-direction: column; gap: var(--s-sm); padding: 0 var(--s-lg) var(--s-lg); }
.leistung__mehr-innen > p { color: var(--body); font-size: 1.0625rem; }
.leistung__mehr-innen .card__list { padding-top: 0; }
.leistung__hinweis { display: none; }
@media (scripting: enabled) {
  /* Text steht im Dialog; im Kasten nur Foto und Name */
  .leistung__mehr { display: none; }
  .leistung__hinweis {
    display: inline-flex; align-items: center; flex: none;
    min-height: 32px; padding: 0 var(--s-sm); border-radius: var(--r-md);
    background: var(--canvas); color: var(--ink);
    font-size: .875rem; font-weight: 500; white-space: nowrap;
    transition: background-color .2s var(--ease);
  }
  .leistung__knopf:hover .leistung__hinweis { background: var(--surface-strong); }
  /* Ganzer Kasten samt Foto ist die Klickfläche */
  .leistung__knopf::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
  .leistung__knopf:focus-visible { outline: none; }
  .leistung__knopf:focus-visible::after { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
  .leistung { position: relative; cursor: pointer; }
  .leistung:active { transform: scale(.985); }
  .leistung { transition: background-color .2s var(--ease), transform .15s var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .leistung__hinweis, .leistung { transition: none; } .leistung:active { transform: none; } }

/* Dialog */
.leistung-dialog {
  width: min(720px, calc(100vw - 2 * var(--s-md)));
  max-height: calc(100dvh - 2 * var(--s-md));
  padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--canvas); color: var(--body);
  overflow: auto; overscroll-behavior: contain;
}
.leistung-dialog::backdrop { background: rgb(24 23 21 / .62); }
.leistung-dialog__bild .leistung__foto { aspect-ratio: 16 / 10; }
.leistung-dialog__text { display: flex; flex-direction: column; gap: var(--s-sm); padding: var(--s-xl); }
.leistung-dialog__text h3 { font-family: var(--titel); font-size: var(--title-lg); color: var(--ink); }
.leistung-dialog__inhalt .leistung__mehr-innen { padding: 0; }
.leistung-dialog__text .btn { align-self: flex-start; margin-top: var(--s-md); }
.leistung-dialog__zu {
  position: absolute; top: var(--s-md); right: var(--s-md); z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--canvas); cursor: pointer;
  transition: transform .15s var(--ease);
}
.leistung-dialog__zu span, .leistung-dialog__zu span::before {
  position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px;
  background: var(--ink); transform: rotate(45deg);
}
.leistung-dialog__zu span::before { content: ""; margin: 0; top: 0; left: 0; transform: rotate(90deg); }
.leistung-dialog__zu:active { transform: scale(.94); }
@media (prefers-reduced-motion: no-preference) {
  .leistung-dialog[open] { animation: dialogAuf .26s cubic-bezier(.23, 1, .32, 1); }
  .leistung-dialog[open]::backdrop { animation: dialogHinten .2s ease-out; }
}
@keyframes dialogAuf { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes dialogHinten { from { opacity: 0; } }
@media (max-width: 640px) { .leistung-dialog__text { padding: var(--s-lg); } }
@media (max-width: 640px) { .leistung-dialog__text { padding: var(--s-lg); } }
@media (max-width: 640px) {
  .card.leistung { padding: 0; }
  .leistung__knopf { padding: var(--s-sm) var(--s-md); }
  .leistung__mehr-innen { padding: 0 var(--s-md) var(--s-md); }
}

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

/* ---------- Referenzen ---------- */
.referenzen__kopf { margin-bottom: var(--s-xl); }

/* Filter (DESIGN.md › category-tab) */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-xs); margin-bottom: var(--s-xl); }
.chip {
  border: 0; cursor: pointer;
  background: transparent; color: var(--on-dark-soft);
  font-size: .9375rem; font-weight: 500;
  padding: 10px 16px; border-radius: var(--r-md);
  min-height: 44px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.chip:hover { color: var(--on-dark); background: var(--dark-elevated); }
.chip.is-active, .chip.is-active:hover { background: var(--color-accent); color: var(--color-on-accent); }

/* Projekte als Karten mit Foto */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-lg); }
@media (max-width: 1023px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.project {
  margin: 0; overflow: hidden;
  background: var(--dark-soft);
  border-radius: var(--r-md);
  transition: background-color .2s var(--ease), opacity .25s var(--ease);
}
.project:hover { background: var(--dark-elevated); }
.project.is-hidden { display: none; }
.project__foto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--dark-elevated); }
.project figcaption {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: var(--s-lg);
}
.project p { color: var(--on-dark-soft); }
.project__ort { color: var(--on-dark); font-size: .9375rem; margin-top: 4px; }

/* Vorher / Nachher: ruhige Flächen, bis Fotos des Betriebs vorliegen */
.ba { margin-top: var(--s-section); }
.ba__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  cursor: ew-resize; user-select: none; touch-action: pan-y;
}
/* Nachher: großformatige Fliesen 60 × 120 im Halbverband, Fugen als Muster */
.ba__after {
  position: absolute; inset: 0;
  background-color: #d9d2c6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cg fill='none' stroke='%23c3baac' stroke-width='3'%3E%3Cpath d='M0 1.5H240M0 61.5H240M1.5 0V60M121.5 60V120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 120px;
}
/* Vorher: rohe Wand mit Putzresten */
.ba__before {
  /* Volle Fläche, sichtbarer Anteil per clip-path (js/main.js setzt ihn) */
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
  background-color: #8d857a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23857d72'%3E%3Ccircle cx='18' cy='22' r='2'/%3E%3Ccircle cx='96' cy='40' r='3'/%3E%3Ccircle cx='60' cy='118' r='2'/%3E%3Ccircle cx='138' cy='132' r='2.5'/%3E%3C/g%3E%3Cg fill='%23a0978b'%3E%3Ccircle cx='130' cy='76' r='2'/%3E%3Ccircle cx='34' cy='80' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* Fotos füllen beide Ebenen deckungsgleich; Ziehen soll nie das Bild greifen */
.ba__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* Volle Breite wie die Galerie darüber; 16:9 schneidet nur Himmel und Rasen ab */
@media (max-width: 860px) { .ba__frame { aspect-ratio: 800 / 592; } }
.ba__divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--canvas); pointer-events: none; }
.ba__handle {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--canvas);
}
.ba__handle::before, .ba__handle::after {
  content: ""; position: absolute; top: 50%; margin-top: -6px;
  border: 6px solid transparent;
}
.ba__handle::before { left: 8px;  border-right-color: var(--ink); }
.ba__handle::after  { right: 8px; border-left-color: var(--ink); }
.ba__badge {
  position: absolute; top: var(--s-md); left: var(--s-md);
  background: var(--dark); color: var(--on-dark);
  font-size: var(--body-sm); font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm);
  white-space: nowrap;
}
.ba__badge--nachher { left: auto; right: var(--s-md); background: var(--canvas); color: var(--ink); }
.ba__frame:focus-visible { outline-offset: 4px; }
/* Rückmeldung beim Greifen und bei Tastaturfokus: nur der Griff, nie die Position */
.ba__handle { transition: transform .12s var(--ease); }
.ba__frame.is-gefasst .ba__handle,
.ba__frame:focus-visible .ba__handle { transform: scale(1.08); }
.ba__caption { margin-top: var(--s-md); color: var(--on-dark-soft); max-width: 60ch; }
@media (max-width: 640px) { .ba__frame { border-radius: var(--r-lg); } }

/* ---------- Ablauf: vier Spalten über die volle Breite ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-xl); }
.step { position: relative; display: grid; gap: var(--s-sm); align-content: start; --anteil: 25%; }
.step:nth-child(2) { --anteil: 50%; }
.step:nth-child(3) { --anteil: 75%; }
.step:nth-child(4) { --anteil: 100%; }
/* ::after ist die Spur, ::before die Füllung bis zum Anteil des Schritts */
.step::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 2px;
  background: var(--color-surface-alt);
}
.step::before {
  content: ""; position: relative; z-index: 1; display: block;
  width: var(--anteil); height: 4px; border-radius: 2px;
  background: var(--color-accent); transform-origin: left center;
  margin-bottom: var(--s-md);
}
.step p { color: var(--body); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-xxl) var(--s-xl); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: var(--s-xl); } }

/* ---------- Warum wir ---------- */
.usp { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.usp__copy h2 { max-width: 14ch; }
.usp__copy > p { margin-top: var(--s-lg); font-size: var(--title-md); max-width: 46ch; }
.ticks { list-style: none; display: grid; gap: var(--s-xs); margin-top: var(--s-lg); }
.ticks li { position: relative; padding-left: 22px; color: var(--body-strong); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--muted-soft); }
.usp__bild { margin: var(--s-xl) 0 0; }
.usp__foto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 85%; border-radius: var(--r-lg); background: var(--surface-strong); }

.usp__facts {
  margin: 0;
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg) var(--s-xl);
}
.fact dt { font-size: var(--text-label); font-weight: 500; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-family: var(--titel); font-weight: 600; font-size: var(--title-lg); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 860px) { .usp { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .usp__facts { grid-template-columns: 1fr; padding: var(--s-lg); } }

/* ---------- Bewertungen: ein großes Zitat, zwei kleine daneben ---------- */
.quotes { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: var(--s-lg); align-items: stretch; }
.quote {
  margin: 0;
  display: flex; flex-direction: column; gap: var(--s-xl);
  min-height: 18rem;
  padding: var(--s-xl);
  background: var(--surface-card);
  border-radius: var(--r-lg);
}
.quote blockquote { margin: 0; font-family: var(--titel); font-weight: 500; font-size: var(--title-md); line-height: 1.35; color: var(--ink); }
.quote--gross blockquote { font-size: var(--text-h3); line-height: 1.25; letter-spacing: -0.01em; max-width: 26em; }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: var(--text-label); font-weight: 500; }
/* Bewertung bleibt zusammen, damit „4 von 5 Sternen“ nicht zerrissen wird */
.quote__wertung { white-space: nowrap; }
@media (max-width: 1023px) {
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote { min-height: 0; }
  .quote--gross { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .quotes { grid-template-columns: 1fr; }
  .quote { min-height: 0; padding: var(--s-lg); }
}

/* ---------- Häufige Fragen: Kopf links, Fragen rechts ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 1fr) minmax(0, 3fr); column-gap: var(--s-lg); align-items: start; }
/* Der Kopf gibt Überschrift und Rückfrage direkt ans Raster weiter */
.faq .section__head { display: contents; }
.faq .section__head h2 { grid-column: 1 / -1; margin-bottom: var(--s-xxl); }
.faq .section__intro { grid-column: 3; grid-row: 2; margin-top: 0; font-size: var(--title-md); }
.faq .accordion { grid-column: 1; grid-row: 2; }
.accordion { display: grid; gap: var(--s-xs); }
.acc { background: var(--surface-card); border-radius: var(--r-md); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: var(--s-md); align-items: center;
  min-height: 64px; padding: 14px var(--s-lg);
  font-size: var(--title-md); font-weight: 500; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; flex: none;
  font-family: var(--text); font-size: 1.4rem; font-weight: 400; line-height: 1;
  width: 44px; height: 44px; margin-right: -12px;
  display: inline-grid; place-items: center;
  color: var(--muted);
  transition: transform .2s var(--ease);
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc { transition: background-color .15s var(--ease); }
.acc:hover { background: var(--surface-strong); }
.acc summary:hover { color: var(--color-accent-text); }
.acc__body { padding: 0 var(--s-lg) 20px; color: var(--body); max-width: 62ch; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq .section__intro, .faq .accordion { grid-column: 1; grid-row: auto; }
  .faq .section__head h2 { margin-bottom: var(--s-md); }
  .faq .section__intro { margin-bottom: var(--s-xl); }
}

/* ---------- Karriere ---------- */
#karriere > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-lg); align-items: start; }
#karriere > .wrap > .section__head { grid-column: 1 / -1; margin-bottom: var(--s-lg); }
#karriere #bewerbungForm { margin-top: 0; }
.jobs { display: grid; grid-template-columns: 1fr; gap: var(--s-lg); }
.karriere__bild { margin: 0 0 var(--s-lg); grid-column: 1 / -1; }
.karriere__foto { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 40%; border-radius: var(--r-lg); background: var(--surface-strong); }
@media (max-width: 760px) { .karriere__foto { aspect-ratio: 16 / 9; } }
/* Stellen und Formular enden auf einer Linie */
@media (min-width: 1024px) {
  #karriere > .wrap { align-items: stretch; }
  .jobs { grid-auto-rows: 1fr; }
}
@media (max-width: 1023px) {
  #karriere > .wrap { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr 1fr; }
}
.job {
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  display: flex; flex-direction: column; gap: var(--s-sm);
}
.job__meta { color: var(--muted); font-size: .9375rem; }
.job .card__list { margin-top: var(--s-xs); padding-top: 0; }
.job .btn { align-self: flex-start; margin-top: var(--s-md); }
/* Die Stellenknöpfe springen nur zum Formular; die Akzentfläche bleibt dem Absenden */
.job .btn--primary { background: var(--canvas); color: var(--ink); }
.job .btn--primary:hover { background: var(--surface-strong); color: var(--ink); }
@media (max-width: 760px) { .jobs { grid-template-columns: 1fr; } .job { padding: var(--s-lg); } }

/* ---------- Formulare (DESIGN.md › text-input) ---------- */
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--s-lg);
  background: var(--canvas);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
}
#karriere .form { margin-top: var(--s-lg); background: var(--surface-card); }
.field { display: grid; gap: 6px; align-content: start; }
.field--full, .form > .demo-sperre, .form > .form__success, .form > .stepper, .stepper__seite { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 500; color: var(--ink); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 44px;
  background: var(--canvas); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: var(--text-body);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form .field input:not([type="checkbox"]), .form .field select, .form .field textarea { background-color: var(--canvas); border-color: #d9d0c3; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
/* Auswahlfelder ohne Browserpfeil: eigener Pfeil 16px vom rechten Rand */
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px; cursor: pointer;
  background-image: var(--pfeil-auswahl); background-repeat: no-repeat;
  background-position: right 16px center; background-size: 12px 8px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); /* taste-skill-ignore: Fokusring */
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { color: var(--error-text); font-size: .9375rem; min-height: 0; }
.field__error:empty { display: none; }

.check { display: flex; gap: var(--s-sm); align-items: flex-start; cursor: pointer; font-size: .9375rem; color: var(--body); line-height: 1.5; }
.form a { color: var(--primary-tief); } /* Kontrast auf der Kartenfläche */
/* Checkbox: Trefferfläche 44×44, sichtbar ist ein 20px-Quadrat in der Mitte.
   Die negativen Ränder halten die Textausrichtung wie beim 20px-Feld. */
.check input {
  flex: none; position: relative;
  width: 44px; height: 44px; margin: -10px -12px -10px -12px;
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; cursor: pointer;
}
.check input::before {
  content: ""; position: absolute; inset: 12px;
  background: var(--canvas); border: 1.5px solid var(--color-control-border); border-radius: var(--r-xs);
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.check input::after {
  content: ""; position: absolute; left: 19px; top: 15px;
  width: 6px; height: 11px;
  border: solid var(--color-on-accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg); opacity: 0;
}
.check input:checked::before { background: var(--primary-active); border-color: var(--primary-active); }
.check input:checked::after { opacity: 1; }
.check input:hover::before { border-color: var(--primary-active); }
.check input:focus, .check input:focus-visible { outline: none; box-shadow: none; } /* taste-skill-ignore: hebt den Feld-Fokusring auf, Ring sitzt am Quadrat */
.check input:focus-visible::before { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.field.has-error .check input::before { border-color: var(--error); }
.check__hinweis { display: block; font-style: normal; font-size: var(--body-sm); color: var(--muted); margin-top: 2px; }

.form__hint { margin-top: var(--s-sm); font-size: .9375rem; color: var(--muted); }
.form__success {
  background: var(--surface-card); border-radius: var(--r-md);
  padding: var(--s-lg); color: var(--body-strong);
}
.form__success strong { display: block; font-family: var(--titel); font-size: var(--title-lg); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.demo-sperre { background: var(--surface-strong); color: var(--body-strong); border-radius: var(--r-md); padding: var(--s-md) var(--s-lg); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: Honigtopf, unsichtbar */

/* Dateiauswahl */
.filedrop {
  display: grid; gap: 4px; justify-items: center; text-align: center;
  background: var(--canvas);
  border: 0;
  border-radius: var(--r-md);
  padding: var(--s-lg);
  cursor: pointer;
  transition: background-color .15s var(--ease), outline-color .15s var(--ease);
  outline: 2px solid transparent; outline-offset: -2px;
}
.filedrop:hover, .filedrop.is-over, .filedrop:focus-within { outline-color: var(--primary-active); }
.filedrop.has-error { outline-color: var(--error); }
.filedrop__hinweis { color: var(--body-strong); font-size: .9375rem; }
.filedrop__meta { color: var(--muted); font-size: var(--body-sm); }
.filedrop__liste { list-style: none; display: grid; gap: 6px; margin-top: var(--s-xs); }
.filedrop__item {
  display: flex; align-items: center; gap: var(--s-sm);
  background: var(--surface-soft); border-radius: var(--r-sm);
  padding: 8px 8px 8px 12px; font-size: .9375rem;
}
.filedrop__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.filedrop__groesse { color: var(--muted); font-size: var(--body-sm); }
.filedrop__weg { border: 0; background: transparent; width: 44px; height: 44px; border-radius: var(--r-sm); cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.filedrop__weg:hover { background: var(--surface-card); color: var(--ink); }

/* ---------- Kontakt ---------- */
#kontakt { background: var(--canvas); }
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__lead { margin-top: var(--s-lg); font-size: var(--title-md); max-width: 40ch; }
.contact__list { margin: var(--s-xl) 0 0; display: grid; gap: var(--s-md); }
.contact__list dt { font-size: var(--text-label); font-weight: 500; color: var(--muted); }
.contact__list dd { margin: 2px 0 0; color: var(--ink); font-size: var(--text-body); }
.contact__list dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
.contact .form { background: var(--surface-card); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* Mehrstufiges Formular: Fortschritt als Balken mit Beschriftung */
.form--stepper { grid-template-columns: 1fr 1fr; }
.stepper {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xs);
  margin-bottom: var(--s-xs);
}
.stepper__punkt { display: grid; gap: 8px; font-size: var(--body-sm); color: var(--muted); }
.stepper__punkt::before { content: ""; height: 4px; border-radius: 2px; background: var(--surface-strong); transition: background-color .25s var(--ease); }
.stepper__punkt.is-aktiv, .stepper__punkt.is-erledigt { color: var(--ink); }
.stepper__punkt.is-aktiv::before, .stepper__punkt.is-erledigt::before { background: var(--primary-active); }
.stepper__nr { display: none; }
.stepper__seite { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--s-lg); }
.stepper__seite[data-seite="1"] > .field:has(#mail) { grid-column: 1 / -1; }
.stepper__fuss { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--s-sm); margin-top: var(--s-xs); }
.review { grid-column: 1 / -1; background: var(--canvas); border-radius: var(--r-md); padding: var(--s-lg); }
.review__titel { font-size: var(--title-lg); margin-bottom: var(--s-md); }
.review__liste { margin: 0; display: grid; gap: var(--s-xs); }
.review__zeile { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-md); font-size: .9375rem; }
.review__zeile dt { color: var(--muted); }
.review__zeile dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.review__hinweis { margin-top: var(--s-md); font-size: var(--body-sm); color: var(--muted); }

@media (max-width: 640px) {
  .form, .stepper__seite { grid-template-columns: 1fr; padding: var(--s-lg); }
  .stepper__seite { padding: 0; }
  .stepper__fuss .btn { flex: 1; }
  .review__zeile { grid-template-columns: 1fr; gap: 0; }
  /* Schrittnamen einzeilig: Spalten nach Inhalt, Restbreite gleich verteilt */
  .stepper { grid-template-columns: repeat(3, auto); }
  .stepper__label { white-space: nowrap; }
}

/* ---------- Telefon-CTA (DESIGN.md › cta-band-coral) ---------- */
.cta { padding-block: var(--s-xxl) var(--s-section); }
.cta__inner {
  background: var(--primary-active);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 64px;
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-md) var(--s-xxl); align-items: center;
}
.cta__inner h2 { color: #fff; font-size: var(--display-md); grid-column: 1; }
.cta__inner p { grid-column: 1; font-size: var(--title-md); color: #fff; max-width: 52ch; }
.cta__inner .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 760px) {
  .cta__inner { grid-template-columns: 1fr; padding: var(--s-xl) var(--s-lg); }
  .cta__inner .btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: var(--s-xs); }
}

/* ---------- Footer (DESIGN.md › footer) ---------- */
.footer { background: var(--dark); color: var(--on-dark-soft); font-size: var(--body-sm); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 4fr 2fr 2fr 3fr; gap: var(--s-xxl) var(--s-xl); padding-bottom: var(--s-xxl); }
.brand--footer { color: var(--on-dark); }
.footer .brand--footer, .brand--footer:hover { color: var(--on-dark); }
.brand--footer .brand__mark { fill: var(--on-dark); }
.footer__claim { margin-top: var(--s-md); max-width: 34ch; font-size: .9375rem; }
.footer__titel { font-family: var(--titel); font-size: 1.125rem; font-weight: 600; color: var(--on-dark); margin-bottom: var(--s-sm); letter-spacing: -0.01em; }
.footer__nav { display: grid; gap: 0; align-content: start; justify-items: start; }
.footer__nav a, .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a { color: var(--on-dark-soft); text-decoration: none; font-size: .9375rem; }
.footer a:hover { color: var(--on-dark); }
.footer__contact { display: grid; gap: 0; align-content: start; justify-items: start; font-size: .9375rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-xs) var(--s-lg);
  padding-block: var(--s-lg) var(--s-xl);
  background: var(--dark);
  color: var(--on-dark-soft);
}
.footer__bottom::before { content: none; }
.footer__fotos { flex-basis: 100%; font-size: .8125rem; }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__inner { gap: var(--s-xl) var(--s-lg); } .footer__contact { grid-column: 1 / -1; } }

/* ---------- Rechtstexte (impressum.html, datenschutz.html) ---------- */
.legal { padding-block: var(--s-xxl) var(--s-section); max-width: calc(800px + 2 * var(--rand)); }
.legal h1 { font-size: var(--display-lg); margin-bottom: var(--s-lg); }
.legal h2 { font-size: var(--display-sm); margin-top: var(--s-xxl); margin-bottom: var(--s-sm); }
.legal h3 { font-size: var(--title-lg); margin-top: var(--s-lg); margin-bottom: var(--s-xs); }
.legal p, .legal li { color: var(--body); margin-bottom: var(--s-sm); }
.legal ul { padding-left: 1.2em; }
.legal dl { margin: var(--s-lg) 0; }
.legal dt { font-size: .9375rem; color: var(--muted); margin-top: var(--s-md); }
.legal dt:first-child { margin-top: 0; }
.legal dd { margin: 2px 0 0; color: var(--ink); }
.backlink { display: inline-block; margin-bottom: var(--s-xl); text-decoration: none; color: var(--muted); font-size: .9375rem; }
.backlink:hover { color: var(--color-accent-text); }

/* ---------- Bewegung ---------- */
/* Zwei Typen mit gemeinsamer Kurve:
   „aufsteigen" (Opacity + 14–16px nach oben): Hero beim Laden, per JS Leistungen,
     Faktenkarte und Bewertungen beim Hineinscrollen.
   „fuellen" (scaleX des Balkens): Ablauf, per JS.
   CSS lässt alles sichtbar. Der Hero läuft als CSS-Animation und endet auch ohne
   Skript im sichtbaren Zustand. Die Scroll-Einblendungen setzt js/main.js nur für
   Elemente, die beim Start unterhalb des Viewports liegen. */
@keyframes aufsteigen {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: aufsteigen .65s var(--ease) both; }
  .hero .reveal[data-delay="1"] { animation-delay: .08s; }
  .hero .reveal[data-delay="2"] { animation-delay: .16s; }
  .hero .reveal[data-delay="3"] { animation-delay: .24s; }
}

/* Reduzierte Bewegung: Endzustände sofort, Rückmeldung nur über Farbe */
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .acc summary::after { transition: none; }
  .nav, .nav__cta { transition: none; }
  .nav { transform: none; }
  .ba__handle { transition: none; }
  .ba__frame.is-gefasst .ba__handle, .ba__frame:focus-visible .ba__handle { transform: none; }
  .check input::before, .filedrop { transition: none; }
}

/* Hinweis auf die Terminbuchung im Kontaktbereich (Konfigurator-Baustein „termin“) */
.contact__termin {
  margin-top: var(--s-xl); padding: var(--s-md) var(--s-lg); border-radius: var(--r-md);
  background: var(--surface-card); color: var(--body); font-size: var(--body-sm);
}
.contact__termin a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; color: var(--primary-tief); font-weight: 600; }
