/* ============================================================
   Praxis Vera Helming, Ravensburg — Entwurf
   Leitmotiv „Amtlich zugelassen, eine SMS entfernt."
   Farbwelt: Sand + Oliv-Ink + Rost-Akzent.
   Typo: Roboto Slab (Display) + Roboto (Fließtext), lokal.
   ============================================================ */

:root {
  --sand: #F1EBDD;
  --sand-deep: #E7DFCB;
  --paper: #F8F5EC;
  --ink: #272C1F;
  --ink-soft: #565D48;
  --olive: #2D3324;
  --olive-deep: #20251A;
  --rust: #A24A22;
  --rust-bright: #BC5A2E;
  --rust-soft: #C98B6B;
  --line: rgba(39, 44, 31, .18);
  --sand-dim: rgba(248, 245, 236, .78);
  --sand-faint: rgba(248, 245, 236, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--sand);
  color: var(--ink);
  font: 400 1.0625rem/1.68 "Roboto", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--rust); }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; padding: 1.05rem 0;
}
.brand { text-decoration: none; color: var(--ink); }
.brand .name {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.28rem; font-weight: 700; letter-spacing: .005em;
  display: block; line-height: 1.15;
}
.brand .sub {
  display: block; font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: .22rem;
}
nav.main { display: flex; gap: 1.55rem; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; font-size: .9rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--ink); border-bottom-color: var(--rust-soft); }
nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rust); }

/* ---------- Hero: Editorial-Split ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: calc(100vh - 4.4rem);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4.5vw, 4.5rem);
}
.eyebrow {
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--rust); font-weight: 500;
}
.hero h1 {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 5.6vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  margin: 1.5rem 0 1.7rem;
  max-width: 14ch;
}
.hero .lead {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.62;
  color: var(--ink-soft); max-width: 46ch;
}
.hero .actions { margin-top: 2.5rem; display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.hero-media { position: relative; min-height: 26rem; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media .chip {
  position: absolute; left: 1.4rem; bottom: 1.4rem;
  background: rgba(32, 37, 26, .72); color: var(--sand-dim);
  font-size: .78rem; letter-spacing: .06em;
  padding: .55rem .9rem; max-width: 70%;
  backdrop-filter: blur(3px);
}

a.btn {
  display: inline-block; text-decoration: none;
  background: var(--rust); color: var(--paper);
  padding: .95rem 1.9rem; font-size: .92rem; font-weight: 500;
  letter-spacing: .03em;
}
a.btn:hover { background: var(--rust-bright); }
a.btn-ghost {
  display: inline-block; text-decoration: none;
  color: var(--ink); padding: .95rem 1.9rem; font-size: .92rem; font-weight: 500;
  letter-spacing: .03em; border: 1px solid var(--ink-soft);
}
a.btn-ghost:hover { border-color: var(--ink); background: rgba(39, 44, 31, .05); }

/* ---------- Faktenband (dunkel) ---------- */
.band { background: var(--olive); color: var(--sand); }
.band-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.band .fact {
  padding: 2.1rem 1.6rem 2.2rem;
  border-left: 1px solid var(--sand-faint);
}
.band .fact:first-child { border-left: 0; padding-left: 0; }
.band .fact b {
  display: block; font-family: "Roboto Slab", Georgia, serif;
  font-weight: 600; font-size: 1.06rem; line-height: 1.35;
  margin-bottom: .45rem; color: var(--paper);
}
.band .fact span { font-size: .88rem; line-height: 1.55; color: var(--sand-dim); }
.band .fn { padding: 0 0 1.6rem; font-size: .78rem; color: var(--sand-dim); }

/* ---------- Abschnitte ---------- */
.block { padding: clamp(4rem, 8vw, 7rem) 0; }
.block.alt { background: var(--sand-deep); }
.block.tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.block.dark { background: var(--olive-deep); color: var(--sand); }
.block.dark p { color: var(--sand-dim); }

.sec-label {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--rust); font-weight: 500; margin-bottom: 1.1rem;
}
.block.dark .sec-label { color: var(--rust-soft); }
h2 {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.18;
  letter-spacing: -.008em; margin-bottom: 1.3rem; max-width: 26ch;
}
h3 {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  font-size: 1.18rem; line-height: 1.35; margin-bottom: .6rem;
}
p.lead-in { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }
.block p { max-width: 62ch; }
.block p + p { margin-top: 1em; }
.more { display: inline-block; margin-top: 1.6rem; font-size: .92rem; font-weight: 500;
  text-decoration: none; border-bottom: 2px solid var(--rust-soft); padding-bottom: 2px; }
