/* ============================================================
   Kirsten Heymer · Kinder- und Jugendlichenpsychotherapie Bochum
   Konzept: „Worte finden, die noch fehlen."
   Welt: warmes Papierweiß, Near-Black, Oxblood-Akzent.
   Fonts: Roboto Slab (Display) + Roboto (Text), lokal via fonts.css
   Modul-Kit: Register-Tabs, Faktenleisten, Spalten-Meta unter H-Überschriften
   ============================================================ */

:root {
  --paper:      #F6F0E3;
  --paper-deep: #EEE5D1;
  --card:       #FBF7EC;
  --ink:        #211A14;
  --ink-soft:   #55483C;
  --ink-faint:  #7C6F5F;
  --oxblood:    #5A1D1F;
  --oxblood-2:  #7B2A28;
  --oxblood-deep: #2E1113;
  --line:       #D9CBB2;
  --line-dark:  #B7A583;
  --serif: "Roboto Slab", Georgia, serif;
  --sans:  "Roboto", "Segoe UI", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Papier-Textur: feine vertikale Fibrillen, sehr dezent */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(90, 29, 31, 0.012) 0,
      rgba(90, 29, 31, 0.012) 1px,
      transparent 1px,
      transparent 5px
    );
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--oxblood); }
strong { font-weight: 500; }

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}
.brand .sub {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-top: 0.2rem;
}

nav.main {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
nav.main a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
nav.main a[aria-current="page"] {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
}

/* ---------- Register-Tab (Karteikarten-Modul) ---------- */

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  background: var(--paper-deep);
  border: 1px solid var(--line-dark);
  border-bottom: none;
  padding: 0.5rem 1rem 0.45rem;
  position: relative;
  top: 1px;
}
.tab::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--oxblood);
}

/* ---------- Spalten-Meta unter Überschriften ---------- */

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1rem;
}
.meta span + span::before {
  content: "·";
  margin: 0 0.8rem;
  color: var(--oxblood-2);
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 229, 209, 0.55), rgba(246, 240, 227, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 1.2rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--oxblood);
  margin-top: 0.7rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.012em;
  max-width: 14ch;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 1.4rem;
  max-width: 44ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.btn-primary,
.btn-quiet {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--oxblood);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--oxblood); color: var(--paper); }
.btn-primary:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); }
.btn-quiet { background: transparent; color: var(--oxblood); }
.btn-quiet:hover { background: var(--oxblood); color: var(--paper); }

/* Gerahmtes Bild: Papierkarte + versetzter Oxblood-Block dahinter */
.framed {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-dark);
  padding: clamp(0.8rem, 1.6vw, 1.3rem);
}
.framed::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  background: var(--oxblood);
  z-index: -1;
}
.framed img {
  border: 1px solid var(--line-dark);
  width: 100%;
  height: auto;
}
.framed figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.85rem;
}

/* ---------- Faktenleiste ---------- */

.facts {
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 1.3rem 1.4rem;
  border-left: 1px solid var(--line-dark);
}
.fact:first-child { border-left: none; padding-left: 0; }
.fact strong {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--oxblood);
  margin-bottom: 0.3rem;
}
.fact span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
  display: block;
}

/* ---------- Sektionen ---------- */

section.sheet {
  padding: 4.5rem 0;
}
section.sheet.tinted { background: var(--paper-deep); }
section.sheet + section.sheet { border-top: 1px solid var(--line); }
section.sheet.tinted + section.sheet { border-top: 1px solid var(--line-dark); }

.sheet-head { max-width: 46rem; }
.sheet-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-top: 1.4rem;
}

.prose { max-width: 40rem; }
.prose p { margin: 1rem 0; color: var(--ink-soft); }
.prose p:first-child { margin-top: 0; }
.prose .hervorhebung { color: var(--ink); }

.more { margin-top: 1.6rem; }

/* ---------- Split (Text + Bild) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split .framed { max-width: 26rem; }
.split.flip .framed { order: -1; justify-self: end; }

/* ---------- Karten / Listen ---------- */

