/* =========================================================
   Bergedorfer Autolackiererei — Design System v3
   Dark Premium / Automotive-Studio-Look
   EIN Schriftsystem: Archivo (variabel — Breite + Gewicht)
   ========================================================= */

/* Schrift lokal gehostet — keine Verbindung zu Google-Servern,
   damit keine Besucher-IP ohne Einwilligung übertragen wird (DSGVO). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Surfaces */
  --bg: #06090F;
  --bg-alt: #0A0F17;
  --surface: #0E1522;

  /* Lines & text */
  --line: rgba(234, 238, 244, 0.08);
  --line-strong: rgba(234, 238, 244, 0.2);
  --text: #EAEEF4;
  --text-soft: rgba(234, 238, 244, 0.75);
  --muted: #8C99AC;

  /* Brand accent (Logo-Stahlblau) */
  --accent: #4FA8E5;
  --accent-deep: #1668B3;

  /* Typography — eine Familie, Hierarchie über Breite/Gewicht */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1280px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  /* Sagt dem Browser, dass die Seite dunkel ist — sonst rendert er einen
     hellen Scrollbalken gegen den dunklen Grund. */
  color-scheme: dark;
  /* Kein grauer Aufblitz beim Antippen auf dem Handy */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
/* <picture> soll keine eigene Box bilden — sonst greifen Layout-Regeln
   für das <img> nicht mehr so wie ohne Wrapper. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
strong { font-weight: 600; }

/* Überschriften auf möglichst gleich lange Zeilen verteilen, statt ein
   einzelnes Wort auf der letzten Zeile hängen zu lassen. */
h1, h2, h3, .section__title, .cta__title, .notfound__title, .legal__title { text-wrap: balance; }
/* Verhindert einzelne Schlusswörter am Absatzende */
p, li { text-wrap: pretty; }

