/* =============================================
   LadeGuide — Shared Stylesheet v2.0
   Modern, responsive, SEO/GEO-optimized
   ============================================= */

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

:root {
  --primary: #0b68c3; /* Electric Blue - brand color */
  --primary-hover: #094da0;
  --secondary: #15a34a; /* Charger Green */
  --secondary-dark: #0d7e38;
  --accent: #facc41; /* Energy Yellow */
  --dark: #121826; /* Deep navy text */
  --muted: #55617b; /* Secondary text */
  --border: #d8e0ec;

  --bg-body: #f3f6fb;
  --bg-card: #fff;
  --radius: 14px;
  --shadow-sm: 0 1px 5px rgba(11, 104, 195, 0.08);
  --shadow-md: 0 4px 20px rgba(11, 104, 195, 0.12);
  --faint: #9aa2b1; /* Fußzeilen / kleine Hinweise */
  --font-main: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--secondary);
}

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

/* ---------- Container ---------- */
.page-wrapper {
  max-width: 68rem; /* ~1088px — lesbare Zeilenlänge, zentriert */
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ============= HEADER (Shared) — Slim-Bar (seit 06.09.2026) ==============
   Struktur: Logo · Slogan · CTA · Burger (Burger IMMER sichtbar:
   Desktop rechts im Header, mobil oben rechts — Entscheidung 07.09.)
   Navigation: Overlay-Panel (Burger öffnet, JS: main.js initNavToggle)
   Slogan + CTA + Logo + Burger kommen pro Datei aus einer SSI-Quelle:
   _partials/header.html  (SSI: AddHandler server-parsed .html, siehe .htaccess)
   => Niemals mehr den Header direkt in den 5 HTMLs editieren!                */
.site-header {
  background: linear-gradient(135deg, var(--primary) 60%, #0e7a8b 100%);
  color: white;
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
}
.header-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-header .header-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.92;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
/* CTA-Button im Header (grüner Akzent auf Blau) — bewusst kräftiger:
   Hauptaktionspunkt der Site, muss auf einen Blick auffallen (Entscheidung 07.09.) */
.btn-header {
  background: var(--secondary);
  color: #fff;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 126, 56, 0.45);
  margin-left: auto;
  white-space: nowrap;
}
.btn-header:hover {
  background: var(--secondary-dark);
  box-shadow: 0 4px 14px rgba(13, 126, 56, 0.55);
}

/* Navigation: Sidebar rechts auf allen Screens (Burger öffnet),
   Panel-Inhalt scrollt bei Bedarf, Boxen bleiben kompakt.
   Styling + Toggle-Logik unten. Burger sichtbar auf allen Screens. */

/* ============= NAVIGATION (ein Modus, seit 20.09.2026) ============
   Alle Screens: Fixierte Sidebar rechts (≤599px: 340px breit,
   ≥600px: max. 440px), Slide-in-Animation, Backdrop über den
   Inhalt. Der Panel-Inhalt überschreitet den Viewport und
   SCROLLT — Inhalte werden nicht gegen die Viewport-Höhe
   gequetscht. CTA „Auf die Warteliste" klemmt unten
   (margin-top: auto). Toggle: js/main.js initNavToggle
   (data-menu-open auf .site-header).
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  /* stylelint-disable-next-line property-no-deprecated --
     Klassisches WAI sr-only-Rezept: clip für Legacy, clip-path als
     moderne Äquivalenz. Absichtliche Doppeldeklaration. */
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Burger-Button (drei Balken, animiert zu "X" bei geöffnetem Menü) */
.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s ease;
  /* Toggle muss über das geöffnete Panel klickbar bleiben
     (sonst über malt es das positionierte .main-nav in der
     Header-Stacking-Kontext). */
  position: relative;
  z-index: 1001;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}
.nav-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

/* "X"-Form: mittlerer Balken verschwindet, obere/untere rotieren */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Panel (alle Screens): fixe Sidebar rechts, Slide-in von rechts,
   dunkler Backdrop über den Inhalt. Der PANEL-INHALT SCROLLT bei
   Bedarf — das Panel bleibt 100vh, die Boxen kompakt; wir dehnen
   nichts gegen den Viewport auf. Standardmäßig versteckt, geöffnet
   per data-menu-open="true". */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.55rem;
  padding: 5.5rem 1.25rem 1.5rem;
  background: linear-gradient(165deg, #0d4f2a 0%, #0e2a3f 60%, #0e2a3f 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateX(102%);
  transition:
    transform 0.28s ease,
    visibility 0s 0.28s;
}
.main-nav a {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 2rem;
  min-height: 48px; /* WCAG-2 Touch-Ziel, auch bei Fließtext-Padding */
  text-align: center;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

/* ===== Menü-Cluster (Stand 20.09.2026) =====
   Struktur: Hub „⚡ E-Auto laden" als Button, darunter die
   Cluster LadeGuide.com / Dienstleistungen / Unterstützung und
   die 4 Nummer-Cluster (1 Wissen … 4 Verdienen). CTA „Auf die
   Warteliste" klemmt unten im Panel (margin-top: auto).
   Das Panel ist auf allen Screens eine Sidebar rechts, deren
   Inhalt bei Bedarf scrollt — Boxen bleiben kompakt. */
.nav-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.nav-hub-title {
  font-size: 1.35rem;
  font-weight: 700;
}
.nav-hub-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}
.nav-hub:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.nav-clusters {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}
.nav-cluster {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  padding: 0.45rem 1rem 0.45rem 1.1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.05);
}
.nav-cluster-no {
  font-size: 1.05rem;
  font-weight: 800;
  color: #facc41;
}
.nav-cluster-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px dotted #fff;
}
.nav-cluster-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  font-size: 0.95rem;
}
.main-nav .nav-cluster-links a {
  width: auto;
  padding: 0.12rem 0.55rem;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 6px;
}
.main-nav .nav-cluster-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
/* CTA unten im Menü: klemmt ans Panel-Ende (margin-top: auto),
   Button volle Breite, kompakte Zeile — Touch-Ziel ≥48px.
   Bewusst auf .main-nav eingezont, damit die .nav-cta-Klasse im
   Header-Button nicht mitgezogen wird. */
