/* ==========================================================================
   Fischer Expert Office — Produktions-Stylesheet „Corporate Identity“
   Markenableitung direkt von der Visitenkarte: Anthrazit / Graphit + Petrol.
   Gilt für alle Produktionsseiten (de/, en/, impressum/, datenschutz/, 404).
   Mobile first. Keine Fremd-Assets, keine Spielereien.
   ========================================================================== */

/* --- Marken-Font nur für technische Labels (lokal vorhanden) -------------- */
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* --- Farbwelt (exakt an der Visitenkarte ausgerichtet) ------------------- */
:root {
  /* Markenfarbe: Petrol/Türkis wie „FEO“ auf der Karte (Druckton ≈ #449BAF),
     hier auf WCAG-taugliche Werte gebracht. */
  --brand:        #0B7C8F;   /* Primär-Petrol — CTAs, Links, Icons (Weiß darauf 4.89:1, auf Surface 4.58:1) */
  --brand-dark:   #0A6E7C;   /* Hover — etwas dunkler */
  --brand-light:  #56B7C9;   /* helles Petrol — Akzente auf Anthrazit */
  --brand-tint:   #E7F4F6;   /* zarter Petrol-Wash — Icon-Flächen auf Hell */
  --brand-ink:    #08525E;   /* sehr tiefes Petrol */

  --text:         #1B2227;   /* Anthrazit — Fließtext (16:1 auf Weiß) */
  --text-soft:    #55606A;   /* gedämpft (6.4:1) */
  --background:   #FFFFFF;   /* Weiß — Sekundärfarbe */

  --surface:      #F5F8F9;   /* helle, leicht graphitige Fläche */
  --anthracite:   #191E23;   /* Anthrazit — Hero, Bänder, Footer */
  --graphite:     #20262B;   /* Graphit — Verlaufspartner (wie Kartenverlauf) */
  --graphite-2:   #2A3138;   /* Graphit hell — Karten auf Dunkel */

  --line:         #E6EAED;   /* Haarlinie auf Hell */
  --line-2:       #EEF1F3;
  --line-dark:    rgba(255,255,255,.13);

  --shadow-sm: 0 1px 2px rgba(20,30,38,.05);
  --shadow:    0 2px 6px rgba(20,30,38,.05), 0 14px 34px -18px rgba(20,30,38,.20);
  --shadow-lg: 0 3px 8px rgba(20,30,38,.05), 0 24px 48px -26px rgba(20,30,38,.28);

  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Spacing-System */
  --pad-x:      clamp(20px, 4vw, 40px);
  --sp-section: clamp(68px, 10vh, 118px);
  --pad-card:   clamp(24px, 2.5vw, 32px);
  --gap-grid:   clamp(16px, 1.8vw, 22px);

  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: clamp(16.5px, 0.5vw + 15px, 18px);
  line-height: 1.72;
  color: var(--text);
  background: var(--background);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

p { text-wrap: pretty; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 5px; }
/* Auf Anthrazit braucht der Fokusring den hellen Petrol-Ton (Non-Text-Kontrast) */
.hero :focus-visible,
.cta-band :focus-visible,
.cert-card :focus-visible,
.site-footer :focus-visible,
.page-hero :focus-visible,
.error-page :focus-visible { outline-color: var(--brand-light); }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 640; margin: 0; text-wrap: balance; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--anthracite); color: #fff; padding: 12px 18px; z-index: 200; border-radius: 8px;
}
.skip-link:focus { left: 14px; top: 14px; }

