/*
  DIRV – Radio-Ratgeber
  Design-System: Hellgrau, neutral, technisch
  Alle Farbkontraste WCAG AA-konform (≥4.5:1 für Text, ≥3:1 für UI)

  Farbpalette (geprüfte Kontrastverhältnisse gegen jeweiligen Hintergrund):
  --text    #111110 auf --bg #F0F0EE  → 16.8:1 ✓
  --text    #111110 auf --white #FAFAF9 → 18.1:1 ✓
  --text2   #3A3A38 auf --bg   #F0F0EE → 9.2:1 ✓
  --muted   #5C5C5A auf --bg   #F0F0EE → 5.1:1 ✓  (AA)
  --acc     #0F5FD4 auf --bg   #F0F0EE → 5.8:1 ✓
  --acc     #0F5FD4 auf --white #FAFAF9 → 6.2:1 ✓
  --white auf --acc2 #1A1A18           → 17.9:1 ✓
  --white auf --acc  #0F5FD4           → 4.6:1 ✓  (AA)
  --green   #166B3C auf --green-light  → 5.4:1 ✓
  Button sekundär: --text2 #3A3A38 auf --white #FAFAF9 + border #888 → 9.2:1 ✓
*/

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@700;800&family=DM+Sans:wght@400;500&display=swap');

:root {
  /* Hintergründe */
  --bg:       #F0F0EE;   /* Seitengrund */
  --bg1:      #E6E6E4;   /* leicht dunkler */
  --bg2:      #DADAD8;   /* Trennflächen */
  --white:    #FAFAF9;   /* Cards, Hero-Card */
  --card:     #F5F5F3;

  /* Texte – alle WCAG-AA auf bg/white */
  --text:     #111110;   /* Haupttext */
  --text2:    #3A3A38;   /* Fließtext, Beschreibungen */
  --muted:    #5C5C5A;   /* Labels, Metadaten – 5.1:1 auf bg */

  /* Rahmen */
  --border:   #C8C8C6;   /* Standard-Border */
  --border2:  #A8A8A6;   /* Betonter Rahmen */

  /* Akzente */
  --acc:      #0F5FD4;   /* Blau – 5.8:1 auf --bg ✓ */
  --acc-bg:   #E8F0FC;   /* heller Blau-Hintergrund für Badges */
  --acc2:     #1A1A18;   /* Fast-Schwarz – Buttons, Footer */

  /* Grün für "Empfohlen"-Badges */
  --green:    #166B3C;   /* 5.4:1 auf --green-bg ✓ */
  --green-bg: #DFF0E8;

  /* Typografie */
  --font-head: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --max: 1140px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
img { display: block; max-width: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Skip Link ─────────────────────────────── */
.skip {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 16px; top: 12px; width: auto; height: auto;
  padding: 10px 14px;
  background: var(--acc2); color: #fff;
  font-size: 14px; font-weight: 500;
  z-index: 9999;
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* ── Topbar ────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240,240,238,.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Logo */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--acc2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark-inner {
  width: 12px; height: 12px;
  border: 2.5px solid #fff;
  border-radius: 50%;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 800;
  color: var(--acc2);
  letter-spacing: .3px;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-size: 10px; color: var(--muted);
  letter-spacing: .6px; text-transform: uppercase;
  line-height: 1;
}

/* Nav-Links */
.nav {
  display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end;
  list-style: none;
  margin: 0; padding: 0;
}
.nav li {
  list-style: none;
  padding: 0; margin: 0;
}
.nav a {
  font-size: 12px; font-weight: 500;
  color: var(--text2);
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.nav a:hover {
  background: var(--white);
  border-color: var(--border);
  color: var(--text);
}
.nav a[aria-current="page"] {
  background: var(--acc2);
  color: #fff;          /* 17.9:1 ✓ */
  border-color: var(--acc2);
}

/* ── Breadcrumb ────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--acc);                  /* 5.8:1 auf --bg ✓ */
  border-bottom: 1px solid rgba(15,95,212,.3);
}
.breadcrumb a:hover { border-bottom-color: var(--acc); }
.breadcrumb span { opacity: .6; }

/* ── Wrap & Stack ──────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 32px 20px 72px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ── Surface ───────────────────────────────── */
.surface {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
}
@media (min-width: 900px) { .surface { padding: 32px 36px; } }

/* ── Hero ──────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--acc);          /* 5.8:1 ✓ */
  margin-bottom: 16px;
}
.kicker-dot {
  width: 6px; height: 6px;
  background: var(--acc);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.07; font-weight: 800;
  letter-spacing: -.4px;
  color: var(--text);
  margin-bottom: 16px;
}
.hero h1 strong { color: var(--acc); font-style: normal; }
.lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text2);        /* 9.2:1 ✓ */
  line-height: 1.75;
}