.topics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.topics li {
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 1.6rem 1.5rem 1.8rem;
  background: var(--card);
}
.topics .no {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--oxblood-2);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.9rem;
}
.topics h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}
.topics p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Schritte (Ablauf) ---------- */

.steps {
  list-style: none;
  counter-reset: schritt;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line-dark);
  padding: 1.5rem 1.4rem 1.7rem;
  position: relative;
}
.steps li::before {
  counter-increment: schritt;
  content: counter(schritt, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--oxblood);
  line-height: 1;
  margin-bottom: 1rem;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 1.85rem;
  right: 1.4rem;
  width: 1.6rem;
  height: 2px;
  background: var(--line-dark);
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.55rem; }
.steps p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Dunkle Sektion (Kontaktband) ---------- */

section.dark {
  background: var(--oxblood-deep);
  color: var(--paper);
  padding: 4.5rem 0;
}
section.dark .tab {
  background: transparent;
  border-color: rgba(246, 240, 227, 0.4);
  color: #E8C9A0;
}
section.dark .tab::before { background: #E8C9A0; }
section.dark h2 { color: var(--paper); }
section.dark .meta { color: rgba(246, 240, 227, 0.6); }
section.dark .meta span + span::before { color: #E8C9A0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}
.phone-big {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 3px solid #E8C9A0;
  padding-bottom: 0.2rem;
}
.phone-big:hover { color: #E8C9A0; }

section.dark address {
  font-style: normal;
  margin-top: 1.6rem;
  line-height: 1.7;
  color: rgba(246, 240, 227, 0.85);
}
section.dark address strong { color: var(--paper); }

.note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(246, 240, 227, 0.75);
  border-left: 3px solid #E8C9A0;
  padding-left: 1.2rem;
}
.note a { color: #E8C9A0; }

/* ---------- Krisenblock ---------- */

.crisis {
  border: 2px solid var(--oxblood);
  background: var(--card);
  padding: 2rem 2.2rem;
  margin-top: 3rem;
}
.crisis h2, .crisis h3 {
  color: var(--oxblood);
  font-size: 1.35rem;
}
.crisis p { margin-top: 0.8rem; color: var(--ink-soft); }
.crisis ul {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2rem;
}
.crisis li {
  font-size: 0.98rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.crisis li strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.crisis li a { text-decoration: none; color: var(--oxblood); font-weight: 500; }
.crisis li a:hover { text-decoration: underline; }

/* ---------- Unterseiten-Kopf ---------- */

.pagehead {
  padding: 4rem 0 3.2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(238, 229, 209, 0.55), rgba(246, 240, 227, 0) 80%);
}
.pagehead h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.012em;
  max-width: 20ch;
  margin-top: 1.4rem;
}
.pagehead .lead { margin-top: 1.2rem; }

/* Bildband auf Unterseiten */
.band {
  border-bottom: 1px solid var(--line-dark);
  background: var(--oxblood-deep);
  padding: 1.2rem 0;
}
.band .framed { max-width: 52rem; margin-inline: auto; }
.band .framed::before { transform: translate(10px, 10px); }

/* ---------- Statement ---------- */

.statement {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  color: var(--oxblood);
  max-width: 30ch;
}

/* Zwei Spalten Text */
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}
.cols h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.cols p { color: var(--ink-soft); }
.cols p + p { margin-top: 0.9rem; }

/* Daten-Tabelle (Sprechzeiten-/Kosten-Fakten) */
.dl {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.dl .row {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.dl dt {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
}
.dl dd { color: var(--ink-soft); }
.dl dd p + p { margin-top: 0.5rem; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line-dark);
  background: var(--paper-deep);
  padding: 2.6rem 0 2.2rem;
}
.foot-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.foot-row a { color: var(--oxblood); text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }
.footnote {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
  max-width: 46rem;
}

/* ---------- Reveal-Mechanik ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .framed { max-width: 34rem; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd) { border-left: none; padding-left: 0; }
  .fact { padding: 1.1rem 1.2rem 1.1rem 1.2rem; }
  .fact:nth-child(odd) { padding-left: 0; }
  .topics { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.flip .framed { order: 0; justify-self: start; }
  .split .framed { max-width: 34rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .crisis ul { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-in { flex-direction: column; align-items: flex-start; gap: 0.9rem; padding: 1rem 0; }
  nav.main { gap: 0.9rem 1.2rem; }
  nav.main a { font-size: 0.86rem; }
  .hero { padding: 3rem 0 2.8rem; }
  .steps { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact { border-left: none; border-top: 1px solid var(--line-dark); padding-left: 0; }
  .fact:first-child { border-top: none; }
  .dl .row { grid-template-columns: 1fr; gap: 0.3rem; }
  .framed::before { transform: translate(8px, 8px); }
  section.sheet { padding: 3.2rem 0; }
}


/* ============================================================
   CRAFT-LAYER (design-craft.md, auto-rollup)
   ============================================================ */

::selection { background: #EEE5D1; color: #F6F0E3; }

body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='khn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23khn)'/%3E%3C/svg%3E");
}

/* Craft: Sektionsluft */
section, .section, .content-section, .kapitel, .abschnitt, .sektion {
  padding-top: clamp(4rem, 9vw, 8rem) !important;
  padding-bottom: clamp(4rem, 9vw, 8rem) !important;
}

/* Craft: Ticker */
.ticker {
  background: #EEE5D1; color: #F6F0E3;
  overflow: hidden; white-space: nowrap; padding: 0.8rem 0;
}
.ticker-inhalt {
  display: inline-block; animation: lauf 30s linear infinite;
  font-family: var; font-size: 0.95rem; letter-spacing: 0.06em;
}
.ticker-inhalt span { margin: 0 1.6rem; }
.ticker-inhalt .stern { opacity: 0.55; }
@keyframes lauf { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-inhalt { animation: none; } }

/* Craft: Badge */
.badge {
  position: absolute; z-index: 5;
  right: clamp(0.5rem, 4vw, 3rem); bottom: 1.2rem;
  width: clamp(118px, 12.5vw, 152px); height: clamp(118px, 12.5vw, 152px);
  animation: drehen 26s linear infinite;
}
.badge text {
  font-family: var; font-size: 8.4px;
  letter-spacing: 0.3em; text-transform: uppercase; fill: #F6F0E3;
}
.badge circle { fill: #EEE5D1; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge { animation: none; } }

/* Craft: Riesiges CTA */
.cta-riesig {
  background: #EEE5D1; color: #F6F0E3;
  padding: clamp(3.2rem, 7.5vw, 6rem) clamp(1.1rem, 4vw, 3rem);
}
.cta-riesig .wrap, .cta-riesig .blatt, .cta-riesig .flaeche, .cta-riesig .inhalt,
.cta-riesig .buch, .cta-riesig .register, .cta-riesig .magazin {
  max-width: 1080px; margin: 0 auto; padding: 0;
}
.cta-riesig h2 {
  font-family: var; font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 5.8rem); line-height: 1.02;
  letter-spacing: -0.015em; max-width: 15ch; margin-bottom: 1.6rem;
  color: #F6F0E3;
}
.cta-riesig h2 em { font-style: italic; font-weight: 400; opacity: 0.75; }
.cta-telefon {
  font-family: var; font-weight: 600;
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  display: inline-block; border-bottom: 3px solid #F6F0E3;
  padding-bottom: 0.25rem; color: #F6F0E3;
}
.cta-telefon:hover { opacity: 0.8; }
.cta-zeilen {
  max-width: 720px; margin: 2.4rem 0 0;
  border-top: 1px solid rgba(128,128,128,0.3); padding-top: 1.3rem;
  font-size: 0.87rem; display: grid; gap: 0.4rem;
}
