/* ============================================================
   Dipl.-Päd. Kerstin Bartolles, Speyer — Website-Entwurf
   Leitmotiv: „Zwei Therapeutinnen, früh erreichbar."
   Design: Editorial-Split, Steckbrief-Ästhetik (dl-Module),
   warmes Papierweiß, Near-Black, Oxblood-Akzent.
   Fonts lokal: Quattrocento (Display) + Quattrocento Sans.
   ============================================================ */

:root {
  --paper: #f7f1e6;
  --paper-2: #efe6d4;
  --ink: #231f1b;
  --ink-deep: #1b1815;
  --ink-soft: #5f564d;
  --oxblood: #5b1d24;
  --oxblood-deep: #411219;
  --oxblood-soft: #7a3942;
  --sand: #c9a86a;
  --line: rgba(35, 31, 27, .18);
  --line-strong: rgba(35, 31, 27, .38);
  --paper-dim: rgba(247, 241, 230, .76);
  --paper-faint: rgba(247, 241, 230, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.68 "Quattrocento Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 clamp(1.25rem, 4.5vw, 3.5rem); }
::selection { background: var(--oxblood); color: var(--paper); }

/* ---------- Reveal-Mechanik (unsichtbar, ohne JS alles sichtbar) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Kopfbereich ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1.05rem 0;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.25; }
.brand .name {
  font-family: "Quattrocento", Georgia, serif;
  font-weight: 700; font-size: 1.22rem; display: block; letter-spacing: .005em;
}
.brand .sub {
  display: block; font-size: .68rem; letter-spacing: .19em;
  text-transform: uppercase; color: var(--oxblood); font-weight: 700;
}
nav.main { display: flex; gap: 1.55rem; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--oxblood); border-bottom-color: var(--oxblood); font-weight: 700; }

/* ---------- Hero (Startseite): Editorial-Split ---------- */
.hero {
  display: grid; grid-template-columns: 1.08fr .92fr;
  min-height: calc(100vh - 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 4.5vw, 3.5rem) clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4.5vw, 3.5rem);
}
.hero-text > * { max-width: 34rem; }
.hero-media { position: relative; min-height: 22rem; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(35, 31, 27, .18), rgba(35, 31, 27, 0) 26%);
}

.kicker {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--oxblood); font-weight: 700; margin-bottom: 1.5rem;
}
h1 {
  font-family: "Quattrocento", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.03; letter-spacing: -.015em;
  margin-bottom: 1.6rem;
}
.hero h1 { max-width: 12ch; }
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.62;
  color: var(--ink-soft); max-width: 46ch;
}
.lead strong { color: var(--ink); font-weight: 700; }
.actions { margin-top: 2.4rem; display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }

a.btn {
  display: inline-block; text-decoration: none;
  background: var(--oxblood); color: var(--paper);
  padding: 1rem 1.9rem; font-size: .92rem; font-weight: 700;
  letter-spacing: .05em;
  transition: background .2s ease;
}
a.btn:hover { background: var(--oxblood-deep); }
a.btn-ghost {
  color: var(--ink); font-size: .95rem; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--oxblood); padding-bottom: 3px;
}
a.btn-ghost:hover { color: var(--oxblood); }

/* Steckbrief im Hero */
.hero .spec { margin-top: clamp(2.2rem, 5vh, 3.6rem); }