.more:hover { border-bottom-color: var(--rust); color: var(--rust); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split figure { position: relative; }
.split figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split .caption { font-size: .8rem; color: var(--ink-soft); margin-top: .7rem; }

/* Zweispalter mit Haarlinien */
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2.5rem, 5vw, 4.5rem); }
.pairs > div { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.pairs > div:nth-child(-n+2) { border-top: 2px solid var(--rust); padding-top: 1.3rem; }

/* ---------- Bildtafel mit Scrim ---------- */
.plate { position: relative; color: var(--paper); isolation: isolate; }
.plate .bg { position: absolute; inset: 0; z-index: -1; }
.plate .bg img { width: 100%; height: 100%; object-fit: cover; }
.plate .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(32, 37, 26, .85) 0%, rgba(32, 37, 26, .5) 55%, rgba(32, 37, 26, .1) 85%);
}
.plate .wrap { padding: clamp(9rem, 22vh, 15rem) clamp(1.25rem, 4vw, 3rem) clamp(2.2rem, 5vh, 3.4rem); }
.plate .cap small {
  display: block; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--sand-dim); margin-bottom: .7rem; font-weight: 500;
}
.plate .cap {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; max-width: 34ch;
}

/* ---------- Seitenkopf Unterseiten ---------- */
.pagehead { background: var(--sand-deep); border-bottom: 1px solid var(--line); }
.pagehead .wrap { padding: clamp(3.2rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem); }
.pagehead h1 {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1;
  letter-spacing: -.01em; margin: 1.2rem 0 1.2rem; max-width: 20ch;
}
.pagehead .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Schritte ---------- */
.steps { counter-reset: step; list-style: none; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.4rem;
  padding: 1.9rem 0; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  font-size: 1.5rem; color: var(--rust); line-height: 1.2;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Sprechzeiten-Tabelle ---------- */
.times { width: 100%; border-collapse: collapse; max-width: 34rem; }
.times td {
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-size: 1rem; vertical-align: top;
}
.times td:first-child {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600; width: 8.5rem;
}
.times td:last-child { color: var(--ink-soft); }

/* ---------- Karten (Kontaktwege / Kosten) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border-top: 3px solid var(--rust);
  padding: 1.9rem 1.7rem 2rem;
}
.card h3 { margin-bottom: .7rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card p + p { margin-top: .8em; }
.card .big {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  font-size: 1.25rem; color: var(--ink); display: block; margin: .4rem 0 .9rem;
  text-decoration: none;
}
.card .big:hover { color: var(--rust); }
.block.dark .card { background: var(--olive); }
.block.dark .card h3, .block.dark .card .big { color: var(--paper); }
.block.dark .card p { color: var(--sand-dim); }

/* ---------- Krisenblock ---------- */
.crisis {
  background: var(--sand-deep);
  border-left: 4px solid var(--rust);
  padding: 2rem 2.2rem;
}
.crisis h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .8rem; }
.crisis p { color: var(--ink-soft); }
.crisis ul { list-style: none; margin-top: 1.2rem; }
.crisis li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.crisis li b { font-family: "Roboto Slab", Georgia, serif; }
.crisis li a { color: var(--ink); font-weight: 500; text-decoration-color: var(--rust-soft); }

/* ---------- Fußnoten ---------- */
.fn { font-size: .82rem; color: var(--ink-soft); margin-top: 2.2rem; max-width: 60ch; }
.block.dark .fn { color: var(--sand-dim); }

/* ---------- CTA-Band ---------- */
.cta { background: var(--rust); color: var(--paper); }
.cta .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-top: clamp(2.6rem, 5vw, 3.6rem); padding-bottom: clamp(2.6rem, 5vw, 3.6rem);
}
.cta h2 { color: var(--paper); margin-bottom: .3rem; }
.cta p { color: rgba(248, 245, 236, .85); max-width: 46ch; }
.cta a.btn { background: var(--paper); color: var(--rust); font-weight: 500; }
.cta a.btn:hover { background: var(--sand); }

/* ---------- Footer ---------- */
footer.site { background: var(--olive-deep); color: var(--sand-dim); }
.footer-in {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.4rem;
}
footer.site h4 {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--rust-soft); font-weight: 500; margin-bottom: 1rem;
}
footer.site .fname {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  color: var(--paper); font-size: 1.1rem; margin-bottom: .5rem;
}
footer.site p, footer.site li { font-size: .9rem; line-height: 1.7; }
footer.site ul { list-style: none; }
footer.site a { color: var(--sand-dim); text-decoration: none; }
footer.site a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rust-soft); }
.legal-line {
  border-top: 1px solid var(--sand-faint);
  padding: 1.3rem 0 1.6rem; font-size: .78rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 24rem; order: -1; }
  .hero-text { padding-top: 3rem; }
  .band-in { grid-template-columns: 1fr 1fr; }
  .band .fact { padding-left: 1.4rem; }
  .band .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .edit, .split, .pairs { grid-template-columns: 1fr; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .header-in { flex-direction: column; align-items: flex-start; gap: .7rem; }
  nav.main { gap: 1rem; }
  nav.main a { font-size: .85rem; }
  .hero-media { min-height: 19rem; }
  .band-in { grid-template-columns: 1fr; }
  .band .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--sand-faint); }
  .band .fact:first-child { border-top: 0; }
  .steps li { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
}
