/* === Praxis Goltz — Finale Fassung
   Startseite: Ruhiger Einstieg (ehem. Aufbau 3)
   Unterseiten: Klassisch, mittig (ehem. Aufbau 1)
   Kopfleiste durchgängig aus Aufbau 3. */

:root {
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max: 1080px;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body);
  font-size: 17px; line-height: 1.72;
  color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--c-deep); color: #fff; padding: .7rem 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
.measure { max-width: var(--measure); }

/* ---------- Kopfleiste (aus Aufbau 3) ---------- */
.top { padding: 1.5rem 0; }
.top__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.wordmark { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .03em; text-decoration: none; }
.wordmark em { font-style: italic; opacity: .78; }
.top nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; font-size: .92rem; }
.top nav a { text-decoration: none; opacity: .72; padding-bottom: .15rem; }
.top nav a:hover { opacity: 1; }
.top nav a[aria-current="page"] { opacity: 1; border-bottom: 1px solid var(--c-accent); }

/* Über dem Einstiegsbild (Startseite) */
.top--over { position: absolute; inset: 0 0 auto 0; z-index: 10; color: #fff; }
.top--over .wordmark, .top--over nav a { color: #fff; }
.top--over nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.7); }

/* Auf Unterseiten */
.top--solid { border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.top--solid .wordmark { color: var(--c-deep); }

/* ---------- Startseite: Einstieg (aus Aufbau 3) ---------- */
.opening {
  position: relative; min-height: 90vh; display: grid; align-items: end;
  padding: 8rem 0 4.5rem; color: #fff; overflow: hidden; background: var(--c-deep);
}
.opening__inner {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem); width: 100%;
}
.opening h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 1.1rem; max-width: 18ch;
}
.opening h1 em { font-style: italic; color: var(--c-warm-soft); }
.opening .attrib {
  font-family: var(--font-display); font-style: italic;
  font-size: .95rem; letter-spacing: .02em;
  color: rgba(255,255,255,.72);
  margin: -.4rem 0 1.8rem;
}
.opening p { margin: 0; max-width: 34rem; color: rgba(255,255,255,.87); font-size: 1.05rem; }
.cue {
  margin-top: 2.6rem; display: inline-flex; align-items: center; gap: .8rem;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .18em;
  color: rgba(255,255,255,.78); text-decoration: none;
}
.cue::after { content: ''; width: 3.2rem; height: 1px; background: rgba(255,255,255,.5); }

/* Hero-SVG in Startseite */
.opening .bild--hero { position: absolute; inset: 0; height: 100%; margin: 0; }
.opening .bild--hero svg { width: 100%; height: 100%; display: block; }

/* ---------- Seitenkopf auf Unterseiten (aus Aufbau 1) ---------- */
.pagehead { background: var(--c-tint); border-bottom: 1px solid var(--c-line); text-align: center; position: relative; overflow: hidden; }
.pagehead .wrap { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); position: relative; z-index: 2; }
.pagehead h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.16; letter-spacing: -.02em;
  margin: 0 auto 1.1rem; color: var(--c-deep); max-width: 20ch;
}
.pagehead h1 em { font-style: italic; color: var(--c-accent); }
.pagehead p { margin: 0 auto; max-width: 42rem; font-size: 1.12rem; color: var(--c-muted); }
.pagehead .cta {
  display: inline-block; margin-top: 2rem; padding: .8rem 1.6rem;
  background: var(--c-deep); color: var(--c-bg); text-decoration: none; border-radius: 3px; font-size: .95rem;
}
.pagehead .cta:hover { background: var(--c-accent); }

/* ---------- Abschnitte ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
section.first { padding-top: 3rem; }
section + section { border-top: 1px solid var(--c-line); }
.tinted + section, .tintband + section { border-top: 0; }

.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--c-accent); margin: 0 0 1rem; }
.centered { text-align: center; }
.centered .eyebrow { margin-left: auto; margin-right: auto; }
.centered h2 { margin-left: auto; margin-right: auto; }
.centered > p { margin-left: auto; margin-right: auto; }
h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.22; letter-spacing: -.012em;
  margin: 0 0 1.2rem; color: var(--c-deep); max-width: 26ch;
}
.centered h2, .opening h2 { max-width: none; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
p { margin: 0 0 1.1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.14rem; }
.plainlist { padding-left: 1.15rem; margin: 0 0 1.1rem; max-width: var(--measure); }
.plainlist li { margin-bottom: .4rem; }
.centered .plainlist { display: inline-block; text-align: left; }

/* Kachelraster für Schwerpunkte */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin-top: 2.5rem; text-align: left; }
.card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 4px;
  padding: 1.7rem 1.5rem; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--c-accent); box-shadow: 0 6px 18px rgba(0,0,0,.05); transform: translateY(-2px); }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--c-deep); margin: 0 0 .7rem; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--c-muted); font-size: .94rem; }
