/* =============================================================
   Handwerker-Generator (Tier 1) — Conversion-Landingpage
   Vorher/Nachher-Slider + Multi-Step-Angebotsrechner.
   Theme je Gewerk via [data-theme]: galabau | bad | maler | dach | boden
   ============================================================= */

/* ---------- Base tokens ---------- */
:root {
  --space-2xs: 0.25rem; --space-xs: 0.5rem; --space-sm: 0.75rem; --space-md: 1rem;
  --space-lg: 1.5rem; --space-xl: 2.5rem; --space-2xl: 4rem; --space-3xl: 6.5rem;

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;

  --fs-hero: clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.8rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem; --fs-small: 0.9rem;

  --container: 1200px; --container-narrow: 820px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --dur: 0.55s;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.05);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);
  --shadow-lg: 0 30px 60px rgba(15,23,42,.16);
}

/* ---------- THEME: GaLaBau / Pflasterbau ---------- */
[data-theme="galabau"] {
  --color-bg: #ffffff; --color-surface: #f6f4f0; --color-surface-2: #ece6dc;
  --color-dark: #1f2937; --color-text: #1f2937; --color-text-muted: #5b6472;
  --color-primary: #a8331c; --color-primary-strong: #8a2a17;
  --color-primary-contrast: #ffffff; --color-accent: #d4a574;
  --color-border: #e4ddd1;
  --hero-overlay: linear-gradient(100deg, rgba(31,41,55,.62) 0%, rgba(31,41,55,.30) 50%, rgba(31,41,55,.10) 100%);
}
/* ---------- THEME: Bad-Sanierung / Sanitär ---------- */
[data-theme="bad"] {
  --color-bg: #ffffff; --color-surface: #f5f2ed; --color-surface-2: #e9e3d9;
  --color-dark: #1e3a5f; --color-text: #16263a; --color-text-muted: #586a7e;
  --color-primary: #1e3a5f; --color-primary-strong: #142a47;
  --color-primary-contrast: #ffffff; --color-accent: #b87333;
  --color-border: #e3ddd2;
  --hero-overlay: linear-gradient(100deg, rgba(30,58,95,.64) 0%, rgba(30,58,95,.32) 50%, rgba(30,58,95,.12) 100%);
}
/* ---------- THEME: Maler / Innenausbau ---------- */
[data-theme="maler"] {
  --color-bg: #ffffff; --color-surface: #f5f2ee; --color-surface-2: #e8e1d8;
  --color-dark: #1e3a5f; --color-text: #20262e; --color-text-muted: #5f6670;
  --color-primary: #7f1d1d; --color-primary-strong: #641515;
  --color-primary-contrast: #ffffff; --color-accent: #1e3a5f;
  --color-border: #e4ddd3;
  --hero-overlay: linear-gradient(100deg, rgba(32,38,46,.62) 0%, rgba(32,38,46,.30) 50%, rgba(32,38,46,.10) 100%);
}
/* ---------- THEME: Dach / Fassade ---------- */
[data-theme="dach"] {
  --color-bg: #ffffff; --color-surface: #f1f4f7; --color-surface-2: #e2e8ef;
  --color-dark: #4b5563; --color-text: #1f2733; --color-text-muted: #5a6473;
  --color-primary: #ea580c; --color-primary-strong: #c2410c;
  --color-primary-contrast: #ffffff; --color-accent: #0ea5e9;
  --color-border: #dde3ea;
  --hero-overlay: linear-gradient(100deg, rgba(31,39,51,.62) 0%, rgba(31,39,51,.30) 50%, rgba(31,39,51,.10) 100%);
}
/* ---------- THEME: Bodenleger / Parkett / Treppe ---------- */
[data-theme="boden"] {
  --color-bg: #ffffff; --color-surface: #f7f3ee; --color-surface-2: #ece2d4;
  --color-dark: #2b2018; --color-text: #2b2018; --color-text-muted: #6b5e51;
  --color-primary: #92400e; --color-primary-strong: #78350f;
  --color-primary-contrast: #ffffff; --color-accent: #1f6b4b;
  --color-border: #e7dccb;
  --hero-overlay: linear-gradient(100deg, rgba(43,32,24,.62) 0%, rgba(43,32,24,.30) 50%, rgba(43,32,24,.10) 100%);
}
/* ---------- THEME: Fahrzeugpflege / Autoaufbereitung (DARK) ---------- */
[data-theme="fahrzeugpflege"] {
  --color-bg: #0c0e11; --color-surface: #14171c; --color-surface-2: #1c2026;
  --color-dark: #08090b; --color-text: #f2f3f5; --color-text-muted: #9aa1ab;
  --color-primary: #d11f2a; --color-primary-strong: #a8161f;
  --color-primary-contrast: #ffffff; --color-accent: #c8ccd2;
  --color-border: #272c33;
  --hero-overlay: linear-gradient(100deg, rgba(8,9,11,.80) 0%, rgba(8,9,11,.48) 52%, rgba(8,9,11,.18) 100%);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 60px rgba(0,0,0,.6);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65;
  color: var(--color-text); background: var(--color-bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-lg); }
