/* ============================================================
   Praxis Dr. Hasan Akbari, Ludwigshafen am Rhein · Entwurf
   Leitmotiv: „Zwei Tiefen, drei Sprachen."
   Farbwelt: Sand + Oliv-Ink + Rost-Akzent.
   Hero: Headline-Block oben, darunter volles Bildband (wide).
   Modul-Kit: große nummerierte Kapitelmarken, Hairlines, kantig.
   Fonts: Archivo 400/600/800 + Italic (lokal, assets/fonts/fonts.css).
   ============================================================ */

:root {
  --sand: #EDE2CC;
  --sand-2: #E4D7BC;
  --paper: #F7F2E5;
  --ink: #212817;
  --ink-soft: #4C5340;
  --muted: #6B7059;
  --olive-deep: #151C0E;
  --olive-deep-2: #1D2613;
  --rust: #A8431B;
  --rust-2: #C4561F;
  --line: rgba(33, 40, 23, .18);
  --line-soft: rgba(33, 40, 23, .10);
  --sand-dim: rgba(237, 226, 204, .72);
  --sand-faint: rgba(237, 226, 204, .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.66 "Archivo", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--rust); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

h1, h2, h3 { font-weight: 800; letter-spacing: -.022em; line-height: 1.06; color: var(--ink); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1rem 0;
}
.brand { text-decoration: none; color: var(--ink); }
.brand .name { display: block; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.15; }
.brand .sub {
  display: block; font-size: .66rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-top: .2rem;
}
nav.main { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--ink); border-bottom-color: var(--rust); }
nav.main a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--rust); }

/* ---------- Hero: Headline-Block oben ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  max-width: 14ch;
}
.hero .lead {
  margin-top: 1.6rem; max-width: 44ch;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-soft);
}
.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.btn-primary, .btn-quiet {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 2px;
}
.btn-primary { background: var(--rust); color: var(--paper); border: 1px solid var(--rust); }
.btn-primary:hover { background: var(--rust-2); border-color: var(--rust-2); }
.btn-quiet { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); }

/* ---------- Bildband (wide, volle Breite) ---------- */
.band { border-top: 1px solid var(--line); }
.band img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.band .cap {
  border-top: 1px solid var(--line);
  padding: .8rem 0; font-size: .82rem; color: var(--muted);
}
.band .cap .wrap { display: flex; justify-content: space-between; gap: 2rem; }

/* ---------- Faktenleiste ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sand-2); }
.facts .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 1.6rem; padding-bottom: 1.6rem; gap: 2rem;
}
.fact { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.fact strong { display: block; font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.fact span { display: block; margin-top: .3rem; font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }

/* ---------- Kapitelmarken (Modul-Kit) ---------- */
.chap {
  display: flex; align-items: baseline; gap: 1.4rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.chap .num {
  font-weight: 800; font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: .82; color: var(--rust); letter-spacing: -.04em;
}
.chap .lbl {
  font-size: .72rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); padding-bottom: .35rem;
}
.chap::after { content: ""; flex: 1; border-top: 1px solid var(--line); align-self: center; margin-left: .6rem; }

/* ---------- Sektionen ---------- */
.block { padding: clamp(3.2rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line-soft); }
.block:first-of-type { border-top: 0; }
.block h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 22ch; }
.block h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.prose p { margin: 1rem 0; max-width: 62ch; }
.prose p:first-child { margin-top: 0; }
.prose strong { font-weight: 600; }
.lede { font-size: 1.14rem; line-height: 1.62; color: var(--ink-soft); max-width: 60ch; }
.more { margin-top: 1.6rem; }

/* Zwei-Spalten-Editorial */
.edit { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* ---------- Große Schrittliste (Kit) ---------- */
ol.steps { list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: clamp(4.5rem, 9vw, 7.5rem) 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: 1.7rem 0; border-top: 1px solid var(--line);
  align-items: baseline;
}
ol.steps li:last-child { border-bottom: 1px solid var(--line); }
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: .9; color: var(--rust); letter-spacing: -.04em;
}
.steps .st { display: block; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.steps .sd { display: block; grid-column: 2; margin-top: .4rem; max-width: 58ch; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Sprachzeilen ---------- */
.langs { border-top: 1px solid var(--line); }
.langs .lang {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line);
}
.langs .lang .l { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; }
.langs .lang .n { font-size: .95rem; color: var(--ink-soft); text-align: right; max-width: 30ch; }

/* ---------- Dunkle Tafel mit Bild + Scrim ---------- */
.plate { position: relative; color: var(--sand); overflow: hidden; }
.plate .bg { position: absolute; inset: 0; }
.plate .bg img { width: 100%; height: 100%; object-fit: cover; }
.plate .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21, 28, 14, .88) 8%, rgba(21, 28, 14, .62) 55%, rgba(21, 28, 14, .42) 100%);
}
.plate .wrap { position: relative; z-index: 1; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.plate .cap-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--sand-dim); margin-bottom: 1.2rem;
}
.plate .statement {
  font-weight: 800; letter-spacing: -.02em; line-height: 1.14;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); max-width: 24ch; color: var(--sand);
}
.plate .sub { margin-top: 1.3rem; max-width: 52ch; color: var(--sand-dim); font-size: 1.02rem; }

