/* ==========================================================================
   Versicherungsvergleich – Design System & Layout
   ========================================================================== */

:root {
  --brand-950: #050d24;
  --brand-900: #0a1633;
  --brand-800: #112456;
  --brand-700: #1a3a8f;
  --brand-600: #1f4fe0;
  --brand-500: #3366ff;
  --brand-400: #6b8fff;
  --brand-200: #c7d5ff;
  --brand-100: #e0e8ff;
  --brand-50: #f0f4ff;

  --cta-700: #067647;
  --cta-600: #079455;
  --cta-500: #12b76a;
  --cta-400: #32d583;
  --cta-100: #d1fadf;
  --cta-50: #ecfdf3;

  --amber-500: #f5a524;
  --red-500: #f04438;
  --red-600: #d92d20;

  --ink-950: #0b1220;
  --ink-900: #101828;
  --ink-800: #1d2939;
  --ink-700: #344054;
  --ink-600: #475467;
  --ink-500: #667085;
  --ink-400: #98a2b3;
  --ink-300: #d0d5dd;
  --ink-200: #e4e7ec;
  --ink-100: #f2f4f7;
  --ink-50: #f9fafb;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --line: #e6e9f0;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --sh-md: 0 12px 28px -8px rgba(16, 24, 40, 0.14), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --sh-lg: 0 32px 64px -16px rgba(5, 13, 36, 0.35), 0 12px 24px -8px rgba(5, 13, 36, 0.15);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll, body:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: middle; }
h1, h2, h3, h4 { color: var(--ink-950); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(51, 102, 255, 0.55); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); color: var(--brand-900); }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: #fff; color: var(--brand-700); padding: 10px 16px; border-radius: 10px; font-weight: 700; box-shadow: var(--sh-md); }
.skip-link:focus { top: 12px; }

.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-600);
}
.kicker .i { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  border: 0; border-radius: 12px;
  padding: 0.75em 1.2em;
  font-weight: 650; font-size: 0.95rem; line-height: 1.2;
  white-space: nowrap; text-decoration: none !important;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: grayscale(0.4); }