.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.section--surface { background: var(--color-surface); }
.section--dark { background: var(--color-dark); color: #fff; }
.section--dark .eyebrow { color: var(--color-accent); }
.section-head { max-width: var(--container-narrow); margin-inline: auto; text-align: center; margin-bottom: var(--space-2xl); }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-small); color: var(--color-primary); margin-bottom: var(--space-sm); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--space-md); }
.section-head p { font-size: var(--fs-lead); color: var(--color-text-muted); }
.section--dark .section-head p { color: rgba(255,255,255,.8); }
.stars { color: #f59e0b; letter-spacing: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .9em 1.6em; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--color-primary-strong); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.btn--lg { font-size: 1.08rem; padding: 1.02em 1.9em; }

/* ---------- TOP-BAR ---------- */
.topbar { position: sticky; top: 0; z-index: 60; background: var(--color-dark); color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--color-primary); color: var(--color-primary-contrast); font-weight: 800; }
.brand__logo { height: 34px; width: auto; max-width: 170px; object-fit: contain; }
.topbar__hours { display: flex; align-items: center; gap: .5em; font-size: var(--fs-small); color: rgba(255,255,255,.78); }
.topbar__hours .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.topbar__cta { display: flex; align-items: center; gap: var(--space-md); }
.topbar__phone { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.topbar__phone:hover { color: var(--color-accent); }

/* ---------- HERO (60/40) ---------- */
.hero { position: relative; isolation: isolate; padding-block: var(--space-3xl); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: center; }
.hero__copy { color: #fff; }
.hero__copy h1 { font-size: var(--fs-hero); margin-bottom: var(--space-md); text-shadow: 0 2px 18px rgba(0,0,0,.45); text-wrap: balance; }
.hero__lead { font-size: var(--fs-lead); max-width: 46ch; margin-bottom: var(--space-lg); opacity: .96; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero__bullets { display: grid; gap: .5em; margin-bottom: var(--space-lg); }
.hero__bullets li { position: relative; padding-left: 1.7em; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero__bullets li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--color-accent); }
.hero__bullets li::after { content: "✓"; position: absolute; left: .22em; top: .02em; font-size: .8em; font-weight: 800; color: var(--color-dark); }
.hero__rating { display: flex; align-items: center; gap: .5em; font-size: var(--fs-small); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero__rating strong { font-size: 1.15rem; }

/* ---------- ANGEBOTSRECHNER ---------- */
.calc { background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-lg); border: 1px solid var(--color-border); }
.calc__head { text-align: center; margin-bottom: var(--space-md); }
.calc__head strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.calc__head span { font-size: var(--fs-small); color: var(--color-text-muted); }
.calc__progress { height: 6px; border-radius: var(--radius-pill); background: var(--color-surface-2); overflow: hidden; margin-bottom: .4rem; }
.calc__bar { display: block; height: 100%; width: 25%; background: var(--color-primary); border-radius: var(--radius-pill); transition: width .3s var(--ease); }
.calc__stepinfo { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.calc__step { border: 0; padding: 0; display: none; }
.calc__step.is-active { display: block; animation: calcIn .25s var(--ease); }
@keyframes calcIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.calc__step legend { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: var(--space-md); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.chip { font: inherit; font-weight: 600; text-align: left; padding: .8em 1em; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); background: var(--color-bg); color: var(--color-text); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.chip:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.chip.is-selected { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.calc__label { display: grid; gap: 4px; font-weight: 600; font-size: var(--fs-small); margin-bottom: var(--space-sm); }
.calc__label input { font: inherit; padding: .8em 1em; border-radius: var(--radius-sm); border: 1.5px solid var(--color-border); background: var(--color-bg); color: var(--color-text); }
.calc__label input:focus { outline: none; border-color: var(--color-primary); }
.calc__label small { font-weight: 500; color: var(--color-text-muted); }
.calc__opt { color: var(--color-text-muted); font-weight: 500; }
.calc__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-sm); }
.calc__nav .btn { flex: 1; }
.calc__back { background: none; border: 0; color: var(--color-text-muted); font: inherit; font-weight: 600; cursor: pointer; padding: .5em 0; }
.calc__back:hover { color: var(--color-primary); }
.calc__fineprint { display: block; text-align: center; font-size: .82rem; color: var(--color-text-muted); margin-top: var(--space-sm); }
.calc__alt { text-align: center; font-size: var(--fs-small); color: var(--color-text-muted); margin-top: var(--space-md); }
.calc__alt a { color: var(--color-primary); font-weight: 700; }
.calc__success { text-align: center; padding: var(--space-md) 0; }
.calc__success.is-active { display: block; }
.calc__check { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--space-md); border-radius: 50%; background: color-mix(in srgb, var(--color-accent) 18%, transparent); color: var(--color-accent); font-size: 1.6rem; font-weight: 800; }
.calc__success strong { display: block; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: var(--space-xs); }
.calc__success p { color: var(--color-text-muted); margin-bottom: var(--space-md); }

/* ---------- TRUST-STRIP ---------- */
.trustband { background: var(--color-dark); color: #fff; }
.trustband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-md); }
.trustband__group { display: flex; align-items: center; gap: .6em; font-size: var(--fs-small); color: rgba(255,255,255,.9); }
.trustband__badges { gap: var(--space-sm); flex-wrap: wrap; }
.badge { border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-pill); padding: .35em .9em; font-weight: 600; }
.trustband__stats { font-weight: 600; }
.trustband__stats .sep { opacity: .5; }

