/* =====================================================================
   Root Elektrotechnik GmbH – Stylesheet
   ---------------------------------------------------------------------
   Aufbau:
   1. Design-Tokens (Farben, Typografie, Abstände)
   2. Reset & Grundlagen
   3. Layout-Hilfen (Container, Sektionen, Grid)
   4. Typografie
   5. Buttons & Links
   6. Header & Navigation
   7. Footer
   8. Komponenten (Karten, Bildplatz, Bewertungen, Stellen, Formular)
   9. Seitenspezifische Bausteine (Hero, Nutzen, CTA)
   10. Barrierefreiheit & Responsives Verhalten
   ===================================================================== */

/* 1. DESIGN-TOKENS ---------------------------------------------------- */
:root {
  /* CI-Rot sparsam als Akzent. Einziger kräftiger Farbton. */
  --rot: #c50910;
  --rot-dunkel: #9e070d;        /* Hover-Zustand */

  /* Kontrast & Text */
  --anthrazit: #16191d;         /* Überschriften, starker Text */
  --text: #2b2f36;             /* Fließtext */
  --text-leise: #5d646e;        /* sekundärer Text */

  /* Flächen */
  --weiss: #ffffff;
  --grau-hell: #f5f6f8;         /* Sektionsflächen */
  --grau: #e6e8ec;             /* Linien, Rahmen */
  --grau-platzhalter: #dfe2e7;  /* Bildplatz */

  /* Maße */
  --container: 1140px;
  --radius: 10px;
  --radius-gross: 16px;
  --schatten: 0 2px 8px rgba(22, 25, 29, .06), 0 8px 24px rgba(22, 25, 29, .06);
  --schatten-stark: 0 4px 14px rgba(22, 25, 29, .10), 0 12px 32px rgba(22, 25, 29, .10);

  /* Schrift: System-Stack, damit keine externen Fonts geladen werden
     (DSGVO-konform, schnell, keine Google-Fonts-CDN). */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --abstand-sektion: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Versatz für Sprungmarken, damit der klebende Header die Überschrift nicht verdeckt */
[id] { scroll-margin-top: 110px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;   /* lange Wörter (z. B. Marktstammdatenregister) umbrechen, kein horizontales Scrollen */
}

/* Sicherheitsnetz gegen seitliches Scrollen (clip statt hidden, damit der
   sticky Header nicht bricht) */
body { overflow-x: clip; }

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

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

.sektion { padding-block: var(--abstand-sektion); }
.sektion--grau { background: var(--grau-hell); }
.sektion--anthrazit { background: var(--anthrazit); color: #d9dde3; }
.sektion--schmal { padding-block: clamp(2.5rem, 5vw, 4rem); }

.sektion-kopf { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sektion-kopf--zentriert { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
                             .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 4. TYPOGRAFIE ------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--anthrazit);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-leise); line-height: 1.6; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rot); margin-bottom: .9rem;
}
.sektion--anthrazit h1, .sektion--anthrazit h2, .sektion--anthrazit h3 { color: #fff; }
.text-leise { color: var(--text-leise); }

/* 5. BUTTONS & LINKS -------------------------------------------------- */
a { color: var(--rot); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rot-dunkel); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primaer { background: var(--rot); color: #fff; }
.btn--primaer:hover { background: var(--rot-dunkel); color: #fff; }
.btn--sekundaer { background: transparent; color: var(--anthrazit); border-color: var(--grau); }
.btn--sekundaer:hover { border-color: var(--anthrazit); color: var(--anthrazit); }
.btn--hell { background: #fff; color: var(--anthrazit); }
.btn--hell:hover { background: #f0f0f0; color: var(--anthrazit); }
.btn--gross { padding: 1.1rem 1.9rem; font-size: 1.0625rem; }

.btn-gruppe { display: flex; flex-wrap: wrap; gap: .85rem; }

/* 6. HEADER & NAVIGATION --------------------------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 200;
  background: var(--anthrazit); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--radius); transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Obere Infoleiste (scrollt mit, nur der Hauptheader bleibt sticky) */
.topbar { background: #fff; border-bottom: 1px solid var(--grau); font-size: .92rem; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem 1.5rem; min-height: 46px; flex-wrap: wrap;
}
.topbar-info { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; color: var(--text-leise); }
.topbar-item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar-item svg, .topbar-tel svg { width: 16px; height: 16px; color: var(--rot); flex: none; }
.topbar a { text-decoration: none; color: var(--text-leise); }
.topbar a:hover { color: var(--anthrazit); }
.topbar-tel { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--anthrazit); }
@media (max-width: 620px) {
  .topbar-info { display: none; }          /* auf kleinen Displays nur die Telefonnummer */
  .topbar-inner { justify-content: center; min-height: 42px; }
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;                 /* deckend weiß, damit der weiße Logo-Kasten
                                       über jedem Hintergrund nahtlos blendet */
  border-bottom: 1px solid var(--grau);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 60px; width: auto; }
.logo span { font-weight: 800; color: var(--anthrazit); font-size: 1.15rem; letter-spacing: -.01em; }
@media (min-width: 881px) {
  .header-inner { min-height: 96px; }
  .logo img { height: 78px; }
}

.hauptnav ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.hauptnav a {
  display: block; padding: .55rem .8rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.hauptnav a:hover { background: var(--grau-hell); color: var(--anthrazit); }
.hauptnav a[aria-current="page"] { color: var(--rot); }
.hauptnav a.nav-cta {
  background: var(--rot); color: #fff; padding-inline: 1.1rem; margin-left: .4rem;
}
.hauptnav a.nav-cta:hover { background: var(--rot-dunkel); }

/* Aufklappmenü "Leistungen" */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .7;
}
.dropdown {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--grau); border-radius: 12px;
  box-shadow: var(--schatten); z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
/* Untereinander statt nebeneinander (überstimmt .hauptnav ul display:flex) */
.has-dropdown .dropdown { display: block; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown li { display: block; width: 100%; }
.dropdown a { display: block; padding: .6rem .8rem; border-radius: 8px; white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px; color: var(--anthrazit);
}
.nav-toggle svg { width: 100%; height: 100%; }
.nav-toggle .icon-schliessen { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menue { display: none; }
.nav-toggle[aria-expanded="true"] .icon-schliessen { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .hauptnav {
    position: absolute; inset: 76px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--grau);
    padding: .6rem clamp(1.1rem, 4vw, 2rem) 1.2rem;
    box-shadow: var(--schatten);
    display: none; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .hauptnav.offen { display: block; }
  .hauptnav ul { flex-direction: column; gap: .15rem; }
  .hauptnav a { padding: .85rem .8rem; font-size: 1.05rem; }
  .hauptnav a.nav-cta { margin: .5rem 0 0; text-align: center; }

  /* Aufklappmenü auf Mobil: dauerhaft sichtbar und eingerückt */
  .has-dropdown > a::after { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 .2rem .7rem;
    min-width: 0; background: transparent;
  }
  .dropdown a { padding: .6rem .8rem; font-size: 1rem; color: var(--text-leise); }
}

/* 7. FOOTER ----------------------------------------------------------- */
.site-footer { background: var(--anthrazit); color: #b9bfc8; }
.site-footer .container { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: .8rem; }
.site-footer a { color: #d9dde3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-claim { color: #fff; font-weight: 700; font-size: 1.1rem; max-width: 30ch; }
.footer-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-unten {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; justify-content: space-between;
  font-size: .9rem;
}
.footer-unten nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

/* 8. KOMPONENTEN ------------------------------------------------------ */

/* Karte (Leistung etc.) */
.karte {
  background: #fff; border: 1px solid var(--grau); border-radius: var(--radius-gross);
  padding: 1.6rem;
}
/* Karten, die direkt im Raster liegen, auf gleiche Höhe strecken (aber NICHT
   die verschachtelten Karten unter einem Bild, sonst überlaufen sie) */
.grid > .karte { height: 100%; }
.karte--flaeche { box-shadow: var(--schatten); border-color: transparent; }
.karte .karte-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(197, 9, 16, .08); color: var(--rot); border-radius: 12px; margin-bottom: 1rem;
}
.karte .karte-icon svg { width: 26px; height: 26px; }
.karte h3 { margin-bottom: .5rem; }
.karte p:last-child { margin-bottom: 0; }
.karte ul { margin: .6rem 0 0; padding-left: 1.15rem; }
.karte ul li { margin-bottom: .35rem; }

/* Echte Fotos: einheitlicher Rahmen mit festem Seitenverhältnis */
.foto-rahmen {
  border-radius: var(--radius-gross); overflow: hidden;
  box-shadow: var(--schatten); aspect-ratio: 4 / 5; margin: 0;
}
.foto-rahmen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-rahmen--breit { aspect-ratio: 4 / 3; }
.foto-rahmen + .karte { margin-top: 1.25rem; }

/* Bildplatz (klar markierter Platzhalter für spätere echte Fotos) */
.bildplatz {
  display: grid; place-items: center; text-align: center;
  background: var(--grau-platzhalter);
  background-image: repeating-linear-gradient(45deg,
     rgba(255,255,255,.35) 0 12px, transparent 12px 24px);
  color: #6b7280; border-radius: var(--radius-gross);
  min-height: 260px; padding: 1.5rem; font-weight: 600;
  border: 1px dashed #b7bdc6;
}
.bildplatz span { display: block; max-width: 30ch; }
.bildplatz small { display:block; font-weight: 500; color:#7a818c; margin-top:.3rem; }

/* Nutzen-Block (drei Vorteile) */
.nutzen { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .nutzen { grid-template-columns: repeat(3, 1fr); } }
.nutzen-item { padding-top: 1.4rem; border-top: 3px solid var(--rot); }
.nutzen-item .nr { font-weight: 800; color: var(--rot); font-size: .95rem; letter-spacing: .05em; }
.nutzen-item h3 { margin: .4rem 0 .5rem; }

/* Vertrauenszeile / Badges */
.trust-zeile {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center;
  color: var(--text-leise); font-size: .95rem; font-weight: 600; margin-top: 1.4rem;
}
.trust-zeile .punkt { display: inline-flex; align-items: center; gap: .45rem; }
.trust-zeile svg { width: 18px; height: 18px; color: var(--rot); flex: none; }

.meister-hinweis {
  background: var(--grau-hell); border-left: 4px solid var(--rot);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.4rem; margin-top: 2rem;
}
.meister-hinweis p { margin: 0; }

/* Bewertungen */
.bewertung-karte {
  background: #fff; border: 1px solid var(--grau); border-radius: var(--radius-gross);
  padding: 1.5rem; height: 100%; display: flex; flex-direction: column;
}
.sterne { display: inline-flex; gap: 2px; color: var(--rot); margin-bottom: .8rem; }
.sterne svg { width: 20px; height: 20px; }
.bewertung-text {
  font-size: 1.05rem; color: var(--anthrazit); margin-bottom: .6rem;
  /* einheitliche Höhe: auf 6 Zeilen kürzen, Rest per "Weiterlesen" aufklappen */
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.bewertung-karte.offen .bewertung-text {
  -webkit-line-clamp: unset; line-clamp: unset; display: block; overflow: visible;
}
.mehr-lesen {
  align-self: flex-start; background: none; border: 0; padding: 0; margin: 0 0 1rem;
  font: inherit; font-weight: 700; color: var(--rot); cursor: pointer;
}
.mehr-lesen:hover { color: var(--rot-dunkel); text-decoration: underline; }
.bewertung-autor { margin-top: auto; font-weight: 700; color: var(--text); }
.bewertung-autor small { display: block; font-weight: 500; color: var(--text-leise); }
.bewertung-karte--platzhalter {
  border-style: dashed; border-color: #b7bdc6; background: var(--grau-hell); color: #6b7280;
}
.bewertung-karte--platzhalter .sterne { opacity: .5; }
.daten-hinweis {
  font-size: .85rem; color: var(--text-leise); margin-top: 1.5rem;
}

/* Stellen (Karriere) */
.stelle {
  background: #fff; border: 1px solid var(--grau); border-radius: var(--radius-gross);
  padding: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.25rem;
}
.stelle-kopf { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: baseline; justify-content: space-between; }
.stelle h3 { margin-bottom: .2rem; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  padding: .3rem .7rem; border-radius: 999px; background: rgba(197,9,16,.1); color: var(--rot);
  white-space: nowrap;
}
.stelle-spalten { display: grid; gap: 1.2rem; margin-top: 1.1rem; }
@media (min-width: 720px) { .stelle-spalten { grid-template-columns: 1fr 1fr; } }
.stelle-spalten h4 { color: var(--rot); margin-bottom: .5rem; }
.stelle-spalten ul { margin: 0; padding-left: 1.15rem; }
.stelle-spalten li { margin-bottom: .35rem; }

/* Bewerbungswege (linksbündig, einheitlich mit dem Rest der Seite) */
.weg-karte .karte-icon { margin-inline: 0; }

/* Liste mit Häkchen (Benefits) */
.check-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
@media (min-width: 720px) { .check-liste { grid-template-columns: 1fr 1fr; } }
.check-liste li { display: flex; gap: .65rem; align-items: flex-start; }
.check-liste svg { width: 22px; height: 22px; color: var(--rot); flex: none; margin-top: 2px; }

/* Formular */
.formular { display: grid; gap: 1.1rem; max-width: 640px; }
.feld { display: grid; gap: .4rem; }
.feld label { font-weight: 700; color: var(--anthrazit); font-size: .95rem; }
.feld .pflicht { color: var(--rot); }
.feld input, .feld select, .feld textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: .8rem .9rem; border: 1px solid var(--grau); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(197,9,16,.15);
}
.feld--check { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.feld--check input { width: auto; margin-top: .25rem; }
.feld--check label { font-weight: 500; font-size: .95rem; color: var(--text); }
.formular-hinweis { font-size: .9rem; color: var(--text-leise); }
.formular-status { padding: .9rem 1.1rem; border-radius: var(--radius); font-weight: 600; display: none; }
.formular-status.ok { display: block; background: rgba(29,122,61,.10); color: #1d7a3d; }
.formular-status.fehler { display: block; background: rgba(197,9,16,.10); color: var(--rot); }
/* Spam-Honeypot: fuer Menschen unsichtbar, fuer Bots ein Koeder */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kontakt-Infozeilen */
.kontakt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.kontakt-liste li { display: flex; gap: .8rem; align-items: flex-start; }
.kontakt-liste .karte-icon { margin: 0; flex: none; }
.kontakt-liste a { font-weight: 700; text-decoration: none; }
.kontakt-liste .label { font-size: .85rem; color: var(--text-leise); display: block; }

/* Region-Listen */
.region-grid { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
.region-grid h4 { color: var(--rot); margin-bottom: .4rem; }

/* Rechtstexte */
.rechtstext { max-width: 820px; }
.rechtstext h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.rechtstext h2:first-of-type { margin-top: 0; }
.rechtstext .stand { color: var(--text-leise); font-style: italic; }
.hinweis-ergaenzen {
  background: #fff6f6; border: 1px solid var(--rot); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: 1rem 0; color: var(--rot-dunkel);
}
.hinweis-ergaenzen strong { color: var(--rot); }

/* 9. HERO ------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.6rem; }
.hero .bildplatz { min-height: 360px; }

.hero--karriere { background: var(--anthrazit); }
.hero--karriere h1, .hero--karriere .lead { color: #fff; }
.hero--karriere .lead { color: #c9cfd8; }

/* Seitenkopf (innere Seiten) */
.seitenkopf { background: var(--grau-hell); padding-block: clamp(2.5rem, 5vw, 4rem); }
.seitenkopf p { max-width: 65ch; }

/* CTA-Band */
.cta-band { background: var(--anthrazit); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9cfd8; max-width: 60ch; margin-inline: auto; margin-bottom: 1.8rem; }
.cta-band .btn-gruppe { justify-content: center; }

/* Karriere-Teaser auf Startseite */
.teaser-karriere { background: var(--grau-hell); }
.teaser-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .teaser-grid { grid-template-columns: 1fr 1fr; } }

/* Breadcrumb-frei: einfache Inhaltslisten */
.info-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  /* Leistungsabschnitte: Spalten vertikal zentrieren, damit der Leerraum
     ausgewogen oben und unten verteilt ist statt als Block unten */
  .info-grid.info-grid--mitte { align-items: center; }
}

/* 10. BARRIEREFREIHEIT ------------------------------------------------ */
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; border-radius: 4px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Utility */
.text-center { text-align: center; }
.mt-klein { margin-top: 1rem; }
.mt-mittel { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ============ Cookie-Banner (Consent fuer Meta-Pixel) ============ */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--weiss);
  border-top: 1px solid var(--grau);
  box-shadow: 0 -6px 24px rgba(22, 25, 29, .12);
  padding: 1rem clamp(1rem, 4vw, 2rem);
}
#cookie-banner .cookie-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
}
#cookie-banner .cookie-text {
  flex: 1 1 340px; min-width: 0;
  font-size: .95rem; line-height: 1.55; color: var(--text);
}
#cookie-banner .cookie-text a { color: var(--rot); }
#cookie-banner .cookie-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
#cookie-banner .cookie-detail {
  flex: 1 1 100%; display: grid; gap: .6rem; margin: .2rem 0;
  padding-top: .8rem; border-top: 1px solid var(--grau);
}
#cookie-banner .cookie-option {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9rem; line-height: 1.45; color: var(--text);
}
#cookie-banner .cookie-option input {
  margin-top: .2rem; flex: none; width: 18px; height: 18px; accent-color: var(--rot);
}
.cookie-btn {
  font: inherit; font-weight: 700; line-height: 1;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cookie-btn--primary { background: var(--rot); color: #fff; }
.cookie-btn--primary:hover { background: var(--rot-dunkel); }
.cookie-btn--ghost { background: transparent; color: var(--anthrazit); border-color: var(--grau); }
.cookie-btn--ghost:hover { border-color: var(--anthrazit); }
.cookie-einstellungen { cursor: pointer; }
@media (max-width: 640px) {
  #cookie-banner .cookie-inner { flex-direction: column; align-items: stretch; gap: .9rem; }
  #cookie-banner .cookie-btns { }
  .cookie-btn { flex: 1; }
}
