/* ──────────────────────────────────────────────────────────────
   vorsorge-kinder.com – Basis-Stylesheet
   Akzentfarben pro Domain über die Variablen in :root steuerbar,
   funktioniert ohne externe Fonts/Libraries (Ladezeit, DSGVO).
   ────────────────────────────────────────────────────────────── */

:root {
  --accent: #0e7a5f;
  --accent-dark: #0a5c48;
  --accent-soft: #e7f5f0;
  --accent-2: #f5b83d;
  --ink: #0f172a;
  --body: #3f4b5b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --danger: #b91c1c;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); letter-spacing: -0.01em; margin-top: 2.2em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
strong { color: var(--ink); }
small { font-size: 0.87em; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { width: min(820px, 92vw); margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.12rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(140deg, var(--accent), var(--accent-dark));
  display: grid; place-items: center; color: #fff; flex: 0 0 auto;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 13px; border-radius: 9px; text-decoration: none;
  color: var(--body); font-size: 0.94rem; font-weight: 500;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.main-nav a.active { color: var(--accent-dark); font-weight: 700; }
.header-cta { margin-left: 8px; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.98rem; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; box-shadow: 0 8px 22px rgba(14, 122, 95, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(14, 122, 95, 0.34); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-sm { padding: 9px 15px; font-size: 0.88rem; border-radius: 9px; }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(245, 184, 61, 0.22), transparent 60%),
              linear-gradient(135deg, var(--accent-dark), var(--accent) 65%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px;
  padding: 66px 0 62px; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero .lead { font-size: 1.16rem; color: rgba(255, 255, 255, 0.92); max-width: 34em; }
.hero .eyebrow { color: rgba(255,255,255,0.75); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 10px 26px rgba(0,0,0,0.22); }
.hero .btn-primary:hover { background: #f1f5f9; color: var(--accent-dark); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; opacity: 0.9; }

.hero-art { justify-self: center; width: min(360px, 100%); position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.25)); }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 12px;
}

/* ── Cards / Layout-Hilfen ──────────────────────────────────── */

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

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center;
}
.card .icon svg { width: 22px; height: 22px; }

section.block { padding: 68px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { font-size: 1.05rem; color: var(--muted); margin: 0; }

/* ── Ablauf-Schritte ────────────────────────────────────────── */

.steps-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-item { position: relative; padding: 26px 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(14, 122, 95, 0.3); font-size: 1rem;
}
.step-item h3 { margin-top: 10px; }
.step-item p { margin-bottom: 0; font-size: 0.96rem; }
@media (max-width: 900px) { .steps-flow { grid-template-columns: 1fr; } }

/* ── Vergleichstabelle ──────────────────────────────────────── */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 640px; }
table.cmp th {
  text-align: left; background: #f1f5f9; color: var(--ink);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
table.cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ── FAQ ────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; transition: box-shadow 0.15s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
  padding: 15px 0; display: flex; justify-content: space-between; gap: 14px; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--accent-dark); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 16px; font-size: 0.96rem; color: var(--body); }
.faq .a p:last-child { margin-bottom: 0; }

/* ── Formular ───────────────────────────────────────────────── */

.form-section {
  background: linear-gradient(180deg, #fff, var(--accent-soft));
  border-top: 1px solid var(--line);
  padding: 72px 0 84px;
}
.form-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 34px 34px 30px; max-width: 760px; margin: 0 auto;
}
.form-card h2 { margin-top: 0; font-size: 1.5rem; }
.form-card .form-intro { color: var(--muted); margin-bottom: 24px; font-size: 0.98rem; }

.form-progress { margin-bottom: 26px; }
.form-progress .labels { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.form-progress .labels .cur { color: var(--accent-dark); }
.form-progress .track { height: 8px; border-radius: 99px; background: #e8eef4; overflow: hidden; }
.form-progress .bar { height: 100%; width: 33%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); transition: width 0.3s ease; }

.kv-step { display: none; }
.kv-step.active { display: block; animation: kvfade 0.25s ease; }
@keyframes kvfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kv-step h3 { font-size: 1.12rem; margin-bottom: 18px; }
.kv-step h3 .step-num { color: var(--accent-dark); }

.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--danger); }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 5px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink);
  background: #fff; border: 1.5px solid #cbd5e1; border-radius: 11px;
  padding: 12px 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 122, 95, 0.14);
}
textarea { min-height: 100px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* Auswahlkarten (Radiobuttons/Checkboxen) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 12px 14px;
  cursor: pointer; background: #fff; font-size: 0.93rem; line-height: 1.4;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.choice input { margin: 3px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.choice b { display: block; color: var(--ink); font-size: 0.94rem; }
.choice span.d { display: block; color: var(--muted); font-size: 0.8rem; }

/* Fehler */
.kv-err { display: none; color: var(--danger); font-size: 0.85rem; font-weight: 600; margin-top: 6px; }
.kv-invalid input, .kv-invalid select, .kv-invalid textarea { border-color: var(--danger); }
.kv-invalid .choice { border-color: var(--danger); }
.kv-invalid .kv-err, .field.kv-invalid > .kv-err { display: block; }
.field.kv-invalid > input, .field.kv-invalid > select, .field.kv-invalid > textarea { border-color: var(--danger); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 4px; accent-color: var(--accent); flex: 0 0 auto; }
.consent a { color: var(--accent-dark); }

.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.form-nav .btn-back { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.form-nav .btn-back:hover { border-color: var(--accent); color: var(--accent-dark); }
.form-nav .spacer { flex: 1; }

.kv-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error-box { display: none; background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); padding: 12px 14px; border-radius: 10px; font-size: 0.9rem; margin: 14px 0; }
.form-success { display: none; text-align: center; padding: 20px 6px 8px; }
.form-success .big { font-size: 46px; line-height: 1; margin-bottom: 14px; }
.form-success h3 { font-size: 1.35rem; }
.form-success .ref { display: inline-block; margin: 14px 0 6px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; padding: 8px 16px; border-radius: 9px; letter-spacing: 0.03em; }

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer { background: #0f172a; color: #cbd5e1; padding: 54px 0 30px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; color: #fff; font-size: 1.05rem; }
.site-footer .bottom { border-top: 1px solid #1e293b; margin-top: 38px; padding-top: 20px; font-size: 0.83rem; color: #64748b; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer .ph { color: #f5b83d; font-weight: 600; }

/* ── Sonstiges ──────────────────────────────────────────────── */

.breadcrumbs { font-size: 0.84rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--muted); }
.note-box {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 16px 20px; font-size: 0.94rem; margin: 26px 0;
}
.note-box p:last-child { margin-bottom: 0; }
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; margin: 0; }

.legal { padding: 48px 0 70px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h1 { margin-bottom: 0.3em; }
.legal .ph { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 0.92em; }
.legal .meta { color: var(--muted); font-size: 0.86rem; }

.hidden { display: none !important; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; padding: 46px 0; }
  .hero-art { display: none; }
  section.block { padding: 48px 0; }
  .form-card { padding: 26px 20px 24px; }
}

/* Domain-Akzent: kinder-vorsorge.net (Blau/Orange) */
:root{--accent:#15508f;--accent-dark:#0d3a6b;--accent-soft:#e8f0fa;--accent-2:#f59e0b;}
