/* ==========================================================================
   Version 2 – Reset & Basis
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1 { font-size: var(--step-3xl); }
h2 { font-size: var(--step-2xl); }
h3 { font-size: var(--step-lg); }
h4 { font-size: var(--step-md); font-family: var(--font-sans); font-weight: 700; }

p { color: var(--ink-soft); max-width: var(--container-text); overflow-wrap: break-word; }
p + p { margin-top: var(--sp-3); }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

ul, ol { padding-left: 1.2em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--sage-light); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: var(--sp-3); z-index: 1000;
  background: var(--ink); color: var(--bg);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.wrap-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.section { padding-block: var(--sp-7); }
@media (min-width: 1024px) { .section { padding-block: var(--sp-9); } }

.section--tight { padding-block: var(--sp-6); }

.section--deep { background-color: var(--bg-deep); }
.section--ink { background-color: var(--ink); color: var(--bg); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: rgba(247,244,238,0.78); }

/* Kicker / Eyebrow */
.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: var(--sp-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.85em 1.7em;
  border-radius: var(--r-md);
  font-size: var(--step-sm);
  font-weight: 700;
  font-family: var(--font-sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background-color: var(--sage-deep); color: #fff; }
.btn-primary:hover { background-color: var(--ink); color: #fff; }

.btn-secondary { background-color: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background-color: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Sekundärer Button auf dunklem Hintergrund (z. B. CTA-Streifen) braucht eigenen Kontrast */
.section--ink .btn-secondary { color: var(--bg); border-color: rgba(247,244,238,0.35); }
.section--ink .btn-secondary:hover { background-color: var(--bg); color: var(--ink); border-color: var(--bg); }

.btn-block { width: 100%; }

/* Fade-in */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

a, button, input, select, textarea { min-height: 44px; }

.tag {
  display: inline-block;
  padding: 0.25em 0.75em;
  background-color: var(--sage-tint);
  color: var(--sage-deep);
  border-radius: 999px;
  font-size: var(--step-xs);
  font-weight: 700;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: var(--sp-6);
}

/* Absicherung: Grid-/Flex-Items duerfen nie ihren Container ueberdehnen,
   auch wenn einzelne Woerter oder Inhalte lang sind. */
.hero > *, .hero-actions > *, .hero-meta > *,
.therapist, .therapist > *, .therapist-facts > div,
.steps, .step, .gallery-asym, .gallery-asym > *,
.footer-top > *, .dual-contact > *, .info-grid > *,
.contact-layout > *, .cta-strip > *, .contact-tabs > *,
.topic-list > *, .outcome-list > *, .accordion-item summary,
.accordion-item summary > * {
  min-width: 0;
}