.main-nav .nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}
.main-nav .nav-cta .btn-header {
  width: 100%;
  justify-content: center;
  margin-left: 0;
}
.main-nav .nav-cta-note {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ===== Serie-Box (E-Auto-laden-Hub ↔ Themen-Artikel) =====
   Kompakte Verweis-Leiste direkt unter der H1 auf den Themen-Artikeln:
   Hub-Link + die 4 Cluster (aktueller als <a>, aktuelle Seite als
   <span> mit ARIA-Markierung) + optionaler „Weiter"-Fluss-Link. */
.serie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin: 0 0 2rem;
  padding: 0.8rem 1.1rem;
  background: var(--bg-body);
  border-left: 4px solid var(--secondary);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.serie-hub {
  font-weight: 700;
  white-space: nowrap;
}
.serie-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
}
.serie-steps a {
  color: var(--secondary-dark);
  font-weight: 600;
}
.serie-steps a:hover {
  text-decoration-thickness: 2px;
}
.serie-current {
  color: var(--faint);
  font-weight: 600;
}
.serie-next {
  white-space: nowrap;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.serie-next:hover {
  color: var(--secondary-dark);
  text-decoration-thickness: 2px;
}

/* Hub-Karten: Abstand vom CTA-Button */
.cluster-more {
  margin-top: 1rem;
}

/* Geöffneter Zustand: Panel schiebt sich rein */
.site-header[data-menu-open="true"] .main-nav {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.28s ease,
    visibility 0s 0s;
}

/* ===== Responsive-Stufen (Ein-Spalte, Panel scrollt) =====
   ≤599px (Mobil): schmaleres Panel (340px), große Touch-Targets,
                   Boxen füllen das Panel exakt (min-width:0).
   ≥600px (Tablet & Desktop): breiteres Panel (max. 440px),
                   Boxen volle Breite, Links linksbündig. */
@media (max-width: 599px) {
  .main-nav {
    width: min(340px, 86vw);
  }
  .main-nav a {
    min-width: 0;
  }
  .nav-hub {
    min-width: 0;
    align-items: flex-start;
    text-align: left;
    padding: 0.8rem 1.2rem;
  }
  .nav-hub-title {
    font-size: 1.25rem;
  }

  /* Backdrop: nur der Bereich links des Panels ist klickbar,
     schließt das Menü. */
  .site-header[data-menu-open="true"]::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(6, 20, 38, 0.55);
    z-index: 998;
  }
}