/* ---------- Dunkle Sektion (ohne Bild) ---------- */
.dark { background: var(--olive-deep); color: var(--sand); }
.dark h1, .dark h2, .dark h3 { color: var(--sand); }
.dark .lede, .dark .prose p { color: var(--sand-dim); }
.dark .chap .lbl { color: var(--sand-dim); }
.dark .chap::after { border-top-color: var(--sand-faint); }
.dark ol.steps li { border-top-color: var(--sand-faint); }
.dark ol.steps li:last-child { border-bottom-color: var(--sand-faint); }
.dark .steps .sd { color: var(--sand-dim); }
.dark a { color: var(--rust-2); }
.dark .btn-primary { color: var(--paper); }

/* ---------- Hinweis-Kasten ---------- */
.notice {
  background: var(--paper); border: 1px solid var(--line-soft); border-left: 3px solid var(--rust);
  padding: 1.1rem 1.3rem; margin: 1.6rem 0; max-width: 62ch;
  font-size: .95rem; color: var(--ink-soft);
}
.notice strong { color: var(--ink); font-weight: 600; }

/* ---------- Listen / Themen ---------- */
ul.topics { list-style: none; }
ul.topics li { padding: 1.2rem 0; border-top: 1px solid var(--line); }
ul.topics li:last-child { border-bottom: 1px solid var(--line); }
ul.topics .t { display: block; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
ul.topics .d { display: block; margin-top: .35rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Tabellen ---------- */
table.data { width: 100%; border-collapse: collapse; margin: 1.4rem 0; max-width: 40rem; }
table.data th, table.data td {
  text-align: left; padding: .75rem 1rem .75rem 0; vertical-align: top;
  border-bottom: 1px solid var(--line); font-size: .98rem;
}
table.data th { font-weight: 800; letter-spacing: -.01em; width: 34%; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }

/* ---------- Kontaktseite ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.phone-big {
  display: inline-block; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1;
  border-bottom: 3px solid var(--rust); padding-bottom: .25rem;
}
.phone-big:hover { color: var(--rust); }
address { font-style: normal; margin: 1.6rem 0; line-height: 1.7; }
address strong { font-weight: 800; }
.note { font-size: .95rem; color: var(--ink-soft); max-width: 56ch; margin-top: 1.2rem; }

/* Krisenblock */
.crisis { background: var(--olive-deep); color: var(--sand); border-top: 4px solid var(--rust); }
.crisis .wrap { padding-top: clamp(2.8rem, 6vw, 4.2rem); padding-bottom: clamp(2.8rem, 6vw, 4.2rem); }
.crisis h2 { color: var(--sand); font-size: clamp(1.4rem, 3vw, 2rem); }
.crisis p { color: var(--sand-dim); max-width: 62ch; margin-top: 1rem; }
.crisis .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.crisis .nums .c { border-top: 1px solid var(--sand-faint); padding-top: 1rem; }
.crisis .nums .c strong { display: block; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; color: var(--sand); }
.crisis .nums .c span { display: block; margin-top: .3rem; font-size: .88rem; color: var(--sand-dim); }
.crisis a { color: var(--sand); }

/* ---------- Split mit Bild ---------- */
.figure { border: 1px solid var(--line); background: var(--paper); }
.figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.figure figcaption { padding: .8rem 1rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line-soft); }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 2.6rem; }
.legal p { margin: .9rem 0; max-width: 66ch; }

/* ---------- Footer ---------- */
footer.site { background: var(--olive-deep); color: var(--sand-dim); border-top: 1px solid var(--line); }
footer.site .wrap { padding-top: 2.6rem; padding-bottom: 2.2rem; }
.foot-brand { font-weight: 800; color: var(--sand); letter-spacing: -.01em; font-size: 1.05rem; }
.foot-row {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--sand-faint); font-size: .9rem;
}
.foot-row a { color: var(--sand); text-decoration: none; border-bottom: 1px solid var(--sand-faint); }
.foot-row a:hover { border-bottom-color: var(--rust-2); }
.footnote { margin-top: 1.4rem; font-size: .8rem; color: rgba(237, 226, 204, .5); max-width: 70ch; }

/* ---------- Reveal (Mechanik aus beispiel-diepenbroick) ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .edit, .split, .contact-grid { grid-template-columns: 1fr; }
  .crisis .nums { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 560px) {
  .head-in { flex-direction: column; align-items: flex-start; gap: .8rem; }
  nav.main { gap: 1rem; }
  nav.main a { font-size: .85rem; }
  .facts .wrap { grid-template-columns: 1fr; gap: 1.1rem; }
  .band img { aspect-ratio: 4 / 3; }
  ol.steps li { grid-template-columns: 3.4rem 1fr; }
}
