/* =============================================================================
   style.css – Design-System (angelehnt an zimmereiweber.com)
   Warmes, handwerkliches Erscheinungsbild: roter Akzent, dunkle Sektionen,
   heller, ruhiger Inhaltsbereich.
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --rot:           #b5302a;   /* Primär-Akzent */
  --rot-dunkel:    #8f231f;
  --rot-hell:      #d24a43;
  --dunkel:        #2b2724;   /* dunkle Sektionen / Footer */
  --dunkel-2:      #211d1b;
  --anthrazit:     #3a3531;
  --text:          #2c2925;
  --text-leise:    #6b645d;
  --creme:         #f6f2ec;   /* heller Hintergrund */
  --creme-2:       #efe9e0;
  --weiss:         #ffffff;
  --linie:         #e4ddd2;
  --gold:          #d8a24a;   /* Sterne / Auszeichnungen */

  --maxw: 1180px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --head: "Georgia", "Times New Roman", serif;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--creme);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rot); text-decoration: none; }
a:hover { color: var(--rot-dunkel); }
h1,h2,h3,h4 { font-family: var(--head); line-height: 1.2; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }
ul { list-style: none; }

/* ---------- Layout-Helfer ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 78px 0; }
.section--tight { padding: 56px 0; }
.section--creme2 { background: var(--creme-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--rot); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; font-family: var(--font); }
.section-head h2 { margin: 8px 0 14px; }
.section-head p { color: var(--text-leise); }
.lead { font-size: 1.12rem; color: var(--text-leise); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rot); color: #fff; font-weight: 700;
  padding: 14px 26px; border-radius: var(--radius); border: 0;
  font-size: 1rem; cursor: pointer; transition: background .2s, transform .15s;
  font-family: var(--font); text-align: center;
}
.btn:hover { background: var(--rot-dunkel); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 2px solid #fff; color: #fff; padding: 12px 24px; }
.btn--ghost:hover { background: #fff; color: var(--dunkel); }
.btn--dark { background: var(--dunkel); }
.btn--dark:hover { background: #000; }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* =============================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--dunkel-2); color: #cfc7bd; font-size: .86rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #e9e2d8; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__rating { display: inline-flex; align-items: center; gap: 6px; }
.stars { color: var(--gold); letter-spacing: 1px; }

/* Der GESAMTE Kopf (Container) ist sticky – Elternelement ist <body>,
   daher bleibt die Leiste über die ganze Seite pinnbar. */
#site-header {
  position: sticky; top: 0; z-index: 100;
  transition: transform .3s ease; will-change: transform;
}
/* Auto-Hide beim Runterscrollen (per JS umgeschaltet) */
#site-header.nav-hidden { transform: translateY(-100%); }
/* Mitten auf der Seite nur die schlanke Navi zeigen (Topbar einklappen) */
#site-header.scrolled .topbar { display: none; }

