/* Farben & Schriften – hier zentral anpassbar.
   Bewusst keine Google Fonts (DSGVO): Systemschriften.
   Alle Text-Farbkombinationen erfüllen WCAG 2.2 AA (Kontrast mind. 4,5 : 1). */
:root {
  --bg: #faf6ef;
  --bg-tint: #f1ebe0;
  --ink: #2b2a27;          /* 13,3 : 1 auf --bg */
  --muted: #56524b;        /*  7,2 : 1 auf --bg */
  --green: #2f4f3e;
  --green-dark: #22392d;
  --accent: #9a4a24;       /*  5,8 : 1 auf --bg, 6,2 : 1 mit weißer Schrift */
  --accent-dark: #7c3a1b;
  --line: #e2d9c9;         /* nur Deko-Linien */
  --field-border: #8a8170; /*  3,6 : 1 – Rahmen von Eingabefeldern */
  --focus: #7c3a1b;
  --focus-on-dark: #f1c27d;
  --error: #a3261b;
  --success-bg: #e6f1e8;
  --sun: #f1c27d;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
}

/* Grundschrift 18 px; „Größere Schrift“ schaltet auf 21 px. Alles skaliert mit. */
html { font-size: 112.5%; scroll-behavior: smooth; scroll-padding-top: 110px; }
html.text-large { font-size: 131.25%; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Hilfsklassen für Barrierefreiheit */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--green-dark); color: #fff; padding: .7em 1.2em; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Deutlich sichtbarer Tastatur-Fokus überall */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .quote :focus-visible { outline-color: var(--focus-on-dark); }
.form :focus-visible { outline-color: var(--focus); }
main:focus { outline: none; }

.eyebrow {
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: .8em;
}
.eyebrow--light { color: var(--sun); }

/* Buttons – mind. 48 px hoch */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--accent); color: #fff;
  padding: .7em 1.5em; border-radius: 999px; text-decoration: none;
  font: inherit; font-weight: 700; border: 2px solid var(--accent); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn--small { min-height: 44px; padding: .4em 1.2em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 239, .97);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--green-dark); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.logo small { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 4px; }

.topbar__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; order: 2; }
.topbar__phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  color: var(--green-dark); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.topbar__phone svg { width: 22px; height: 22px; color: var(--accent); }
.topbar__phone:hover { text-decoration: underline; }

.textsize, .menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--green-dark);
  background: #fff; border: 2px solid var(--green); border-radius: 999px; cursor: pointer;
}
.textsize__icon { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.textsize[aria-pressed="true"] { background: var(--green); color: #fff; }
.menu-toggle { display: none; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

.nav { display: flex; align-items: center; gap: 4px 6px; order: 3; width: 100%; justify-content: flex-end; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--accent); text-decoration: underline; }

/* Einstieg */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 6vw, 72px); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: end; }
.hero__photo { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(43,42,39,.18); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px;
  background: linear-gradient(transparent, rgba(15, 24, 19, .88) 55%); color: #fff;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
}
.hero__photo--past { top: 0; left: 0; width: 72%; height: 64%; }
.hero__photo--future { right: 0; bottom: 0; width: 58%; height: 52%; border: 6px solid var(--bg); }

/* Abschnitte */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--bg-tint); }
.section__intro { max-width: 44em; color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { padding: 22px 24px 0; }
.card p { padding: 0 24px 24px; color: var(--muted); margin: 0; }

/* Zitat */
.quote {
  position: relative; color: #f7f2e9; padding: clamp(48px, 7vw, 80px) 0;
  background: var(--green-dark) var(--quote-bg) center / cover no-repeat;
}
.quote::before { content: ""; position: absolute; inset: 0; background: rgba(28, 46, 36, .88); }
.quote .wrap { position: relative; }
.quote blockquote { margin: 0 auto; max-width: 820px; text-align: center; }
.quote blockquote p {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.5;
}

/* Über mich */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.checks { list-style: none; padding: 0; margin: 1.4em 0 0; }
.checks li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 60px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
}
.steps p { color: var(--muted); margin: 0; }

/* Region */
.towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.town { border-top: 3px solid var(--accent); padding-top: 20px; }
.town p { color: var(--muted); margin: 0; }

