/* ==========================================================================
   Kleine Helden Vorsorge – One-Pager
   Farbwelt orientiert an der Meta-Werbeanzeige: Creme-Hintergrund,
   Navy-Blau als Markenfarbe, warmes Orange/Rot als Akzent, verspielte
   Regenbogen-Farben für kindgerechte Deko-Elemente.
   ========================================================================== */

:root {
  --color-bg: #FBF7EC;
  --color-bg-soft: #EFF4FC;
  --color-card: #FFFFFF;
  --color-navy: #16255C;
  --color-navy-light: #1E3AA8;
  --color-blue: #2851E3;
  --color-orange: #F2A765;
  --color-orange-dark: #E8782E;
  --color-red: #E8502E;
  --color-text: #2A2A33;
  --color-text-soft: #5B5B68;
  --color-border: #E7E1D2;

  --rainbow-1: #2851E3;
  --rainbow-2: #F2C84B;
  --rainbow-3: #4FAF6D;
  --rainbow-4: #E8502E;
  --rainbow-5: #9B6FD6;
  --rainbow-6: #F285A7;

  --font-heading: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(22, 37, 92, 0.08);
  --shadow-card: 0 4px 16px rgba(22, 37, 92, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; }

a { color: var(--color-blue); }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 760px; }

.section { padding: 72px 0; }

.text-center { text-align: center; }

.eyebrow {
  font-weight: 800;
  color: var(--color-orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.eyebrow-center { text-align: center; }

.section-lead {
  color: var(--color-text-soft);
  font-size: 1.1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(232, 80, 46, 0.35);
}
.btn-primary:hover { background: #d4451f; }

.btn-large { padding: 18px 34px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn-header-cta {
  background: var(--color-navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-border);
}

.btn-add {
  background: var(--color-bg-soft);
  color: var(--color-navy-light);
  border: 2px dashed #B9C9EE;
  width: 100%;
  margin-bottom: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); }
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--color-red); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hl-blue { color: var(--color-blue); }

.hero-sub { font-size: 1.1rem; color: var(--color-text-soft); max-width: 540px; }

.hero-points { list-style: none; padding: 0; margin: 0 0 28px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--color-navy); margin-bottom: 10px; font-size: 1.05rem; }
.hero-points .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-blue); color: #fff; font-size: 0.8rem; flex-shrink: 0;
}

.hero-microtrust { font-size: 0.85rem; color: var(--color-text-soft); margin-top: 12px; }

.hero-visual { display: flex; justify-content: center; }
.hero-image-wrap { position: relative; max-width: 420px; width: 100%; }
.hero-illustration {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
}

.ad-recognition {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  max-width: 480px;
  box-shadow: var(--shadow-card);
}
.ad-thumb {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.ad-recognition span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
}
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.85; z-index: 1; }
.blob-1 { width: 70px; height: 70px; background: var(--rainbow-2); top: -20px; left: -20px; }
.blob-2 { width: 50px; height: 50px; background: var(--rainbow-4); bottom: 10px; right: -18px; }
.blob-3 { width: 40px; height: 40px; background: var(--rainbow-1); bottom: -16px; left: 40px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-navy); padding: 18px 0; }
.trust-bar-inner {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: center; color: #fff; font-weight: 700; font-size: 0.92rem;
}
.trust-item { display: flex; align-items: center; gap: 8px; }

/* ---------- Pain section ---------- */
.pain-section { background: var(--color-bg); }
.pain-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 40px;
}
@media (min-width: 760px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.pain-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.mid-cta { margin-top: 36px; }

/* ---------- Solution ---------- */
.solution-section { background: var(--color-bg-soft); }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px;
}
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.benefit-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.benefit-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.benefit-card p { margin: 0; color: var(--color-text-soft); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps-section { background: var(--color-navy); color: #fff; }
.steps-section h2 { color: #fff; }
.steps-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 40px; margin-bottom: 36px;
}
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-orange); color: var(--color-navy);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 14px;
}
.step-card h3 { color: #fff; }
.step-card p { color: rgba(255,255,255,0.75); margin: 0; }
.steps-section .btn-primary { background: var(--color-orange); color: var(--color-navy); box-shadow: none; }
.steps-section .btn-primary:hover { background: var(--color-orange-dark); }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px;
}
@media (min-width: 760px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  font-style: italic;
}
.testimonial-card strong { display: block; margin-top: 12px; font-style: normal; color: var(--color-navy); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--color-bg-soft); }
.faq-item {
  background: var(--color-card);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-navy);
}
.faq-item p { margin: 12px 0 0; color: var(--color-text-soft); }

/* ---------- Lead form ---------- */
.form-section { background: var(--color-bg); }
.form-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .form-card { padding: 48px; } }

.field-label { display: block; font-weight: 800; color: var(--color-navy); margin-bottom: 8px; margin-top: 18px; }
.field-hint { font-size: 0.85rem; color: var(--color-text-soft); margin-top: -4px; margin-bottom: 12px; }