.btn .i { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.btn:hover .i-arrow-right { transform: translateX(3px); }

.btn-cta {
  color: #fff;
  background: linear-gradient(180deg, #19c477, var(--cta-600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -8px rgba(7, 148, 85, 0.65);
}
.btn-cta:hover:not(:disabled) { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 24px -8px rgba(7, 148, 85, 0.75); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(31, 79, 224, 0.8); }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline { background: #fff; color: var(--ink-800); border: 1px solid var(--ink-200); box-shadow: var(--sh-xs); }
.btn-outline:hover { border-color: var(--ink-300); background: var(--ink-50); }
.btn-light { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-light:hover { background: rgba(255, 255, 255, 0.18); }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 0.55em 0.9em; font-size: 0.875rem; border-radius: 10px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--ink-200); background: #fff; color: var(--ink-600);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--ink-100); color: var(--ink-900); }
.icon-btn .i { width: 20px; height: 20px; }

.link-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 6px; border: 0; border-radius: 8px; background: none;
  color: var(--brand-600); font-weight: 650; font-size: 0.88rem;
}
.link-btn:hover { background: var(--brand-50); }
.link-btn .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-btn[aria-expanded="true"] .i { transform: rotate(180deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-900); color: #fff;
  transition: background-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink-900);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -14px rgba(16, 24, 40, 0.2);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em; }
.brand-suffix { color: var(--cta-400); }
.scrolled .brand-suffix, .menu-open .brand-suffix { color: var(--cta-600); }

.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 10px;
  color: inherit; opacity: 0.82; font-weight: 600; font-size: 0.92rem;
  text-decoration: none !important;
  transition: background 0.15s, opacity 0.15s, color 0.15s;
}
.main-nav a .i { width: 18px; height: 18px; opacity: 0.85; }
.main-nav a:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.main-nav a.active { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.scrolled .main-nav a:hover, .menu-open .main-nav a:hover { background: var(--ink-100); }
.scrolled .main-nav a.active, .menu-open .main-nav a.active { background: var(--brand-50); color: var(--brand-700); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-link { color: inherit; opacity: 0.85; font-weight: 600; font-size: 0.92rem; }
.header-link:hover { opacity: 1; text-decoration: none; }
.scrolled .btn-light, .menu-open .btn-light { background: var(--brand-600); border-color: transparent; color: #fff; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: inherit;
  place-items: center;
}
.scrolled .nav-toggle, .menu-open .nav-toggle { border-color: var(--ink-200); }
.nav-toggle .i { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 88px;
  color: #c3cde8;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(51, 102, 255, 0.5), transparent 62%),
    radial-gradient(760px 480px at -8% 108%, rgba(18, 183, 106, 0.26), transparent 62%),
    linear-gradient(180deg, var(--brand-900), var(--brand-950));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 40% 0%, #000 25%, transparent 72%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.hero-copy { padding-top: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: #e6ecff;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta-400); box-shadow: 0 0 0 4px rgba(50, 213, 131, 0.2); animation: pulse 2.4s infinite; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.1vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; margin: 22px 0 18px; line-height: 1.06; }
.text-gradient { background: linear-gradient(92deg, #86a8ff 10%, #4ee0a1 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.13rem; color: #b5c1e2; max-width: 34em; }
.hero .lead strong { color: #fff; font-weight: 700; }
.hero-trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.hero-trust li { display: flex; align-items: center; gap: 12px; color: #e3e9fb; font-weight: 550; }
.hero-trust .i { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: rgba(50, 213, 131, 0.15); color: var(--cta-400); }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; justify-content: start; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hero-stats strong { display: block; color: #fff; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 0.82rem; color: #93a1c6; }

/* ---------- Rechner-Karte ---------- */
.calc-card {
  position: relative;
  background: #fff; color: var(--ink-800);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.cat-tabs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px;
  padding: 8px; background: var(--ink-50); border-bottom: 1px solid var(--line);
}
.cat-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px 10px; border: 0; border-radius: 14px; background: transparent;
  color: var(--ink-500); font-weight: 650; font-size: 0.8rem; line-height: 1.15; text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cat-tab .i { width: 24px; height: 24px; transition: transform 0.25s var(--ease); }
.cat-tab:hover { color: var(--ink-900); background: rgba(255, 255, 255, 0.8); }
.cat-tab[aria-selected="true"] { background: #fff; color: var(--brand-600); box-shadow: var(--sh-sm), 0 0 0 1px var(--line); }
.cat-tab[aria-selected="true"] .i { transform: translateY(-1px) scale(1.06); }

.calc-body { padding: 26px 28px 4px; }
.calc-head h2 { font-size: 1.4rem; margin: 0 0 4px; }
.calc-head p { color: var(--ink-500); margin: 0; font-size: 0.95rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 22px; }
.calc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding: 20px 28px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--ink-50));
}
.secure { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-500); margin: 0; }
.secure .i { color: var(--cta-600); width: 18px; height: 18px; }

/* ---------- Formular-Elemente ---------- */
.field { min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field.appear { animation: rise 0.35s var(--ease) both; }
.field-label { display: block; padding: 0; margin: 0 0 8px; font-size: 0.85rem; font-weight: 650; color: var(--ink-700); }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field-top .field-label { margin-bottom: 4px; }
.range-out { font-weight: 750; color: var(--brand-700); font-variant-numeric: tabular-nums; font-size: 0.95rem; white-space: nowrap; }
.field-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 0.78rem; color: var(--ink-500); line-height: 1.4; }
.field-hint .i { width: 14px; height: 14px; margin-top: 1px; color: var(--ink-400); }
.field-error { display: none; margin-top: 6px; font-size: 0.8rem; font-weight: 550; color: var(--red-600); }
.field.invalid .field-error { display: block; }
.field.invalid .control { border-color: var(--red-500); box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.12); }
.field.invalid .chip > span { border-color: var(--red-500); }

.control {
  display: flex; align-items: center;
  width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid var(--ink-200); border-radius: 12px; background: #fff;
  font-size: 1rem; color: var(--ink-900);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.control:hover { border-color: var(--ink-300); }
.control:focus, .control:focus-within { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.14); }
select.control {
  cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.control-sm { height: 40px; font-size: 0.9rem; border-radius: 10px; }
.control input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--ink-900); }
.control.with-icon { gap: 10px; }
.control.with-icon > .i { width: 18px; height: 18px; color: var(--ink-400); }
input.control::placeholder, .control input::placeholder { color: var(--ink-400); }

.stepper { padding: 0 4px; gap: 4px; }
.stepper input { text-align: center; font-weight: 650; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .unit { color: var(--ink-500); font-size: 0.88rem; margin-right: 6px; }
.step { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 9px; background: var(--ink-100); color: var(--ink-700); transition: background 0.15s, color 0.15s; }
.step:hover { background: var(--brand-50); color: var(--brand-700); }
.step .i { width: 16px; height: 16px; }

.segmented { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--ink-100); border-radius: 12px; }
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 4px 8px; border-radius: 9px;
  font-size: 0.88rem; font-weight: 650; line-height: 1.15; text-align: center; color: var(--ink-600);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.segmented label:hover span { color: var(--ink-900); }
.segmented input:checked + span { background: #fff; color: var(--brand-700); box-shadow: var(--sh-sm); }
.segmented input:focus-visible + span { outline: 3px solid rgba(51, 102, 255, 0.55); outline-offset: 1px; }
.segmented-sm { padding: 3px; border-radius: 10px; }
.segmented-sm span { min-height: 32px; font-size: 0.84rem; padding: 2px 12px; border-radius: 8px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; margin: 0; }
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand-500) var(--p), var(--ink-200) var(--p)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-500); box-shadow: 0 2px 6px rgba(16, 24, 40, 0.2);
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(51, 102, 255, 0.2); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--ink-200); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--brand-500); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-500); box-shadow: 0 2px 6px rgba(16, 24, 40, 0.2); }
.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-400); margin-top: 2px; font-variant-numeric: tabular-nums; }