::selection { background: var(--accent); color: #06090F; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 2000;
  background: var(--text); color: var(--bg); padding: 10px 18px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nur für Screenreader und Suchmaschinen — optisch entfernt, aber im Dokument */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* =========================================================
   Helles Sektions-Schema — gleiche Komponenten, helle Töne.
   Alle Komponenten lesen die Tokens, daher reicht die Klasse
   .light auf einer Sektion, um sie komplett umzufärben.
   ========================================================= */
.light {
  --bg: #F2F4F8;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --line: rgba(12, 18, 32, 0.1);
  --line-strong: rgba(12, 18, 32, 0.3);
  --text: #0C1220;
  --text-soft: rgba(12, 18, 32, 0.78);
  --muted: #5D6A80;
  --accent: #1668B3; /* dunkleres Logo-Blau — Kontrast auf hellem Grund */
  background: var(--bg);
  color: var(--text);
}
.light--white { --bg: #FFFFFF; --bg-alt: #F2F4F8; --surface: #F2F4F8; }

/* =========================================================
   Technische Mikro-Typografie
   Archivo hat eine Breitenachse (75–125%), die bisher ungenutzt war.
   Alle Kleinst-Labels laufen schmal wie auf einem Typenschild —
   der Kontrast zu den breit laufenden Überschriften (108–118%)
   gibt der Seite den Werkstatt-Charakter.
   ========================================================= */
.tag, .stat__label, .footer__title, .contact__label, .band__cap,
.gallery__cap, .score__count, .legal__data dt, .legal__updated,
.philo__cap, .reviews__more a, .legal__back {
  font-stretch: 84%;
}
.nav__link, .btn, .header__phone { font-stretch: 90%; }

/* Micro-Label — wiederkehrendes Ordnungselement */
.tag {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted);
}
.tag__rule { width: 40px; height: 1px; background: var(--accent); flex-shrink: 0; }

/* =========================================================
   Buttons — scharfkantig, Farb-Wipe
   ========================================================= */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.9rem;
  font-weight: 600; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
/* Leichtes Eindrücken beim Klick — der Button fühlt sich physisch an */
.btn:active { transform: translateY(1px) scale(.992); }

/* Invertiert automatisch: hell auf dunklen, dunkel auf hellen Sektionen */
.btn--light { background: var(--text); color: var(--bg); }
.btn--light::before { background: var(--accent); }
.light .btn--light:hover { color: #fff; }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }

.btn--lg { padding: 1.15rem 2.2rem; font-size: .8rem; }
.btn--sm { padding: .8rem 1.4rem; font-size: .72rem; }
.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

/* min-height sichert das 44px-Touch-Ziel; das 42px-Logo bleibt zentriert */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand__logo { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand--footer .brand__logo { height: 48px; }

.nav__list { display: flex; align-items: center; gap: 1.9rem; }
.nav__link {
  position: relative; padding: .4rem 0;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.header__actions { display: flex; align-items: center; gap: 1.6rem; }
.header__phone {
  font-size: .92rem; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--text-soft); transition: color .25s var(--ease);
}
.header__phone:hover { color: var(--accent); }

/* Mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--text); transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 1100;
  width: min(88vw, 400px); height: 100dvh;
  background: #090E16; border-left: 1px solid var(--line);
  padding: calc(var(--header-h) + 20px) 32px 32px;
  transform: translateX(105%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav__link {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.15rem .1rem;
  font-size: 1.3rem; font-weight: 650; font-stretch: 110%;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color .25s var(--ease), padding-left .3s var(--ease);
}
.mobile-nav__link:hover { color: var(--accent); padding-left: .6rem; }
.mobile-nav__num { font-size: .7rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); font-stretch: 100%; }
.mobile-nav__actions { margin-top: auto; display: grid; gap: .8rem; padding-top: 1.5rem; }
.nav-scrim {
  position: fixed; inset: 0; z-index: 1050; background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px); opacity: 0; transition: opacity .35s var(--ease);
}
.nav-scrim.is-visible { opacity: 1; }

/* =========================================================
   Hero — echtes Lack-Foto, monumentale Typo, Stats unten
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: var(--header-h);
  overflow: hidden;
  /* Ein ruhiger Marken-Verlauf statt Foto — der Swoosh ist das einzige Bildelement */
  background:
    radial-gradient(75% 65% at 78% 16%, rgba(36, 85, 127, .5) 0%, transparent 62%),
    linear-gradient(160deg, #11233C 0%, #06090F 68%);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
/* Logo-Swoosh — läuft zur Textseite hin weich aus */
.hero__brand {
  position: absolute; top: 50%; right: -7%; transform: translateY(-50%);
  height: 112%; aspect-ratio: 1184 / 1056;
  /* WebP (35 KB) mit PNG-Fallback (481 KB) für sehr alte Browser */
  background: url("../img/swoosh-silber.png") center / contain no-repeat;
  background-image: -webkit-image-set(url("../img/swoosh-silber.webp") type("image/webp"), url("../img/swoosh-silber.png") type("image/png"));
  background-image: image-set(url("../img/swoosh-silber.webp") type("image/webp"), url("../img/swoosh-silber.png") type("image/png"));
  opacity: .95;
  filter: brightness(1.05) contrast(1.03) drop-shadow(0 24px 60px rgba(8, 14, 24, .5));
  -webkit-mask-image: linear-gradient(100deg, transparent 6%, #000 42%);
          mask-image: linear-gradient(100deg, transparent 6%, #000 42%);
  pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0; opacity: .4; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-block: 3rem;
}
.hero__content .tag { color: var(--text-soft); margin-bottom: 2.4rem; }

.hero__title {
  font-weight: 740; font-stretch: 118%;
  font-size: clamp(2.2rem, 9vw, 7.2rem);
  line-height: .96; letter-spacing: .005em; text-transform: uppercase;
  margin-bottom: 2.8rem;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; }
.hero__outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(234, 238, 244, .85);
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .hero__outline { color: var(--accent); }
}

.hero__row {
  display: grid; grid-template-columns: minmax(0, 50ch) auto;
  gap: 2rem 4rem; align-items: center;
}
.hero__lead { color: var(--text-soft); font-size: 1.04rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Kennzahlen als ruhige Leiste am Hero-Fuß */
.hero__stats { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.hero__stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.7rem 2rem 1.8rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num {
  display: block; font-weight: 640; font-stretch: 112%;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; margin-top: .55rem;
  font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

/* Hero-Intro-Choreografie (nur mit JS) */
.has-js .hero__line > span { transform: translateY(110%); transition: transform 1s var(--ease-out); }
/* Von hinten gezählt — so bleibt die Staffelung korrekt, auch weil vor den
   Zeilen ein .sr-only-Element für Screenreader/SEO steht. */
.has-js .hero__line:nth-last-child(3) > span { transition-delay: .12s; }
.has-js .hero__line:nth-last-child(2) > span { transition-delay: .24s; }
.has-js .hero__line:nth-last-child(1) > span { transition-delay: .36s; }
.has-js .hero__content .tag,
.has-js .hero__row,
.has-js .hero__stats {
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.has-js .hero__content .tag { transition-delay: .05s; }
.has-js .hero__row { transition-delay: .65s; }
.has-js .hero__stats { transition-delay: .85s; }
.has-js .hero.is-ready .hero__line > span { transform: none; }
.has-js .hero.is-ready .hero__content .tag,
.has-js .hero.is-ready .hero__row,
.has-js .hero.is-ready .hero__stats { opacity: 1; transform: none; }

/* =========================================================
   Sections (gemeinsam)
   ========================================================= */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }

.section__head { margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.section__head .tag { margin-bottom: 1.8rem; }
.section__head-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40ch);
  gap: 1.4rem 5rem; align-items: end;
}
.section__title {
  font-weight: 700; font-stretch: 116%;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.04; letter-spacing: .005em; text-transform: uppercase;
}
.section__intro { color: var(--muted); font-size: .98rem; margin-bottom: .3rem; }

/* =========================================================
   Farbfächer — das Markenzeichen dieser Seite.
   Ein Lackierbetrieb, dessen Website keine Farbe zeigt, könnte
   auch eine Beratung sein. Hier ist die Farbe das Produkt.
   ========================================================= */
.paint { background: var(--bg); padding-bottom: 1.4rem; }
.paint__strip {
  display: flex; width: 100%;
  height: clamp(72px, 9vw, 132px);
  margin: 0; padding: 0; list-style: none;
}
.paint__chip {
  position: relative; flex: 1 1 0; min-width: 0;
  background: var(--c);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 .7rem .7rem; overflow: hidden;
  /* Gleich breit wie auf einem echten Farbfächer. Nur beim Überfahren
     wächst ein Feld — dann ist die Ungleichheit sichtbar gewollt. */
  transition: flex-grow .55s var(--ease);
}
/* Schriftfarbe pro Lackton: helle Töne bekommen dunkle Schrift.
   Steht als --ink direkt am Farbfeld, damit Umsortieren nichts kaputt macht. */
.paint__chip { --fg: 255,255,255; }
.paint__chip[style*="--ink:dark"] { --fg: 10,12,18; }
.paint__code, .paint__name {
  color: rgba(var(--fg), .92);
  font-size: .62rem; font-weight: 600; font-stretch: 84%;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.paint__name { font-weight: 500; letter-spacing: .06em; color: rgba(var(--fg), .72); }
.paint__chip:hover { flex-grow: 2.6; }
.paint__chip:hover .paint__code,
.paint__chip:hover .paint__name { opacity: 1; transform: none; transition-delay: .12s; }
/* Lack-Glanz: eine Lichtkante, wie sie über frischen Klarlack läuft */
.paint__chip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.05) 22%, transparent 48%);
  pointer-events: none;
}
.paint__note {
  margin-top: 1.1rem;
  font-size: .68rem; font-weight: 600; font-stretch: 84%;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 640px) {
  /* Auf dem Handy kein Hover — Strip bleibt reine Farbfläche, kompakter */
  .paint__strip { height: 56px; flex-wrap: nowrap; }
  .paint__chip { padding: 0; }
  .paint__code, .paint__name { display: none; }
  .paint__note { font-size: .6rem; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  .paint__chip, .paint__chip:hover { flex-grow: 1; transition: none; }
}

/* =========================================================
   Leistungen — kompakte Icon-Liste in zwei Spalten
   ========================================================= */
.svc-list {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(2.5rem, 5vw, 5rem);
  border-top: 1px solid var(--line-strong);
}
.svc {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.svc__icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong); color: var(--accent);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.svc:hover .svc__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc__title {
  font-size: .95rem; font-weight: 650; font-stretch: 108%;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.3;
  margin-bottom: .15rem;
}
.svc__text { font-size: .88rem; line-height: 1.5; color: var(--muted); }

.svc-note { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.svc-note strong { color: var(--text); }

/* =========================================================
   Panorama-Band — Foto in voller Breite
   ========================================================= */
.band { position: relative; border-block: 1px solid var(--line); }
.band img { width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,9,15,.35) 0%, transparent 35%, transparent 55%, rgba(6,9,15,.8) 100%);
  pointer-events: none;
}
.band__cap {
  position: absolute; left: 0; right: 0; bottom: 1.4rem; z-index: 2;
  font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-soft);
}

/* =========================================================
   Philosophie — Foto + Text, streng ausgerichtet
   ========================================================= */
.philo {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 2.5rem clamp(3rem, 6vw, 5.5rem); align-items: center;
}
.philo__media { overflow: hidden; }
/* height:auto ist nötig, sonst gewinnt das height-Attribut des <img> gegen aspect-ratio */
.philo__media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.philo__media:hover img { transform: scale(1.03); }
.philo__cap {
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.philo__body .tag { margin-bottom: 1.6rem; }
.philo__text { color: var(--muted); font-size: .98rem; margin-top: 1.4rem; }
.philo__text strong { color: var(--text); }
.philo__body .section__title { margin-bottom: .4rem; }
.philo__body .btn { margin-top: 2.4rem; }

/* =========================================================
   Qualität — Checkliste im Hairline-Raster
   ========================================================= */
.quality {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.quality__item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg); padding: 1.5rem 1.5rem 1.6rem;
  transition: background .35s var(--ease);
}
.quality__item:hover { background: var(--surface); }
.quality__check {
  flex-shrink: 0; display: grid; place-items: center;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent); color: #06090F;
  margin-top: .1rem;
}
.quality__title {
  font-size: .95rem; font-weight: 650; font-stretch: 108%;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.3;
  margin-bottom: .15rem;
}
.quality__text { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* =========================================================
   Galerie — zwei große, exakt gleiche Formate (3:2)
   ========================================================= */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2rem); }
.gallery__item {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 3 / 2; overflow: hidden; cursor: pointer;
  background: var(--surface);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); }
/* Klarlack-Glanz: eine Lichtkante wandert über die Fläche, so wie das
   Licht über frisch lackiertes Blech läuft. Nur transform, GPU-schonend. */
.gallery__item::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16) 42%, rgba(255,255,255,.30) 50%, rgba(255,255,255,.16) 58%, transparent);
  transform: translateX(0) skewX(-12deg);
  transition: transform 1.1s var(--ease);
}
.gallery__item:hover::after, .gallery__item:focus-visible::after { transform: translateX(360%) skewX(-12deg); }
@media (prefers-reduced-motion: reduce) {
  .gallery__item::after { display: none; }
}
/* Caption liegt immer auf dem Foto-Verlauf → feste helle Farben,
   unabhängig vom Sektions-Schema */
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: baseline; gap: .9rem;
  padding: 2.8rem 1.4rem 1.15rem; text-align: left;
  background: linear-gradient(transparent, rgba(6, 9, 15, .85));
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #EAEEF4;
}
.gallery__cap > span { color: #4FA8E5; }

/* =========================================================
   Kundenstimmen — Google-Rezensionen
   ========================================================= */
.score { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .3rem; }
.score__num {
  font-size: 3.1rem; font-weight: 640; font-stretch: 112%;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.score__meta { display: flex; flex-direction: column; gap: .25rem; }
.score__stars { color: #B87D1B; font-size: 1rem; letter-spacing: .16em; line-height: 1; }
.score__count { font-size: .78rem; font-weight: 500; color: var(--muted); }

/* Eine führende Stimme links, zwei stützende rechts — keine drei
   gleichen Kästen. Getrennt wird durch Haarlinien, nicht durch Rahmen. */
.reviews {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-strong); padding-top: 2.2rem;
}
.reviews__side { display: grid; gap: 1.8rem; align-content: start; }
.reviews__side .review + .review { border-top: 1px solid var(--line); padding-top: 1.8rem; }

.review { display: flex; flex-direction: column; }
.review__stars { color: #B87D1B; font-size: .9rem; letter-spacing: .16em; line-height: 1; margin-bottom: 1rem; }
.review__text {
  margin: 0; font-size: .95rem; line-height: 1.7; color: var(--text-soft);
  /* Typografische Anführungszeichen aus dem Stylesheet, nicht im Text */
  quotes: "„" "“";
}
.review__text::before { content: open-quote; }
.review__text::after  { content: close-quote; }

/* Die führende Stimme läuft größer und schmaler — sie trägt die Sektion */
.review--lead .review__stars { font-size: 1.15rem; margin-bottom: 1.4rem; }
.review--lead .review__text {
  font-size: clamp(1.15rem, 2.1vw, 1.6rem); line-height: 1.42;
  font-weight: 450; font-stretch: 96%; color: var(--text);
  text-wrap: pretty;
}

.review__foot { margin-top: 1.2rem; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.review__foot strong { font-size: .88rem; font-weight: 600; }
.review__foot span { font-size: .68rem; font-stretch: 84%; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.reviews__more { margin-top: 2.4rem; }
.reviews__more a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: .35rem;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.reviews__more a:hover { color: var(--accent); border-color: var(--accent); }
.reviews__more svg { transition: transform .35s var(--ease); }
.reviews__more a:hover svg { transform: translate(3px, -3px); }

/* =========================================================
   CTA — große Nummer, Swoosh als Wasserzeichen
   ========================================================= */
.cta {
  position: relative; overflow: hidden;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
  padding: clamp(5.5rem, 11vw, 9rem) 0;
}
.cta__brand {
  position: absolute; top: 50%; right: -12%; transform: translateY(-50%);
  height: 150%; aspect-ratio: 1184 / 1056;
  background: url("../img/swoosh-silber.png") center / contain no-repeat;
  background-image: -webkit-image-set(url("../img/swoosh-silber.webp") type("image/webp"), url("../img/swoosh-silber.png") type("image/png"));
  background-image: image-set(url("../img/swoosh-silber.webp") type("image/webp"), url("../img/swoosh-silber.png") type("image/png"));
  opacity: .16; pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-weight: 720; font-stretch: 118%;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  line-height: 1; letter-spacing: .005em; text-transform: uppercase;
  margin-top: 1.8rem;
}
.cta__phone {
  display: inline-block; margin-top: 2.2rem;
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  font-weight: 300; font-stretch: 105%;
  font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1.1;
  color: var(--accent);
  border-bottom: 1px solid rgba(79, 168, 229, .35);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.cta__phone:hover { color: var(--text); border-color: var(--text); }
.cta__sub { margin-top: 1.8rem; color: var(--muted); font-size: .98rem; }
.cta__sub a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: color .25s var(--ease), border-color .25s var(--ease); }
.cta__sub a:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   Kontakt
   ========================================================= */
/* Asymmetrisch: Kontaktdaten brauchen mehr Platz als das Standortbild */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem clamp(3rem, 6vw, 5rem); align-items: start; }

.contact__list { border-top: 1px solid var(--line-strong); }
.contact__row {
  display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.3rem 0 1.4rem; border-bottom: 1px solid var(--line);
}
.contact__label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .24em;
  color: var(--muted); font-weight: 600;
}
.contact__value {
  display: block; font-size: 1.06rem; font-weight: 500;
  transition: color .25s var(--ease);
}
.contact__value + .contact__value { margin-top: .3rem; }
a.contact__value:hover { color: var(--accent); }
.contact__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* Standort-Panel: echtes Gebäudefoto statt erfundener Karte */
.contact__place {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color .4s var(--ease);
}
.contact__place:hover { border-color: var(--line-strong); }
/* Das Foto ist 4,25:1 breit. In einer schmalen Spalte würde der Schriftzug
   angeschnitten, deshalb läuft es über die volle Breite unter den Kontaktdaten. */
.contact__place { grid-column: 1 / -1; margin-top: 1rem; }
.contact__place img {
  width: 100%; height: auto; aspect-ratio: 2552 / 600;
  object-fit: cover; object-position: center 40%;
  transition: transform 1.2s var(--ease);
}
.contact__place:hover img { transform: scale(1.03); }
/* Karte liegt auf dem Foto -> feste helle Farben, unabhängig vom Schema */
.contact__place-card {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  max-width: min(100%, 30rem);
  display: flex; flex-direction: column; gap: .18rem;
  padding: 3.2rem 2.2rem 1.4rem 1.6rem;
  background: linear-gradient(100deg, rgba(6, 9, 15, .92) 55%, transparent);
  color: #EAEEF4;
}
.contact__place-label {
  font-size: .66rem; font-weight: 600; font-stretch: 84%;
  letter-spacing: .22em; text-transform: uppercase; color: #9FB0C4;
  margin-bottom: .3rem;
}
.contact__place-card strong { font-size: 1.08rem; font-weight: 650; font-stretch: 104%; letter-spacing: .01em; }
.contact__place-city { font-size: .92rem; color: rgba(234, 238, 244, .78); }
.contact__place-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .75rem;
  font-size: .7rem; font-weight: 600; font-stretch: 84%;
  letter-spacing: .18em; text-transform: uppercase; color: #4FA8E5;
}
.contact__place-link svg { transition: transform .35s var(--ease); }
.contact__place:hover .contact__place-link svg { transform: translate(3px, -3px); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding-top: 4.5rem; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.brand--footer { margin-bottom: 1.2rem; }
.footer__tag { font-size: .92rem; line-height: 1.7; max-width: 38ch; }
.footer__title {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .24em;
  color: var(--text-soft); margin-bottom: 1.3rem; font-weight: 600;
}
.footer__col a, .footer__col p { display: block; color: var(--muted); font-size: .94rem; margin-bottom: .65rem; width: fit-content; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__hours { line-height: 1.6; }
.footer__hours--muted { font-size: .86rem; opacity: .7; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.6rem 28px; border-top: 1px solid var(--line); font-size: .84rem;
}
.footer__legal { display: flex; gap: 1.6rem; }
.footer__legal a:hover { color: var(--text); }

/* =========================================================
   Lightbox
   ========================================================= */
.img-slot { position: relative; overflow: hidden; background: var(--surface); }
.img-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 5vw;
  background: rgba(3, 5, 9, .93); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__inner { width: min(1100px, 92vw); aspect-ratio: 3/2; border: 1px solid var(--line); }
.lightbox__close {
  position: absolute; top: 24px; right: 24px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lightbox__close:hover { background: var(--text); color: var(--bg); }

/* =========================================================
   404-Seite
   ========================================================= */
.notfound {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: 4rem 0;
  background:
    radial-gradient(75% 65% at 78% 16%, rgba(36, 85, 127, .5) 0%, transparent 62%),
    linear-gradient(160deg, #11233C 0%, #06090F 68%);
}
.notfound__brand {
  position: absolute; top: 50%; right: -10%; transform: translateY(-50%);
  height: 105%; aspect-ratio: 1184 / 1056;
  background: url("../img/swoosh-silber.png") center / contain no-repeat;
  background-image: -webkit-image-set(url("../img/swoosh-silber.webp") type("image/webp"), url("../img/swoosh-silber.png") type("image/png"));
  background-image: image-set(url("../img/swoosh-silber.webp") type("image/webp"), url("../img/swoosh-silber.png") type("image/png"));
  opacity: .5;
  -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 46%);
          mask-image: linear-gradient(100deg, transparent 8%, #000 46%);
  pointer-events: none;
}
.notfound__inner { position: relative; z-index: 2; max-width: 640px; }
.notfound .tag { margin-bottom: 2rem; color: var(--text-soft); }
.notfound__title {
  font-weight: 740; font-stretch: 118%;
  font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: .98;
  letter-spacing: .005em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.notfound__text { color: var(--text-soft); font-size: 1.04rem; margin-bottom: 2.4rem; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
@media (max-width: 640px) {
  .notfound__brand { height: 55%; right: -32%; opacity: .35; }
  .notfound__actions .btn { flex: 1 1 auto; }
}

/* =========================================================
   Rechtsseiten (Impressum / Datenschutz)
   ========================================================= */
/* Kein Hero dahinter → Header dauerhaft deckend, sonst stünde das
   weiße Logo unsichtbar auf hellem Grund. Muss nach .is-scrolled stehen. */
.site-header.site-header--solid {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}

.legal { padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(4rem, 8vw, 6rem); }
.legal__inner { max-width: 760px; }
.legal__title {
  font-weight: 700; font-stretch: 116%;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05;
  letter-spacing: .005em; text-transform: uppercase;
  margin: 1.6rem 0 1rem;
}
.legal__updated { font-size: .82rem; color: var(--muted); }

.legal__inner h2 {
  font-size: 1.05rem; font-weight: 650; font-stretch: 108%;
  letter-spacing: .05em; text-transform: uppercase;
  margin: 2.8rem 0 .9rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal__inner h3 {
  font-size: .95rem; font-weight: 650; letter-spacing: .02em;
  margin: 1.8rem 0 .5rem;
}
.legal__inner p { margin-bottom: .9rem; color: var(--text-soft); }
.legal__inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__inner a:hover { color: var(--text); }
.legal__inner ul { margin: 0 0 1.1rem; padding-left: 1.1rem; list-style: disc; color: var(--text-soft); }
.legal__inner li { margin-bottom: .45rem; }
.legal__inner strong { color: var(--text); }

/* Datenblock (Anschrift, Kontakt, Register …) */
.legal__data {
  display: grid; grid-template-columns: 190px 1fr; gap: .1rem 1.5rem;
  margin: 0 0 1.4rem; padding: 1.4rem 1.5rem;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.legal__data dt {
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding: .55rem 0;
}
.legal__data dd { margin: 0; padding: .55rem 0; font-weight: 500; }

/* Hinweis-Box für offene Punkte / wichtige Infos */
.legal__note {
  margin: 1.4rem 0; padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--accent); background: var(--bg-alt);
  font-size: .93rem;
}
.legal__note p:last-child { margin-bottom: 0; }

.legal__back {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); transition: color .25s var(--ease);
}
.legal__back:hover { color: var(--accent); }
.legal__back svg { transition: transform .35s var(--ease); }
.legal__back:hover svg { transform: translateX(-4px); }

@media (max-width: 640px) {
  .legal__data { grid-template-columns: 1fr; gap: 0; padding: 1.1rem 1.2rem; }
  .legal__data dt { padding: .8rem 0 .1rem; }
  .legal__data dd { padding: 0 0 .5rem; }
}

/* =========================================================
   Touch-Ziele
   Auf Touch-Geräten brauchen Links mind. 44px Höhe (WCAG 2.5.5 /
   Apple HIG). Reine Textlinks sind sonst ~26px hoch — besonders
   kritisch bei Telefonnummer und E-Mail, den Haupt-Aktionen.
   ========================================================= */
@media (pointer: coarse) {
  a.contact__value { padding-block: .5rem; }
  .contact__value + .contact__value { margin-top: 0; }
  .footer__col a { padding-block: .6rem; margin-bottom: .1rem; }
  .footer__legal a { padding-block: .75rem; }
  .cta__phone { padding-block: .3rem; }
  .legal__inner a:not(.legal__back) { padding-block: .2rem; }
}

/* =========================================================
   Scroll-Reveal (progressive enhancement)
   ========================================================= */
.reveal { opacity: 1; transform: none; }
.has-js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 100ms);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .quality { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; gap: 2rem; }
  .reviews__side { grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
  .reviews__side .review + .review { border-top: none; padding-top: 0; border-left: 1px solid var(--line); padding-left: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav, .header__actions { display: none; }
  .nav-toggle { display: block; }

  .section__head-row { grid-template-columns: 1fr; align-items: start; }
  .svc-list { grid-template-columns: 1fr; }

  .hero__row { grid-template-columns: 1fr; }
  .hero__stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.4rem 1.6rem; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .philo { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 3.6rem 0; }

  /* Deutsche Komposita ("Versicherungsabwicklung", "Hohlraumversiegelung")
     reißen in schmalen Spalten große Lücken. Silbentrennung nur im Fließtext,
     nie in Überschriften — dort wäre sie unruhig. */
  .svc__text, .quality__text, .review__text,
  .section__intro, .philo__text, .legal__inner p, .legal__inner li {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  /* Das große Leitzitat hat genug Zeilenbreite — Trennstriche wirken dort unruhig */
  .review--lead .review__text { hyphens: manual; -webkit-hyphens: manual; }

  .hero__content { padding-block: 2.5rem; }
  .hero__content .tag { margin-bottom: 1.8rem; }
  .hero__title { margin-bottom: 2rem; font-stretch: 110%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__brand { height: 60%; right: -30%; top: 42%; opacity: .55; }

  .svc { padding: 1.05rem 0; gap: 1rem; }
  .svc__icon { width: 46px; height: 46px; }
  .svc__icon svg { width: 20px; height: 20px; }

  .quality { grid-template-columns: 1fr; }
  .quality__item { padding: 1.1rem 1.2rem 1.2rem; }

  .score__num { font-size: 2.4rem; }
  .reviews { padding-top: 1.6rem; }
  .reviews__side { grid-template-columns: 1fr; gap: 1.6rem; }
  .reviews__side .review + .review { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }

  .gallery { grid-template-columns: 1fr; }

  .band__cap { font-size: .62rem; letter-spacing: .18em; }

  .contact__row { grid-template-columns: 1fr; gap: .3rem; }
  .contact__cta .btn { flex: 1 1 auto; }

  .cta__brand { opacity: .1; right: -40%; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .hero__stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-bottom: 1px solid var(--line); padding-left: 0; }
  .stat:last-child { border-bottom: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
