:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1a2332;
  --muted: #5c6b7a;
  --line: #e2e8ef;
  --accent: #0b6e4f;
  --accent-dark: #085540;
  --accent-soft: #e6f4ef;
  --warn: #b45309;
  --danger: #b91c1c;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(26, 35, 50, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.92rem; }
.center { text-align: center; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.9rem; }
.logo-oh { height: 28px; width: auto; }
.logo-oh.small { height: 22px; }
.brand-divider { width: 1px; height: 32px; background: var(--line); }
.brand-text { display: flex; flex-direction: column; font-size: 0.82rem; line-height: 1.25; }
.brand-text strong { font-size: 0.95rem; }
.header-contact { display: flex; gap: 1rem; align-items: center; font-weight: 600; }
.header-contact a { text-decoration: none; color: var(--ink); }

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse at top left, #dceee7 0%, transparent 50%),
    linear-gradient(180deg, #eef3f7 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin: 0 0 0.8rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}
.lead { font-size: 1.05rem; color: #334155; margin: 0 0 1.2rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.advisor-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.advisor-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent-soft);
}
.advisor-card p { margin: 0.2rem 0; font-size: 0.9rem; }
.profile-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

/* Form card */
.form-card {
  background: var(--card);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.4rem 1.4rem 1.6rem;
  position: sticky;
  top: 5rem;
}
.progress-wrap {
  height: 6px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #1aa07a);
  transition: width 0.25s ease;
}
.step-label { margin: 0 0 1rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.step { display: none; }
.step.active { display: block; }
.step h2 { font-size: 1.25rem; margin: 0 0 1rem; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.choice {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.choice:hover { border-color: #9ecbb8; background: #f7fbf9; }
.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.choice:active { transform: scale(0.98); }

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.15);
}
.checkbox {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.45;
}
.checkbox { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.checkbox { position: relative; list-style: none; }
.checkbox::before, .checkbox::marker { content: none; display: none; }
.checkbox input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; left: 0; top: 0;
}
.checkbox .cbox {
  flex: 0 0 24px; width: 24px; height: 24px; box-sizing: border-box;
  margin-top: 0.05rem; position: relative; display: inline-block;
  border: 2px solid #0b5e43; border-radius: 4px; background: #fff;
  transition: background-color .15s, border-color .15s;
}
.checkbox input[type="checkbox"]:checked + .cbox { background: #0b6e4f; border-color: #0b6e4f; }
.checkbox input[type="checkbox"]:checked + .cbox::after {
  content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.checkbox input[type="checkbox"]:focus-visible + .cbox { outline: 3px solid rgba(11,110,79,.45); outline-offset: 2px; }
.checkbox + .checkbox { margin-top: 0.75rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0.4rem 0 1rem; }
.error { color: var(--danger); font-size: 0.9rem; margin: 0 0 0.8rem; }

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: #eef2f6; color: var(--ink); }
.btn.outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn.full { width: 100%; margin-top: 0.6rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.price-box {
  background: linear-gradient(135deg, #0b6e4f, #147a5c);
  color: #fff;
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
  text-align: center;
  margin: 0.8rem 0 1rem;
}
.price-label { font-size: 0.85rem; opacity: 0.9; }
.price-range {
  margin: 0.35rem 0 0;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  background: #fff8eb;
  border: 1px solid #f3e0b8;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}
.result-ort { font-weight: 600; margin: 0; }

/* About */
.about { padding: 2.5rem 0 3.5rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}
.contact-box h3 { margin-top: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-inner nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }

/* Admin */
.admin-body { background: #eef2f6; }
.admin-wrap { width: min(1100px, calc(100% - 2rem)); margin: 2rem auto; }
.admin-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
table.leads {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.leads th, table.leads td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.65rem 0.45rem;
  vertical-align: top;
}
table.leads th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.login-box { max-width: 400px; margin: 4rem auto; }
.login-box h1 { font-size: 1.4rem; margin-top: 0; }

@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .hide-sm { display: none; }
  .choice-grid { grid-template-columns: 1fr; }
  .brand-divider, .brand-text span { display: none; }
}

/* --- v3: Zusatzfelder, Dankeseite --- */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
select {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.sublabel { font-weight: 600; font-size: 0.9rem; margin: 1.1rem 0 0.5rem; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; margin: 0;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem;
  font-weight: 500; font-size: 0.88rem; cursor: pointer; background: #fff;
}
.chip input { accent-color: var(--accent); margin: 0; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fineprint { font-size: 0.75rem; color: var(--muted); margin: 1rem 0 0; line-height: 1.4; }

.thanks { padding: 3rem 0 3.5rem; background: linear-gradient(180deg, #eef3f7 0%, var(--bg) 100%); outline: none; }
.thanks-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.thanks h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 0.6rem; }
.next-steps { list-style: none; counter-reset: s; padding: 0; margin: 1.2rem 0; }
.next-steps li {
  counter-increment: s; position: relative; padding: 0.9rem 1rem 0.9rem 3.4rem; margin-bottom: 0.7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.next-steps li::before {
  content: counter(s); position: absolute; left: 1rem; top: 0.9rem; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.next-steps strong { display: block; }
.next-steps span { color: #334155; font-size: 0.93rem; }
.note { background: #fff8eb; border: 1px solid #f3e0b8; border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 0.92rem; }
.thanks-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; text-align: center;
}
.thanks-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.8rem; border: 4px solid var(--accent-soft); }
.thanks-card h3 { margin: 0.2rem 0; }
@media (max-width: 900px) {
  .thanks-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand-text { display: none; }
  .header-contact { font-size: 0.95rem; }
}

/* --- v4: Bewertungen --- */
.reviews { padding: 2.5rem 0 1rem; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.reviews-head h2 { margin: 0 0 0.3rem; }
.rating-line { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.rating-num { font-size: 1.8rem; font-weight: 800; }
.rating-stars, .review-stars { color: #f5a623; letter-spacing: 0.08em; }
.rating-stars { font-size: 1.3rem; }
.rating-count { color: var(--muted); font-size: 0.9rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.review-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.6rem; }
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.review-card figcaption { font-size: 0.85rem; color: var(--muted); }
.review-card figcaption strong { color: var(--ink); }
.review-card.placeholder { background: repeating-linear-gradient(45deg, #fffdf5, #fffdf5 10px, #fff7e0 10px, #fff7e0 20px); border: 2px dashed #e0b84a; box-shadow: none; color: #8a6d1a; font-size: 0.88rem; }
.reviews-legal { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin: 1rem 0 0; max-width: 900px; }
.ph-inline { background: #fff3c4; color: #8a6d1a; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* --- v5: Admin ohne Inline-Styles (CSP), Badges --- */
.admin-title { margin: 0; font-size: 1.4rem; }
.admin-sub { margin: 0.3rem 0 0; }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-scroll { overflow-x: auto; }
.admin-note { font-size: 0.82rem; margin-top: 1rem; }
.badge.ok { background: #dcf3e8; color: #0f6b47; }
.badge.warn { background: #fff1d6; color: #8a5a00; }
.error { color: #b42318; font-weight: 600; }

/* --- v5: Mobil – Fragebogen direkt unter der Überschrift --- */
@media (max-width: 900px) {
  .hero { padding: 1.25rem 0 2rem; }
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }          /* Kinder werden direkte Grid-Elemente */
  .hero-copy .eyebrow { order: 1; justify-self: start; margin-bottom: 0.5rem; }
  .hero-copy h1 { order: 2; margin-bottom: 1rem; }
  .form-card { order: 3; margin-bottom: 1.5rem; }
  .hero-copy .lead { order: 4; }
  .hero-copy .checks { order: 5; }
  .hero-copy .advisor-card { order: 6; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.55rem; }
  .hero-copy .eyebrow { font-size: 0.72rem; }
}

/* --- v5: Footer --- */
.footer-legal { font-size: 0.85rem; line-height: 1.5; margin: 0.5rem 0 0; }
.footer-legal + .footer-legal { margin-top: 0.25rem; }

/* --- v5: Rechtstexte --- */
.legal { max-width: 820px; padding: 2rem 0 3rem; }
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal .draft { background: #fff3c4; border: 2px dashed #e0b84a; padding: 0.8rem 1rem; border-radius: 10px; }
.legal .ph { background: #fff3c4; padding: 0 0.25rem; border-radius: 3px; }
.legal table.duty { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.legal table.duty th, .legal table.duty td { border: 1px solid var(--line); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
.legal table.duty th { background: #f1f5f9; }
.status-ok { color: #0f6b47; font-weight: 700; }
.status-open { color: #8a5a00; font-weight: 700; }

/* --- v5: Bewertungen – Original-Absätze erhalten, 5 Karten --- */
.review-card blockquote p { white-space: pre-line; }
.review-grid { align-items: start; }
.review-grid { display: block; columns: 3 300px; column-gap: 1rem; }
.review-grid .review-card { break-inside: avoid; margin: 0 0 1rem; }
@media (max-width: 900px) { .review-grid { columns: 1; } }

.advisor-exp { font-weight: 600; color: #1f5f3f; }
