/* ============================================================
   PV Rechner 24 – Shared Stylesheet v2.0
   Fonts: Outfit (headings) · Plus Jakarta Sans (body)
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --primary:       #1a6b3c;
  --primary-light: #218a4e;
  --primary-dark:  #134d2c;
  --accent:        #f4a61a;
  --accent-light:  #fbbf24;
  --bg-light:      #f4f8f5;
  --surface:       #ffffff;
  --text-dark:     #1a2e1f;
  --text-muted:    #5f6b72;
  --border:        #d1d9d4;
  --card-shadow:   0 2px 16px rgba(26,107,60,.08);
  --radius:        12px;
  --radius-sm:     8px;
  --header-h:      62px;
  --bottom-nav-h:  62px;
  --font-heading:  'Outfit', system-ui, sans-serif;
  --font-body:     'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* ── SKIP LINK (Accessibility) ── */
.skip-link {
  position: absolute;
  left: 0;
  top: -999px;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 20px;
  z-index: 99999;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 0 0 8px 0;
  transition: top .1s;
}
.skip-link:focus { top: 0; }

/* ── FOCUS STYLES (Accessibility) ── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
header {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  gap: 12px;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 6px 0;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
}
.logo-text .logo-accent { color: var(--accent); }
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  letter-spacing: .01em;
}

/* Desktop navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
  min-height: 44px; /* WCAG 2.5.5 touch target */
}
.header-nav a:hover { background: var(--bg-light); color: var(--primary); }
.header-nav a.active {
  background: #dff0e8;
  color: var(--primary-dark);
  font-weight: 600;
}
.header-nav a i { font-size: 0.9rem; }

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px;
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  transition: background .15s;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle:hover { background: var(--bg-light); }
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,30,20,.45);
  z-index: 998;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeOverlay .2s ease;
}
.mobile-nav-overlay.open { display: block; }
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }

.mobile-nav-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  z-index: 999;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
  border-bottom: 2px solid var(--primary);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px 10px 14px;
}
.mobile-nav-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: background .15s, color .15s;
  min-height: 72px;
  text-align: center;
  line-height: 1.3;
}
.mobile-nav-grid a i { font-size: 1.5rem; }
.mobile-nav-grid a:hover,
.mobile-nav-grid a.active {
  background: #dff0e8;
  color: var(--primary-dark);
}
.mobile-nav-grid a.active { font-weight: 700; }
.mobile-nav-divider {
  height: 1px;
  background: #e8f0ea;
  margin: 0 10px;
}

/* Hide desktop nav on mobile, show hamburger */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  header { height: 56px; }
}
@media (max-width: 400px) {
  .header-inner { padding: 0 14px; }
  .logo-text { font-size: 1.15rem; }
}

/* ── BOTTOM NAVIGATION (Mobile) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e4ede7;
  z-index: 990;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-inner {
  display: flex;
  height: var(--bottom-nav-h);
  max-width: 600px;
  margin: 0 auto;
}
.bottom-nav-inner a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 4px;
  transition: color .15s, background .15s;
  border-radius: 0;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.bottom-nav-inner a i { font-size: 1.35rem; display: block; }
.bottom-nav-inner a.active { color: var(--primary); }
.bottom-nav-inner a.active i { color: var(--primary); }
.bottom-nav-inner a:hover { color: var(--primary); background: #f0f8f3; }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0)); }
}

/* ═══════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════ */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #e8eee9;
  padding: 7px 16px;
  overflow: hidden; /* verhindert horizontales Scrollen auf Mobile */
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-item i { color: var(--primary); font-size: 0.85rem; }
@media (max-width: 480px) {
  .trust-item:nth-child(n+4) { display: none; }
  .trust-item { font-size: 0.7rem; gap: 4px; }
  .trust-bar-inner { gap: 12px; }
}
@media (max-width: 360px) {
  .trust-item:nth-child(n+3) { display: none; }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 65%, #2d9b58 100%);
  color: #fff;
  padding: 52px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Subtle dot pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
/* Decorative glow */
.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244,166,26,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 4.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.hero p {
  font-size: clamp(.95rem, 2.5vw, 1.08rem);
  opacity: .9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}
.hero-badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}
@media (max-width: 576px) {
  .hero { padding: 36px 16px 32px; }
  .hero-badge { font-size: .74rem; padding: 5px 11px; }
}

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 16px; }
@media (max-width: 576px) { .main-wrap { padding: 16px 12px; } }

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
@media (max-width: 992px) {
  .layout-grid { grid-template-columns: 1fr; }
  .sidebar-ad { display: none !important; }
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card-section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px;
  margin-bottom: 24px;
}
@media (max-width: 576px) { .card-section { padding: 18px 16px; } }

