/* ============================================================
   Manuel Kesting M. A. · Kinder- und Jugendlichenpsychotherapie, Lemgo
   Motiv: „Direkt erreichbar, klar geregelt."
   Welt: Creme + dunkler Umber-Ink + Ocker. Strenges Grid,
   ruhige Statement-Zeilen, Haarlinien. Schibsted Grotesk überall.
   ============================================================ */

:root {
  --paper:       #F4EDDE;
  --paper-deep:  #EAE0C8;
  --ink:         #2C2213;
  --ink-soft:    #6B5B41;
  --ochre:       #B0791F;
  --ochre-deep:  #8A5C12;
  --line:        #D8CBAC;
  --line-dark:   #4A3D28;
  --on-ink:      #F4EDDE;
  --on-ink-soft: #C8BCA0;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { text-decoration: none; display: block; }
.brand .name {
  display: block;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand .sub {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 1px;
}

nav.main {
  display: flex;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 15.5px;
  font-weight: 500;
}
nav.main a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav.main a:hover { color: var(--ink); border-bottom-color: var(--ochre); }
nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ochre); }

/* ---------- Hero: strenges Grid, Bild in eigener Grid-Zelle ---------- */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.hero-text {
  grid-column: 1 / 8;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 64px) clamp(48px, 7vw, 96px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-img {
  grid-column: 8 / 13;
  border-left: 1px solid var(--line);
  min-height: clamp(320px, 44vw, 560px);
  position: relative;
}
.hero-img img { position: absolute; inset: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ochre-deep);
  margin-bottom: 22px;
}

h1.display {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}

/* Lange Wörter (z. B. Berufsbezeichnungen) brechen sauber um */
h1.display, .statement, h2.mid, .plate .cap .line, .phone-big {
  hyphens: auto;
  overflow-wrap: break-word;
}

.lead {
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 34px;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 16.5px;
  padding: 13px 26px;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--ochre-deep); border-color: var(--ochre-deep); }

.btn-quiet {
  font-weight: 500;
  font-size: 16.5px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ochre);
  padding-bottom: 3px;
}
.btn-quiet:hover { color: var(--ochre-deep); }

/* ---------- Faktenzeile ---------- */

.facts {
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0;
  padding-bottom: 0;
}
.fact {
  padding: 26px 28px 26px 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.fact + .fact { border-left: 1px solid var(--line); padding-left: 28px; }
.fact strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- Sektionen ---------- */

section.block { border-bottom: 1px solid var(--line); }
section.block .wrap { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }

.sec-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ochre-deep);
  margin-bottom: 20px;
}
.sec-label .no { color: var(--ochre); }

/* Statement-Zeilen: groß, ruhig, viel Weißraum */
.statement {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18em;
}

h2.mid {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 22px;
}

.prose { max-width: 40em; }
.prose p { margin-bottom: 1.15em; color: var(--ink-soft); }
.prose p strong { color: var(--ink); font-weight: 500; }
.prose .more { display: inline-block; margin-top: 14px; }

/* Zweispaltig: Label/Statement links, Text rechts */
.edit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* Haarlinien-Liste für gesicherte Fakten */
.factrows { list-style: none; border-top: 1px solid var(--line); }
.factrows li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.factrows .k {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding-top: 4px;
}
.factrows .v { font-size: 19px; line-height: 1.45; }
.factrows .v small { display: block; font-size: 15.5px; color: var(--ink-soft); margin-top: 3px; }
.factrows .v a { text-decoration: none; border-bottom: 1px solid var(--ochre); }
.factrows .v a:hover { color: var(--ochre-deep); }

/* ---------- Bildtafel mit Scrim ---------- */