.field-toggle { align-self: end; }
.toggle {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--ink-200); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.toggle:hover { border-color: var(--ink-300); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 99px; background: var(--ink-300); transition: background 0.2s; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); transition: transform 0.22s var(--ease); }
.toggle input:checked + .toggle-track { background: var(--brand-500); }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid rgba(51, 102, 255, 0.55); outline-offset: 2px; }
.toggle:has(input:checked) { border-color: var(--brand-200); background: var(--brand-50); }
.toggle-text { font-size: 0.9rem; font-weight: 600; line-height: 1.3; color: var(--ink-800); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 16px 0 12px;
  border: 1.5px solid var(--ink-200); border-radius: 999px; background: #fff;
  font-size: 0.9rem; font-weight: 650; color: var(--ink-700);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover > span { border-color: var(--ink-300); }
.chip .box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink-300); background: #fff; transition: background 0.15s, border-color 0.15s; }
.chip .box .i { width: 13px; height: 13px; color: #fff; opacity: 0; stroke-width: 3; }
.chip input:checked + span { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.chip input:checked + span .box { background: var(--brand-500); border-color: var(--brand-500); }
.chip input:checked + span .box .i { opacity: 1; }
.chip input:focus-visible + span { outline: 3px solid rgba(51, 102, 255, 0.55); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 0.9rem; color: var(--ink-700); cursor: pointer; line-height: 1.35; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid var(--ink-300); border-radius: 5px; background: #fff;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.check input:checked {
  border-color: var(--brand-500);
  background: var(--brand-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check span { flex: 1; }
.check em { font-style: normal; font-size: 0.78rem; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.check:hover { color: var(--ink-950); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1.5px solid var(--ink-200); border-radius: 999px; font-size: 0.82rem; font-weight: 650; color: var(--ink-600); transition: 0.15s; }
.pill span .i { width: 13px; height: 13px; color: var(--amber-500); }
.pill:hover span { border-color: var(--ink-300); }
.pill input:checked + span { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.pill input:focus-visible + span { outline: 3px solid rgba(51, 102, 255, 0.55); outline-offset: 2px; }

/* ---------- Versicherer-Leiste ---------- */
.insurer-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.insurer-strip .container { display: flex; align-items: center; gap: 32px; }
.insurer-strip p { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); white-space: nowrap; }
.insurer-logos {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.insurer-logos:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.ins-mark { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--ink-500); filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s, color 0.2s; }
.ins-mark:hover { filter: none; opacity: 1; color: var(--ink-900); }

/* ---------- Logos ---------- */
.logo {
  --c: var(--brand-600);
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 15px; color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 14px -6px color-mix(in srgb, var(--c) 70%, transparent);
}
.logo .i { width: 54%; height: 54%; }
.logo.logo-sm { width: 36px; height: 36px; border-radius: 10px; }
.logo.logo-xs { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }

/* ---------- Ergebnisse ---------- */
.results { padding: 52px 0 96px; scroll-margin-top: var(--header-h); }
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.results-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: 0 0 12px; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.summary-chips span { padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.82rem; font-weight: 550; color: var(--ink-600); }
.excluded-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 0.85rem; color: var(--ink-500); }
.excluded-note .i { width: 16px; height: 16px; color: var(--ink-400); }

.results-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }

.filters {
  position: sticky; top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px 10px; box-shadow: var(--sh-xs);
  scrollbar-width: thin;
}
.filters-head { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.filters-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 auto 0 0; font-size: 1.05rem; }
.filters-head h3 .i { width: 18px; height: 18px; color: var(--brand-600); }
.filters-close { display: none; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-child { border-top: 0; }
.filter-group h4 { margin: 0 0 10px; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-500); }
.filter-group .field-top h4 { margin-bottom: 6px; }
.filters-apply { display: none; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar .count { margin-right: auto; font-size: 0.95rem; color: var(--ink-600); }
.toolbar .count strong { color: var(--ink-950); font-size: 1.05rem; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink-500); }
.sort select { width: auto; min-width: 210px; }
.filter-btn { display: none; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand-600); color: #fff; font-size: 0.72rem; font-weight: 750; }

.savings {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; padding: 16px 20px;
  border: 1px solid #c3eed6; border-radius: var(--r-lg);
  background: linear-gradient(95deg, var(--cta-50), #f2f8ff);
}
.savings-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--cta-500); color: #fff; box-shadow: 0 8px 16px -8px rgba(7, 148, 85, 0.7); }
.savings-ico .i { width: 22px; height: 22px; }
.savings strong { display: block; font-size: 1.02rem; color: var(--ink-900); }
.savings strong span { color: var(--cta-600); }
.savings small { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.45; color: var(--ink-500); }

/* Tarifkarte */
.offer {
  position: relative;
  margin-bottom: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s, transform 0.25s var(--ease);
  animation: rise 0.5s var(--ease) both; animation-delay: var(--d, 0ms);
}
.no-anim .offer { animation: none; }
.offer:hover { box-shadow: var(--sh-md); border-color: #d6dcea; }
.offer.featured { border-color: var(--brand-400); box-shadow: 0 0 0 1px var(--brand-400), var(--sh-md); }
.offer.in-compare { border-color: var(--cta-400); box-shadow: 0 0 0 1px var(--cta-400), var(--sh-sm); }
.offer-badges { position: absolute; top: -12px; left: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.01em; color: #fff; box-shadow: var(--sh-sm); }
.badge .i { width: 13px; height: 13px; }
.badge-price { background: linear-gradient(180deg, #19c477, var(--cta-600)); }
.badge-value { background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); }
.badge-top { background: linear-gradient(180deg, #2b3445, var(--ink-950)); }

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr) auto minmax(190px, 0.85fr);
  grid-template-areas: "prov feat grade price";
  gap: 18px 26px; align-items: center;
  padding: 28px 24px 20px;
}
.offer-provider { grid-area: prov; display: flex; align-items: center; gap: 14px; min-width: 0; }
.offer-name { min-width: 0; }
.offer-name h3 { margin: 0; font-size: 1.08rem; letter-spacing: -0.01em; }
.offer-name p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 1px 0 6px; font-size: 0.86rem; color: var(--ink-500); }
.tier { padding: 1px 7px; border-radius: 6px; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.02em; background: var(--ink-100); color: var(--ink-600); }
.tier-1 { background: var(--brand-50); color: var(--brand-700); }
.tier-2 { background: #fdf4e3; color: #92580a; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-500); white-space: nowrap; }
.rating b { color: var(--ink-800); }

.stars { position: relative; display: inline-flex; vertical-align: middle; }
.stars-bg, .stars-fg { display: flex; gap: 1px; }
.stars-bg { color: var(--ink-200); }
.stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--amber-500); }
.stars .i { width: 14px; height: 14px; }

.offer-features { grid-area: feat; display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; }
.feat { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-700); line-height: 1.35; }
.feat .i { width: 18px; height: 18px; margin-top: 0; flex: none; padding: 2px; border-radius: 50%; stroke-width: 3; }
.feat.ok .i { color: var(--cta-600); background: var(--cta-50); }
.feat.no { color: var(--ink-400); }
.feat.no .i { color: var(--ink-400); background: var(--ink-100); }
.feat em { font-style: normal; color: var(--ink-500); }
.feat em::before { content: " · "; }

.offer-grade { grid-area: grade; }
.grade { --gc: var(--cta-600); width: 92px; overflow: hidden; text-align: center; border: 1.5px solid var(--gc); border-radius: 14px; background: #fff; }
.grade-label { display: block; padding: 4px 0; background: var(--gc); color: #fff; font-size: 0.64rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.grade-val { display: block; padding-top: 6px; font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--ink-950); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.grade-text { display: block; padding-bottom: 7px; font-size: 0.72rem; font-weight: 650; color: var(--ink-500); }
.grade-a { --gc: #079455; }
.grade-b { --gc: #4ca30d; }
.grade-c { --gc: #ca8504; }
.grade-d { --gc: #e04f16; }
.grade-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; font-size: 0.8rem; font-weight: 750; color: var(--gc); background: color-mix(in srgb, var(--gc) 11%, #fff); white-space: nowrap; }

.offer-price { grid-area: price; text-align: right; }
.price { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 0 5px; }
.price-val { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-950); font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-per { font-size: 0.85rem; color: var(--ink-500); font-weight: 550; }
.price-alt { margin: 3px 0 12px; font-size: 0.8rem; color: var(--ink-500); }

.offer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 11px 24px; border-top: 1px dashed var(--line); font-size: 0.85rem; color: var(--ink-500); }
.offer-meta { margin-right: auto; }
.compare-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink-700); cursor: pointer; padding: 4px 0; }
.compare-toggle input {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--ink-300); border-radius: 5px; background: #fff; cursor: pointer; transition: 0.15s;
}
.compare-toggle input:checked {
  border-color: var(--cta-500);
  background: var(--cta-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.offer-details { padding: 22px 24px 24px; border-top: 1px solid var(--line); background: var(--ink-50); border-radius: 0 0 var(--r-lg) var(--r-lg); animation: rise 0.3s var(--ease) both; }
.details-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.details-cols h4 { margin: 0 0 8px; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-500); }
.detail-list { margin: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.detail-list dt { color: var(--ink-600); }
.detail-list dd { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 650; color: var(--ink-900); text-align: right; }
.detail-list dd .i { width: 16px; height: 16px; stroke-width: 3; }
.detail-list .ok dd .i { color: var(--cta-600); }
.detail-list .no dd { color: var(--ink-400); font-weight: 550; }
.docs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 650; }
.doc-link .i { width: 16px; height: 16px; }

.result-more { text-align: center; margin-top: 8px; }
.results-note { margin: 22px 0 0; font-size: 0.8rem; color: var(--ink-400); text-align: center; }

.empty { padding: 48px 24px; text-align: center; background: #fff; border: 1px dashed var(--ink-300); border-radius: var(--r-lg); }
.empty > .i { width: 44px; height: 44px; margin: 0 auto 12px; padding: 10px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); }
.empty p { max-width: 30em; margin: 0 auto 18px; color: var(--ink-500); }

/* Lade-Zustand */
.loading-head { display: flex; align-items: center; gap: 18px; width: 100%; }
.loading-head h2 { margin: 0 0 12px; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.spinner { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--brand-100); border-top-color: var(--brand-500); animation: spin 0.8s linear infinite; }
.progress { width: min(460px, 100%); height: 6px; border-radius: 99px; background: var(--ink-200); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--cta-500)); animation: load var(--dur, 0.9s) var(--ease) forwards; }
.skel { border-radius: 8px; background: linear-gradient(90deg, var(--ink-100) 0%, #fafbfc 40%, var(--ink-100) 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) 170px; gap: 20px; align-items: center; margin-bottom: 16px; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.skel-stack { display: grid; gap: 10px; }
.skel-filter { display: grid; gap: 12px; padding: 8px 0 14px; }

/* ---------- Vergleichsleiste ---------- */
.compare-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  width: min(760px, calc(100% - 24px)); padding: 10px 10px 10px 18px;
  border-radius: 18px; background: rgba(5, 13, 36, 0.96); color: #fff;
  box-shadow: 0 24px 50px -12px rgba(5, 13, 36, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translate(-50%, 160%);
  transition: transform 0.4s var(--ease);
}
.compare-bar.show { transform: translate(-50%, 0); }
.cmp-info { display: grid; line-height: 1.25; flex: none; }
.cmp-info strong { font-size: 0.92rem; }
.cmp-info span { font-size: 0.78rem; color: #93a1c6; }
.cmp-slots { display: flex; gap: 8px; flex: 1; min-width: 0; }
.cmp-slot { position: relative; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 6px 30px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.cmp-slot-txt { display: grid; min-width: 0; line-height: 1.2; }
.cmp-slot-txt strong, .cmp-slot-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-slot-txt strong { font-size: 0.82rem; }
.cmp-slot-txt span { font-size: 0.74rem; color: #93a1c6; }
.cmp-slot.empty { justify-content: center; gap: 6px; padding: 6px; border: 1.5px dashed rgba(255, 255, 255, 0.18); background: none; color: rgba(255, 255, 255, 0.45); font-size: 0.78rem; min-height: 48px; }
.cmp-slot.empty .i { width: 14px; height: 14px; }
.cmp-remove { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.cmp-remove:hover { background: rgba(255, 255, 255, 0.22); }
.cmp-remove .i { width: 13px; height: 13px; }

/* ---------- Dialoge ---------- */
dialog {
  width: 100%; max-width: min(1000px, calc(100% - 24px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink-800);
  box-shadow: var(--sh-lg);
}
dialog[open] { display: flex; flex-direction: column; animation: pop 0.32s var(--ease); }
dialog::backdrop { background: rgba(5, 13, 36, 0.58); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-sm { max-width: min(580px, calc(100% - 24px)); }
.modal-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px 16px 26px; border-bottom: 1px solid var(--line); }
.modal-head > div { margin-right: auto; }
.modal-head .kicker { margin-bottom: 2px; }
.modal-head h3 { margin: 0; font-size: 1.25rem; }
.modal-body { flex: 1; overflow: auto; padding: 22px 26px 26px; }

.cmp-scroll { padding: 0; }
.cmp-table { width: 100%; min-width: calc(190px + var(--cols, 3) * 210px); border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.cmp-table th, .cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.cmp-table tbody th { position: sticky; left: 0; z-index: 1; width: 190px; background: #fff; font-weight: 600; color: var(--ink-600); }
.cmp-table thead th, .cmp-table thead td { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.cmp-table thead td.corner { left: 0; z-index: 3; }
.cmp-col-head { display: grid; justify-items: start; gap: 2px; padding: 4px 0; }
.cmp-col-head .logo { margin-bottom: 8px; }
.cmp-col-head strong { font-size: 1rem; color: var(--ink-950); }
.cmp-col-head .cmp-tariff { font-size: 0.82rem; color: var(--ink-500); font-weight: 550; }
.cmp-price { margin: 8px 0 10px; font-size: 0.82rem; color: var(--ink-500); font-weight: 550; }
.cmp-price b { font-size: 1.3rem; color: var(--ink-950); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cmp-table tr.grp th { position: static; padding: 18px 16px 8px; background: none; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }
.cmp-table td.best { background: var(--cta-50); }
.cmp-table td.best::after { content: "Bester Wert"; display: block; margin-top: 3px; font-size: 0.68rem; font-weight: 750; color: var(--cta-700); letter-spacing: 0.02em; }
.cmp-table.diff-only tr[data-same] { display: none; }
.v-ok, .v-no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.v-ok .i, .v-no .i { width: 16px; height: 16px; stroke-width: 3; }
.v-ok .i { color: var(--cta-600); }
.v-no { color: var(--ink-400); font-weight: 500; }
.diff-toggle { padding: 0; white-space: nowrap; font-weight: 600; }

.lead-summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-50); }
.lead-sum-txt { display: grid; gap: 4px; min-width: 0; flex: 1; }
.lead-sum-txt strong { color: var(--ink-950); }
.lead-sum-txt > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-500); }
.lead-sum-price { text-align: right; line-height: 1.2; }
.lead-sum-price strong { display: block; font-size: 1.35rem; color: var(--ink-950); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lead-sum-price span { font-size: 0.8rem; color: var(--ink-500); }
.lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.consent { margin-bottom: 4px; font-size: 0.84rem; color: var(--ink-600); }
.consent-error { margin: 0 0 12px 28px; }
.lead-form.consent-invalid .consent-error { display: block; }
.lead-form .btn-block { margin-top: 14px; }
.fineprint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 0.76rem; color: var(--ink-400); text-align: center; }
.fineprint .i { width: 14px; height: 14px; }
.lead-success { padding: 18px 6px 6px; text-align: center; }
.lead-success .ok-ring { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--cta-50); color: var(--cta-600); box-shadow: 0 0 0 10px rgba(18, 183, 106, 0.08); animation: pop 0.4s var(--ease); }
.lead-success .ok-ring .i { width: 38px; height: 38px; stroke-width: 2.5; }
.lead-success p { max-width: 30em; margin: 0 auto 20px; color: var(--ink-500); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 16px); z-index: 120;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink-950); color: #fff; font-size: 0.9rem; font-weight: 550;
  box-shadow: var(--sh-lg);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.filters-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(5, 13, 36, 0.5); opacity: 0; transition: opacity 0.25s; }
.filters-overlay.show { opacity: 1; }

/* ---------- Inhalts-Sektionen ---------- */
.section { padding: 96px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -0.03em; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }
.section-head.left { margin-inline: 0; text-align: left; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step-card { position: relative; padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.step-card::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 24px; right: 26px; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink-100); }
.step-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 15px; background: var(--brand-50); color: var(--brand-600); }
.step-ico .i { width: 24px; height: 24px; }
.step-card h3 { font-size: 1.15rem; }
.step-card p { margin: 0; color: var(--ink-500); }

.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.why-copy h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -0.03em; }
.why-copy p { color: var(--ink-500); font-size: 1.05rem; margin-bottom: 26px; }
.why-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.why-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, #fff, var(--ink-50)); }
.why-card .step-ico { width: 44px; height: 44px; margin-bottom: 14px; border-radius: 13px; }
.why-card:nth-child(2) .step-ico { background: var(--cta-50); color: var(--cta-600); }
.why-card:nth-child(3) .step-ico { background: #fdf4e3; color: #b26a00; }
.why-card:nth-child(4) .step-ico { background: #f4ecff; color: #7c3aed; }
.why-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why-card p { margin: 0; font-size: 0.92rem; color: var(--ink-500); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: inherit;
  box-shadow: var(--sh-xs); text-decoration: none !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-200); }
.tile-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 15px; background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: 0 10px 18px -10px rgba(31, 79, 224, 0.8); }
.tile-ico .i { width: 25px; height: 25px; }
.tile h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tile p { flex: 1; margin-bottom: 20px; font-size: 0.93rem; color: var(--ink-500); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-500); }
.tile-foot strong { color: var(--ink-950); font-size: 1.05rem; }
.tile-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); transition: background 0.2s, color 0.2s; }
.tile-arrow .i { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.tile:hover .tile-arrow { background: var(--brand-600); color: #fff; }
.tile:hover .tile-arrow .i { transform: translateX(2px); }
.footnote { margin: 22px 0 0; font-size: 0.8rem; color: var(--ink-400); text-align: center; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow 0.2s, border-color 0.2s; }
.faq-item[open] { box-shadow: var(--sh-sm); border-color: var(--brand-100); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 650; color: var(--ink-900); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { width: 20px; height: 20px; color: var(--ink-400); transition: transform 0.25s var(--ease), color 0.2s; }
.faq-item[open] summary .i { transform: rotate(45deg); color: var(--brand-600); }
.faq-body { padding: 0 22px 20px; color: var(--ink-600); }
.faq-body p:last-child { margin: 0; }

.cta-band { padding: 0 0 96px; }
.cta-box {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 48px 52px; border-radius: var(--r-xl); color: #c3cde8;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(51, 102, 255, 0.55), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(18, 183, 106, 0.3), transparent 60%),
    var(--brand-900);
}
.cta-box h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 6px; letter-spacing: -0.03em; }
.cta-box p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: #8f9bbd; padding: 64px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { max-width: 26em; }
.site-footer h4 { color: #fff; font-size: 0.88rem; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #aab5d4; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8rem; color: #6f7ca3; }

/* ---------- Animationen ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { from { width: 0; } to { width: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(50, 213, 131, 0.2); } 50% { box-shadow: 0 0 0 7px rgba(50, 213, 131, 0.05); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .insurer-logos { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-set[aria-hidden] { display: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 10px 20px 20px; background: #fff; color: var(--ink-900);
    box-shadow: 0 20px 30px -20px rgba(16, 24, 40, 0.3); border-top: 1px solid var(--line);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px; font-size: 1rem; opacity: 1; }
  .nav-toggle { display: inline-grid; }
  .header-link { display: none; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy { padding-top: 8px; max-width: 760px; }
  .why-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (min-width: 760px) and (max-width: 1180px) {
  .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 80;
    width: min(360px, 88vw); max-height: none; border-radius: 0 20px 20px 0; border: 0;
    padding: 18px 20px 0; display: flex; flex-direction: column;
    transform: translateX(-105%); transition: transform 0.32s var(--ease);
    box-shadow: var(--sh-lg);
  }
  .filters.open { transform: none; }
  .filters-body { flex: 1; overflow: auto; }
  .filters-close { display: inline-grid; }
  .filters-apply { display: block; position: sticky; bottom: 0; margin: 0 -20px; padding: 14px 20px 18px; background: #fff; border-top: 1px solid var(--line); }
  .filter-btn { display: inline-flex; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "prov grade" "feat feat" "price price"; padding: 26px 18px 16px; }
  .offer-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
  .offer-price .price { justify-content: flex-start; }
  .offer-price .price-alt { margin: 0; }
  .offer-price .btn { grid-column: 2; grid-row: 1 / 3; width: auto; }
  .offer-foot { padding: 10px 18px; }
  .offer-meta { order: 3; flex-basis: 100%; }
  .offer-details { padding: 18px; }
  .details-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .insurer-strip .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .insurer-logos { width: 100%; flex: none; }
  .cmp-slots { display: none; }
  .compare-bar { justify-content: space-between; }
}

@media (max-width: 600px) {
  :root { --header-h: 62px; }
  .container { width: calc(100% - 28px); }
  .header-actions .btn-light { display: none; }
  .hero { padding: 28px 0 48px; }
  .hero h1 { margin-top: 18px; }
  .hero .lead { font-size: 1.02rem; }
  .calc-card { border-radius: 22px; }
  .cat-tabs { grid-template-columns: repeat(6, minmax(82px, 1fr)); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { scroll-snap-align: start; }
  .calc-body { padding: 22px 18px 0; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .segmented[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-foot { flex-direction: column-reverse; align-items: stretch; padding: 18px; }
  .calc-foot .btn { width: 100%; }
  .secure { justify-content: center; }
  .toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .toolbar .count { margin: 0; align-self: center; }
  .toolbar .filter-btn { justify-self: end; }
  .sort { min-width: 0; }
  .sort span { display: none; }
  .sort select { min-width: 0; width: 100%; }
  .hero-stats { display: none; }
  .hero-trust { gap: 8px; margin-top: 22px; font-size: 0.95rem; }
  .cmp-table thead th, .cmp-table thead td { position: static; }
  .insurer-strip .container { gap: 10px; }
  .savings { align-items: flex-start; padding: 14px 16px; }
  .grade { width: 80px; }
  .grade-val { font-size: 1.45rem; }
  .logo { width: 46px; height: 46px; border-radius: 13px; }
  .price-val { font-size: 1.55rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .why-cards { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
  .cta-band { padding-bottom: 64px; }
  .cta-box { padding: 34px 26px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-summary { flex-wrap: wrap; }
  .modal-head { padding: 16px 16px 14px 20px; }
  .modal-body { padding: 18px 20px 22px; }
  dialog { max-height: calc(100dvh - 16px); border-radius: 20px; }
  .diff-toggle span { font-size: 0.82rem; }
  .compare-bar { bottom: 12px; }
  .skel-card { grid-template-columns: 46px minmax(0, 1fr); }
  .skel-card > :last-child { display: none; }
}
