/* =============================================
   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: Overlay-Panel auf allen Screens (Burger öffnet),
   Styling + Toggle-Logik unten. Burger sichtbar auf allen Screens. */

/* ============= NAVIGATION (Burger-Menü, alle Screens) ==============
   Das Menü ist auf jeder Bildschirmgröße ein Overlay-Panel,
   gesteuert über data-menu-open="true" auf .site-header (JS).
   Burger-Button: IMMER sichtbar — mobil oben rechts,
   Desktop rechts im Header (Entscheidung 07.09.).
   ================================================================ */
.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;
}
.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);
}

/* Overlay-Panel: standardmäßig versteckt */
.main-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 6rem 1.5rem 2rem;
  background: rgba(11, 38, 71, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  visibility: hidden;
}
.main-nav a {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 2rem;
  width: min(320px, 80vw);
  text-align: center;
  border-radius: 10px;
}
.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);
}

/* Geöffneter Zustand: Panel sichtbar */
.site-header[data-menu-open="true"] .main-nav {
  visibility: visible;
}

/* 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;
}

.highlight {
  font-weight: 700;
  color: var(--secondary-dark);
}

/* ============= 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: center;
  flex-wrap: wrap;
}
.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);
}

/* Zentrierte Auftrags-/CTA-Blöcke (Unterseiten) */
.cta-block {
  text-align: center;
}
.cta-block .lead-muted {
  margin-top: 1rem;
}
.cta-block .btn {
  margin-top: 1.25rem;
}

/* 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;
}

/* 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;
}

/* ============= 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 Overlay-Panel: größere Touch-Ziele */
  .main-nav a {
    font-size: 1.15rem;
  }
}
