/* ==========================================================================
   Elektro Marques GmbH – Stylesheet
   Aufbau: Schriften · Tokens · Basis · Komponenten · Seitenbereiche ·
           Rechtsseiten · Animationen · Responsive
   ========================================================================== */

/* ---------- Schriften (lokal gehostet) ---------- */
@font-face {
  font-family: "Kelson Sans";
  src: url("../fonts/kelson-sans-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kelson Sans";
  src: url("../fonts/kelson-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --amber-50: #fef6e7;
  --amber-100: #fde9c2;
  --amber-200: #fcd98f;
  --amber-300: #fbc85c;
  --amber-400: #f9b234;
  --amber-500: #f0a015;
  --amber-700: #a0610a;
  --amber-800: #7a4b0d;
  --amber-900: #4d3008;
  --neutral-0: #ffffff;
  --neutral-50: #f7f7f6;
  --neutral-100: #efefee;
  --neutral-200: #e0e0de;
  --neutral-300: #c9c9c6;
  --neutral-400: #a3a3a0;
  --neutral-500: #7a7a77;
  --neutral-600: #575755;
  --neutral-700: #454543;
  --neutral-800: #333332;
  --neutral-900: #1f1f1e;

  --brand: var(--amber-500);
  --brand-hover: #e09410;
  --on-brand: var(--neutral-800);
  --bg: var(--neutral-50);
  --surface: var(--neutral-0);
  --surface-muted: var(--neutral-100);
  --text-primary: var(--neutral-800);
  --text-secondary: var(--neutral-600);
  --text-muted: #6b6b68;
  --border: var(--neutral-200);
  --border-strong: var(--neutral-300);
  --success: #2f9e5e;
  --success-bg: #d6f0e0;
  --success-text: #1f6e41;
  --danger: #b3261e;
  --danger-bg: #fdecea;

  --font-sans: "Kelson Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --text-4xl: 3.75rem;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --tracking-tight: -0.01em;
  --tracking-wide: 0.08em;
  --tracking-eyebrow: 0.18em;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --section-y: var(--space-9);
  --header-h: 72px;

  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --focus-ring: 0 0 0 3px rgba(249, 178, 52, 0.45);
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 700; line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber-200); color: var(--neutral-900); }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: var(--section-y) 0; }
.section--muted { background: var(--bg); }
.eyebrow { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--amber-700); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-md); background: var(--brand); color: var(--on-brand); font-weight: 700; }
.skip-link:focus { top: 12px; }

.section-head { max-width: 640px; margin: 0 auto var(--space-7); text-align: center; }
.section-head h2 { font-size: var(--text-2xl); margin: var(--space-3) 0; }
.section-head p:not(.eyebrow) { color: var(--text-secondary); font-size: var(--text-md); }

.icon-tile { display: flex; align-items: center; justify-content: center; flex: none; width: 54px; height: 54px; border-radius: var(--radius-md); background: var(--amber-100); color: var(--amber-800); font-size: 23px; }
.icon-tile--sm { width: 38px; height: 38px; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: var(--radius-md); font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 36px; padding: 8px 14px; font-size: var(--text-sm); gap: 6px; }
.btn--lg { height: 54px; padding: 14px 28px; font-size: var(--text-md); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text-primary); }
.btn--secondary:hover { background: var(--surface-muted); }
.btn--outline { background: var(--surface); border-color: var(--brand); color: var(--text-primary); }
.btn--outline:hover { background: var(--surface-muted); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; padding: 0 26px; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Header ---------- */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 0; height: 3px; background: linear-gradient(90deg, var(--amber-300), var(--brand)); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background var(--duration-base) var(--ease-out); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); height: 100%; }
.site-header__logo { display: inline-flex; height: 38px; }
.site-header__logo img { height: 38px; width: auto; }
.site-header__logo .logo-dark { display: none; }
.site-nav { display: flex; gap: var(--space-6); margin-left: var(--space-5); }
.site-nav a { font-size: var(--text-sm); font-weight: 700; color: rgba(255, 255, 255, 0.88); }
.site-nav a::after { content: ""; display: block; width: 0; height: 2px; margin-top: 3px; background: var(--brand); transition: width var(--duration-base) var(--ease-out); }
.site-nav a:hover::after { width: 100%; }
.site-header__actions { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 700; color: #fff; white-space: nowrap; }
.header-phone .icon { color: var(--brand); font-size: 17px; }
.burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--brand); border-radius: var(--radius-md); background: transparent; color: var(--brand); font-size: 20px; cursor: pointer; }

