/* =========================================================
   Versicherungsfilter.de – Design System
   ========================================================= */

/* Selbstgehostete Variable Fonts (DSGVO-konform, keine Google-Fonts-Einbindung) */
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope-VariableFont.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces-VariableFont.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors (vom Logo abgeleitet) */
  --navy-900: #0f1f3d;
  --navy-800: #162848;
  --navy-700: #1f3358;
  --navy-100: #e8ecf3;
  --navy-50:  #f4f6fa;

  --teal-700: #0c8a80;
  --teal-600: #14a89d;
  --teal-500: #1ec0b4;
  --teal-100: #d5f3ef;
  --teal-50:  #ecfaf8;

  --ink:      #1a2440;
  --ink-soft: #4a5570;
  --muted:    #6b7593;
  --line:     #e5e9ef;
  --bg:       #ffffff;
  --bg-soft:  #fafbfc;

  --ok:       #1d9d6d;
  --warn:     #d97706;
  --err:      #c1352b;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,31,61,0.06), 0 1px 3px rgba(15,31,61,0.04);
  --shadow-md: 0 4px 14px rgba(15,31,61,0.08), 0 2px 4px rgba(15,31,61,0.04);
  --shadow-lg: 0 18px 50px rgba(15,31,61,0.12), 0 6px 16px rgba(15,31,61,0.06);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   Reset / Base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--teal-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .6em;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }

/* =========================================================
   Layout helpers
   ========================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
body { overflow-x: hidden; }
@media (max-width: 600px) {
  .container { padding: 0 16px; }
}

.section { padding: 40px 0; scroll-margin-top: 140px; }
.section--sm { padding: 24px 0; scroll-margin-top: 140px; }
html { scroll-behavior: smooth; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--teal-50) 0%, #fff 100%); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: .8em;
}

.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f8f8f8;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.logo {
  display: inline-flex;
  align-items: center;
}
/* Trust-Badges im Header */
.header-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.header-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-trust li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  background: var(--teal-600);
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 900;
}
@media (max-width: 900px) {
  .header-trust { display: none; }
}

.logo img {
  height: 112px;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--teal-700);
  letter-spacing: 0.005em;
  padding-left: 4px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .logo img { height: 76px; }
  .brand__slogan { font-size: 0.85rem; white-space: normal; }
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: .98rem;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover { background: var(--navy-50); color: var(--navy-900); }
.main-nav a.is-active { color: var(--teal-700); background: var(--teal-50); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  position: relative;
  transition: .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 16px; }
  .main-nav a { padding: 14px 16px; }
}

/* =========================================================
   Breadcrumbs
   ========================================================= */

.breadcrumbs {
  font-size: .9rem;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal-700); }
.breadcrumbs .sep { margin: 0 .5em; opacity: .6; }
.breadcrumbs .current { color: var(--ink); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: 36px 0 40px;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--teal-50), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, var(--navy-50), transparent 70%);
  overflow: hidden;
}
.hero h1 { max-width: 18ch; margin-bottom: 6px; }
.hero .lead { margin-bottom: 16px; }

/* Trust-Badges unter dem Hero-Text */
.trust-badges {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--teal-100);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(20,30,60,.04);
}
.trust-badges__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--teal-600);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--teal-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { background: var(--teal-700); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--navy-50); color: var(--navy-900); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   Cards
   ========================================================= */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-100);
}
.card h3 {
  margin: 12px 0 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
  letter-spacing: 0;
}
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }
.card__icon {
  width: 44px;
  height: 44px;
  background: var(--teal-50);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-size: 22px;
}
.card a.card__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--teal-700);
}
.card a.card__link::after { content: " →"; transition: margin .2s var(--ease); }
.card a.card__link:hover::after { margin-left: 4px; }

/* =========================================================
   Funnel (Mehrschritt-Fragebogen)
   ========================================================= */

.funnel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 32px auto 0;
}

.funnel__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.funnel__step-dot {
  flex: 1;
  height: 6px;
  background: var(--navy-50);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.funnel__step-dot.is-done { background: var(--teal-600); }
.funnel__step-dot.is-active { background: var(--teal-100); }
.funnel__step-dot.is-active::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--teal-600);
  animation: pulse 1.6s infinite;
  transform-origin: left;
}
@keyframes pulse {
  0%   { transform: scaleX(0); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

.funnel__step { display: none; animation: fadeIn .3s var(--ease); }
.funnel__step.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.funnel__question {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy-900);
  margin: 0 0 6px;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.funnel__hint {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 22px;
}

.funnel__options {
  display: grid;
  gap: 12px;
}
.funnel__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  background: #fff;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.funnel__option:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
  transform: translateY(-1px);
}
.funnel__option input { accent-color: var(--teal-600); }

.funnel__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}

.funnel__result {
  display: none;
  animation: fadeIn .4s var(--ease);
}
.funnel__result.is-active { display: block; }
.funnel__result h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy-900);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.funnel__recommendation {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--teal-100);
  background: var(--teal-50);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.funnel__recommendation strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 4px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--navy-900);
  color: #c9d2e3;
  padding: 60px 0 24px;
  margin-top: 80px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a {
  color: #c9d2e3;
  display: block;
  padding: 4px 0;
}
.site-footer a:hover { color: var(--teal-500); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 2.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0 18px;
  font-size: .88rem;
  line-height: 1.65;
  color: #8794ad;
  max-width: 980px;
}
.site-footer__disclaimer strong { color: #c9d2e3; font-weight: 600; }

/* Orientierungshilfe-Hinweis auf Filter-Seiten */
.disclaimer-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--teal-50);
  border-left: 4px solid var(--teal-600);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0 32px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.disclaimer-note__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.2;
}
.disclaimer-note strong { color: var(--ink); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .9rem;
  color: #8794ad;
}
.site-footer__bottom a { display: inline; }

/* =========================================================
   Cookie Banner (Platzhalter – DSGVO-Hinweis)
   ========================================================= */

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}
.cookie-banner.is-visible { display: block; animation: fadeIn .3s var(--ease); }
.cookie-banner p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 14px; }
.cookie-banner .btn-row { gap: 8px; }
.cookie-banner .btn { padding: 10px 16px; font-size: .92rem; }