/* ---------- SOCIAL-PROOF ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.review { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.review p { margin: var(--space-sm) 0 var(--space-md); }
.review footer { display: flex; align-items: center; gap: .6em; font-size: var(--fs-small); color: var(--color-text-muted); font-weight: 600; }
.review__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--color-primary) 14%, transparent); color: var(--color-primary); font-weight: 800; }

/* ---------- VORHER-NACHHER-SLIDER ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.ba { background: var(--color-bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.ba__slider { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: pan-y; }
.ba__slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Bild bleibt volle Slider-Breite (object-fit cover aus .ba__slider img greift) — nur die
   clip-path-Kante wandert. So bleibt das Motiv fix, der Regler deckt nur alt/neu auf (kein Verschieben). */
.ba__before { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; }
.ba__handle span::before { content: "⟺"; font-size: 1rem; color: var(--color-dark); }
.ba__tag { position: absolute; bottom: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.55); padding: .25em .7em; border-radius: var(--radius-pill); }
.ba__tag--before { left: 10px; }
.ba__tag--after { right: 10px; }
.ba figcaption { padding: var(--space-md) var(--space-lg) var(--space-lg); font-size: var(--fs-small); color: var(--color-text-muted); }
.ba figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--color-text); margin-bottom: 2px; }