.card li { margin-bottom: .28rem; }

/* Aufklappliste (Startseite) */
.accordion { margin-top: 2.4rem; border-top: 1px solid var(--c-line); }
.item { border-bottom: 1px solid var(--c-line); }
.item > summary {
  list-style: none; cursor: pointer; padding: 1.35rem 0;
  display: flex; align-items: center; gap: 1.5rem;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--c-deep);
}
.item > summary::-webkit-details-marker { display: none; }
.item > summary::after {
  content: ''; margin-left: auto; flex: none; width: .65rem; height: .65rem;
  border-right: 1.5px solid var(--c-accent); border-bottom: 1.5px solid var(--c-accent);
  transform: rotate(45deg) translateY(-.18rem); transition: transform .25s;
}
.item[open] > summary::after { transform: rotate(-135deg) translateY(-.18rem); }
.item__body { padding: 0 0 1.6rem; max-width: 42rem; color: var(--c-muted); }
.item__body ul { padding-left: 1.15rem; margin: 0; }
.item__body li { margin-bottom: .3rem; }
.item__body p { margin: 0; }

/* Getönter Abschnitt */
.tinted { background: var(--c-tint); }
section.tinted + section.tinted { border-top: 1px solid var(--c-line); }

/* Farbiges Band (Startseite) */
.tintband { background: var(--c-tint); }
.tintband .eyebrow { color: var(--c-warm); }
/* zweites Band (Coaching) in zartem Rosé, damit es sich vom Mint-Band abhebt */
.tintband--warm { background: color-mix(in srgb, var(--c-warm-soft) 40%, var(--c-bg)); }
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem); line-height: 1.4; color: var(--c-deep);
  border-left: 2px solid var(--c-accent); padding-left: 1.4rem;
}

/* Zentriertes Zitat (Über mich) */
.zitat-block { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.zitat-block + section { border-top: 0; }
blockquote.zitat {
  margin: 0 auto; max-width: 44rem;
  border: 0; padding: 0;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55;
  color: var(--c-deep);
  text-align: center;
  position: relative;
}
blockquote.zitat p { margin: 0 0 1.2rem; max-width: none; }
blockquote.zitat cite {
  display: block; font-family: var(--font-body); font-style: normal;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-muted);
}

/* Dunkler Block */
.feature { background: var(--c-deep); color: var(--c-bg); }
.feature .eyebrow { color: var(--c-warm-soft); }
.feature h2 { color: var(--c-bg); }
.feature p { color: rgba(255,255,255,.84); }
.feature a { color: #fff; }

/* Ablaufschritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; text-align: left; }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; margin-top: 2.6rem; }
.stage { padding-top: 1.2rem; border-top: 2px solid var(--c-accent); }
.stage__n { font-family: var(--font-display); font-style: italic; color: var(--c-accent); font-size: 1.1rem; }
.stage p { margin: 0 0 .9rem; font-size: .96rem; color: var(--c-muted); max-width: none; }
.stage p:last-child { margin-bottom: 0; }

/* Fakten */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.8rem 2.4rem; margin: 2.2rem 0 0; text-align: left; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--c-muted); margin-bottom: .35rem; }
.facts dd { margin: 0; font-size: .97rem; }
.bigphone { font-family: var(--font-display); font-size: clamp(1.8rem, 3.8vw, 2.6rem); color: var(--c-deep); text-decoration: none; display: block; line-height: 1.15; }
.hours { margin: .7rem 0 0; color: var(--c-muted); }

/* Werdegang */
.cv { margin: 1.8rem 0 0; text-align: left; }
.cv div { display: grid; grid-template-columns: 8rem 1fr; gap: 1.2rem; padding: .9rem 0; border-top: 1px solid var(--c-line); font-size: .97rem; }
.cv div:last-child { border-bottom: 1px solid var(--c-line); }
.cv b { font-weight: 600; color: var(--c-deep); font-variant-numeric: tabular-nums; }
.cv span { color: var(--c-muted); }

