/* =============================================================================
   ELEKTROSERVICE SCHMIDT (ESS) – Stylesheet
   -----------------------------------------------------------------------------
   Aufbau (Inhaltsverzeichnis):
     1.  Design-Tokens (CSS-Variablen)      → zentrale Stellschraube fürs CD
     2.  Reset & Basis
     3.  Typografie
     4.  Layout-Helfer (Container, Sektionen)
     5.  Buttons
     6.  Header / Navigation
     7.  Hero
     8.  Leistungen (Karten)
     9.  Vertrauen / Kennzahlen
     10. Ablauf (Prozess)
     11. Über uns
     12. Kontakt & Formular
     13. Footer
     14. Animationen (Scroll-Reveal, Hover)
     15. Responsive (Media Queries)
     16. Reduced Motion / A11y
   Farben & Abstände werden ausschließlich über die Tokens in :root gesteuert,
   damit das Corporate Design an einer Stelle anpassbar bleibt.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. DESIGN-TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Markenfarben (aus dem Logo abgeleitet) */
  --color-primary-light: #2BA9E0;   /* heller Verlaufston */
  --color-primary:       #1f6fb0;   /* mittlerer Markenton */
  --color-primary-deep:  #1C3F7C;   /* tiefer Verlaufston */
  --color-accent:        #3FC1F0;   /* Blitz-Cyan: Buttons, Links, Hover */
  --color-accent-strong: #1aa7df;   /* Akzent für Hover (etwas dunkler) */

  /* Neutrale Töne */
  --color-heading: #404040;         /* Anthrazit – Überschriften */
  --color-text:    #737373;         /* mittleres Grau – Fließtext */
  --color-muted:   #9aa0a6;         /* dezente Hinweise */
  --color-surface: #ffffff;         /* Grundfläche */
  --color-surface-alt: #f5f7fa;     /* helle Sektions-Hintergründe */
  --color-surface-alt2: #eef2f7;    /* zweite Abstufung */
  --color-border:  #e3e8ee;         /* feine Linien */
  --color-dark:    #16243f;         /* dunkler Footer-/Akzentgrund */

  /* Verläufe & Leitmotiv */
  --gradient-brand: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-deep) 100%);
  --gradient-brand-soft: linear-gradient(135deg, #2BA9E0 0%, #1C3F7C 85%);

  /* Typografie */
  --font-sans: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3.2vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-eyebrow: 0.8125rem;
  --lh-tight: 1.15;
  --lh-base: 1.7;

  /* Abstände (8px-Raster) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --section-pad: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Maße & Form */
  --container: 1180px;
  --container-narrow: 820px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Schatten */
  --shadow-sm: 0 2px 8px rgba(28, 63, 124, 0.06);
  --shadow:    0 10px 30px rgba(28, 63, 124, 0.10);
  --shadow-lg: 0 24px 60px rgba(28, 63, 124, 0.16);
  --shadow-accent: 0 12px 30px rgba(63, 193, 240, 0.35);

  /* Bewegung */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;

  /* Layout-Konstanten */
  --header-h: 80px;
}

/* -----------------------------------------------------------------------------
   2. RESET & BASIS
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* Sticky-Header beim Ankersprung berücksichtigen */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--color-accent-strong); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--color-primary-deep); }

ul[class] { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sichtbar nur für Screenreader (Skip-Link-Inhalt etc.) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Skip-Link für Tastatur-/Screenreader-Nutzer */
.skip-link {
  position: absolute;
  left: var(--space-sm); top: -100px;
  z-index: 1000;
  background: var(--color-primary-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-sm); color: #fff; }

/* -----------------------------------------------------------------------------
   3. TYPOGRAFIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { max-width: 65ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.section-head { max-width: var(--container-narrow); margin-bottom: var(--space-xl); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 0.75rem; }
.section-head p { margin-top: 1rem; font-size: 1.05rem; }
.section-head.center p { margin-inline: auto; }

/* -----------------------------------------------------------------------------
   4. LAYOUT-HELFER
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--color-surface-alt); }
.section--tint {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
}

/* -----------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;   /* Button-Beschriftung nie umbrechen */
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-deep);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--color-accent-strong);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(63, 193, 240, 0.45);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary-deep);
  border-color: var(--color-border);
}
.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Helle Variante für dunkle/blaue Hintergründe (Hero) */
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* -----------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Klasse wird per JS beim Scrollen gesetzt */
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 42px; width: auto; }
.brand__logo--mark { display: none; }   /* kompakte Marke nur mobil */

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.75rem);
  margin: 0;
}
.primary-nav a {
  position: relative;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.5rem 0;
  white-space: nowrap;   /* Menüpunkte nie umbrechen ("Warum ESS", "Über uns") */
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--color-primary-deep); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--space-sm); }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}
.header__phone:hover { color: var(--color-primary-deep); }
.header__phone .icon { width: 1.1em; height: 1.1em; color: var(--color-primary); }