/* ---------- OFFER / PREIS ---------- */
.offer { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-xl); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); align-items: start; }
.offer__incl h3 { font-size: var(--fs-h3); margin-bottom: var(--space-md); }
.checklist { display: grid; gap: var(--space-sm); }
.checklist li { display: flex; align-items: flex-start; gap: .7em; font-weight: 600; }
.checklist li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--color-accent) 18%, transparent); color: var(--color-accent); font-size: .85rem; font-weight: 800; margin-top: 3px; }
.offer__price { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-lg); display: grid; gap: var(--space-sm); }
.offer__price-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-border); }
.offer__price-row span { color: var(--color-text-muted); font-size: var(--fs-small); }
.offer__price-row strong { font-family: var(--font-display); font-size: 1.1rem; text-align: right; }
.offer__price-row--guar strong { color: var(--color-primary); }
.offer__note { font-size: .82rem; color: var(--color-text-muted); font-style: italic; }

/* ---------- PROZESS (3) ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.step3 { text-align: center; padding: var(--space-md); }
.step3__num { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-md); border-radius: 50%; background: var(--color-primary); color: var(--color-primary-contrast); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.step3 h3 { font-size: var(--fs-h3); margin-bottom: var(--space-xs); }
.step3 p { color: rgba(255,255,255,.78); font-size: var(--fs-small); margin-bottom: var(--space-sm); }
.step3__time { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--color-accent); border: 1px solid color-mix(in srgb, var(--color-accent) 50%, transparent); border-radius: var(--radius-pill); padding: .2em .8em; }

/* ---------- ÜBER UNS ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-2xl); align-items: center; }
.owner-ph { position: relative; }
.owner-ph img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.owner-ph .placeholder-note { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff; padding: .35em .8em; border-radius: var(--radius-pill); font-style: normal; white-space: nowrap; }
.split h2 { font-size: var(--fs-h2); margin-bottom: var(--space-md); }
.split p { color: var(--color-text-muted); margin-bottom: var(--space-md); }
.split .checklist { margin: var(--space-lg) 0; }
.promise { border-left: 3px solid var(--color-primary); padding-left: var(--space-md); color: var(--color-text) !important; }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; display: grid; gap: var(--space-sm); }
.faq__item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: var(--space-lg); font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--color-primary); transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a p { padding: 0 var(--space-lg) var(--space-lg); color: var(--color-text-muted); }

/* ---------- FINAL CTA ---------- */
.finalcta { position: relative; isolation: isolate; padding-block: var(--space-3xl); color: #fff; text-align: center; }
.finalcta__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.finalcta__media img { width: 100%; height: 100%; object-fit: cover; }
.finalcta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.72)); }
.finalcta__inner { max-width: var(--container-narrow); }
.finalcta__badge { display: inline-block; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-pill); padding: .4em 1.1em; font-weight: 700; font-size: var(--fs-small); margin-bottom: var(--space-md); }
.finalcta h2 { font-size: var(--fs-h2); margin-bottom: var(--space-md); text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.finalcta p { font-size: var(--fs-lead); opacity: .94; margin-bottom: var(--space-xl); }
.finalcta__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; margin-bottom: var(--space-lg); }
.finalcta__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.finalcta__actions .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.finalcta__trust { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; font-size: var(--fs-small); opacity: .85; }