.site-header.is-solid { background: #fff; }
.site-header.is-solid .logo-light { display: none; }
.site-header.is-solid .logo-dark { display: block; }
.site-header.is-solid .site-nav a { color: var(--text-secondary); }
.site-header.is-solid .header-phone { color: var(--text-primary); }

/* Mobile-Menü (natives <dialog>) */
.mobile-nav { inset: 0 0 0 auto; width: min(84vw, 360px); height: 100dvh; max-height: none; margin: 0; padding: 0 var(--container-pad) var(--container-pad); border: 0; background: var(--neutral-900); color: #fff; }
.mobile-nav[open] { display: flex; flex-direction: column; animation: slide-in 0.35s var(--ease-out) both; }
.mobile-nav::backdrop { background: rgba(0, 0, 0, 0.55); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.mobile-nav__top img { height: 38px; width: auto; }
.mobile-nav__close { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--brand); border-radius: var(--radius-md); background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.mobile-nav nav { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-7); }
.mobile-nav nav a { font-size: var(--text-xl); font-weight: 700; }
.mobile-nav__call { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; margin-top: auto; border-radius: var(--radius-md); background: var(--brand); color: var(--on-brand); font-size: var(--text-md); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 120px 0 64px; overflow: hidden; color: #fff; background: radial-gradient(120% 120% at 80% 0%, var(--neutral-700), var(--neutral-900) 60%); }
.hero__glow { position: absolute; right: -160px; top: -120px; width: 620px; height: 620px; pointer-events: none; background: radial-gradient(circle, rgba(249, 178, 52, 0.42), rgba(249, 178, 52, 0.06) 55%, transparent 72%); will-change: transform; }
.hero__pulse { position: absolute; left: -120px; bottom: -140px; width: 460px; height: 460px; pointer-events: none; background: radial-gradient(circle, rgba(249, 178, 52, 0.16), transparent 65%); animation: glow-pulse 7s var(--ease-in-out) infinite; }
.hero__dots { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0); background-size: 42px 42px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; opacity: 0.22; }
.hero__lines path { fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-dasharray: 6 10; animation: line-flow 9s linear infinite; }
.hero__lines path + path { animation-duration: 12s; }
.hero__lines circle { fill: var(--brand); }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero__grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: var(--space-8); align-items: center; }
.hero__pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 7px 14px; border: 1px solid var(--brand); border-radius: var(--radius-full); white-space: nowrap; }
.hero__pill .icon { color: var(--brand); font-size: 13px; }
.hero__pill .eyebrow { color: #fff; }
.hero h1 { margin: var(--space-5) 0; font-size: var(--text-4xl); line-height: 1.02; color: #fff; }
.hero h1 .highlight { position: relative; white-space: nowrap; color: var(--brand); }
.hero h1 .highlight svg { position: absolute; left: 0; right: 0; bottom: -12px; width: 100%; height: 16px; max-width: none; }
.hero h1 .highlight path { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; animation: line-draw 1.3s var(--ease-out) 0.5s both; }
.hero__lead { max-width: 480px; margin-bottom: var(--space-6); font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--neutral-300); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__actions .icon { font-size: 16px; }
.trust { display: flex; flex-wrap: wrap; gap: var(--space-5); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 700; color: var(--neutral-200); white-space: nowrap; }
.trust .icon { color: var(--brand); font-size: 16px; }

.quick-card { padding: var(--space-6); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: float 6s var(--ease-in-out) infinite; }
.quick-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.quick-card__head img { height: 42px; width: auto; }
.quick-card__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand); font-size: var(--text-xs); font-weight: 700; }
.quick-card__badge .icon { font-size: 12px; }
.quick-card__label { margin-bottom: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--neutral-300); }
.quick-card__phone { display: block; margin-bottom: var(--space-5); font-size: var(--text-2xl); font-weight: 700; letter-spacing: var(--tracking-tight); color: #fff; }
.quick-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: 0; padding-top: var(--space-5); }
.quick-card__stats dd { order: -1; margin: 0; font-size: var(--text-xl); font-weight: 700; line-height: 1; color: var(--brand); }
.quick-card__stats dt { margin-top: 4px; font-size: var(--text-xs); color: var(--neutral-300); }
.quick-card__stats div { display: flex; flex-direction: column; }

.hero__cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-size: 24px; }
.hero__cue .icon { animation: cue 1.8s var(--ease-in-out) infinite; }

