/* ==========================================================================
   Traumabegleitung Stuttgart
   Leitideen: Sicherheit, Ruhe, Klarheit, Wahlfreiheit.
   Keine externen Ressourcen: Systemschriften, keine Cookies, kein Tracking.
   ========================================================================== */

:root {
  --bg: #F6F2EA;
  --bg-soft: #EEE8DC;
  --bg-card: #FBF9F4;
  --bg-deep: #2B3935;
  --ink: #1F2623;
  --ink-soft: #4B5550;
  --ink-faint: #5F6963;
  --sage: #6E8A7B;
  --sage-soft: #DDE6DF;
  --clay: #8A5640;
  --clay-soft: #EBD9CD;
  --line: #DDD6C7;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --maxw: 720px;
  --maxw-wide: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- Typografie ---------- */

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 0.55em 0;
}

h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.22; }
h2 { font-size: clamp(22px, 2.8vw, 31px); line-height: 1.28; }
h3 { font-size: 20px; line-height: 1.35; }

p { margin: 0 0 1.1em 0; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 600px;
}

.small { font-size: 14px; color: var(--ink-faint); line-height: 1.6; }

strong { font-weight: 600; }

.text-link {
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid var(--clay-soft);
  transition: border-color 0.2s ease;
}
.text-link:hover { border-color: var(--clay); }

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 28px; }