/* ---------- FOOTER ---------- */
.footer { background: var(--color-surface-2); padding-block: var(--space-2xl) var(--space-lg); }
.footer .brand { color: var(--color-text); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer h4 { font-size: 1rem; margin-bottom: var(--space-md); }
.footer a { color: var(--color-text-muted); display: block; padding: 3px 0; }
.footer a:hover { color: var(--color-primary); }
.footer__bottom { border-top: 1px solid var(--color-border); padding-top: var(--space-lg); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); font-size: var(--fs-small); color: var(--color-text-muted); }
.placeholder-note { font-size: var(--fs-small); color: var(--color-text-muted); font-style: italic; }

/* ---------- STICKY MOBILE BAR ---------- */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 70; display: none; gap: var(--space-xs); padding: var(--space-sm); background: color-mix(in srgb, var(--color-bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--color-border); }
.sticky-cta .btn { flex: 1; padding: .8em .6em; font-size: .9rem; }
.sticky-cta.is-hidden { transform: translateY(120%); transition: transform .25s var(--ease); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { 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; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .reviews, .ba-grid, .steps3 { grid-template-columns: 1fr 1fr; }
  .offer, .split { grid-template-columns: 1fr; gap: var(--space-xl); }
  .split__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .topbar__hours { display: none; }
}
@media (max-width: 640px) {
  .reviews, .ba-grid, .steps3, .footer__grid { grid-template-columns: 1fr; }
  .container { padding-inline: var(--space-md); }
  .section { padding-block: var(--space-2xl); }
  .hero { padding-block: var(--space-xl); }
  .hero__copy h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .topbar__cta .btn { display: none; }
  .sticky-cta { display: flex; padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .chips { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   FAHRZEUGPFLEGE-POLISH (Automotive Dark) — projektspezifisch
   ============================================================= */

/* Dezenter roter Glow + Vignette über dem Hero-Bild */
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 78% 18%, color-mix(in srgb, var(--color-primary) 26%, transparent) 0%, transparent 55%),
    radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,.55) 0%, transparent 60%);
  mix-blend-mode: screen; pointer-events: none;
}

/* Glassmorphism-Rechnerkarte */
.calc {
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
}
.calc__head strong { color: #fff; }

/* Shine-Sweep auf primären Buttons */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn--primary:hover::after { left: 130%; }

/* Trust-Strip: roter Hauch + monospace-Zahl */
.trustband { border-block: 1px solid var(--color-border); background: linear-gradient(180deg, var(--color-surface-2), var(--color-dark)); }
.trustband__stats strong { color: var(--color-primary); font-family: var(--font-display); font-size: 1.25rem; }
.badge { background: color-mix(in srgb, var(--color-primary) 10%, transparent); border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }

/* Projekt-Galerie (statische Karten aus echten Fotos) */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.proj {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border)); }
.proj__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.06); }
.proj__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
.proj figcaption { padding: var(--space-md) var(--space-lg) var(--space-lg); font-size: var(--fs-small); color: var(--color-text-muted); }
.proj figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--color-text); margin-bottom: 2px; }