/* Hamburger (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #eaf4fb;
  background: var(--gradient-brand);
  overflow: hidden;
  isolation: isolate;
}
/* Dezentes Blitz-/Lichtmotiv im Hintergrund */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 80% -10%, rgba(63, 193, 240, 0.45), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(43, 169, 224, 0.30), transparent 60%);
  z-index: -2;
}
.hero__bolt {
  position: absolute;
  right: -4%; top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px);
  opacity: 0.10;
  z-index: -1;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  gap: var(--space-xl);
  padding-block: clamp(3.5rem, 3rem + 6vw, 6.5rem);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5ee68a;
  box-shadow: 0 0 0 4px rgba(94, 230, 138, 0.25);
}
.hero h1 { color: #fff; margin-top: var(--space-md); max-width: 16ch; }
.hero h1 .accent { color: var(--color-accent); }
.hero__lead {
  margin-top: var(--space-md);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: #d7e9f6;
  max-width: 54ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__assurance {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #eaf4fb;
  font-size: 0.95rem;
}
.hero__assurance .icon { width: 1.3em; height: 1.3em; color: var(--color-accent); flex: none; }

/* Welle als sauberer Abschluss zum nächsten Abschnitt */
.hero__wave { display: block; width: 100%; height: auto; margin-bottom: -1px; color: var(--color-surface); }

/* -----------------------------------------------------------------------------
   8. LEISTUNGEN (Karten)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Akzentlinie oben, erscheint beim Hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(43,169,224,0.14), rgba(28,63,124,0.12));
  color: var(--color-primary);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card__icon .icon { width: 28px; height: 28px; }
.card:hover .card__icon {
  background: var(--gradient-brand);
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}
.card h3 { color: var(--color-heading); }
.card p { color: var(--color-text); font-size: 0.98rem; }
.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.card__link .icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.card__link:hover .icon { transform: translateX(4px); }

/* Hervorgehobene Karte (optional wiederverwendbar, z. B. für ein Schwerpunkt-Angebot;
   aktuell nicht aktiv genutzt – einfach .card--highlight an eine Karte hängen) */
.card--highlight {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #eaf4fb;
}
.card--highlight h3 { color: #fff; }
.card--highlight p { color: #d7e9f6; }
.card--highlight .card__icon { background: rgba(255,255,255,0.16); color: #fff; }
.card--highlight::before { display: none; }
.card--highlight .card__link { color: #fff; }

/* -----------------------------------------------------------------------------
   9. VERTRAUEN / KENNZAHLEN
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.trust-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-item .icon-wrap {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
}
.trust-item .icon-wrap .icon { width: 24px; height: 24px; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.trust-item p { font-size: 0.92rem; }

/* Kennzahlen-Band */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.stat { text-align: center; color: #fff; }
.stat__num {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__num .suffix { color: var(--color-accent); }
.stat__label { margin-top: 0.5rem; font-size: 0.92rem; color: #d7e9f6; }

/* -----------------------------------------------------------------------------
   10. ABLAUF (Prozess)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  counter-increment: step;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-sm);
  font-weight: 800; font-size: 1.2rem;
  color: #fff;
  background: var(--gradient-brand);
  border-radius: 50%;
  box-shadow: var(--shadow-accent);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.92rem; }

/* -----------------------------------------------------------------------------
   11. ÜBER UNS
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about > * { min-width: 0; }
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gradient-brand);
  aspect-ratio: 4 / 3;
}
/* Bild-Platzhalter, bis echte Fotos vorliegen */
.media-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  height: 100%;
  color: #eaf4fb;
  text-align: center;
  padding: var(--space-lg);
}
.media-placeholder .icon { width: 56px; height: 56px; opacity: 0.9; }
.media-placeholder span { font-size: 0.9rem; opacity: 0.85; max-width: 28ch; }

.about__values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.value { display: flex; gap: 0.75rem; }
.value .icon {
  flex: none; width: 1.6rem; height: 1.6rem; color: var(--color-primary);
}
.value h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.value p { font-size: 0.9rem; }

/* Floating-Badge auf dem Über-uns-Bild */
.about__badge {
  position: absolute;
  left: var(--space-md); bottom: var(--space-md);
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__badge strong { display: block; color: var(--color-heading); font-size: 1.4rem; line-height: 1; }
.about__badge span { font-size: 0.8rem; color: var(--color-text); }
.about__badge .icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
}
.about__badge .icon { width: 22px; height: 22px; }

/* -----------------------------------------------------------------------------
   12. KONTAKT & FORMULAR
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
/* min-width:0 verhindert „Grid-Blowout" durch lange, nicht umbrechbare Inhalte
   (z. B. die E-Mail-Adresse) – die Spalte darf unter ihre Inhaltsbreite schrumpfen. */
.contact > * { min-width: 0; }
.contact__intro h2 { margin-top: 0.75rem; }
.contact__intro p { margin-top: 1rem; }

.contact__details {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-line:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.contact-line .icon-wrap {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--gradient-brand); color: #fff;
}
.contact-line .icon-wrap .icon { width: 22px; height: 22px; }
.contact-line > div { min-width: 0; }   /* erlaubt Umbruch langer Werte */
.contact-line dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); font-weight: 700; }
.contact-line dd { margin: 0; font-weight: 600; color: var(--color-heading); overflow-wrap: anywhere; }
.contact-line dd a { color: var(--color-heading); }
.contact-line dd a:hover { color: var(--color-primary-deep); }

/* Formular */
.form {
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form__grid > * { min-width: 0; }   /* Felder dürfen schrumpfen, kein Überlauf */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--color-heading); font-size: 0.92rem; }
.field .req { color: var(--color-accent-strong); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--color-heading);
  padding: 0.8rem 1rem;
  background: var(--color-surface-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(63, 193, 240, 0.18);
}
/* Validierungs-Feedback */
.field .error-msg { font-size: 0.82rem; color: #c0392b; min-height: 1em; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #e07a6f;
  background: #fdf3f2;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e07a6f; }

.form__consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.86rem; color: var(--color-text);
}
.form__consent input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--color-primary); }
.form__consent a { font-weight: 600; }

.form__footer { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-sm); }
.form__note { font-size: 0.8rem; color: var(--color-muted); }

/* Erfolgsmeldung nach Absenden */
.form__status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}
.form__status.is-success {
  display: flex;
  background: #eafaf1; color: #1e7e4f; border: 1px solid #b7e4c7;
}
.form__status .icon { width: 1.2em; height: 1.2em; flex: none; }

/* -----------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: #c3cede;
  padding-top: var(--space-2xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.footer__brand .brand__logo--mark { height: 64px; display: block; }
.footer__brand p { margin-top: var(--space-sm); font-size: 0.92rem; color: #9fb0c6; max-width: 34ch; }
.footer__social { display: flex; gap: 0.6rem; margin-top: var(--space-md); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--color-accent); color: var(--color-primary-deep); transform: translateY(-3px); }
.footer__social .icon { width: 20px; height: 20px; }

.footer__col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-md); }
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a { color: #c3cede; font-size: 0.94rem; }
.footer__col a:hover { color: var(--color-accent); }
.footer__col address { font-style: normal; font-size: 0.94rem; line-height: 1.9; color: #c3cede; overflow-wrap: anywhere; }
.footer__col address a { color: inherit; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding-block: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 0.86rem; color: #8595ad;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.footer__bottom a { color: #8595ad; }
.footer__bottom a:hover { color: var(--color-accent); }
.footer__placeholder { color: #6f7f97; font-size: 0.8rem; }

/* -----------------------------------------------------------------------------
   14. ANIMATIONEN (Scroll-Reveal + Hover-Detail)
   -------------------------------------------------------------------------- */
/* Grundzustand der Reveal-Elemente; .is-visible wird per IntersectionObserver gesetzt */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
/* Gestaffeltes Erscheinen innerhalb einer Gruppe */
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 0.40s; }