section { padding: 80px 0; border-bottom: 1px solid var(--line); }
section.tight { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
section.deep {
  background: var(--bg-deep);
  color: #EDEAE3;
  border-bottom: none;
}
section.deep h1, section.deep h2, section.deep h3 { color: #F6F3EC; }
section.deep .eyebrow { color: #E2B99F; }
section.deep p { color: #D3D0C7; }
section.deep .text-link { color: #EFD2BF; border-color: #7A6A5F; }
section.deep .text-link:hover { border-color: #EFD2BF; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand .mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
}
.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

nav.main-nav { display: flex; gap: 30px; }
nav.main-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--ink); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--clay);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero.compact { padding: 80px 0 56px; }

.hero-mark {
  position: absolute;
  top: 24px;
  right: calc(50% - 600px);
  width: 360px;
  height: auto;
  opacity: 0.16;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { max-width: 700px; }
.hero .lede { margin-top: 22px; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--bg-deep); border-color: var(--bg-deep); color: #F6F3EC; }
.btn.solid:hover { background: var(--clay); border-color: var(--clay); }
.btn.on-deep { border-color: #EDEAE3; color: #EDEAE3; }
.btn.on-deep:hover { background: #EDEAE3; color: var(--bg-deep); }

/* ---------- Wiedererkennen ---------- */

.signs {
  list-style: none;
  margin: 32px 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.signs li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  padding: 20px 22px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Drei Säulen ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 44px;
}
.pillar { border-top: 2px solid var(--sage); padding-top: 22px; }
.pillar p { color: var(--ink-soft); }

/* ---------- Statement ---------- */

.statement { text-align: center; max-width: 620px; margin: 0 auto; }
.statement .dots { display: flex; justify-content: center; gap: 9px; margin-bottom: 28px; }
.statement .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.statement .dots span:nth-child(2) { background: var(--clay); opacity: 0.8; }
.statement .dots span:nth-child(3) { background: var(--sage-soft); border: 1px solid var(--sage); }
.statement p {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.7vw, 29px);
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Themenzeilen ---------- */

.rows { margin-top: 36px; }
.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { margin: 0; }
.row .num {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.row p { color: var(--ink-soft); }

/* ---------- Listen mit Linien ---------- */

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list strong { display: block; color: var(--ink); margin-bottom: 4px; }
.plain-list .meta { font-size: 15px; color: var(--ink-faint); }

/* ---------- Schritte ---------- */

.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 34px 64px;
  color: var(--ink-soft);
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 40px; height: 40px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  background: var(--bg-card);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px; top: 42px; bottom: 4px;
  width: 1px;
  background: var(--line);
}
.steps strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- Hinweis- und Krisenboxen ---------- */

.note {
  background: var(--sage-soft);
  border-left: 3px solid var(--sage);
  padding: 20px 24px;
  margin: 32px 0 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
}
.note strong { display: block; margin-bottom: 4px; }

.crisis {
  background: var(--clay-soft);
  border-left: 3px solid var(--clay);
  padding: 20px 24px;
  margin: 36px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.crisis strong { display: block; margin-bottom: 4px; }
.crisis p { margin: 0; }
.crisis a { font-weight: 600; white-space: nowrap; }

/* ---------- Fakten (Honorar) ---------- */

dl.facts { margin: 32px 0 0; padding: 0; }
dl.facts .fact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
dl.facts .fact:last-child { border-bottom: 1px solid var(--line); }
dl.facts dt { margin: 0; color: var(--ink); }
dl.facts dt small { display: block; font-size: 14px; color: var(--ink-faint); }
dl.facts dd { margin: 0; font-family: var(--font-display); font-size: 20px; white-space: nowrap; }

/* ---------- Über mich ---------- */

.about-flow { display: flow-root; }
.about-photo {
  float: right;
  width: 300px;
  height: auto;
  margin: 4px 0 24px 36px;
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.info-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.info-row:last-of-type { border-bottom: 1px solid var(--line); }
.info-row .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- FAQ (aufklappbar, ohne JavaScript) ---------- */

.faq-group { margin-top: 56px; }
.faq-group:first-of-type { margin-top: 36px; }
.faq-group h2 { font-size: 22px; margin-bottom: 14px; }

details.faq {
  border-top: 1px solid var(--line);
}
details.faq:last-of-type { border-bottom: 1px solid var(--line); }

details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--clay);
  border-bottom: 1.5px solid var(--clay);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq summary:hover { color: var(--clay); }

details.faq .answer { padding: 0 40px 24px 0; color: var(--ink-soft); }
details.faq .answer p { margin-bottom: 0.9em; }
details.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Rechtstexte ---------- */

.legal h1 { margin-bottom: 1em; }
.legal h2 { font-size: 21px; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
mark.todo {
  background: #FFE9A8;
  color: #3A2E00;
  padding: 1px 5px;
  border-radius: 2px;
}
.todo-banner {
  background: #FFE9A8;
  color: #3A2E00;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 15px;
  margin-bottom: 2em;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  padding: 52px 0 56px;
  background: #222D2A;
  color: #B9B8AE;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px 48px;
}
.site-footer a { color: #DAD7CC; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-brand { font-family: var(--font-display); font-size: 19px; color: #EDEAE3; display: block; margin-bottom: 8px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; justify-content: flex-end; }
.foot-crisis {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid #3A4743;
  margin: 0;
  color: #A9AFA8;
}
.foot-crisis a { white-space: nowrap; }

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

@media (max-width: 1180px) {
  .hero-mark { right: -80px; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .signs { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .row { grid-template-columns: 1fr; row-gap: 8px; }
  .about-photo { float: none; width: 240px; margin: 0 0 24px 0; }
  .site-footer .foot-grid { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  section { padding: 56px 0; }
  section.tight { padding: 44px 0; }
  .hero { padding: 60px 0 48px; }
  .hero.compact { padding: 52px 0 40px; }
  .hero-mark { width: 240px; top: 10px; right: -70px; opacity: 0.12; }
  dl.facts .fact { grid-template-columns: 1fr; gap: 2px; }
}

/* Mobiles Menü schon ab Tablet-Breite, damit sechs Menüpunkte nie eng werden */
@media (max-width: 920px) {
  .site-header .wrap-wide { height: 66px; position: relative; }
  .nav-toggle { display: flex; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 4px 28px 12px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 15px 0; border-top: 1px solid var(--line); font-size: 16px; }
  nav.main-nav a:first-child { border-top: none; }
  nav.main-nav a.active::after { display: none; }
  nav.main-nav a.active { color: var(--clay); }
}

/* ---------- Barrierefreiheit ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-deep);
  color: #F6F3EC;
  padding: 10px 18px;
  z-index: 100;
  font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .nav-toggle, .hero-mark, .skip-link { display: none; }
  body { background: #fff; }
}
