/* ============================================================
   FamilienCheck – base.css
   happycaterers.com · saltylemon Online-Marketing GmbH
   ============================================================ */

@import url('https://fonts.bunny.net/css?family=plus+jakarta+sans:400,500,600,700,800&display=swap');

:root {
  --blue:        #1d4ed8;
  --blue2:       #1e40af;
  --blue3:       #172f80;
  --blue-light:  #eff6ff;
  --amber:       #f59e0b;
  --amber-light: #fffbeb;
  --amber-dark:  #d97706;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --red:         #dc2626;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --text:        #0f172a;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 12px rgba(15,23,42,.08);
  --shadow-lg:   0 8px 32px rgba(15,23,42,.13);
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Typography ── */
h1 { font-size: clamp(1.85rem, 4.5vw, 2.9rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.35; }
p  { line-height: 1.75; }

/* ── Layout ── */
.container    { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width:  720px; margin: 0 auto; padding: 0 20px; }

/* ── Top bar ── */
.top-bar {
  background: var(--blue3);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.top-bar span { display: flex; align-items: center; gap: 5px; }
.top-bar svg  { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Header ── */
.site-header { background: var(--blue); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(15,23,42,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: var(--amber); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 20px; height: 20px; color: #fff; }
.logo-name { font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.logo-name span { color: var(--amber); }
.header-cta { background: var(--amber); color: #fff; font-weight: 700; font-size: .85rem; padding: 10px 20px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.header-cta:hover { background: var(--amber-dark); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 55%, #1e3a8a 100%);
  color: #fff;
  padding: 4rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(245,158,11,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 440px; gap: 3rem; align-items: center; position: relative; }
.hero-text { padding-bottom: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,.18); border: 1px solid rgba(245,158,11,.4);
  color: #fcd34d; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 12px; border-radius: 50px; margin-bottom: 1.25rem;
}
.hero-badge svg { width: 12px; height: 12px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.78); max-width: 520px; margin-bottom: 1.75rem; }
.hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stat { border-left: 3px solid var(--amber); padding-left: .85rem; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat span { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: 3px; display: block; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: #fff; font-weight: 800; font-size: 1rem; padding: 16px 32px; border-radius: 10px; text-decoration: none; transition: background .15s, transform .15s; }
.hero-btn:hover { background: var(--amber-dark); transform: translateY(-1px); text-decoration: none; }
.hero-btn svg { width: 18px; height: 18px; }
.hero-note { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .85rem; display: flex; align-items: center; gap: 5px; }
.hero-note svg { width: 14px; height: 14px; flex-shrink: 0; color: rgba(255,255,255,.4); }
.hero-photo { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: 0 28px 72px rgba(0,0,0,.38); }

/* ── Trust strip ── */
.trust-strip {
  background: var(--amber);
  padding: 12px 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-strip span { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: #fff; }
.trust-strip svg  { width: 15px; height: 15px; }

/* ── Section ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-title { margin-bottom: .5rem; }
.section-sub { font-size: .95rem; color: var(--muted); max-width: 620px; margin-bottom: 2.5rem; line-height: 1.7; }

/* ── Why cards ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.why-card { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--amber); border-radius: var(--radius-lg); padding: 1.5rem; }
.why-icon { width: 44px; height: 44px; background: var(--amber-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--amber-dark); margin-bottom: 1rem; }
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: .95rem; margin-bottom: .4rem; }
.why-card p  { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── Benefits list ── */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.benefit-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.benefit-icon { width: 42px; height: 42px; background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.benefit-icon svg { width: 20px; height: 20px; }
.benefit-item h3 { font-size: .95rem; margin-bottom: .3rem; }
.benefit-item p  { font-size: .82rem; color: var(--muted); line-height: 1.55; margin: 0; }
.benefit-tag { display: inline-block; background: var(--green-light); color: var(--green); font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-top: 6px; }
.benefit-gateway { display: inline-block; background: #fff7ed; color: var(--amber-dark); font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-top: 6px; }

/* ── Anchor offset for sticky header ── */
#check, #kinderzuschlag, #wohngeld, #bildungspaket, #unterhaltsvorschuss {
  scroll-margin-top: 80px;
}

/* ── Quiz section ── */
.quiz-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  padding: 4rem 0;
}
.quiz-section .section-title { color: #fff; }
.quiz-section .section-sub   { color: rgba(255,255,255,.7); }

.quiz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.quiz-progress { height: 5px; background: var(--border); }
.quiz-progress-bar { height: 100%; background: var(--amber); transition: width .4s ease; border-radius: 2px; }
.quiz-body { padding: 2rem 2.25rem; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-counter { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.quiz-body h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.3; }
.quiz-body .quiz-sub { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.quiz-options { display: grid; gap: .65rem; }
.quiz-options.cols-2 { grid-template-columns: 1fr 1fr; }
.quiz-option {
  display: flex; align-items: center; gap: .85rem;
  background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius);
  padding: .85rem 1.1rem; cursor: pointer; text-align: left; width: 100%;
  font-family: var(--font); font-size: .88rem; font-weight: 600; color: var(--text);
  transition: border-color .15s, background .15s, transform .1s;
}
.quiz-option:hover { border-color: var(--amber); background: var(--amber-light); transform: translateY(-1px); }
.quiz-option.selected { border-color: var(--blue); background: var(--blue-light); }
.opt-icon { width: 38px; height: 38px; background: #fff; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.opt-icon svg { width: 19px; height: 19px; }
.opt-text { line-height: 1.3; }
.opt-text small { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.quiz-back { background: none; border: none; color: var(--muted); font-size: .82rem; font-family: var(--font); cursor: pointer; display: flex; align-items: center; gap: 4px; margin-top: 1.1rem; padding: 0; }
.quiz-back:hover { color: var(--text); }

/* ── Result ── */
.quiz-result { display: none; }
.result-header { text-align: center; background: linear-gradient(135deg, var(--blue), var(--blue2)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 2rem 1.5rem 1.5rem; color: #fff; }
.result-label-top { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.result-amount { font-size: 3rem; font-weight: 800; color: var(--amber); display: block; line-height: 1; margin: .35rem 0 .25rem; }
.result-sublabel { font-size: .88rem; color: rgba(255,255,255,.7); }
.result-disclaimer { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: .6rem; }
.result-items { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.result-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--bg); border-radius: var(--radius); padding: .65rem 1rem; font-size: .85rem; flex-wrap: wrap; }
.result-item-name { display: flex; align-items: center; gap: .5rem; font-weight: 600; min-width: 0; flex: 1; flex-wrap: wrap; }
.result-item-name svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }
.result-item-amount { font-weight: 800; color: var(--blue); white-space: nowrap; flex-shrink: 0; }
.result-tip { background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 12px 14px; margin: 0 1.25rem; font-size: .82rem; color: #92400e; display: flex; gap: 8px; }
.result-tip svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--amber-dark); }

/* ── Lead form ── */
.lead-form-box { padding: 1.5rem; }
.lead-form-box strong { display: block; font-size: 1rem; margin-bottom: .3rem; }
.lead-form-box p { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.disclaimer-box { background: rgba(15,23,42,.04); border-radius: 6px; padding: 10px 12px; font-size: .72rem; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: .65rem; }
.form-group label { font-size: .78rem; font-weight: 700; color: var(--text); }
.form-group input, .form-group select {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; font-size: .9rem; font-family: var(--font); color: var(--text);
  background: #fff; transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group input.is-error, .form-group select.is-error { border-color: var(--red); }
.form-error-msg { display: none; font-size: .73rem; color: var(--red); margin-top: 3px; }
.form-error-msg.visible { display: block; }
.consent-label.is-error { color: var(--red); }
.consent-label.is-error a { color: var(--red); }
.consent-label { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; color: var(--muted); line-height: 1.5; cursor: pointer; margin-bottom: .85rem; }
.consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); width: 14px; height: 14px; }
.consent-label > span, .consent-label > a, .consent-label > strong { flex: 1; min-width: 0; }
.btn-submit { display: block; width: 100%; background: var(--blue); color: #fff; border: none; border-radius: var(--radius); padding: 15px; font-size: 1rem; font-weight: 700; font-family: var(--font); cursor: pointer; transition: background .15s; }
.btn-submit:hover { background: var(--blue2); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Urgency bar ── */
.urgency-bar {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-lg);
  padding: 1rem 1.5rem; display: flex; align-items: center; gap: .85rem;
  margin-bottom: 1.75rem; max-width: 680px; margin-left: auto; margin-right: auto;
}
.urgency-bar svg { width: 22px; height: 22px; color: var(--amber-dark); flex-shrink: 0; }
.urgency-bar p { font-size: .85rem; color: #92400e; line-height: 1.55; margin: 0; }
.urgency-bar strong { color: #78350f; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { text-align: center; position: relative; }
.step::after { content: ''; position: absolute; top: 24px; left: calc(50% + 30px); width: calc(100% - 60px); height: 2px; background: var(--border); }
.step:last-child::after { display: none; }
.step-num { width: 48px; height: 48px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin: 0 auto 1rem; position: relative; z-index: 1; }
.step h3 { font-size: .95rem; margin-bottom: .35rem; }
.step p  { font-size: .82rem; color: var(--muted); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: .6rem; max-width: 680px; }
details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
details summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 700; font-size: .92rem; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
details[open] summary::after { content: '−'; }
details .faq-body { padding: 0 1.25rem 1rem; font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ── Footer ── */
.site-footer { background: var(--blue3); color: rgba(255,255,255,.55); padding: 2.5rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand p { font-size: .82rem; line-height: 1.65; margin: .65rem 0 1rem; max-width: 280px; }
.footer-legal-small { font-size: .72rem; line-height: 1.6; color: rgba(255,255,255,.3); }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .82rem; color: rgba(255,255,255,.45); transition: color .15s; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0; font-size: .72rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-legal-strip { font-size: .68rem; color: rgba(255,255,255,.25); padding: 1rem 0 1.5rem; line-height: 1.65; border-top: 1px solid rgba(255,255,255,.05); margin-top: .5rem; }

/* ── Cookie Banner ── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--blue3); color: rgba(255,255,255,.8);
  padding: 1.1rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25); font-size: .82rem; line-height: 1.55;
}
.cookie-bar a { color: #a5b4fc; }
.cookie-bar-actions { display: flex; gap: .6rem; flex-shrink: 0; margin-left: auto; flex-wrap: wrap; }
.btn-cookie-accept { background: var(--amber); color: #fff; border: none; border-radius: 7px; padding: 9px 20px; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: var(--font); white-space: nowrap; }
.btn-cookie-reject { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.25); border-radius: 7px; padding: 9px 16px; font-weight: 600; font-size: .82rem; cursor: pointer; font-family: var(--font); white-space: nowrap; }
.btn-cookie-reject:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(0,0,0,.28); }
  .hero-text { padding-bottom: 0; }
  .hero { padding-top: 2.5rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .quiz-section { padding: 2.5rem 0; }
  .urgency-bar { margin-left: 0; margin-right: 0; max-width: 100%; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .quiz-options.cols-2 { grid-template-columns: 1fr; }
  .top-bar { gap: .5rem; font-size: .7rem; padding: 6px 12px; }
  .top-bar span:last-child { display: none; }
  .hero-stats { gap: 1rem; }
  .hero-stats { flex-wrap: nowrap; }
  .quiz-body { padding: 1.5rem 1.25rem; }
  .lead-form-box { padding: 1.25rem; }
  .result-items { padding: .85rem; }
  .result-tip { margin: 0 .85rem; }
  .hero-stat strong { font-size: 1.3rem; }
  .why-grid { grid-template-columns: 1fr; }
  .result-header { padding: 1.5rem 1rem 1.2rem; }
  .result-amount { font-size: 2.4rem; }
}
@media (max-width: 380px) {
  .header-cta { padding: 8px 12px; font-size: .78rem; }
  .quiz-body h2 { font-size: 1rem; }
}