.plate {
  position: relative;
  border-bottom: 1px solid var(--line);
  min-height: clamp(340px, 42vw, 520px);
  display: flex;
  align-items: flex-end;
}
.plate .bg { position: absolute; inset: 0; }
.plate .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 21, 10, 0.88) 0%, rgba(28, 21, 10, 0.52) 48%, rgba(28, 21, 10, 0.18) 78%);
}
.plate .cap {
  position: relative;
  color: var(--on-ink);
  padding-top: 96px;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.plate .cap small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #E4C98F;
  margin-bottom: 12px;
}
.plate .cap .line {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 22em;
}

/* ---------- Dunkle Sektion ---------- */

section.dark {
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid var(--line-dark);
}
section.dark .wrap { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
section.dark .sec-label { color: #E4C98F; }
section.dark .statement { color: var(--on-ink); }
section.dark .prose p { color: var(--on-ink-soft); }
section.dark .prose p strong { color: var(--on-ink); }

.phone-big {
  display: inline-block;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--on-ink);
  border-bottom: 2px solid var(--ochre);
  padding-bottom: 4px;
  margin-bottom: 26px;
}
.phone-big:hover { color: #E4C98F; }

address { font-style: normal; }

.cgrid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(36px, 5vw, 56px);
}
.cgrid address { font-size: 17px; line-height: 1.6; color: var(--on-ink-soft); }
.cgrid address strong { color: var(--on-ink); font-weight: 500; }
.cgrid address a { text-decoration: none; border-bottom: 1px solid var(--ochre); }
.cgrid address a:hover { color: #E4C98F; }
.cgrid .note { font-size: 16px; line-height: 1.6; color: var(--on-ink-soft); margin-bottom: 1em; }
.cgrid .note strong { color: var(--on-ink); font-weight: 500; }

/* ---------- Karten / Kosten-Blöcke (helles Deep-Paper) ---------- */

.panel { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.panel .wrap { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tier {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 28px 34px;
  background: var(--paper);
}
.tier h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.tier p { font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Krisenblock ---------- */

.crisis {
  border: 1px solid var(--ochre);
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px);
}
.crisis h2, .crisis h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.crisis p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 1em; max-width: 46em; }
.crisis p strong { color: var(--ink); font-weight: 500; }
.crisis .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 22px; }
.crisis .num { border-top: 1px solid var(--line); padding-top: 14px; }
.crisis .num b {
  display: block;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.crisis .num span { font-size: 15px; color: var(--ink-soft); line-height: 1.45; display: block; }
.crisis .num a { text-decoration: none; border-bottom: 1px solid var(--ochre); }

/* ---------- Fußnote / Sternchen ---------- */

.footnote-line {
  font-size: 14.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: clamp(40px, 6vw, 64px);
}

/* ---------- Unterseiten-Kopf ---------- */

.pagehead { border-bottom: 1px solid var(--line); }
.pagehead .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.pagehead h1.display { margin-bottom: 20px; }
.pagehead .lead { margin-bottom: 0; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: var(--on-ink-soft);
  font-size: 15px;
}
footer.site .wrap { padding-top: 40px; padding-bottom: 40px; }
footer.site .foot-brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--on-ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
footer.site .foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
footer.site a { color: var(--on-ink); text-decoration: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 1px; }
footer.site a:hover { border-bottom-color: var(--ochre); color: #E4C98F; }
footer.site .legal {
  padding-top: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #9C9078;
}

/* ---------- Reveal-Mechanik ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { display: block; }
  .hero-text { padding-right: 0; padding-bottom: 0; }
  .hero-img {
    border-left: none;
    border-top: 1px solid var(--line);
    min-height: 0;
    height: clamp(240px, 60vw, 380px);
    margin-top: clamp(32px, 6vw, 48px);
  }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact + .fact { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .fact { padding: 20px 0; }
  .edit { grid-template-columns: 1fr; gap: 28px; }
  .cgrid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .crisis .nums { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .header-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav.main {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
    font-size: 15px;
    gap: 20px;
  }
  .factrows li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .factrows .k { padding-top: 0; }
}