/* Kontakt */
.section--dark { background: var(--green-dark); color: #efe9de; }
.section--dark h2 { color: #fff; }
.section--dark a { color: var(--sun); }
.section--dark .split { align-items: start; grid-template-columns: 1fr 1fr; }
.contact-big { font-size: 1.15rem; margin: 1.6em 0 .2em; }
.contact-phone { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 700; margin-bottom: .6em; }
.contact-phone a { text-decoration: none; display: inline-block; min-height: 48px; }
.contact-phone a:hover { text-decoration: underline; }
.contact-line { overflow-wrap: anywhere; }

/* Formular */
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; }
.form a { color: var(--green); }
.form__title { margin: 0; font-size: 1.4rem; }
.form__intro { margin: -8px 0 0; color: var(--muted); font-size: .95rem; }
.field { display: grid; gap: 6px; }
.field label, .field-group legend { font-weight: 700; }
.req, .optional { font-weight: 400; color: var(--muted); font-size: .92em; }
.field__hint { margin: 0; color: var(--muted); font-size: .95rem; }
.field-group { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.field-group legend { padding: 0; margin-bottom: 2px; }

.form input:not([type=checkbox]), .form select, .form textarea {
  font: inherit; padding: .7em .85em; min-height: 52px;
  border: 2px solid var(--field-border); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--error) !important; background: #fff6f5 !important; }
.field__error { margin: 0; color: var(--error); font-weight: 700; }
.field__error::before { content: "⚠ "; }

.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.field--check label { font-weight: 400; cursor: pointer; }
.field--check .field__error { grid-column: 1 / -1; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { border-radius: 10px; padding: 16px 18px; border-left: 6px solid; }
.form__status p { margin: 0 0 .4em; }
.form__status p:last-child, .form__status ul { margin-bottom: 0; }
.form__status--error { background: #fff6f5; border-color: var(--error); color: var(--ink); }
.form__status--error a { color: var(--error); font-weight: 700; }
.form__status--success { background: var(--success-bg); border-color: var(--green); color: var(--green-dark); }

/* Fußzeile */
.footer { padding: 28px 0; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer a { display: inline-block; padding: 6px 2px; }

/* Rechtstexte */
.legal { padding: 56px 0 80px; max-width: 760px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.placeholder { background: #fff4d6; padding: 2px 6px; border-radius: 4px; }

/* Responsiv */
@media (max-width: 960px) {
  .hero__inner, .split, .section--dark .split { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 460px; }
  .cards, .towns { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 340px; }
}
@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; flex-direction: column; align-items: stretch; padding: 8px 0 12px; border-top: 1px solid var(--line); }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) { padding: 0 4px; font-size: 1.1rem; }
  .js .nav .btn { margin-top: 6px; }
  .topbar__phone-text { display: none; }
  .topbar__phone { border: 2px solid var(--green); border-radius: 999px; padding: 0 12px; }
  .textsize__label { display: none; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .logo small { display: none; }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Windows-Kontrastmodus */
@media (forced-colors: active) {
  .btn, .textsize, .menu-toggle { border: 2px solid ButtonText; }
  .form__status { border: 2px solid CanvasText; }
}

/* ---------- Formulare auf hellem Grund ---------- */
.split--form { align-items: start; grid-template-columns: 1fr 1fr; }
.form--light { border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(43,42,39,.05); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px;
  border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400;
}
.choice:hover { border-color: var(--field-border); }
.choice input { width: 24px; height: 24px; margin: 0; accent-color: var(--green); flex: none; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: var(--success-bg); }

/* ---------- Checkliste-Hinweis ---------- */
.download {
  margin-top: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px 24px; align-items: center;
  background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px 28px;
}
.download h3 { margin-bottom: .3em; }
.download p { margin: 0; color: var(--muted); }
.download__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-tint); color: var(--accent); display: grid; place-items: center; }
.download__icon svg { width: 30px; height: 30px; }

/* ---------- Häufige Fragen ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 22px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--green-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--accent); font-family: var(--sans); font-size: 1.4rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq__answer { padding: 0 22px 18px; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Checkliste ---------- */
.checklist { max-width: 860px; padding: 48px 0 72px; }
.checklist section { margin-top: 40px; }
.checklist h2 { display: flex; align-items: center; gap: 14px; }
.checklist h3 { margin-top: 1.4em; font-size: 1.15rem; }
.checklist__num {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem;
}
.checklist__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist__list label {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
}
.checklist__list input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--green); cursor: pointer; }
.checklist__list label:has(input:checked) { background: var(--success-bg); border-color: var(--green); }
.checklist__src { color: var(--muted); }
.checklist__contact { margin-top: 48px; padding: 24px 28px; border-radius: var(--radius); background: var(--bg-tint); }
.checklist__note { color: var(--muted); font-size: .9rem; margin: 0; }

@media (max-width: 960px) {
  .split--form { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; }
}

/* ---------- Druck ---------- */
@media print {
  html { font-size: 12pt; }
  body { background: #fff; color: #000; }
  .no-print, .skip-link, .topbar, .footer { display: none !important; }
  .checklist { padding: 0; max-width: none; }
  .checklist section { break-inside: avoid; margin-top: 18pt; }
  .checklist__list label { border: 0; padding: 3pt 0; background: none !important; }
  .checklist__list input { width: 14pt; height: 14pt; }
  .checklist__num { background: none; color: #000; border: 1.5pt solid #000; width: 22pt; height: 22pt; font-size: 12pt; }
  .checklist__contact { background: none; border: 1pt solid #000; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