/* Krisenhinweis */
.crisis { background: var(--c-tint); border-top: 3px solid var(--c-warm); }
.crisis ul {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; text-align: left;
}
.crisis .lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-muted); }
.crisis b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-top: .25rem; color: var(--c-deep); }
.crisis small { display: block; color: var(--c-muted); font-size: .82rem; }

/* Rechtstexte */
.legal-doc { text-align: left; }
.legal-doc h2 { font-size: 1.3rem; margin-top: 2.6rem; }
.legal-doc h3 { margin-top: 1.6rem; font-size: 1rem; }
.legal-doc p, .legal-doc ul { font-size: .96rem; max-width: 44rem; }
.legal-doc address { font-style: normal; margin: 0 0 1.1rem; }

/* Fußleiste */
footer { background: var(--c-tint); border-top: 1px solid var(--c-line); padding: 3.5rem 0 5rem; font-size: .87rem; color: var(--c-muted); text-align: center; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; margin-bottom: 2.2rem; }
footer h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 .7rem; color: var(--c-text); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
footer a { color: var(--c-muted); text-decoration: none; }
footer a:hover { color: var(--c-accent); }
footer p { margin: 0 0 .5rem; max-width: none; }
.legal-line { border-top: 1px solid var(--c-line); padding-top: 1.3rem; font-size: .81rem; }

/* Sanftes Einblenden auf der Startseite */
/* nur mit JS ausblenden — ohne JS bleibt alles sichtbar */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Mobil */
.callbar { display: none; }
.menu-toggle { display: none; }
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .steps, .track, .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .cv div { grid-template-columns: 1fr; gap: .3rem; }
  .top nav ul { gap: 1rem; font-size: .86rem; }

  .opening { min-height: 86vh; }
  .opening .bild--hero .hero-sonne { transform: translate(-285px, -115px); }
  .opening .bild--hero .hero-buche { transform: translate(364px, 0); }
  section { padding: 3.2rem 0; }
  body { padding-bottom: 3.4rem; }
  .callbar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 1rem;
    padding: .8rem 1.2rem; background: var(--c-deep); color: #fff; font-size: .9rem;
  }
  .callbar a { color: #fff; text-decoration: none; font-weight: 600; }
}

/* Bildbänder auf Unterseiten (dort wo sie noch drin sind) */
.bildband { border-bottom: 1px solid var(--c-line); }
.bildband .bild { margin: 0; height: 220px; overflow: hidden; }
.bildband .bild svg { width: 100%; height: 100%; display: block; }

/* Menü-Button: greift schon unterhalb 1080px, weil die sechs
   Navigationspunkte sonst neben dem Namen keinen Platz haben */
@media (max-width: 1080px) {
  /* Menü-Button statt zweizeiliger Navigation (nur wenn JS aktiv ist;
     ohne JS bleibt die normale Liste sichtbar) */
  .js .top__inner { row-gap: 0; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    background: none; color: inherit; font: inherit; font-size: .9rem; letter-spacing: .02em;
    border: 1px solid currentColor; border-radius: 3px; padding: .45rem .85rem; cursor: pointer;
  }
  .top--solid .menu-toggle { color: var(--c-deep); border-color: var(--c-line); }
  .top--over .menu-toggle { border-color: rgba(255,255,255,.45); }
  .menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
    display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 1px;
  }
  .menu-toggle__icon { position: relative; }
  .menu-toggle__icon::before, .menu-toggle__icon::after { content: ''; position: absolute; left: 0; }
  .menu-toggle__icon::before { top: -5px; }
  .menu-toggle__icon::after { top: 5px; }
  .top.is-open .menu-toggle__icon { background: transparent; }
  .top.is-open .menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
  .top.is-open .menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }

  .js .top nav { display: none; flex-basis: 100%; margin-top: 1rem; }
  .js .top.is-open nav { display: block; }
  .js .top nav ul { flex-direction: column; gap: 0; font-size: 1rem; }
  .js .top nav a { display: block; padding: .8rem 0; opacity: .9; border-top: 1px solid var(--c-line); }
  .js .top--over nav a { border-top-color: rgba(255,255,255,.18); }
  .js .top nav a[aria-current="page"] { border-bottom: 0; opacity: 1; font-weight: 600; }
  .top--over.is-open { background: var(--c-deep); padding-bottom: .5rem; }
}

/* Abstände (ersetzen frühere style-Attribute, nötig für die CSP) */
.mt-16 { margin-top: 1.6rem; }
.mt-25 { margin-top: 2.5rem; }
.mt-30 { margin-top: 3rem; }