/* Zurück-nach-oben-Button */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  background: var(--color-primary-deep);
  color: #fff;
  border: none; border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur), background var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--color-accent); color: var(--color-primary-deep); }
.to-top .icon { width: 22px; height: 22px; }

/* -----------------------------------------------------------------------------
   15. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Ab Tablet: Über-uns & Kontakt zweispaltig */
@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr 1fr; }
}

/* Ab Desktop: Hero einspaltig links (Text), breiter */
@media (min-width: 960px) {
  .hero__inner { max-width: 760px; }
}

/* Mobile-Navigation: bis 1200px Burger-Menü (darunter wird die horizontale
   Leiste mit dem breiten Wortmarken-Logo sonst zu eng) */
@media (max-width: 1200px) {
  .brand__logo--full { display: none; }
  .brand__logo--mark { display: block; height: 48px; }

  .nav-toggle { display: flex; }
  .header__phone span { display: none; }   /* nur Icon behalten */

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-sm); }
  .primary-nav li { width: 100%; }
  .primary-nav a { display: block; padding: 0.9rem var(--space-sm); border-radius: var(--radius-sm); }
  .primary-nav a::after { display: none; }
  .primary-nav a:hover { background: var(--color-surface-alt); }
}

/* Footer auf kleineren Schirmen stapeln */
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}
@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .hero__assurances { gap: var(--space-sm) var(--space-md); }
}