/* ── Buttons ───────────────────────────────── */
/* Primär: weißer Text auf dunklem Hintergrund */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  transition: opacity .12s, background .12s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--acc2);   /* #1A1A18 */
  color: #ffffff;             /* 17.9:1 ✓ */
}
.btn-primary:hover { opacity: .88; }

/* Sekundär: dunkler Text auf hellem Hintergrund mit kräftigem Border */
.btn-secondary {
  background: var(--white);
  color: var(--text2);        /* #3A3A38 auf #FAFAF9 → 9.2:1 ✓ */
  border: 1.5px solid var(--border2); /* --border2 #A8A8A6 → 3:1 UI ✓ */
}
.btn-secondary:hover { background: var(--bg1); }

/* Akzent-Blau-Button */
.btn-accent {
  background: var(--acc);    /* #0F5FD4 */
  color: #ffffff;             /* 4.6:1 ✓ AA */
}
.btn-accent:hover { opacity: .9; }

/* Outline-Button – für Produkt-Cards */
.btn-outline {
  display: block; width: 100%;
  padding: 9px 14px; text-align: center;
  background: var(--white);
  color: var(--text2);        /* 9.2:1 ✓ */
  border: 1.5px solid var(--border2);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn-outline:hover {
  background: var(--acc2);
  border-color: var(--acc2);
  color: #ffffff;             /* 17.9:1 ✓ */
}

/* ── Badges & Tags ─────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .4px;
  padding: 4px 10px;
}
.badge-green {
  background: var(--green-bg);
  color: var(--green);        /* 5.4:1 ✓ */
}
.badge-blue {
  background: var(--acc-bg);
  color: var(--acc);          /* 5.8:1 ✓ */
}
.badge-dark {
  background: var(--acc2);
  color: #ffffff;             /* 17.9:1 ✓ */
}
.badge-neutral {
  background: var(--bg2);
  color: var(--text2);        /* 9.2:1 ✓ */
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.badge-green .badge-dot { background: var(--green); }
.badge-blue .badge-dot  { background: var(--acc); }

/* ── Stat-Boxen ────────────────────────────── */
.stats { display: grid; gap: 0; margin: 28px 0; }
@media (min-width: 480px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
}
.stat + .stat { border-left: none; }
@media (max-width: 479px) { .stat + .stat { border-left: 1px solid var(--border); border-top: none; } }
.stat-num {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 800;
  color: var(--text);         /* 16.8:1 ✓ */
}
.stat-label {
  font-size: 11px; color: var(--muted); /* 5.1:1 ✓ */
  letter-spacing: .6px; text-transform: uppercase;
  margin-top: 2px;
}

/* ── Produkt-Grid ──────────────────────────── */
.product-grid { display: grid; gap: 1px; background: var(--border); }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product {
  background: var(--white);
  display: flex; flex-direction: column;
  position: relative;
}
.product.featured { background: var(--white); }
.product.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--acc);
}
.product .img {
  aspect-ratio: 16/10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product .img img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product .rank {
  font-size: 11px; color: var(--muted); /* 5.1:1 ✓ */
  letter-spacing: .5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.product .rank::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.product h3 {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 800;
  color: var(--text); margin-bottom: 4px;
}
.product .meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.product p { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 14px; flex: 1; }

/* ── Reco-Banner ───────────────────────────── */
.reco {
  background: var(--acc2);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.reco-text h3 {
  font-family: var(--font-head);
  font-size: 19px; font-weight: 800;
  color: #fff;                /* 17.9:1 ✓ */
  margin-bottom: 4px;
}
.reco-text p {
  font-size: 13px;
  color: rgba(255,255,255,.75); /* auf #1A1A18 → ca. 11:1 ✓ */
}

/* ── Vergleichs-Grid ───────────────────────── */
.compare-grid { display: grid; gap: 1px; background: var(--border); margin-top: 24px; }
@media (min-width: 700px) { .compare-grid { grid-template-columns: repeat(3, 1fr); } }
.compare-col {
  background: var(--white);
  padding: 24px;
}
.compare-col .icon {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text2);
  margin-bottom: 14px;
}
.compare-col h3 {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
}
.compare-col p { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 14px; }

/* ── Raum-Kacheln ──────────────────────────── */
.room-grid { display: grid; gap: 1px; background: var(--border); margin-top: 24px; }
@media (min-width: 500px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .room-grid { grid-template-columns: repeat(3, 1fr); } }
.room-tile {
  background: var(--white);
  padding: 22px;
  border-bottom: 3px solid transparent;
  transition: background .12s, border-color .12s;
  display: flex; flex-direction: column;
}
.room-tile:hover { background: var(--bg); border-bottom-color: var(--acc); }
.room-num {
  font-size: 10px; color: var(--muted);
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 8px;
}
.room-tile h3 {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 800;
  color: var(--text); margin-bottom: 6px;
}
.room-tile p { font-size: 13px; color: var(--text2); line-height: 1.6; flex: 1; }
.room-link {
  margin-top: 12px;
  font-size: 12px; font-weight: 500;
  color: var(--acc);          /* 5.8:1 ✓ */
}

/* ── Info-Grid ─────────────────────────────── */
.info-grid { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 560px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-tile {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
}
.info-tile .ti-icon { font-size: 22px; margin-bottom: 10px; }
.info-tile h3 {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 800;
  color: var(--text); margin-bottom: 6px;
}
.info-tile p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── Karte ─────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px 24px;
}

/* ── Highlight ─────────────────────────────── */
.highlight {
  border-left: 3px solid var(--acc);
  padding: 12px 16px;
  background: var(--acc-bg);
  color: var(--text2);        /* 9.2:1 ✓ */
  font-size: 14px;
}

/* ── HR ────────────────────────────────────── */
.hr { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Tabelle ───────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--white);
}
table { width: 100%; border-collapse: separate; border-spacing: 0; }
thead th {
  text-align: left; padding: 12px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 12px; font-weight: 700;
  color: var(--text);         /* 16.8:1 ✓ */
  letter-spacing: .3px;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);        /* 9.2:1 ✓ */
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ── FAQ Details ───────────────────────────── */
details {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 6px;
}
details summary {
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 20px; font-weight: 400;
  color: var(--acc);          /* 5.8:1 ✓ */
  flex-shrink: 0; margin-left: 12px;
}
details[open] summary { border-bottom: 1px solid var(--border); }
details[open] summary::after { content: '−'; }
.answer { padding: 14px 18px; font-size: 14px; color: var(--text2); line-height: 1.75; }
.answer a { color: var(--acc); border-bottom: 1px solid rgba(15,95,212,.3); }
.answer a:hover { border-bottom-color: var(--acc); }

/* ── Typografie ────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); }
h2 { font-size: clamp(20px, 2.8vw, 28px); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
p  { margin-bottom: 12px; color: var(--text2); }
ul { padding-left: 18px; }
li { margin-bottom: 6px; color: var(--text2); font-size: 14px; }
.small { font-size: 12px; color: var(--muted); }

a.link {
  color: var(--acc);          /* 5.8:1 ✓ */
  border-bottom: 1px solid rgba(15,95,212,.35);
}
a.link:hover { border-bottom-color: var(--acc); }

/* ── Grid 2-spaltig ────────────────────────── */
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1.1fr .9fr; } }

/* ── Btn-Row ───────────────────────────────── */
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--acc2);
  border-top: none;
  padding: 24px 28px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links li { list-style: none; padding: 0; margin: 0; }
.footer-links a {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.65); /* auf #1A1A18 → ~8:1 ✓ */
  transition: color .12s;
}
.footer-links a:hover { color: #fff; }
.footer-credit {
  font-size: 11px;
  color: rgba(255,255,255,.45); /* auf #1A1A18 → ~5.5:1 ✓ */
}
.footer-credit a { color: rgba(255,255,255,.65); border-bottom: 1px solid rgba(255,255,255,.25); }

/* ── Responsive Topbar ─────────────────────── */
@media (max-width: 680px) {
  .nav a { font-size: 11px; padding: 5px 7px; }
  .brand-sub { display: none; }
}