/* Technische Labels -------------------------------------------------------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 20px;
  display: inline-flex; align-items: flex-start; gap: 10px;
  line-height: 1.6;
}
.kicker::before {
  content: ""; width: 26px; height: 1.5px; background: var(--brand);
  display: inline-block; border-radius: 2px;
  margin-top: 0.52em; flex-shrink: 0;
}
.on-dark .kicker { color: var(--brand-light); }
.on-dark .kicker::before { background: var(--brand-light); }
@media (max-width: 480px) {
  .kicker { font-size: 0.64rem; letter-spacing: 0.12em; }
  .kicker::before { display: none; }
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header > .container {
  display: flex; align-items: center; gap: 20px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-logo { /* geliefertes Rund-Logo im Header; Radius kappt die weißen Bildecken */
  height: 52px; width: 52px; flex-shrink: 0;
  border-radius: 50%; display: block;
}
.brand-mark { width: 42px; height: 42px; color: var(--brand); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 680; font-size: 1.06rem; letter-spacing: -0.01em;
}
.brand-name b { color: var(--brand); font-weight: 680; }
.brand-sub {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-soft); margin-top: 2px;
}

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.site-nav a {
  color: var(--text); font-weight: 500; font-size: 0.96rem;
  padding: 10px 13px; border-radius: 9px; display: inline-block;
  position: relative;
  transition: color .16s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 1.5px;
  background: var(--brand); border-radius: 1px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .18s ease;
}
.site-nav a:hover { color: var(--brand-dark); }
.site-nav a:hover::after { transform: scaleX(1); }
.nav-phone-li { display: none; }
.nav-whatsapp-li { display: none; }

.header-phone { flex-shrink: 0; }
.header-whatsapp { flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ui); font-weight: 560; font-size: 0.97rem; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 11px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; line-height: 1;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn .ico { width: 17px; height: 17px; flex-shrink: 0; transition: transform .18s ease; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(12,130,150,.55); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -9px rgba(12,130,150,.6); }
.btn-primary:hover .ico-arrow { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: var(--brand-light); color: #fff; background: rgba(86,183,201,.12); }
.header-phone.btn { padding: 11px 18px; }
.header-whatsapp.btn {
  padding: 11px 16px;
  border-color: var(--brand); color: var(--brand-dark);
}
.header-whatsapp.btn:hover { border-color: var(--brand-dark); }
.header-whatsapp .ico { color: #25d366; } /* WhatsApp-Markengrün nur im Icon */
@media (max-width: 1199px) {
  /* zwischen 900 und 1200px wird der Header eng: nur Icon zeigen */
  .header-whatsapp .header-whatsapp-label { display: none; }
  .header-whatsapp.btn { padding: 11px 13px; }
}

/* Hamburger */
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  position: relative; z-index: 130; /* bleibt über dem geöffneten Menü-Drawer */
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color .16s;
}
.nav-toggle .bar {
  width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .22s ease, opacity .16s ease;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--brand); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero (Anthrazit/Graphit — wie die Visitenkarte) ---------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 100% at 82% 8%, #2C343B 0%, rgba(44,52,59,0) 55%),
    linear-gradient(155deg, #22292F 0%, #191E23 62%, #14181C 100%);
  border-bottom: 1px solid var(--line-dark);
}
.hero::before { /* dezente Petrol-Aura, an den Markenton angelehnt */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 88% 92%, rgba(12,130,150,.20) 0%, rgba(12,130,150,0) 60%);
  pointer-events: none;
}
.hero-inner { position: relative; padding-block: clamp(64px, 11vh, 132px) clamp(52px, 8vh, 84px); }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.35rem);
  font-weight: 660; letter-spacing: -0.035em; line-height: 1.05;
  margin: 4px 0 0; overflow-wrap: break-word;
  max-width: 16ch; /* hält die drei Aussagen als ruhigen Block statt einer Langzeile */
}
.hero h1 .accent { color: var(--brand-light); }
.hero-lead {
  font-size: clamp(1.1rem, 1.4vw, 1.32rem); line-height: 1.6;
  color: #C5CDD3; margin: 26px 0 0; max-width: 44ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Stille technische Zeichnung (Sucher-Kreis + Maßlinie) statt Bildfläche —
   reine Hintergrundgrafik, bewusst kein Container und kein Platzhalter */
.hero-deco {
  position: absolute; z-index: 0; pointer-events: none;
  right: clamp(24px, 7vw, 120px); top: 50%;
  transform: translateY(calc(-50% - 24px));
  width: min(34vw, 440px); height: auto;
  color: var(--brand-light); opacity: .13;
}
.hero-inner, .credbar { z-index: 1; }
@media (max-width: 899px) {
  .hero-deco { /* mobil: klein und randständig hinter dem Text, bleibt reine Textur */
    right: -13vw; top: 38%; width: 62vw; opacity: .07;
  }
}

/* Cred-Bar */
.credbar { position: relative; border-top: 1px solid var(--line-dark); }
.credbar ul {
  list-style: none; margin: 0; padding: 24px 0; display: grid; gap: 14px 0;
  grid-template-columns: 1fr;
}
.credbar li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.92rem; color: #C5CDD3; line-height: 1.5;
}
.credbar li svg { width: 20px; height: 20px; color: var(--brand-light); flex-shrink: 0; margin-top: 2px; }