/* -----------------------------------------------------------------------------
   16. REDUCED MOTION / A11y
   -------------------------------------------------------------------------- */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* -----------------------------------------------------------------------------
   17. SUBSEITEN (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
/* Schlanker Seitenkopf statt großem Hero */
.subpage-hero {
  background: var(--gradient-brand);
  color: #eaf4fb;
  padding-block: clamp(2.25rem, 1.8rem + 3.5vw, 3.75rem);
}
.subpage-hero .eyebrow { color: var(--color-accent); }
.subpage-hero .eyebrow::before { background: var(--color-accent); }
.subpage-hero h1 { color: #fff; margin-top: 0.6rem; }
.subpage-hero .breadcrumb {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #d7e9f6;
}
.subpage-hero .breadcrumb a { color: #fff; font-weight: 600; }
.subpage-hero .breadcrumb a:hover { color: var(--color-accent); }
.subpage-hero .breadcrumb span { opacity: 0.7; margin-inline: 0.4rem; }

/* Inhaltsbereich */
.legal { padding-block: var(--section-pad); }
.legal__inner { max-width: var(--container-narrow); margin-inline: auto; }
.legal h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--color-text); }
.legal p { margin-top: 0.9rem; max-width: none; }
.legal ul { margin-top: 0.9rem; padding-left: 1.25rem; list-style: disc; display: grid; gap: 0.45rem; }
.legal ul[class] { list-style: disc; }   /* generische Reset-Regel hier aufheben */
.legal a { font-weight: 600; }
.legal address {
  font-style: normal;
  line-height: 1.8;
  margin-top: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.legal__updated { margin-top: 2.5rem; font-size: 0.85rem; color: var(--color-muted); }

/* Hinweis-/Entwurf-Box */
.note-box {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  padding: 1rem 1.25rem;
  background: #fff8e6;
  border: 1px solid #f3dca0;
  border-left: 4px solid #e0a800;
  border-radius: var(--radius-sm);
  color: #6b5200;
  font-size: 0.92rem;
}
.note-box .icon { flex: none; width: 1.4rem; height: 1.4rem; color: #b8860b; margin-top: 0.1rem; }
.note-box strong { color: #5a4500; }

/* Hervorhebung für noch zu befüllende Platzhalter */
.ph {
  font-style: normal;
  background: #fff3cd;
  color: #7a5b00;
  padding: 0.05em 0.35em;
  border-radius: 3px;
  border: 1px dashed #e0a800;
  white-space: nowrap;
}