/* ---------- Steckbrief-Modul (dl) ---------- */
dl.spec { width: 100%; }
dl.spec .row {
  display: grid; grid-template-columns: minmax(8.5rem, 11rem) 1fr;
  gap: 1.5rem; padding: .82rem 0 .86rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
dl.spec .row:last-child { border-bottom: 1px solid var(--line); }
dl.spec dt {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
dl.spec dd { font-size: 1.02rem; color: var(--ink); }
dl.spec dd a { color: var(--oxblood); text-decoration: none; border-bottom: 1px solid var(--oxblood-soft); }
dl.spec dd a:hover { color: var(--oxblood-deep); }
dl.spec.compact .row { padding: .68rem 0 .72rem; }

/* ---------- Seitenkopf Unterseiten ---------- */
.page-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.page-head .wrap { padding-top: clamp(3.5rem, 8vh, 6rem); padding-bottom: clamp(2.8rem, 6vh, 4.2rem); }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 17ch; }
.page-head .lead { max-width: 52ch; }

/* ---------- Abschnitte ---------- */
section.block { padding: clamp(4rem, 9vw, 7.5rem) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
section.block.tint { background: var(--paper-2); }
.sec-label {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--oxblood); font-weight: 700; margin-bottom: 1.3rem;
}
h2 {
  font-family: "Quattrocento", Georgia, serif;
  font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.07; letter-spacing: -.012em;
  max-width: 21ch; margin-bottom: 1.7rem;
}
h1, h2, h3, .statement { hyphens: auto; overflow-wrap: break-word; }
h3 {
  font-family: "Quattrocento", Georgia, serif;
  font-size: 1.42rem; font-weight: 700; margin-bottom: .7rem;
  line-height: 1.2;
}
.prose { max-width: 61ch; color: var(--ink-soft); }
.prose p { margin-bottom: 1.15rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--oxblood); text-decoration-color: var(--oxblood-soft); }
.more { display: inline-block; margin-top: 1.4rem; }

/* Editorial-Split: klebriges Label links, Inhalt rechts */
.edit { display: grid; grid-template-columns: minmax(14rem, 1fr) 1.7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.edit .side { position: sticky; top: 6.5rem; }

/* ---------- Dunkles Band (Oxblood) ---------- */
.band {
  background: var(--oxblood-deep); color: var(--paper);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.band .sec-label { color: var(--sand); }
.band h2 { color: var(--paper); }
.band .prose { color: var(--paper-dim); }
.band .prose strong { color: var(--paper); }
.band-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.band .statement {
  font-family: "Quattrocento", Georgia, serif; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -.01em;
  color: var(--paper);
}
.band dl.spec .row { border-top-color: rgba(247, 241, 230, .22); }
.band dl.spec .row:last-child { border-bottom-color: rgba(247, 241, 230, .22); }
.band dl.spec dt { color: var(--paper-faint); }
.band dl.spec dd { color: var(--paper); }

/* ---------- Bildtafel mit Scrim ---------- */
.plate {
  position: relative; isolation: isolate;
  min-height: 72vh; display: flex; align-items: flex-end;
  color: var(--paper);
}
.plate .bg { position: absolute; inset: 0; z-index: -1; }
.plate .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.plate .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 24, 21, .88) 0%, rgba(27, 24, 21, .42) 46%, rgba(27, 24, 21, .08) 78%);
}
.plate .wrap { padding-top: 6rem; padding-bottom: clamp(2.8rem, 7vh, 5rem); width: 100%; }
.plate .statement {
  font-family: "Quattrocento", Georgia, serif; font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.1;
  max-width: 19ch; letter-spacing: -.012em;
  text-shadow: 0 2px 30px rgba(27, 24, 21, .5);
}
.plate .sub { margin-top: 1.3rem; max-width: 52ch; color: var(--paper-dim); font-size: 1.05rem; }

/* ---------- Schrittfolge (Ablauf) ---------- */
ol.steps { list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: minmax(5rem, 8rem) 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: 2.1rem 0 2.3rem; border-top: 1px solid var(--line);
}
ol.steps li:last-child { border-bottom: 1px solid var(--line); }
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Quattrocento", Georgia, serif; font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--oxblood);
  line-height: 1;
}
ol.steps .step-body { max-width: 56ch; }
ol.steps .step-body p { color: var(--ink-soft); margin-top: .35rem; }

/* ---------- Zweispalten-Features ---------- */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.cols .col { border-top: 2px solid var(--oxblood); padding-top: 1.6rem; }
.cols .col p { color: var(--ink-soft); margin-top: .4rem; }