input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}
input:focus { outline: none; border-color: var(--color-blue); }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover { border-color: var(--color-blue); }
.pill.selected { background: var(--color-blue); border-color: var(--color-blue); color: #fff; }

.field-error { display: none; color: var(--color-red); font-size: 0.85rem; margin-top: 6px; font-weight: 700; }
.field-error.show { display: block; }
input.invalid { border-color: var(--color-red); }

.kind-row { display: flex; gap: 10px; margin-bottom: 12px; }
.kind-row .kind-input { flex: 1; }
.kind-remove {
  background: var(--color-bg-soft); border: 2px solid var(--color-border);
  border-radius: var(--radius-sm); width: 48px; cursor: pointer; font-size: 1.1rem; color: var(--color-text-soft);
}


.recap-box {
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--color-navy);
  margin: 20px 0;
  display: none;
}
.recap-box.show { display: block; }

.consent-label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--color-text-soft); margin-top: 16px; }
.consent-label input { margin-top: 3px; }

.honeypot { position: absolute; left: -9999px; top: -9999px; }

.submit-error { color: var(--color-red); font-weight: 700; text-align: center; margin-top: 16px; }

.btn-submit { margin-top: 24px; }

/* ---------- Thank you ---------- */
.thank-you { text-align: center; padding: 20px 0; }
.thank-you-icon { font-size: 3rem; display: block; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.7); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-links a { color: rgba(255,255,255,0.85); margin-left: 16px; text-decoration: none; cursor: pointer; }
.footer-links a:hover { text-decoration: underline; }

.legal-panels { margin-top: 0; }
.legal-panel[hidden] { display: none; }
.legal-panel-inner {
  position: relative;
  background: var(--color-card);
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-top: 20px;
  max-height: 50vh;
  overflow-y: auto;
}
.legal-panel-inner h3 { margin-top: 0; }
.legal-panel-inner h4 { color: var(--color-navy); margin: 20px 0 6px; font-size: 1rem; }
.legal-panel-inner p { color: var(--color-text-soft); font-size: 0.92rem; }
.legal-note {
  background: #FFF3CD;
  border: 1px solid #FFE08A;
  color: #6b5900;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem !important;
}
.legal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--color-bg-soft); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 1.1rem; cursor: pointer; color: var(--color-navy);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-card);
  padding: 12px 16px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.1);
  z-index: 60;
  display: none;
}
.sticky-cta.visible { display: block; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-navy); color: #fff;
  padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  z-index: 100;
}
.cookie-banner p { margin: 0; font-size: 0.88rem; max-width: 640px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cookie-banner[hidden] { display: none; }

/* ---------- Mobile-Optimierung ----------
   Die meisten Leads kommen über das Handy. Auf kleinen Screens wirken die
   Desktop-Größen schnell "XXL" – hier wird alles kompakter. */
@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .hero { padding: 28px 0 20px; }

  h1 { font-size: 1.65rem; line-height: 1.25; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.05rem; }

  .hero-sub { font-size: 0.98rem; }
  .hero-points li { font-size: 0.95rem; }
  .section-lead { font-size: 0.98rem; }

  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .logo-text { font-size: 0.85rem; }
  .logo-icon { font-size: 1.15rem; }
  .btn-header-cta { padding: 8px 14px; font-size: 0.82rem; white-space: nowrap; }

  .btn { font-size: 0.92rem; padding: 12px 20px; }
  .btn-large { padding: 14px 22px; font-size: 1rem; }

  .trust-bar-inner { font-size: 0.78rem; gap: 10px 18px; }

  .pain-card, .benefit-card, .step-card, .testimonial-card { padding: 20px 18px; }

  .form-card { padding: 28px 20px; }
  .pill { padding: 9px 14px; font-size: 0.88rem; }

  .ad-recognition span { font-size: 0.8rem; }
}


/* ---------- Handy: Tippziele ----------
   Gemessen bei 375 px: Die Rechts-Links im Fußbereich und in der
   Einwilligung waren 19–22 px hoch, die Anrede-Schalter 41 px. Unter dem
   Daumen trifft man das nicht zuverlässig; 44 px sind das übliche Mindestmaß. */
.legal-toggle {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 2px;
}
.consent-label .legal-toggle {
  /* Im Fließtext der Einwilligung darf der Link die Zeilenhöhe nicht sprengen. */
  min-height: 0;
  line-height: inherit;
  padding: 6px 2px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.pill { min-height: 44px; }

@media (max-width: 420px) {
  /* Drei Anrede-Schalter nebeneinander werden auf schmalen Geräten zu eng. */
  .pill { flex: 1 1 100%; }
}

/* Das Logo ist auf der Formularseite ein Rücklink — soll aber wie eine
   Wortmarke aussehen, nicht wie ein Textlink. */
a.logo { text-decoration: none; color: inherit; }
a.logo:hover .logo-text { opacity: .85; }