@media (min-width: 600px) {
  .main-nav {
    width: min(440px, 92vw);
  }
  .main-nav a,
  .nav-hub {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    font-size: 1.05rem;
  }
  .main-nav a {
    padding: 0.55rem 1rem;
  }
  .nav-hub {
    align-items: flex-start;
  }
  .nav-cluster-links {
    flex-wrap: wrap;
    gap: 0.05rem 0.5rem;
  }
  .main-nav .nav-cta {
    width: 100%;
    margin-top: auto; /* CTA klemmt an die Sidebar-Basis */
  }

  /* Backdrop: nur der Bereich links des Panels ist klickbar,
     schließt das Menü. */
  .site-header[data-menu-open="true"]::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(6, 20, 38, 0.55);
    z-index: 998;
  }
}

/* Seiteninhalt blockiert, wenn Menü offen (Scroll-Sperre) */
body.menu-locked {
  overflow: hidden;
}

/* ============= HERO (Landingpage) =========== */
.hero {
  text-align: center;
  margin-top: 3.2rem;
  padding: 3rem 0 1.6rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.22;
  margin: 0;
}
.hero .tagline {
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  margin: 0.4rem 0 0;
}
.hero-cta {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============= BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.6rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--secondary-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #0a6430;
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* ============= SECTIONS (info-pages) ======= */
.section {
  margin-bottom: 3rem;
}
.section h2 {
  color: var(--primary);
  font-size: 1.65rem;
  border-bottom: 3px solid #e4ecf7;
  padding-bottom: 0.25em;
  margin-bottom: 1.5rem;
}
.section h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 1.8em;
}
.section p {
  max-width: 65ch;
  line-height: 1.75;
}

/* info box */
.info-box {
  background: linear-gradient(135deg, #eaf6ff, #dffbe8);
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
}
.info-box h3 {
  margin-top: 0;
  color: #0b7ec9;
}

/* advisory box (Hinweis / Wichtig) — abgeleitet von .info-box, warmer Ton */
.advisory-box {
  background: linear-gradient(135deg, #fff7e0, #ffefc4);
  border-left: 4px solid #d97706;
  padding: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
}
.advisory-box h3 {
  margin-top: 0;
  color: #b45309;
}

/* ============= CARDS (feature / USP-grid) === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.2rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  display: block;
}
.card h3 {
  color: var(--primary);
  margin-top: 0.2rem;
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}
.card p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============= USP SECTION =========== */
.usp-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
}
.usp-section h2 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-top: 0;
}
.usp-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #eef3f9;
}
.usp-item:last-child {
  border-bottom: none;
}
.usp-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 3.2em;
  text-align: center;
  background: #eaf6ff;
  border-radius: 50%;
  line-height: 3rem;
}
.usp-text h3 {
  color: var(--primary);
  margin: 0.1em 0 0.2em;
  font-size: 1.1rem;
}
.usp-text p {
  color: var(--muted);
  max-width: 60ch;
}
/* ============= DATA TABLE ============== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.97rem;
}
.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.data-table tbody tr:nth-child(even) {
  background: #f6f9fd;
}

/* ============= FAQ ============== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  background: #f1f5fb;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease;
}
.faq-question:hover {
  background: #e7eef8;
}
.faq-question .faq-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 16px 16px 20px;
  border-top: 1px solid var(--border);
}
.faq-answer[hidden] {
  display: none;
}
.faq-answer p {
  margin-top: 0;
}

/* ============= GLOSSAR (Begriffsliste) ============= */
.glossar {
  margin: 1.5rem 0;
  display: grid;
  gap: 0;
}
.glossar dt {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.02rem;
  margin-top: 1.1rem;
}
.glossar dt:first-of-type {
  margin-top: 0;
}
.glossar dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 1.2rem;
  border-left: 3px solid var(--border);
}