.card-section h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e4ede7;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.icon-circle {
  width: 34px;
  height: 34px;
  background: #dff0e8;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   FORMS
   ═══════════════════════════════════════ */
.form-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: block;
}
.form-hint {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 1rem; /* >= 16px verhindert Auto-Zoom auf iOS */
  font-family: var(--font-body);
  transition: border-color .2s, box-shadow .2s;
  min-height: 48px; /* 48px = empfohlenes Touch-Target (WCAG 2.5.5) */
  width: 100%;
  background: #fff;
  color: var(--text-dark);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,60,.15);
  outline: none;
}
.input-group-text {
  border: 1.5px solid var(--border);
  background: #f0f5f2;
  color: var(--text-muted);
  font-size: .88rem;
  min-height: 48px;
  padding: 11px 12px;
  font-family: var(--font-body);
}
.input-group .form-control { border-right: none; }
.input-group .input-group-text { border-left: none; }

/* Error state */
.field-error .form-control,
.field-error .form-select,
.field-error .input-group .form-control,
.field-error .input-group .input-group-text {
  border-color: #ef4444;
  background-color: #fff1f1;
}
.error-msg { font-size: .76rem; color: #ef4444; margin-top: 4px; display: none; }
.field-error .error-msg { display: block; }

.optional-tag {
  font-size: .69rem; font-weight: 500; color: var(--text-muted);
  background: #f1f5f0; border-radius: 4px; padding: 1px 6px; margin-left: 4px;
}
.section-divider { border: none; border-top: 2px dashed #e0e8e2; margin: 24px 0; }

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn-calculate {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
  width: 100%;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 18px rgba(26,107,60,.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  letter-spacing: .01em;
}
.btn-calculate:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(26,107,60,.42); }
.btn-calculate:active { transform: translateY(0); }
.btn-calculate:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.btn-pdf {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: .97rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(185,28,28,.28);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
}
.btn-pdf:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(185,28,28,.4); }
.btn-pdf:active { transform: translateY(0); }

/* Spinner */
.spinner, .pdf-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   RESULTS / KPI
   ═══════════════════════════════════════ */
#results-section { display: none; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  background: linear-gradient(135deg, #edfaf1, #dff0e8);
  border: 1px solid #c0e0cc;
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
}
.kpi-card.highlight {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: transparent;
  color: #fff;
}
.kpi-value { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.kpi-label { font-size: .76rem; margin-top: 4px; opacity: .75; }
.kpi-card.highlight .kpi-label { opacity: .85; }

@media (max-width: 576px) { .kpi-value { font-size: 1.35rem; } }

.chart-wrap { position: relative; margin: 20px 0; }
.chart-pie-wrap { max-width: 300px; margin: 0 auto 24px; position: relative; }
@media (max-width: 576px) {
  .chart-wrap canvas { max-height: 220px !important; }
  .chart-pie-wrap { max-width: 230px; }
  .chart-legend { gap: 6px; }
  .legend-item { font-size: .72rem; }
}
.autarky-label-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center; pointer-events: none;
}
.autarky-pct { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.autarky-sub { font-size: .73rem; color: var(--text-muted); }

.annual-summary { background: #f4f8f5; border-radius: 10px; padding: 18px; border: 1px solid #dde8e0; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #e5ecdf; font-size: .9rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; color: var(--primary-dark); }
.summary-row .value.big { font-size: 1.12rem; color: var(--primary); }
.summary-row .value.highlight { color: var(--accent); }

.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: .78rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* ── Alert ── */
.calc-alert { display: none; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: .88rem; font-weight: 500; }
.calc-alert.show { display: flex; align-items: center; gap: 10px; }
.calc-alert.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Disclaimer ── */
.disclaimer { background: #fff8e8; border: 1px solid #fde68a; border-radius: 10px; padding: 16px 20px; margin-top: 10px; }
.disclaimer h3 { font-size: .9rem; font-weight: 700; color: #92400e; margin-bottom: 6px; }
.disclaimer p { font-size: .79rem; color: #78350f; margin: 0; line-height: 1.6; }

.pdf-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.pdf-hint { font-size: .76rem; color: var(--text-muted); }

/* ── Ads ── */
/* Responsiver Ad-Container – keine fixe Höhe, AdSense skaliert selbst */
.ad-container {
  display: block;
  width: 100%;
  overflow: hidden; /* Verhindert Layout-Shifts */
}
.ad-container ins.adsbygoogle { display: block; }

/* Legacy-Klassen für Abwärtskompatibilität (nicht mehr für feste Größen) */
.ad-banner, .ad-rect, .ad-leaderboard { display: block; width: 100%; }

/* Placeholder-Stil (nur sichtbar wenn AdSense nicht geladen) */
.ad-slot {
  background: #f0f4f1; border: 1px dashed #c8d4ca; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; min-height: 80px;
  color: #9aada0; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
}

/* ── Fade-in & Scroll-reveal ── */
.scroll-hidden { opacity: 0; transform: translateY(14px); transition: none; }
.fade-in { animation: fadeIn .45s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ── Info tip ── */
.info-tip { cursor: pointer; color: var(--text-muted); font-size: .85rem; }

/* ── Sidebar sticky ── */
.sidebar-ad { position: sticky; top: 80px; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding: 40px 24px 28px;
  margin-top: 56px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.footer-brand-name {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: #fff;
}
.footer-brand-name .logo-accent { color: var(--accent); }
.footer-desc { font-size: .79rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 360px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 16px; } }

.footer-col h4 {
  font-family: var(--font-heading); font-size: .85rem; font-weight: 600;
  color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.footer-col h4 i { font-size: .8rem; color: var(--accent); }
.footer-col a {
  display: flex; align-items: center; gap: 6px; font-size: .79rem;
  color: rgba(255,255,255,.5); text-decoration: none; margin-bottom: 2px;
  transition: color .15s; padding: 3px 0;
}
@media (max-width: 768px) {
  .footer-col a { min-height: 44px; } /* Touch-Target nur auf Mobile */
}
.footer-col a:hover { color: #fff; }
.footer-col a i { font-size: .75rem; opacity: .6; }

.footer-disclaimer {
  background: rgba(0,0,0,.2);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 24px;
  font-size: .75rem; color: rgba(255,255,255,.55); line-height: 1.65;
}
.footer-disclaimer strong { color: rgba(255,255,255,.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px; font-size: .73rem;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; color: rgba(255,255,255,.38);
}

/* ── Mobile footer bottom padding ── */
@media (max-width: 768px) {
  footer {
    margin-bottom: 0;
    /* Genug Abstand damit Footer nicht von Bottom-Nav verdeckt wird */
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0) + 12px);
  }
}

/* ── PDF-Button auf Mobile: volle Breite ── */
@media (max-width: 576px) {
  .pdf-actions { flex-direction: column; align-items: stretch; }
  .btn-pdf { justify-content: center; width: 100%; }
}

/* ── Hero auf sehr kleinen Screens ── */
@media (max-width: 390px) {
  .hero { padding: 24px 14px 20px; }
  .hero-badges { gap: 5px; }
  .hero-badge { font-size: .7rem; padding: 4px 9px; }
}

/* ── KPI-Grid auf sehr kleinen Screens ── */
@media (max-width: 360px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Tooltip */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; font-size: .72rem; white-space: nowrap;
  padding: 5px 10px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 9;
}
[data-tooltip]:hover::after { opacity: 1; }

/* Scroll padding for anchors */
:target { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ── Print ── */
@media print {
  header, footer, .ad-banner, .ad-rect, .ad-leaderboard, .ad-container,
  .sidebar-ad, .bottom-nav, .mobile-nav-overlay,
  #pvr-cookie-banner, #pvr-cookie-modal, #pvr-cookie-backdrop { display: none !important; }
  body { background: #fff; }
  .card-section { box-shadow: none; border: 1px solid #ddd; }
  .scroll-hidden { opacity: 1 !important; transform: none !important; }
}