/* --- Sektions-Grundlagen -------------------------------------------------- */
.section { padding-block: var(--sp-section); }
.section-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(36px, 5vh, 56px); flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
.section-index {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft); padding-bottom: 8px;
}
h2.section-title { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
.section-intro { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--text-soft); max-width: 60ch; margin: 18px 0 0; }

/* --- Kennzahlen ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stats > div { background: var(--background); padding: clamp(22px, 3.2vw, 40px); min-width: 0; display: flex; flex-direction: column; }
.stats > div::before {
  content: ""; display: block; width: 22px; height: 2px;
  background: var(--brand); border-radius: 2px; margin-bottom: 18px;
}
.stat-num {
  font-size: clamp(1.55rem, 5.2vw, 2.9rem); font-weight: 660; letter-spacing: -0.03em;
  color: var(--text); line-height: 1.05;
}
.stat-num span { color: var(--brand); }
.stat-label { margin-top: auto; padding-top: 12px; font-size: 0.9rem; color: var(--text-soft); line-height: 1.5; }
@media (max-width: 619px) {
  /* Schmale Spalten: lange Fachbegriffe sauber trennen statt abschneiden */
  .stat-label { hyphens: auto; -webkit-hyphens: auto; }
}

/* --- Leistungen (Karten) -------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap-grid); }
.svc-card {
  position: relative; background: var(--background);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--pad-card); color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; min-height: 100%;
}
.svc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(12,130,150,.32); color: var(--text); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.icon-chip {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-chip svg { width: 24px; height: 24px; }
.svc-nr { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text-soft); }
.svc-card h3 { font-size: 1.18rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.svc-card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.62; flex: 1; }
.svc-arrow {
  margin-top: 22px; color: var(--brand); font-weight: 560; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.svc-arrow svg { width: 17px; height: 17px; transition: transform .2s ease; }
.svc-card:hover .svc-arrow svg { transform: translateX(4px); }

/* --- Schritte (Nach dem Unfall) ------------------------------------------- */
.step-grid, .flow-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap-grid); }
.step-card {
  background: var(--background); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--pad-card); position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.step-card::after { /* große, sehr zurückhaltende Schrittziffer */
  content: attr(data-step); position: absolute; top: 14px; right: 20px;
  font-family: var(--mono); font-weight: 500; font-size: 3rem; line-height: 1;
  color: rgba(12,130,150,.10); letter-spacing: 0; pointer-events: none;
}
.step-card .icon-chip { margin-bottom: 18px; }
.step-ref { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.step-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step-card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.section-action { margin: clamp(30px, 4vh, 44px) 0 0; }

/* --- Ablauf (Timeline) ---------------------------------------------------- */
.flow-item { position: relative; padding: 4px 0; }
.flow-item .icon-chip { margin-bottom: 18px; position: relative; z-index: 1; background: var(--brand-tint); }
.flow-num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--brand); text-transform: uppercase; margin: 0 0 2px; }
.flow-item h3 { font-size: 1.14rem; margin: 4px 0 8px; }
.flow-item p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
/* Mobil: vertikale Timeline — Icon links, Inhalt rechts, Linie in der Icon-Spalte */
@media (max-width: 619px) {
  .flow-item { padding: 0 0 10px 70px; }
  .flow-item .icon-chip { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .flow-item:not(:last-child)::before {
    content: ""; position: absolute; left: 25px; top: 58px; bottom: -14px;
    width: 1px; background: var(--line);
  }
}

/* --- Zertifizierung ------------------------------------------------------- */
.cert-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.cert-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 20px; }
.cert-copy p { color: var(--text-soft); margin: 0 0 16px; max-width: 56ch; }
.cert-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #232A30 0%, #191E23 100%);
  color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
}
.cert-card::before { /* feine Petrol-Kante als Echo der Kartenmarke */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-light), rgba(86,183,201,0) 65%);
}
.cert-tag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-light); display: inline-block; margin-bottom: 22px;
}
.cert-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.cert-seal {
  flex-shrink: 0; width: 86px; height: 86px; border-radius: 18px;
  border: 1.5px solid rgba(86,183,201,.5); background: rgba(86,183,201,.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.66rem; line-height: 1.35; letter-spacing: 0.08em; color: var(--brand-light);
  text-align: center;
}
.cert-seal--img {
  width: auto; padding: 0 16px; background: #fff;
}
.cert-seal--img img { display: block; width: 71px; height: auto; }
.cert-creds {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap;
}
.cert-creds-label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #939EA6;
}
.cred-chip--dark { padding: 8px 14px; border-color: rgba(255,255,255,.14); border-radius: 12px; }
.cred-chip--dark img { width: 132px; height: auto; }
.cert-title { font-size: 1.24rem; font-weight: 600; letter-spacing: -0.02em; }