/* PLZ-Radius-Check */
.plz-hint { min-height: 1.1em; font-weight: 700; }
.plz-hint.is-ok { color: #4ade80; }
.plz-hint.is-out { color: var(--color-primary); }

/* Karten/Reviews etwas heller absetzen auf Dunkel */
.review { box-shadow: var(--shadow-md); }
.section--surface { border-block: 1px solid var(--color-border); }

@media (max-width: 980px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

/* =============================================================
   CINEMATIC HERO + STUDIO-LIGHT + MODAL + GLANZ-REGLER
   ============================================================= */

/* Hero wird zum Filmbild — Bild dominiert, Text links */
.hero { min-height: 92vh; display: flex; align-items: center; padding-block: var(--space-2xl); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { z-index: 1; }                 /* dunkle Lese-Überlagerung */
.hero__inner { width: 100%; }
.hero__copy { max-width: 660px; color: #fff; }

.hero__eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  font-size: .78rem; color: var(--color-accent); margin-bottom: var(--space-md);
  padding: .35em .9em; border: 1px solid color-mix(in srgb, #fff 22%, transparent); border-radius: var(--radius-pill);
  background: rgba(0,0,0,.25); backdrop-filter: blur(6px);
}
.hero__copy h1 { font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .98; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0,0,0,.5); margin-bottom: var(--space-lg); }
.hero__hl { background: linear-gradient(100deg, #fff 0%, var(--color-accent) 55%, var(--color-primary) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { font-size: var(--fs-lead); max-width: 52ch; margin-bottom: var(--space-xl); opacity: .95; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-xl); }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.hero__meta-item { font-size: var(--fs-small); color: rgba(255,255,255,.82); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero__meta-item b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fff; }

/* Maus-folgendes Studio-Licht (Reflexe leuchten unter dem Cursor) + driftendes Lichtband */
.hero__sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side at var(--mx,72%) var(--my,38%), rgba(255,255,255,.20), rgba(255,255,255,.05) 38%, transparent 62%);
  opacity: .55; transition: opacity .35s var(--ease);
}
.hero__sheen::after {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  animation: heroSweep 9s var(--ease) infinite;
}
@keyframes heroSweep { 0% { transform: translateX(-55%); } 50% { transform: translateX(55%); } 100% { transform: translateX(-55%); } }
.hero:hover .hero__sheen { opacity: .95; }

.hero__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: .78rem; letter-spacing: .04em; color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.3); padding: .4em 1em; border-radius: var(--radius-pill);
  backdrop-filter: blur(6px); animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- MODAL (Angebotsrechner) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--space-lg); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,5,7,.74); backdrop-filter: blur(7px); animation: mFade .25s ease; }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 470px; max-height: 92vh; overflow: auto; animation: mPop .32s var(--ease); }
.modal__panel .calc { width: 100%; background: var(--color-surface); border-color: color-mix(in srgb, #fff 14%, transparent); }
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 5; width: 38px; height: 38px; line-height: 1;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-surface-2); color: var(--color-text); font-size: 1.5rem; cursor: pointer; transition: background .15s, transform .15s;
}
.modal__close:hover { background: var(--color-primary); color: #fff; transform: rotate(90deg); }
@keyframes mFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mPop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }

/* ---------- GLANZ-REGLER (Der Faude-Effekt) ---------- */
.fxsec { position: relative; }
.fxsec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 70%); pointer-events: none; }
.ba--wide { max-width: 1040px; margin-inline: auto; box-shadow: var(--shadow-lg); }
.ba--wide .ba__slider { aspect-ratio: 16/9; cursor: ew-resize; }
.fx-matte { filter: brightness(.58) contrast(.72) saturate(.22) sepia(.16) blur(.7px); }
/* Schäbig/oxidiert: trübe graue Schicht nur auf der Matt-Seite */
.fxsec .ba__before::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(180deg, rgba(86,88,92,.30), rgba(54,55,60,.40));
}
.fxsec .ba__before::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background: radial-gradient(140% 120% at 30% 20%, transparent 40%, rgba(0,0,0,.55) 100%);
}
.fx-note { display: block; font-size: .86rem; color: var(--color-text-muted); margin-top: .5rem; font-style: italic; }
.ba__handle span::before { color: var(--color-dark); }

/* ---------- Hero responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: 84vh; }
}
@media (max-width: 640px) {
  .hero { min-height: 76vh; padding-block: var(--space-xl); }
  .hero__copy h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero__actions { gap: var(--space-sm); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__hint { display: none; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-width: 100%; max-height: 94vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .ba--wide .ba__slider { aspect-ratio: 4/3; }
}

/* Vorher/Nachher-Paar-Raster (echte KI-Paare) */
.ba-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); max-width: 1040px; margin-inline: auto; }
.ba-pair-grid .ba__slider { aspect-ratio: 16/10; }
@media (max-width: 760px) { .ba-pair-grid { grid-template-columns: 1fr; } }