/* ---------- Laufband ---------- */
.marquee { overflow: hidden; padding: 16px 0; background: var(--neutral-900); }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: var(--space-6); margin: 0; padding: 0 var(--space-6) 0 0; list-style: none; }
.marquee__group li { display: flex; align-items: center; gap: var(--space-6); font-size: var(--text-sm); font-weight: 700; color: var(--neutral-300); white-space: nowrap; }
.marquee__group .icon { font-size: 10px; color: var(--brand); }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.service { position: relative; display: flex; flex-direction: column; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); transition: transform var(--duration-base) var(--ease-out); }
.service:hover { transform: translateY(-6px); }
.service .icon-tile { margin-bottom: var(--space-4); transition: transform var(--duration-base) var(--ease-out); }
.service:hover .icon-tile { transform: rotate(-6deg) scale(1.06); }
.service h3 { margin-bottom: 8px; font-size: var(--text-md); }
.service__claim { margin-bottom: 8px; font-size: var(--text-sm); font-weight: 700; line-height: var(--leading-snug); }
.service__teaser { margin-bottom: var(--space-5); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.service__more { align-self: flex-start; margin-top: auto; font-size: var(--text-sm); font-weight: 700; color: var(--amber-700); }
.service__more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service__more:focus-visible { box-shadow: none; }
.service:has(.service__more:focus-visible) { box-shadow: var(--focus-ring); }
.service--cta { justify-content: center; border: 1px solid var(--neutral-200); background: var(--neutral-800); }
.service--cta h3 { color: #fff; }
.service--cta p { margin-bottom: var(--space-4); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--neutral-300); }
.service--cta a { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 700; color: var(--brand); }
.service--cta a .icon { font-size: 12px; }

/* Detail-Dialoge der Leistungen */
.detail { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--brand); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-primary); overflow: auto; overscroll-behavior: contain; }
.detail::backdrop { background: rgba(31, 31, 30, 0.6); }
.detail[open] { animation: dialog-in 0.25s var(--ease-out) both; }
/* ohne JavaScript: Öffnen über den Anker (#leistung-…) */
.detail:target:not([open]) { position: fixed; inset: 0; z-index: 100; display: block; margin: auto; box-shadow: 0 0 0 100vmax rgba(31, 31, 30, 0.6); }
.detail__body { padding: 40px; }
.detail__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--space-5); }
.detail__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.detail h2 { font-size: var(--text-xl); line-height: 1.15; }
.detail__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--brand); border-radius: 50%; background: var(--surface); font-size: 18px; cursor: pointer; }
.detail__close:focus-visible { border-radius: 50%; }
.detail__claim { margin-bottom: var(--space-4); font-size: var(--text-md); font-weight: 700; line-height: var(--leading-snug); }
.detail__body > p { margin-bottom: var(--space-4); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.detail h3 { margin: var(--space-5) 0 var(--space-3); font-size: var(--text-base); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; line-height: var(--leading-normal); }
.checklist .icon { margin-top: 3px; font-size: 17px; color: var(--brand); }
.quote-line { margin-bottom: var(--space-4); padding: 14px 18px; border-radius: var(--radius-md); background: var(--amber-50); line-height: var(--leading-relaxed); }
.detail__body > p.detail__note { font-size: var(--text-xs); color: var(--text-muted); }
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-5); }

/* ---------- Kennzahlen ---------- */
.stats { padding: var(--space-8) 0; background: var(--brand); color: var(--on-brand); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin: 0; text-align: center; }
.stats__grid div { display: flex; flex-direction: column; }
.stats__grid dd { order: -1; margin: 0; font-size: var(--text-3xl); font-weight: 700; line-height: 1; }
.stats__grid dt { margin-top: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--amber-900); }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.about h2 { margin: var(--space-3) 0 var(--space-4); font-size: var(--text-2xl); }
.about p:not(.eyebrow) { margin-bottom: var(--space-4); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.about p.quote-line { margin: var(--space-5) 0 0; padding: 0; background: none; font-size: var(--text-md); font-weight: 700; line-height: var(--leading-snug); color: var(--text-primary); }
.about__portrait { position: relative; justify-self: center; width: 100%; max-width: 440px; margin: 0; }
.about__portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); background: var(--surface-muted); }
.about__portrait figcaption { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; padding: 12px 18px; border-radius: var(--radius-md); background: var(--surface); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-secondary); box-shadow: 0 10px 30px rgb(0 0 0 / 0.12); }
.about__portrait figcaption strong { font-size: var(--text-md); color: var(--text-primary); }