/* Credential-Zone (z. B. classic-analytics auf der Oldtimer-Seite) */
.cred-strip {
  margin-top: clamp(28px, 4vw, 40px); padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap;
}
.cred-chip {
  display: inline-flex; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 18px; flex-shrink: 0;
}
.cred-chip img { display: block; width: 206px; max-width: 100%; height: auto; }
.cred-note {
  margin: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft);
}
.cert-specs { display: grid; gap: 0; margin-bottom: 22px; }
.cert-specs > div {
  display: grid; grid-template-columns: 128px 1fr; gap: 4px 14px; padding: 12px 0;
  border-top: 1px solid var(--line-dark); font-size: 0.9rem;
}
.cert-specs > div:last-child { border-bottom: 1px solid var(--line-dark); }
.cert-specs .k { color: #939EA6; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; align-self: center; }
.cert-specs span:last-child { color: #E7ECEF; }
@media (max-width: 619px) {
  .cert-specs > div { grid-template-columns: 1fr; padding: 10px 0; }
  .cert-specs .k { align-self: auto; }
}
.cert-note { font-size: 0.85rem; color: #A6B0B8; margin: 0; line-height: 1.6; }

/* --- Bildstrecke „Aus der Praxis“ (dunkles Bildband) ---------------------- */
.section-gallery {
  background:
    radial-gradient(90% 100% at 12% 0%, #262E35 0%, rgba(38,46,53,0) 55%),
    linear-gradient(155deg, #22292F 0%, #191E23 72%);
  border-block: 1px solid var(--line-dark);
  color: #fff;
  padding-block: clamp(56px, 8vh, 92px);
  overflow: hidden;
}
.section-gallery .section-head { margin-bottom: clamp(26px, 4vh, 40px); }
.gallery-track {
  list-style: none; margin: 0;
  display: flex; align-items: flex-start; gap: clamp(14px, 1.8vw, 22px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px max(var(--pad-x), calc((100vw - var(--maxw)) / 2 + var(--pad-x)));
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2.5px solid var(--brand-light); outline-offset: -2.5px; border-radius: 8px; }
.gallery-item { flex: 0 0 auto; }
.gallery-item figure { margin: 0; }
.gallery-item img {
  height: clamp(220px, 30vw, 330px); width: auto;
  aspect-ratio: 1024 / 683;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: var(--graphite-2); /* stille Fläche, solange das Bild lädt */
}
.gallery-item figcaption {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: #9BA6AF; margin-top: 12px;
  display: flex; align-items: baseline; gap: 10px;
}
.gallery-item .g-nr { color: var(--brand-light); }

/* Pause/Play — echte Schaltfläche, ≥44 px Bedienfläche, nicht nur farbcodiert */
.gallery-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 18px;
  background: rgba(255,255,255,.04); color: #C5CDD3;
  border: 1px solid var(--line-dark); border-radius: 11px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.gallery-toggle[hidden] { display: none; } /* ohne JS / bei reduced motion gibt es nichts zu pausieren */
.gallery-toggle:hover { color: #fff; border-color: var(--brand-light); background: rgba(86,183,201,.08); }
.gallery-toggle svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--brand-light); }
.gallery-toggle .ico-play { display: none; }
.gallery-toggle.is-paused .ico-pause { display: none; }
.gallery-toggle.is-paused .ico-play { display: block; }
.section-gallery :focus-visible { outline-color: var(--brand-light); }

/* --- Einsatzgebiet -------------------------------------------------------- */
.gebiet-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em;
  padding: 11px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--background); color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
}
.chips li::before {
  content: ""; width: 7px; height: 7px; flex-shrink: 0;
  background:
    linear-gradient(var(--brand), var(--brand)) center/7px 1.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center/1.5px 7px no-repeat;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-weight: 560; font-size: clamp(1.05rem, 1.4vw, 1.18rem); letter-spacing: -0.015em; color: var(--text);
  transition: color .16s;
}
.faq-list summary:hover { color: var(--brand-dark); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  margin-top: -7px;
  background:
    linear-gradient(currentColor,currentColor) center/13px 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center/1.5px 13px no-repeat;
  color: var(--brand); transition: transform .22s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: -6px 0 26px; color: var(--text-soft); max-width: 64ch; font-size: 0.98rem; }

/* --- CTA-Band (Anthrazit) ------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 120% at 88% 12%, rgba(12,130,150,.28) 0%, rgba(12,130,150,0) 55%),
    linear-gradient(150deg, #232A30 0%, #191E23 70%);
  border: 1px solid var(--line-dark);
  padding: clamp(36px, 5.5vw, 68px);
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; }
.cta-lead { color: #C5CDD3; margin: 16px 0 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 340px; }
.btn-phone { font-size: 1.05rem; padding: 16px 26px; }
.cta-meta { margin: 22px 0 0; font-size: 0.88rem; color: #9BA6AF; font-family: var(--mono); letter-spacing: 0.02em; line-height: 1.75; }
.cta-meta a { color: var(--brand-light); }
.cta-meta a:hover { color: #fff; }

/* --- Footer (Anthrazit, Petrol-Akzente) ----------------------------------- */
.site-footer { background: var(--anthracite); color: #B7C0C7; border-top: 1px solid var(--line-dark); }
.footer-top { padding-block: clamp(52px, 7vh, 80px) clamp(32px, 4vh, 48px); }
.footer-main { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.footer-brand .brand-mark { color: var(--brand-light); }
.footer-brand-name { font-size: 1.16rem; font-weight: 640; color: #fff; letter-spacing: -0.01em; margin: 0; }
.footer-brand-name b { color: var(--brand-light); }
.footer-slogan { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--brand-light); margin: 3px 0 0; }
.footer-about { max-width: 40ch; font-size: 0.92rem; color: #9BA6AF; margin: 18px 0 0; }
.footer-col h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #89949C; margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #C4CDD3; font-size: 0.94rem; display: inline-block; padding-block: 3px; }
.footer-col a:hover { color: var(--brand-light); }
.footer-col li { font-size: 0.94rem; color: #9BA6AF; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 24px 0;
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 0.84rem; color: #89949C; font-family: var(--mono); letter-spacing: 0.02em;
}
.footer-bottom a { color: #9BA6AF; display: inline-block; padding-block: 3px; }
.footer-bottom a:hover { color: var(--brand-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 620px) {
  .credbar ul { grid-template-columns: 1fr 1fr; gap: 14px 34px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .credbar ul { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .credbar li { padding-inline: 28px; }
  .credbar li:first-child { padding-left: 0; }
  .credbar li + li { border-left: 1px solid var(--line-dark); }

  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  /* 7. Karte: bewusst als breite Abschlusskarte statt einzelnem Waisenkind */
  .svc-card-wide {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: auto minmax(200px, 0.8fr) 1.2fr auto;
    align-items: center; column-gap: clamp(20px, 2.6vw, 40px);
  }
  .svc-card-wide .svc-top { margin: 0; gap: 14px; justify-content: flex-start; }
  .svc-card-wide h3 { margin: 0; }
  .svc-card-wide p { margin: 0; flex: none; }
  .svc-card-wide .svc-arrow { margin: 0; }

  .flow-grid { grid-template-columns: repeat(4, 1fr); }
  /* Verbindungslinie: horizontal von Icon zu Icon */
  .flow-item:not(:last-child)::before {
    content: ""; position: absolute; top: 29px; left: 62px; right: calc(-1 * var(--gap-grid));
    height: 1px; background: var(--line);
  }

  .cert-grid { grid-template-columns: 1fr 1fr; }
  .gebiet-grid { grid-template-columns: 0.9fr 1.1fr; }
  .cta-band { grid-template-columns: 1.2fr auto; padding-inline: clamp(48px, 5vw, 80px); }
  .cta-actions { min-width: 300px; }
  .footer-main { grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; }
}
@media (min-width: 1040px) {
  .step-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile-Navigation */
@media (max-width: 899px) {
  /* Kein backdrop-filter auf dem Header: er würde zum Containing Block
     des fixierten Menü-Drawers (Drawer bliebe sonst in Header-Höhe gefangen). */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .header-whatsapp { display: none; }
  .brand-logo { height: 44px; width: 44px; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: #fff; border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .26s ease;
    padding: 96px 24px 30px; margin: 0; box-shadow: -20px 0 50px -30px rgba(0,0,0,.4);
    display: block; overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .site-nav a::after { content: none; }
  .site-nav a:hover { background: var(--brand-tint); border-radius: 10px; }
  .nav-phone-li { display: block; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav-phone {
    display: flex !important; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.95rem; font-weight: 500;
    color: var(--brand);
  }
  .nav-phone svg { width: 17px; height: 17px; flex-shrink: 0; }
  .nav-phone:hover { color: var(--brand-dark); }
  .nav-whatsapp-li { display: block; margin-top: 10px; }
  .nav-whatsapp {
    display: flex !important; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.95rem; font-weight: 500;
    color: var(--brand);
  }
  .nav-whatsapp svg { width: 17px; height: 17px; flex-shrink: 0; color: #25d366; }
  .nav-whatsapp:hover { color: var(--brand-dark); }

  /* Abdunkelung + Scroll-Sperre bei offenem Menü */
  body:has(.site-nav.is-open) { overflow: hidden; }
  body:has(.site-nav.is-open)::after {
    content: ""; position: fixed; inset: 0; z-index: 99;
    background: rgba(15, 20, 24, .5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Produktions-Komponenten (Unterseiten, Formulare, Rechtstexte, 404)
   ========================================================================== */

/* --- Kompakter Unterseiten-Hero ------------------------------------------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 100% at 82% 8%, #2C343B 0%, rgba(44,52,59,0) 55%),
    linear-gradient(155deg, #22292F 0%, #191E23 62%, #14181C 100%);
  border-bottom: 1px solid var(--line-dark);
  padding-block: clamp(44px, 7vh, 84px);
}
.page-hero::before { /* dezente Petrol-Aura wie im Haupt-Hero */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 65% at 90% 100%, rgba(12,130,150,.18) 0%, rgba(12,130,150,0) 60%);
}
.page-hero .container { position: relative; }
.page-hero .kicker { color: var(--brand-light); }
.page-hero .kicker::before { background: var(--brand-light); }
.page-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 660; letter-spacing: -0.03em; line-height: 1.08;
  margin: 4px 0 0; max-width: 24ch;
}
.page-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.65;
  color: #C5CDD3; margin: 18px 0 0; max-width: 62ch;
}

/* Breadcrumb (im dunklen Hero) */
.breadcrumb {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: #93A0A8;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "›"; color: #5E6A72; }
.breadcrumb a { color: #B7C0C7; padding-block: 3px; display: inline-block; }
.breadcrumb a:hover { color: var(--brand-light); }
.breadcrumb [aria-current="page"] { color: #E7ECEF; }

/* --- Sektions-Aliasse der Bestandsstruktur -------------------------------- */
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt + .section-alt, .section-line + .section-alt { border-top: 0; }
.section h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; }
.section .section-head h2, .section h2.section-title { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
.section-intro + * { margin-top: clamp(28px, 4vh, 44px); }

/* --- Inhaltskarten der Unterseiten ---------------------------------------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap-grid); margin-top: clamp(28px, 4vh, 44px); }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--background); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--pad-card); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-width: 0;
}
.card h3 { font-size: 1.12rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.62; }
.card-ref {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 500; font-size: 1.05rem;
  margin-bottom: 16px;
}
.card-more {
  margin-top: 18px; color: var(--brand); font-weight: 560; font-size: 0.92rem;
  display: inline-block;
}
.card-more:hover { color: var(--brand-dark); }

/* --- Zweispalter & Checkliste --------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h2 { margin-bottom: 16px; }
.two-col p { color: var(--text-soft); margin: 0 0 14px; max-width: 58ch; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li {
  position: relative; padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line); font-size: 0.97rem; color: var(--text-soft); line-height: 1.6;
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* --- Buttons der Bestandsstruktur ----------------------------------------- */
.btn-dark { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(12,130,150,.55); }
.btn-dark:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

/* --- Kontaktseite ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-facts { display: grid; gap: 0; }
.fact { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact:first-child { border-top: 1px solid var(--line); }
.fact-label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 6px;
}
.fact-value { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
.fact-value a { color: var(--text); }
.fact-value a:hover { color: var(--brand-dark); }
.fact-note { font-size: 0.88rem; color: var(--text-soft); margin-top: 4px; line-height: 1.55; }
.contact-form {
  background: var(--background); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--pad-card); box-shadow: var(--shadow-sm);
}
.contact-form h2 { letter-spacing: -0.02em; }
.form-row { margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .form-row-2 { grid-template-columns: 1fr 1fr; margin-bottom: 16px; } .form-row-2 > div { margin: 0; } }
.contact-form label {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 0.97rem; color: var(--text);
  background: var(--background); border: 1px solid var(--line); border-radius: 10px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand);
}
.contact-form .btn { margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--text-soft); margin: 14px 0 0; line-height: 1.6; }

/* --- Rechtstexte ------------------------------------------------------------ */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); line-height: 1.75; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.notice {
  background: var(--brand-tint); border: 1px solid rgba(12,130,150,.25); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 30px;
  font-size: 0.92rem; color: var(--brand-ink); line-height: 1.6;
}
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .page-hero { background: none; color: #000; border: 0; padding: 0 0 12px; }
  .page-hero .page-lead, .breadcrumb { color: #333; }
  .prose p, .prose li { color: #222; }
}

/* --- 404 -------------------------------------------------------------------- */
.error-page {
  min-height: 100vh; display: flex; align-items: center;
  color: #fff;
  background:
    radial-gradient(120% 100% at 82% 8%, #2C343B 0%, rgba(44,52,59,0) 55%),
    linear-gradient(155deg, #22292F 0%, #191E23 62%, #14181C 100%);
  padding-block: 60px;
}
.error-code {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-light); margin: 0 0 18px;
}
.error-page h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.error-page p { color: #C5CDD3; }
.error-page .error-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.error-page a:not(.btn) { color: var(--brand-light); }
