/* ==========================================================================
   VorsorgeIQ — Brand-Stylesheet
   Design-Linie: Dunkelblau/Anthrazit + Weiß + Türkis/Grün (Positiv-Akzent),
   Rot nur sparsam für Warnhinweise. Seriös, ruhig, modern, vertrauenswürdig.
   Ergänzt Tailwind-CDN (Utility-Klassen kommen aus Tailwind).
   ========================================================================== */

:root {
    /* Helle Vertrauens-Flächen (Weiß + Navy) */
    --bg:           #FFFFFF;   /* Primärhintergrund */
    --bg-2:         #F1F5F9;   /* Sektion-Alternativ (helles Slate) */
    --surface:      #FFFFFF;   /* Karten */
    --surface-2:    #F8FAFC;   /* Inputs / Hover */
    --border:       #E2E8F0;   /* Linien / Divider */

    /* Text */
    --text:         #0F1B2D;   /* Primärtext (Navy-Ink) */
    --text-soft:    #475569;   /* Sekundärtext */
    --text-muted:   #64748B;   /* gedämpft */

    /* Akzente — Türkis = positive Orientierung / „IQ" */
    --teal:         #0D9488;   /* tiefer, lesbar auf Weiß (Eyebrow/Icons) */
    --teal-bright:  #14B8A6;   /* Akzent / Gradient */
    --teal-soft:    rgba(13,148,136,0.10);

    /* Ampel — kontraststark auf Weiß */
    --green:        #16A34A;
    --amber:        #D97706;
    --red:          #DC2626;   /* nur sparsam, Warnhinweise */

    --radius:       16px;
    --maxw:         1120px;
}

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Mobile: kein horizontales Scrollen */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

::selection { background: rgba(13,148,136,0.20); color: #0F1B2D; }

/* ---------- Typografie-Helfer ---------- */
.h-display   { letter-spacing: -0.025em; line-height: 1.08; }
.eyebrow     { letter-spacing: 0.16em; font-weight: 700; font-size: 12px;
               text-transform: uppercase; color: var(--teal-bright); }
.text-soft   { color: var(--text-soft); }
.text-muted2 { color: var(--text-muted); }

/* ---------- Hintergründe / Glows ---------- */
.bg-alt   { background: var(--bg-2); }
.hero-glow {
    background:
      radial-gradient(ellipse 70% 55% at 50% -10%, rgba(20,184,166,0.10) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 85% 10%, rgba(13,148,136,0.06) 0%, transparent 55%);
}
.grid-faint {
    background-image: radial-gradient(rgba(15,27,45,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ---------- Karten ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(15,27,45,0.06), 0 8px 24px -16px rgba(15,27,45,0.12);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover { border-color: rgba(13,148,136,0.45); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(15,27,45,0.08), 0 16px 36px -18px rgba(15,27,45,0.18); }
.card-soft { box-shadow: 0 18px 48px -24px rgba(15,27,45,0.18); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 700; border-radius: 12px; padding: 16px 30px; font-size: 17px;
    line-height: 1.1; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
    text-align: center; border: none;
}
.btn-primary {
    background: linear-gradient(180deg, var(--teal-bright) 0%, var(--teal) 100%);
    color: #04231F;
    box-shadow: 0 10px 30px -8px rgba(20,184,166,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05);
    box-shadow: 0 16px 38px -10px rgba(20,184,166,0.65); }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(45,212,191,0.6); transform: translateY(-2px); color: #fff; }
.btn-lg { padding: 18px 38px; font-size: 19px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

/* ---------- Trust-Zeile / Microcopy ---------- */
.microcopy { color: var(--text-muted); font-size: 13.5px; }

/* ---------- Rentenlücken-Bars ---------- */
.bar { height: 12px; border-radius: 999px; background: rgba(15,27,45,0.07); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: 999px;
              transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.bar-teal  > span { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.bar-muted > span { background: #94A3B8; }
.bar-red   > span { background: linear-gradient(90deg, #F87171, var(--red)); }

/* ---------- Ampel ---------- */
.ampel { display: inline-flex; flex-direction: column; gap: 8px; padding: 12px;
         border-radius: 14px; background: #F1F5F9; border: 1px solid var(--border); }
.ampel .light { width: 20px; height: 20px; border-radius: 999px; background: #E2E8F0; }
.ampel.green  .light.g { background: var(--green); box-shadow: 0 0 16px rgba(34,197,94,0.7); }
.ampel.amber  .light.a { background: var(--amber); box-shadow: 0 0 16px rgba(245,166,35,0.7); }
.ampel.red    .light.r { background: var(--red);   box-shadow: 0 0 16px rgba(239,68,68,0.7); }

.pill { display:inline-flex; align-items:center; gap:.4rem; padding:6px 12px; border-radius:999px;
        font-size:13px; font-weight:600; border:1px solid var(--border); background:#F8FAFC; }
.pill-green { color:#15803D; border-color:rgba(22,163,74,0.35); background:rgba(22,163,74,0.08); }
.pill-amber { color:#B45309; border-color:rgba(217,119,6,0.35); background:rgba(217,119,6,0.08); }
.pill-red   { color:#DC2626; border-color:rgba(220,38,38,0.35); background:rgba(220,38,38,0.07); }

/* ---------- FAQ-Accordion ---------- */
.faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-body { max-height: 360px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px);
          transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floaty { animation: floaty 6s ease-in-out infinite; }

/* ---------- Formfelder ---------- */
.field {
    width: 100%; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text);
    padding: 13px 15px; font-size: 15.5px; transition: border-color .18s ease, box-shadow .18s ease;
}
.field::placeholder { color: var(--text-muted); }
.field:focus { outline: none; border-color: var(--teal);
               box-shadow: 0 0 0 3px rgba(20,184,166,0.2); }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; display:block; }

/* Checkbox-Reihe */
.consent-row { display:flex; gap:11px; align-items:flex-start; font-size:13.5px; color:var(--text-soft); line-height:1.5; }
.consent-row input[type="checkbox"] { margin-top:3px; width:18px; height:18px; flex:0 0 auto; accent-color: var(--teal); }

/* ---------- Quiz-spezifisch ---------- */
.quiz-progress { height: 6px; border-radius: 999px; background: #E2E8F0; overflow:hidden; }
.quiz-progress > span { display:block; height:100%; background: linear-gradient(90deg, var(--teal), var(--teal-bright));
                        width:0; border-radius:999px; transition: width .4s ease; }

.opt {
    display:flex; align-items:center; gap:14px; width:100%; text-align:left;
    padding:16px 18px; border-radius:14px; border:1px solid var(--border);
    background: var(--surface); color: var(--text); cursor:pointer; font-size:16px; font-weight:500;
    transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.opt:hover { border-color: rgba(45,212,191,0.55); background: var(--surface-2); }
.opt.selected { border-color: var(--teal); background: var(--teal-soft); }
.opt .opt-mark { width:22px; height:22px; border-radius:999px; border:2px solid var(--border);
                 flex:0 0 auto; display:grid; place-items:center; transition:border-color .18s ease; }
.opt.selected .opt-mark { border-color: var(--teal); }
.opt.selected .opt-mark::after { content:""; width:11px; height:11px; border-radius:999px; background:var(--teal-bright); }

/* ---------- Footer / Disclaimer ---------- */
.disclaimer { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Responsive Typo ---------- */
@media (max-width: 768px) {
    .btn-lg { font-size: 17px; padding: 16px 26px; }
}