.site-header {
  background: var(--weiss); border-bottom: 1px solid var(--linie);
  transition: box-shadow .2s;
}
#site-header.scrolled .site-header { box-shadow: var(--shadow-sm); }
@media (prefers-reduced-motion: reduce) { #site-header { transition: none; } #site-header.nav-hidden { transform: none; } }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 18px; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.nav__logo img { height: 48px; width: auto; }
.nav__logo-fallback { display: flex; flex-direction: column; line-height: 1.05; }
.nav__logo-fallback small { font-family: var(--font); font-weight: 600; font-size: .68rem; color: var(--rot); letter-spacing: .08em; text-transform: uppercase; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__menu a {
  color: var(--text); font-weight: 600; padding: 10px 14px; border-radius: var(--radius);
  font-size: .98rem; transition: color .15s, background .15s;
}
.nav__menu a:hover, .nav__menu a.active { color: var(--rot); background: var(--creme); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone { font-weight: 700; color: var(--text); white-space: nowrap; }
.nav__phone:hover { color: var(--rot); }
.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav__burger span { width: 26px; height: 3px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav__cta-btn { white-space: nowrap; }

/* ---------- Untermenü "Leistungen" ---------- */
.nav__item { position: relative; }
.nav__subtoggle { display: none; }
.nav__submenu { list-style: none; }
.nav__submenu a {
  display: block; padding: 9px 14px; border-radius: var(--radius);
  font-size: .93rem; font-weight: 600; color: var(--text); white-space: nowrap;
}
.nav__submenu a:hover, .nav__submenu a.active { color: var(--rot); background: var(--creme); }
.nav__submenu-head a { color: var(--rot); border-bottom: 1px solid var(--linie); border-radius: 0; margin-bottom: 4px; }

/* Desktop: Dropdown bei Hover/Fokus */
@media (min-width: 821px) {
  .nav__item--sub > a { position: relative; padding-right: 26px; }
  .nav__item--sub > a::after {
    content: ""; position: absolute; right: 10px; top: 50%;
    width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg); transition: transform .2s;
  }
  .nav__item--sub:hover > a::after { transform: translateY(-30%) rotate(225deg); }
  .nav__submenu {
    position: absolute; top: 100%; left: 0; min-width: 270px;
    background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 8px; z-index: 120;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav__item--sub:hover .nav__submenu,
  .nav__item--sub:focus-within .nav__submenu { opacity: 1; visibility: visible; transform: none; }
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; color: #fff;
  background: var(--dunkel); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,17,15,.86) 0%, rgba(20,17,15,.55) 55%, rgba(20,17,15,.35) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 96px 0 110px; max-width: 660px; }
.hero__kicker { display: inline-block; background: var(--rot); padding: 6px 14px; border-radius: 4px; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.18rem; color: #ede7df; margin-bottom: 30px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Inhaber-Karte (wie zimmereiweber) */
.hero__card {
  position: relative; z-index: 2; background: rgba(255,255,255,.96); color: var(--text);
  border-radius: var(--radius-lg); padding: 22px 24px; margin-top: 34px; max-width: 540px;
  box-shadow: var(--shadow); border-left: 5px solid var(--rot);
}
.hero__card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.hero__card p { font-size: .98rem; color: var(--text-leise); margin: 0; }

/* Detailseiten-Hero (kompakter) */
.subhero { position: relative; color: #fff; background: var(--dunkel); }
.subhero__bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.subhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,15,.85), rgba(20,17,15,.5)); }
.subhero__inner { position: relative; z-index: 2; padding: 70px 0 76px; max-width: 720px; }
.subhero h1 { color: #fff; margin-bottom: 14px; }
.subhero p { color: #ede7df; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: #cfc7bd; margin-bottom: 16px; position: relative; z-index: 2; }
.breadcrumb a { color: #fff; }

/* =============================================================================
   TRUST-LEISTE
   ========================================================================== */
.trustbar { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; padding: 34px 0; }
.trust-item { text-align: left; }
.trust-item h4 { font-family: var(--font); font-size: 1rem; color: var(--text); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.trust-item h4::before { content: "✓"; color: var(--rot); font-weight: 900; }
.trust-item p { font-size: .85rem; color: var(--text-leise); margin: 0; }

/* =============================================================================
   LEISTUNGEN – wechselnde Reihen (Startseite & Übersicht)
   ========================================================================== */
.leistung-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 64px; }
.leistung-row:last-child { margin-bottom: 0; }
.leistung-row--flip .leistung-row__media { order: 2; }
.leistung-row__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.leistung-row__body h3 { font-size: 1.7rem; margin-bottom: 12px; }
.leistung-row__body p { color: var(--text-leise); }
.leistung-row__icon { width: 52px; height: 52px; color: var(--rot); margin-bottom: 14px; }
.morelink { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; margin-top: 8px; }
.morelink::after { content: "→"; transition: transform .2s; }
.morelink:hover::after { transform: translateX(4px); }

/* Karten-Raster (Leistungsübersicht / Teaser) */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.card {
  background: var(--weiss); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; border: 1px solid var(--linie);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__icon { width: 40px; height: 40px; color: var(--rot); margin-bottom: 10px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--text-leise); font-size: .96rem; flex: 1; }
.card .morelink { margin-top: 14px; }

/* =============================================================================
   DUNKLES CTA-BAND
   ========================================================================== */
.band {
  position: relative; color: #fff; background: var(--dunkel); overflow: hidden;
  background-size: cover; background-position: center;
}
.band::after { content: ""; position: absolute; inset: 0; background: rgba(25,21,18,.82); }
.band .container { position: relative; z-index: 2; }
.band--center { text-align: center; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 56px 0; }
.band h2 { color: #fff; max-width: 720px; }
.band p { color: #e3dcd3; margin-top: 8px; }

/* =============================================================================
   TEAM-FOTOS
   ========================================================================== */
.teamstrip { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.teamstrip img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); width: 100%; }

/* =============================================================================
   WARUM WIR – dunkle Sektion
   ========================================================================== */
.warum { background: var(--dunkel); color: #f0eae1; position: relative; }
.warum .section-head h2 { color: #fff; }
.warum .section-head p { color: #cfc7bd; }
.warum .section-head .kicker { color: var(--rot-hell); }
.warum__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.warum__item { padding: 26px 22px; background: rgba(255,255,255,.04); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08); }
.warum__item .ico { width: 40px; height: 40px; color: var(--rot-hell); margin-bottom: 14px; }
.warum__item h3 { color: #fff; font-size: 1.18rem; margin-bottom: 8px; font-family: var(--font); }
.warum__item p { color: #cfc7bd; font-size: .95rem; margin: 0; }

/* Zähler / Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--head); font-size: 2.6rem; color: var(--rot); font-weight: 700; }
.stat__label { color: var(--text-leise); font-size: .95rem; }

/* =============================================================================
   REFERENZEN
   ========================================================================== */
.ref-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ref-grid figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.ref-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s; }
.ref-grid figure:hover img { transform: scale(1.05); }
.ref-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); font-weight: 600; font-size: .98rem;
}

/* =============================================================================
   TESTIMONIALS – dunkel
   ========================================================================== */
.testi { background: var(--dunkel-2); color: #f0eae1; }
.testi .section-head h2 { color: #fff; }
.testi .section-head .kicker { color: var(--rot-hell); }
.testi__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi__card { background: var(--anthrazit); border-radius: var(--radius-lg); padding: 28px 26px; position: relative; }
.testi__card .stars { font-size: 1.05rem; margin-bottom: 12px; display: block; }
.testi__card p { color: #e8e1d8; font-style: italic; }
.testi__author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--rot); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--head); }
.testi__author strong { display: block; color: #fff; font-family: var(--font); }
.testi__author span { font-size: .85rem; color: #b6aea3; }

/* =============================================================================
   ABLAUF (So arbeiten wir)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.steps--3 { grid-template-columns: repeat(3,1fr); }
.step { background: var(--weiss); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--rot); }
.step__num { counter-increment: step; font-family: var(--head); font-size: 2rem; color: var(--rot); font-weight: 700; line-height: 1; }
.step__num::before { content: counter(step); }
.step h3 { font-family: var(--font); font-size: 1.1rem; margin: 10px 0 6px; }
.step p { color: var(--text-leise); font-size: .94rem; margin: 0; }

/* =============================================================================
   DETAILSEITEN – Unterleistungen
   ========================================================================== */
.sub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.sub-row:last-child { margin-bottom: 0; }
.sub-row--flip .sub-row__media { order: 2; }
.sub-row__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.sub-row__body h3 { font-size: 1.5rem; margin-bottom: 12px; }
.sub-row__body p { color: var(--text-leise); }

/* Förderhinweis */
.hinweis { background: #fbf4e6; border: 1px solid #ecd9ac; border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; margin-top: 8px; }
.hinweis strong { color: var(--text); }
.hinweis p { margin: 0; color: #6e5f3e; }

/* =============================================================================
   FAQ – Accordion
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--linie); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 40px 20px 0; font-size: 1.08rem; font-weight: 700; color: var(--text); position: relative; font-family: var(--font); }
.faq__q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--rot); transition: transform .2s; }
.faq__item.open .faq__q::after { content: "–"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { color: var(--text-leise); padding-bottom: 20px; margin: 0; }

/* =============================================================================
   FORMULAR / KONTAKT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 44px; align-items: start; }
.form { background: var(--weiss); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--linie); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--linie); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--creme); color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--rot); border-color: var(--rot); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-leise); }
.field--check input { width: auto; margin-top: 4px; }
.form__note { font-size: .82rem; color: var(--text-leise); margin-top: 6px; }
.form-success { background: #e9f6ec; border: 1px solid #b6e0c0; color: #1f6b34; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; display: none; }
.form-success.show { display: block; }

.contact-aside .info-block { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 18px; }
.contact-aside h3 { font-family: var(--font); font-size: 1.15rem; margin-bottom: 14px; }
.info-line { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.info-line .ico { width: 20px; height: 20px; color: var(--rot); flex: 0 0 20px; margin-top: 3px; }
.info-line strong { display: block; }
.info-line a, .info-line span { color: var(--text-leise); }

/* =============================================================================
   KALKULATOR
   ========================================================================== */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.calc__result { background: var(--dunkel); color: #fff; border-radius: var(--radius-lg); padding: 32px; position: sticky; top: calc(var(--header-h) + 20px); }
.calc__result .price { font-family: var(--head); font-size: 2.6rem; color: var(--rot-hell); font-weight: 700; }
.calc__result .price small { font-size: .9rem; color: #cfc7bd; font-family: var(--font); }
.calc__result hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 18px 0; }
.calc__row { display: flex; justify-content: space-between; font-size: .95rem; color: #d8d1c8; margin-bottom: 8px; }
.calc__disclaimer { font-size: .8rem; color: #b6aea3; margin-top: 16px; }

/* =============================================================================
   RECHTSTEXTE
   ========================================================================== */
.legal { max-width: 820px; }
.legal h2 { margin: 32px 0 12px; font-size: 1.5rem; }
.legal h3 { margin: 22px 0 8px; font-size: 1.15rem; font-family: var(--font); }
.legal p, .legal li { color: var(--text-leise); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }

/* =============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dunkel-2); color: #c4bcb1; padding-top: 60px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: #c4bcb1; }
.site-footer a:hover { color: var(--rot-hell); }
.footer-grid ul li { margin-bottom: 9px; }
.footer-brand img { height: 54px; margin-bottom: 14px; }
.footer-brand p { color: #9d958b; font-size: .9rem; }
.footer-contact .info-line .ico { color: var(--rot-hell); }
.footer-contact .info-line strong, .footer-contact .info-line a, .footer-contact .info-line span { color: #c4bcb1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: #8f877d; }
.footer-bottom a { color: #8f877d; }

/* =============================================================================
   SCROLL-ANIMATIONEN
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =============================================================================
   COOKIE-BANNER
   ========================================================================== */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px 24px; max-width: 860px; margin: 0 auto;
  display: none; gap: 18px; align-items: center; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: .9rem; color: var(--text-leise); flex: 1; min-width: 240px; }
.cookie__actions { display: flex; gap: 10px; }
.cookie .btn { padding: 10px 18px; }
.cookie .btn--ghost { border-color: var(--linie); color: var(--text); }
.cookie .btn--ghost:hover { background: var(--creme); color: var(--text); }

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .trustbar__grid, .warum__grid, .stats { grid-template-columns: repeat(2,1fr); }
  .cards, .testi__grid, .ref-grid { grid-template-columns: repeat(2,1fr); }
  .steps, .steps--3 { grid-template-columns: repeat(2,1fr); }
  .teamstrip { grid-template-columns: repeat(3,1fr); }
  .contact-grid, .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}
@media (max-width: 820px) {
  .nav__menu {
    position: fixed; top: var(--header-h); right: 0; width: min(86%,340px);
    height: calc(100vh - var(--header-h)); background: var(--weiss);
    flex-direction: column; align-items: stretch; padding: 0;
    box-shadow: -6px 0 30px rgba(0,0,0,.18); transform: translateX(100%);
    transition: transform .25s; gap: 0; overflow-y: auto;
  }
  .nav__menu.open { transform: none; }
  .nav__menu > li { width: 100%; }
  .nav__menu a {
    display: block; width: 100%; text-align: left;
    padding: 15px 22px; border-bottom: 1px solid var(--linie); border-radius: 0;
    font-size: 1rem; color: var(--text); background: none;
  }
  .nav__menu a.active {
    color: var(--rot); background: var(--creme);
    box-shadow: inset 4px 0 0 var(--rot);
  }
  .nav__burger { display: flex; }
  .nav__phone { display: none; }
  .nav { gap: 10px; }
  .nav__cta { gap: 8px; }
  .nav__cta-btn { padding: 10px 14px; font-size: .9rem; }

  /* Untermenü Leistungen: als aufklappbarer Bereich */
  .nav__item--sub { display: flex; flex-wrap: wrap; align-items: stretch; }
  .nav__item--sub > a { flex: 1 1 auto; width: auto; }
  .nav__subtoggle {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    width: 54px; background: none; border: 0; border-left: 1px solid var(--linie);
    border-bottom: 1px solid var(--linie); cursor: pointer;
    font-size: 1.1rem; color: var(--rot); line-height: 1; transition: transform .2s;
  }
  .nav__item--sub.open .nav__subtoggle { transform: rotate(180deg); }
  .nav__submenu {
    flex: 0 0 100%; width: 100%; background: var(--creme-2);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__item--sub.open .nav__submenu { max-height: 640px; }
  .nav__submenu a { padding: 13px 22px 13px 38px; font-weight: 600; font-size: .95rem; }
  .nav__submenu-head a { color: var(--rot); font-weight: 700; }
  .leistung-row, .sub-row { grid-template-columns: 1fr; gap: 26px; }
  .leistung-row--flip .leistung-row__media, .sub-row--flip .sub-row__media { order: 0; }
  .band__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .cards, .testi__grid, .ref-grid, .footer-grid, .warum__grid, .stats, .steps, .steps--3, .teamstrip { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .topbar__left { gap: 14px; }
  .hero__inner { padding: 64px 0 76px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  /* Header kompakter: voller CTA-Text mit kleinerer Schrift, kleineres Logo */
  .nav__cta-btn { padding: 9px 12px; font-size: .74rem; letter-spacing: 0; }
  .nav__logo img { height: 40px; }
  .nav__logo-fallback { font-size: 1rem; }
  .nav__logo-fallback small { font-size: .58rem; }
}