/* ---------- Ablauf ---------- */
.process { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: start; }
.process__intro { position: sticky; top: 110px; }
.process__intro h2 { margin: var(--space-3) 0 var(--space-4); font-size: var(--text-2xl); }
.process__intro > p:not(.eyebrow) { margin-bottom: var(--space-6); font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.stepper { position: relative; display: flex; flex-direction: column; gap: var(--space-5); padding-left: 6px; }
.stepper::before, .stepper__line { content: ""; position: absolute; left: 21px; top: 14px; width: 2px; }
.stepper::before { bottom: 14px; background: var(--border); }
.stepper__line { height: 0; background: var(--brand); transition: height var(--duration-slow) var(--ease-out); }
.stepper__item { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--text-muted); transition: color var(--duration-base) var(--ease-out); }
.step-dot { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--text-muted); font-size: var(--text-sm); font-weight: 700; transition: all var(--duration-base) var(--ease-out); }
.stepper-bar { display: none; }
.steps { display: flex; flex-direction: column; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.step { min-height: 180px; padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out); }
.step__head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--space-4); }
.step__num { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--surface-muted); color: var(--text-muted); font-size: var(--text-lg); font-weight: 700; transition: all var(--duration-base) var(--ease-out); }
.step h3 { font-size: var(--text-lg); transition: color var(--duration-base) var(--ease-out); }
.step p { line-height: var(--leading-relaxed); color: var(--text-secondary); transition: color var(--duration-base) var(--ease-out); }
/* Zustände setzt js/main.js beim Scrollen. Inaktive Schritte sind über die Farbe statt über opacity gedimmt:
   #8f8f8c hält 3:1 für die großen Überschriften, #757572 hält 4,5:1 für den Fließtext. */
.js .step:not(.is-active) h3 { color: #8f8f8c; }
.js .step:not(.is-active) p { color: #757572; }
.js .step.is-active { border-color: var(--brand); }
.step.is-active .step__num { background: var(--brand); color: var(--on-brand); }
.is-current .step-dot, .is-done .step-dot { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.is-current .step-dot { transform: scale(1.12); }
.stepper__item.is-current, .stepper-bar__item.is-current { color: var(--text-primary); }
.stepper__item.is-done, .stepper-bar__item.is-done { color: var(--text-secondary); }

/* ---------- Kundenstimme ---------- */
.testimonial { position: relative; padding: var(--section-y) 0; overflow: hidden; background: var(--neutral-800); color: #fff; }
.testimonial::before { content: ""; position: absolute; left: 50%; top: -80px; width: 520px; height: 320px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(249, 178, 52, 0.16), transparent); }
.testimonial .container { position: relative; z-index: 1; }
.testimonial__head { margin-bottom: var(--space-6); text-align: center; }
.testimonial__head .eyebrow { color: var(--brand); }
.testimonial__head h2 { margin-top: var(--space-3); font-size: var(--text-2xl); }
/* Karten nebeneinander; ab mehr als zwei Bewertungen wischt bzw. scrollt man seitlich */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--space-5)) / 2); gap: var(--space-5); margin: 0; padding: 0 0 var(--space-3); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--neutral-600) transparent; }
.reviews:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-lg); }
.review { scroll-snap-align: start; }
.review figure { display: flex; flex-direction: column; height: 100%; margin: 0; padding: var(--space-6); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); }
.stars { display: flex; gap: 5px; margin-bottom: var(--space-4); font-size: 18px; color: var(--brand); }
.review blockquote { flex: 1; margin: 0 0 var(--space-5); font-size: var(--text-lg); font-weight: 700; line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-sm); font-weight: 700; }
.review figcaption span { font-weight: 400; color: var(--neutral-300); }
.reviews__note { margin-top: var(--space-4); font-size: var(--text-sm); text-align: center; color: var(--neutral-300); }
.reviews__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Referenzen ---------- */
.references { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.reference { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.reference__media { position: relative; height: 260px; overflow: hidden; }
.reference__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.reference__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.reference:hover .reference__media img { transform: scale(1.06); }
.chip { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand); font-size: var(--text-xs); font-weight: 700; }
.reference__body { padding: var(--space-5); }
.reference .reference__place { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: var(--text-xs); font-weight: 700; color: var(--amber-700); }
.reference h3 { margin-bottom: 6px; font-size: var(--text-md); }
.reference p { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); }