/* ============= NEWSLETTER ============== */
.newsletter {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.newsletter h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.newsletter p {
  color: var(--muted);
  max-width: 55ch;
  margin: 0 auto 1.5rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.newsletter-field {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Button vertikal zur Eingabe ausgerichtet (Hint-Zeile nimmt Höhe unter dem Feld). */
.newsletter-form .btn {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.newsletter .newsletter-hint {
  margin-top: 0.35rem;
  min-height: 1.15em; /* Platz reservieren, damit Button/Layout nicht springt */
  font-size: 0.85rem;
  /* Wichtiger als das generische `.newsletter p` (höhere Spezifität): */
  color: #b42318; /* = Newsletter-Fehlerrot (.newsletter-status--error) */
  font-weight: 500;
}
.newsletter-form input[type="email"] {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 1rem;
  font-family: inherit;
  min-width: min(260px, 60vw);
}
.newsletter-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.newsletter-status--error {
  color: #b42318;
}

/* ============= UTILITIES & CTA ============== */
.text-center {
  text-align: center;
}

.page-main {
  padding-top: 3rem;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.footnote {
  margin-top: 1rem;
  font-size: 0.9em;
  color: var(--muted);
}

/* Eingeführter Text, zentriert, begrenzte Lesebreite */
.lead-muted {
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

/* Heller Button auf farbigen Flächen */
.btn-ghost {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-ghost:hover {
  background: #eaf3fc;
}

/* CTA-Gruppen mit größerem Abstand */
.hero-cta--large {
  margin-top: 2rem;
}

/* Einzel-CTA, zentriert, gleiche Höhe wie .hero-cta */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* Anbieter-Links (z. B. ADAC) */
.provider-link {
  font-weight: 600;
}

/* USP-Block: zentrierte Variante (Landingpage) */
.usp-section--centered {
  text-align: center;
}
.usp-section--centered .usp-item {
  flex-direction: column;
  align-items: center;
}
.usp-section--centered .usp-text p {
  max-width: 55ch;
}

/* ============= NEWS-SEITEN ============= */
/* Kopf-Block auf Artikel-Seiten: Tag + Datum (oberhalb der h1) */
.news-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
  background: #eaf6ff;
  border: 1px solid #d0e2f7;
}
.news-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.news-meta time {
  font-weight: 600;
  color: var(--dark);
}
.news-back {
  margin-left: auto;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.news-back:hover {
  background: #eaf6ff;
  color: var(--secondary);
}

/* News-Übersicht: H1 + Lead */
.news-section {
  margin-bottom: 2.5rem;
}
.news-intro {
  max-width: 60ch;
  color: var(--muted);
  margin: 0.5rem 0 2rem;
}

/* Chronologisches 3er-Grid: 1 (mobil) → 2 (tablet) → 3 (desktop) */
.news-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-card {
  background: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.news-card > article {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}
.news-card > article > header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.news-card time {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.news-card-title {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--dark);
  margin: 0;
}
.news-card-title a {
  color: var(--dark);
  font-weight: 700;
  transition: color 0.15s ease;
}
.news-card-title a:hover {
  color: var(--primary);
}
.news-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.news-card-cta {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 0.35rem;
}
.news-card-cta:hover {
  color: var(--secondary);
}

/* Quellen-/Quellennachweis-Block auf Artikel-Seiten:
   steht am Ende von <main>, also direkt über dem SSI-Footer */
.article-sources {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-sources h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--dark);
}
.article-sources ol {
  margin: 0;
  padding-left: 1.25rem;
}
.article-sources li {
  max-width: 65ch;
  line-height: 1.6;
  color: var(--muted);
}

/* ============= FOOTER ============== */
footer {
  padding: 1.75rem 1rem 2.25rem;
}
.footer-legal {
  text-align: center;
}
.footer-legal strong {
  color: var(--primary);
}
.footer-meta {
  text-align: center;
  font-size: 0.85em;
  color: var(--muted);
  margin-top: 0.6rem;
}
.footer-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  line-height: 1.5;
  margin-top: 1.25rem;
}
.footer-ai-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-ai-badge {
  flex: 0 0 auto;
  height: 26px;
  width: auto;
}
.footer-ai-text {
  font-size: 0.85em;
  color: var(--muted);
}
.footer-ai a {
  color: var(--primary);
}

/* ============= AI-ACT-CONTENT-LABEL ============== */
/* EU AI Act: "AI GENERATED"-Label unter der Überschrift, vor dem Text (User-Regel 2026-09-17) */
.ai-label {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 1.4rem;
}
.ai-label-badge {
  display: block;
  height: 26px;
  width: auto;
}

/* ============= RESPONSIVE ============== */
@media (max-width: 768px) {
  .site-header {
    padding: 1.25rem 0 0.5rem;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .usp-item {
    flex-direction: column;
  }
  .hero {
    padding: 2rem 0 1rem;
  }

  /* CTA: volle Breite, unterhalb der Logo-Zeile */
  .btn-header {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  /* Nav-Links im Panel: größere Touch-Ziele */
  .main-nav a {
    font-size: 1.15rem;
  }
}
