/* Vorteilsradar – gemeinsame Gestaltung aller Seiten */
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #16213a;
  --muted: #5b6680;
  --line: #e2e7f0;
  --brand: #1e5fc8;
  --brand-soft: #e6eefb;
  --accent: #f28c28;
  --ok: #1f9d55;
  --off: #9aa3b5;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1630; --card: #13213f; --text: #e8edf7; --muted: #9fabc4;
    --line: #22335a; --brand: #6aa0ff; --brand-soft: #1a2d55; --off: #6b7894;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Kopf und Fuß */
header.site { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
nav.main { margin-left: auto; display: flex; gap: 16px; }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav.main a[aria-current="page"] { color: var(--brand); }
footer.site { margin-top: 48px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; }
footer.site a { color: var(--muted); }

/* Startseite */
.hero { padding: 56px 0 32px; display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.3fr 1fr; } }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin: 0 0 16px; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.hero img { width: 100%; max-width: 320px; justify-self: center; border-radius: 22%; box-shadow: 0 20px 50px rgba(20, 50, 120, .25); }
.button { display: inline-block; background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: 16px; }
.button.secondary { background: var(--brand-soft); color: var(--brand); }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); }

/* Textseiten (Datenschutz, Impressum) */
.prose { max-width: 720px; padding: 32px 0; }
.prose h1 { margin-top: 0; }
.prose h2 { margin-top: 32px; font-size: 20px; }
.draft { background: #fff4e5; color: #7a4a00; border: 1px solid #f5c58a; border-radius: 10px; padding: 12px 16px; }

/* Rabatte */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 0 8px; }
.toolbar input[type="search"] { flex: 1 1 220px; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.segmented { display: inline-flex; background: var(--brand-soft); border-radius: 999px; padding: 3px; }
.segmented button { border: 0; background: transparent; color: var(--brand); padding: 6px 12px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.panel h2 { margin: 0 0 4px; font-size: 18px; }
.panel p { margin: 0 0 12px; color: var(--muted); }

.status { color: var(--muted); font-size: 14px; padding: 4px 0 8px; }
h2.section { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 24px 0 8px; }

.partner { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.partner-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.badge { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.partner-name { font-weight: 650; font-size: 17px; }
.partner-meta { color: var(--muted); font-size: 13px; }
.partner-head a { margin-left: auto; font-size: 14px; white-space: nowrap; }

details.discount { border-top: 1px solid var(--line); }
details.discount summary { list-style: none; cursor: pointer; padding: 10px 16px; display: flex; gap: 10px; align-items: flex-start; }
details.discount summary::-webkit-details-marker { display: none; }
details.discount summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .15s; }
details.discount[open] summary::after { transform: rotate(90deg); }
.state { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--ok); }
.state.off { background: var(--off); }
.d-title { white-space: pre-line; font-weight: 500; }
.d-sub { color: var(--muted); font-size: 13px; }
.d-body { padding: 0 16px 14px 36px; font-size: 15px; }
.d-body .conditions { white-space: pre-line; margin: 0 0 12px; }
.d-body .facts { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Vorerst ausgeblendete Links zur Rabatt-Seite (Attribut hidden) */
[hidden] { display: none !important; }