/* ---------- CTA-Band ---------- */
.cta-band { padding: var(--space-8) 0; background: var(--neutral-900); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.cta-band h2 { margin-bottom: 8px; font-size: var(--text-2xl); }
.cta-band p { font-size: var(--text-md); color: var(--neutral-300); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-band__actions .icon { font-size: 17px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.contact > * { min-width: 0; }
.contact__intro { margin-bottom: var(--space-6); }
.contact__intro p { margin-bottom: var(--space-3); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.contact__intro p:last-child { margin: 0; font-weight: 700; color: var(--text-primary); }
.contact-list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.contact-list li, .contact-list a { display: flex; align-items: center; gap: var(--space-3); font-weight: 700; color: var(--text-secondary); }
.form-card { grid-column: 2; grid-row: 1 / span 2; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); }
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: var(--text-sm); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background-color: var(--surface); font-size: var(--text-base); outline: none; }
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { padding: 10px 12px; resize: vertical; }
.field select { padding-right: 38px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23575755' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
.form__submit { width: 100%; }
.form__hint { display: flex; gap: 10px; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.form__hint .icon { flex: none; margin-top: 4px; color: var(--amber-700); }
.form__note { font-size: var(--text-xs); color: var(--text-muted); }
.form__note a { color: inherit; text-decoration: underline; }
.form-success p + p { margin-top: 6px; }
.form-success__text { display: block; width: 100%; margin: 8px 0 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text-primary); font: inherit; font-size: var(--text-sm); line-height: var(--leading-normal); resize: vertical; }
.form-success a, .link-button { color: var(--text-primary); text-decoration: underline; }
.link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.form-success { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-md); background: var(--success-bg); }
.form-success > .icon { margin-top: 1px; font-size: 22px; color: var(--success); }
.form-success strong { display: block; margin-bottom: 3px; color: var(--success-text); }
.form-success p { font-size: var(--text-sm); color: var(--text-secondary); }

.map { grid-column: 1; overflow: hidden; border: 1px solid var(--brand); border-radius: var(--radius-lg); background: var(--bg); }
.map__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 340px; padding: 24px; text-align: center; }
.map__placeholder strong { font-size: var(--text-md); }
.map__placeholder p { max-width: 440px; font-size: var(--text-xs); line-height: var(--leading-normal); color: var(--text-muted); }
.map__placeholder p a { color: var(--text-secondary); text-decoration: underline; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(1) contrast(1.04); transition: filter 0.5s var(--ease-out); }
.map:hover iframe, .map:focus-within iframe { filter: none; }

/* ---------- FAQ (natives <details>) ---------- */
.faq { max-width: 760px; margin: 0 auto; overflow: hidden; border: 1px solid var(--brand); border-radius: var(--radius-md); background: var(--surface); }
.faq details + details { border-top: 1px solid var(--brand); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-size: var(--text-md); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 16px; color: var(--brand); transition: transform var(--duration-base) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; line-height: var(--leading-relaxed); color: var(--text-secondary); }
.section-head--compact h2 { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--neutral-900); color: var(--neutral-300); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-6); }
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 22px; }
.site-footer__brand p { max-width: 280px; margin-bottom: var(--space-4); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--neutral-400); }
.footer-phone, .footer-social { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-phone { color: var(--brand); }
.footer-phone .icon { font-size: 17px; }
.footer-social { margin-top: var(--space-3); transition: color var(--duration-fast) var(--ease-out); }
.footer-social:hover { color: var(--brand); }
.footer-social .icon { font-size: 18px; }
.site-footer h2 { margin-bottom: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-normal); color: #fff; text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.site-footer ul { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.site-footer ul a { font-size: var(--text-sm); color: var(--neutral-400); }
.site-footer ul a:hover { color: var(--brand); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: var(--space-4); padding-bottom: var(--space-4); font-size: var(--text-xs); color: var(--neutral-400); }
.site-footer__bottom a { color: var(--neutral-400); text-decoration: underline; }
.site-footer__bottom a:hover { color: var(--brand); }

/* ---------- Schwebende Elemente ---------- */
.call-pill, .to-top { position: fixed; bottom: 22px; z-index: 45; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), visibility 0s linear var(--duration-base); }
.call-pill { left: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand); font-size: var(--text-sm); font-weight: 700; }
.call-pill .icon { font-size: 15px; }
.to-top { right: 22px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--brand); border-radius: 50%; background: var(--surface); font-size: 18px; transform: translateY(16px) scale(0.9); }
.call-pill.is-visible, .to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: calc(var(--header-h) + 64px) 32px 96px; line-height: 1.7; color: var(--text-secondary); }
.legal h1 { margin-bottom: 8px; font-size: clamp(28px, 8vw, 38px); letter-spacing: -0.5px; color: var(--text-primary); overflow-wrap: break-word; hyphens: auto; }
.legal h2 { margin: 34px 0 10px; font-size: 20px; color: var(--text-primary); }
.legal p { margin-bottom: 6px; }
.legal a:not(.btn) { color: var(--amber-700); text-decoration: underline; }
.legal ul { margin: 0 0 12px 22px; padding: 0; }
.legal li { margin-bottom: 5px; }
.legal__accent { width: 64px; height: 4px; margin: 16px 0 8px; border-radius: 4px; background: var(--brand); }
.error-page { text-align: center; }
.error-page .legal__accent { margin-inline: auto; }
.error-page .btn { margin-top: var(--space-5); }