/* ---------- Hinweis-Box ---------- */
.callout {
  border-left: 3px solid var(--oxblood);
  background: var(--paper-2);
  padding: 1.6rem 1.9rem;
  max-width: 61ch;
}
.callout p { color: var(--ink-soft); }
.callout p + p { margin-top: .8rem; }
.callout strong { color: var(--ink); }

/* ---------- Krisenblock ---------- */
.crisis { background: var(--ink-deep); color: var(--paper); }
.crisis .sec-label { color: var(--sand); }
.crisis h2 { color: var(--paper); }
.crisis .prose { color: var(--paper-dim); }
.crisis dl.spec .row { border-top-color: rgba(247, 241, 230, .22); }
.crisis dl.spec .row:last-child { border-bottom-color: rgba(247, 241, 230, .22); }
.crisis dl.spec dt { color: var(--paper-faint); }
.crisis dl.spec dd { color: var(--paper); }
.crisis dl.spec dd a { color: var(--sand); border-bottom-color: rgba(201, 168, 106, .55); }
.crisis dl.spec dd a:hover { color: var(--paper); }

/* ---------- Sternchen-Fußnote ---------- */
.note-star {
  margin-top: 2rem; font-size: .92rem; color: var(--ink-soft);
  max-width: 60ch;
}
.band .note-star, .crisis .note-star { color: var(--paper-faint); }
sup.star { color: var(--oxblood); font-weight: 700; }
.band sup.star, .crisis sup.star { color: var(--sand); }

/* ---------- Wegweiser (Seitenindex) ---------- */
.index-list { width: 100%; }
.index-list a.row {
  display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr auto;
  gap: 1.5rem; align-items: baseline;
  padding: 1.35rem 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.index-list a.row:last-child { border-bottom: 1px solid var(--line); }
.index-list a.row:hover .t { color: var(--oxblood); }
.index-list .t {
  font-family: "Quattrocento", Georgia, serif; font-weight: 700;
  font-size: 1.45rem; line-height: 1.15; transition: color .2s ease;
}
.index-list .d { color: var(--ink-soft); font-size: .98rem; max-width: 46ch; }
.index-list .arr { color: var(--oxblood); font-weight: 700; font-size: 1.1rem; }

/* ---------- Fußbereich ---------- */
.site-foot { background: var(--ink-deep); color: var(--paper-dim); border-top: 1px solid rgba(247, 241, 230, .16); }
.foot-in { padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.site-foot .fname {
  font-family: "Quattrocento", Georgia, serif; font-weight: 700;
  font-size: 1.35rem; color: var(--paper); line-height: 1.25;
}
.site-foot .ftag { margin-top: .5rem; font-size: .95rem; }
.foot-h {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sand); font-weight: 700; margin-bottom: 1.1rem;
}
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: .55rem; }
.site-foot a { color: var(--paper-dim); text-decoration: none; font-size: .95rem; }
.site-foot a:hover { color: var(--paper); }
.site-foot address { font-style: normal; font-size: .95rem; line-height: 1.7; }
.site-foot address a { color: var(--sand); border-bottom: 1px solid rgba(201, 168, 106, .4); }
.foot-base {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(247, 241, 230, .16);
  font-size: .85rem; color: var(--paper-faint);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; min-height: 42vh; }
  .hero-media img { position: absolute; }
  .hero-text { padding-top: 3rem; }
  .band-split, .edit, .cols { grid-template-columns: 1fr; }
  .edit .side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .head-in { flex-direction: column; align-items: flex-start; gap: .8rem; padding: .9rem 0; }
  nav.main { gap: 1.1rem; }
  nav.main a { font-size: .88rem; }
  h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  dl.spec .row { grid-template-columns: 1fr; gap: .15rem; }
  dl.spec dt { margin-bottom: 0; }
  ol.steps li { grid-template-columns: 1fr; gap: .5rem; }
  .index-list a.row { grid-template-columns: 1fr; gap: .3rem; }
  .index-list .arr { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: .5rem; }
}
