:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1f2a2e;
  --muted: #55636a;
  --brand: #2f5d62;
  --brand-dark: #234749;
  --accent: #e8a33d;
  --line: #e4ddd2;
  --soft: #eef4f3;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 19px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo svg { flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #1f2a2e; font-weight: 700;
  padding: 16px 28px; border-radius: 999px; text-decoration: none; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(232, 163, 61, .35); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); color: #1f2a2e; }
.btn-small { padding: 10px 18px; font-size: .95rem; box-shadow: none; white-space: nowrap; }

/* Hero */
.hero { padding: 64px 0 96px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks li { padding-left: 30px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.hero-card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(31, 42, 46, .08); }
.hero-card .big { font-size: 2.6rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 6px; }
.hero-card small { color: var(--muted); display: block; margin-top: 12px; font-size: .85rem; line-height: 1.45; }

/* Fotos */
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; box-shadow: 0 12px 30px rgba(31, 42, 46, .12); }
.photo.tall { height: 100%; min-height: 420px; }
.hero-visual { position: relative; }
.hero-visual .hero-card { position: absolute; right: -32px; bottom: -72px; max-width: 280px; padding: 18px 20px; z-index: 1; }
.hero-visual .hero-card .big { font-size: 2rem; }
.hero-visual .hero-card small { margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.cards-media { grid-template-columns: .8fr 1.2fr; align-items: stretch; }
.cards-media.reverse .photo { order: 2; }
.stack { display: grid; gap: 24px; }

/* Abschnitte */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { max-width: 46em; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin-top: 28px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card ul { padding-left: 1.2em; margin: 0 0 1em; }
.card li { margin-bottom: .35em; }

.price-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: .95rem; }
.price-table th, .price-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { color: var(--muted); font-weight: 600; }

.note { font-size: .85rem; color: var(--muted); }

.callout { background: var(--soft); border-left: 5px solid var(--brand); padding: 20px 24px; border-radius: 8px; margin: 24px 0; }

/* Funnel */
.funnel-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: 0 12px 30px rgba(31, 42, 46, .06); }
.funnel-box heyflow-wrapper { display: block; text-align: left; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 30px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* Fußzeile */
.site-footer { background: var(--brand-dark); color: #d9e4e2; padding: 36px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: #fff; margin-right: 18px; }

/* Rechtstexte */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal address { font-style: normal; }

@media (max-width: 860px) {
  body { font-size: 18px; }
  .hero { padding: 40px 0; }
  .hero .wrap, .cards, .steps, .split, .cards-media { grid-template-columns: 1fr; }
  .hero-visual .hero-card { position: relative; left: auto; right: auto; bottom: auto; max-width: none; margin: -40px 16px 0; }
  .photo.tall { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .cards-media.reverse .photo { order: 0; }
  .split { gap: 24px; }
  .nav { display: none; }
  .logo { font-size: 1rem; }
  .btn-small { padding: 9px 14px; font-size: .85rem; }
  section { padding: 48px 0; }
  .funnel-box { padding: 20px 14px; }
}

/* Ratgeberseiten */
.article { padding: 32px 0 72px; }
.article .wrap { max-width: 820px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 8px; }
.article h2 { font-size: 1.5rem; margin-top: 2em; scroll-margin-top: 20px; }
.article .lead { font-size: 1.2rem; color: var(--muted); }
.article-img { margin: 24px 0 8px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta-line { font-size: .85rem; color: var(--muted); margin: 0; }
.toc { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.toc a { text-decoration: none; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0 24px; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.facts h3 { color: var(--brand); margin-bottom: .3em; }
.facts p { margin: 0; font-size: .95rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.steps-list { padding-left: 1.3em; }
.steps-list li { margin-bottom: .7em; padding-left: 4px; }
.cta-box { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 32px; margin: 48px 0 20px; text-align: center; }
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box p { color: #d9e4e2; }

/* Ratgeber-Übersicht auf der Startseite */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31, 42, 46, .1); color: var(--text); }
.guide-card img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.guide-card div { padding: 18px 20px 22px; }
.guide-card h3 { margin-bottom: .4em; }
.guide-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.guide-card span { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 700; font-size: .95rem; }

@media (max-width: 860px) {
  .facts, .guide-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 24px 18px; }
}

/* Fragebogen /anfrage.html */
.fb { padding: 28px 0 64px; min-height: 70vh; }
.fb .wrap { max-width: 680px; }
.fb-progress { margin-bottom: 18px; }
.fb-progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.fb-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.fb-bar { height: 100%; background: var(--brand); border-radius: 999px; transition: width .25s ease; }
.fb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 12px 30px rgba(31, 42, 46, .06); }
.fb-card h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); outline: none; }
.fb-card .checks { margin: 0 0 24px; }
.fb-eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; margin-bottom: 8px; }
.fb-lead { color: var(--muted); font-size: 1.1rem; }
.fb-frage { font-size: 1.35rem; margin-bottom: 18px; }
h1.fb-frage { font-size: clamp(1.5rem, 4vw, 1.9rem); }
.fb-optionen { display: grid; gap: 12px; }
.fb-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  font: inherit; color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.fb-option:hover, .fb-option:focus-visible { border-color: var(--brand); background: var(--soft); outline: none; }
.fb-option.gewaehlt { border-color: var(--brand); }
.fb-option-text strong { display: block; font-size: 1.05rem; }
.fb-option-text small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: 2px; }
.fb-pfeil { color: var(--brand); font-size: 1.6rem; line-height: 1; }
.fb-form { display: grid; gap: 16px; }
.fb-feld label { display: block; font-weight: 700; margin-bottom: 6px; }
.fb-feld input {
  width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
.fb-feld input:focus { border-color: var(--brand); outline: none; }
.fb-feld input[aria-invalid="true"] { border-color: #b3401e; }
.fb-fehler { display: block; color: #b3401e; font-size: .9rem; margin-top: 4px; }
.fb-fehler:empty { display: none; }
.fb-einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.fb-einwilligung input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-aktionen { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.fb-zurueck { background: none; border: none; font: inherit; color: var(--muted); cursor: pointer; padding: 10px 0; }
.fb-zurueck:hover { color: var(--brand); }
.fb-weiter { border: none; cursor: pointer; font-family: inherit; }
.fb-weiter:disabled { opacity: .6; cursor: wait; }
.fb-hinweis { text-align: center; margin-top: 16px; }
@media (max-width: 860px) {
  .fb { padding: 16px 0 40px; }
  .fb-card { padding: 22px 16px; }
  .fb-aktionen .btn { flex: 1; text-align: center; }
}