/* ---------- Animationen ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.85; } }
@keyframes line-flow { to { stroke-dashoffset: -260; } }
@keyframes line-draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(9px); opacity: 1; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Einblenden beim Scrollen – nur mit JavaScript, Inhalte bleiben ohne JS sichtbar */
.js [data-reveal] { transform: translateY(28px); transition: transform 0.7s var(--ease-out); }
.js [data-reveal].is-in { transform: none; }
html:has(dialog[open]) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 901px) {
  .form-card, .map { align-self: stretch; }
  .map__placeholder, .map iframe { height: 100%; min-height: 280px; }
}

@media (max-width: 900px) {
  :root { --section-y: var(--space-8); }
  .site-nav, .site-header__cta { display: none; }
  .burger { display: inline-flex; }
  .hero__grid, .process, .contact, .about { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.7rem; }
  .services, .references { grid-template-columns: 1fr 1fr; }
  .about { gap: 2rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .form-card, .map { grid-column: auto; grid-row: auto; }

  /* Ablauf: kompakte Stepper-Leiste bleibt sichtbar, Karten schieben sich übereinander */
  .process { display: block; }
  .process__intro { position: static; margin-bottom: 1.25rem; }
  .stepper { display: none; }
  .stepper-bar { position: sticky; top: var(--header-h); z-index: 20; display: block; margin: 0 calc(var(--container-pad) * -1) 2rem; padding: 12px var(--container-pad) 14px; background: var(--surface); }
  .stepper-bar__inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .stepper-bar__inner::before, .stepper-bar__line { content: ""; position: absolute; top: 13px; left: 12.5%; height: 2px; }
  .stepper-bar__inner::before { right: 12.5%; background: var(--border); }
  .stepper-bar__line { width: 0; background: var(--brand); transition: width var(--duration-slow) var(--ease-out); }
  .stepper-bar__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; line-height: 1.25; text-align: center; color: var(--text-muted); }
  .stepper-bar .step-dot { width: 28px; height: 28px; font-size: 12px; }
  .step { position: sticky; top: 182px; min-height: 230px; }
  .js .step:not(.is-active) h3 { color: var(--text-primary); }
  .js .step:not(.is-active) p { color: var(--text-secondary); }
}

@media (min-width: 641px) and (max-width: 900px) {
  .service--cta { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .reviews { grid-auto-columns: 86%; margin-inline: calc(var(--container-pad) * -1); padding-inline: var(--container-pad); scroll-padding-inline: var(--container-pad); }
  .review figure { padding: var(--space-5); }
  .review blockquote { font-size: var(--text-md); }
  .services, .references { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero__actions, .cta-band__actions { flex-direction: column; align-items: stretch; }
  .hero__pill .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .trust { flex-wrap: nowrap; gap: 10px; }
  .trust li { gap: 5px; font-size: clamp(10.5px, 3vw, 13px); }
  .trust .icon { font-size: 13px; }
  .form__row { grid-template-columns: 1fr; }
  .map__placeholder, .map iframe { height: 280px; }
  .detail { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .detail__body { padding: 20px; }
  .checklist { grid-template-columns: 1fr; }
  .detail__actions { flex-direction: column; }
  .detail__actions .btn { width: 100%; }
  .legal { padding: calc(var(--header-h) + 48px) 20px 72px; }
}

@media (max-width: 420px) {
  .hero__pill { gap: 8px; padding: 7px 12px; }
  .hero__pill .eyebrow { font-size: 10px; letter-spacing: 0.09em; }
  /* Nummer nur optisch ausblenden, Screenreader lesen sie weiter vor */
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
