/* ============================================================
   PECA Bildwelt-Layer v3 — „Persönlichkeit als Landschaft"
   Additive Ebene über styles.css (Editorial-Rework „Tinte auf
   Papier"). Duotone-Tonung als Live-SVG-Filter, Höhenlinien-
   Wellen, Foto-Hero, Foto unter der dunklen Sektion, Bild-Bänder,
   Persönlichkeits-Landkarte. Originalbilder bleiben unberührt.
   ============================================================ */

/* Filter-Host unsichtbar halten */
.bw-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

/* behandelte Bilder — v4: natürliche Farben, nur leichte Politur */
.bw-img,
.bw-img--soft { filter: saturate(1.06) contrast(1.02) brightness(1.02); }

/* Globaler Mobile-Overflow-Schutz */
html, body { overflow-x: hidden; }

/* ---------- Schleier ---------- */
.bw-media__veil,
.bw-media__waves { position: absolute; inset: 0; pointer-events: none; }
.bw-media__waves { width: 100%; height: 100%; }

/* Hero v4: Foto bleibt hell — nur ein Hauch Halt oben und unten */
.veil-hero {
  background: linear-gradient(180deg, rgba(21,32,46,.16) 0%, rgba(0,0,0,0) 42%,
              rgba(0,0,0,0) 80%, rgba(21,32,46,.18) 100%);
}
/* dunkle Sektion: Foto unter Tinte, weiße Schrift klar lesbar */
.veil-dark {
  background: linear-gradient(180deg, rgba(21,32,46,.66) 0%, rgba(21,32,46,.78) 100%);
}
/* Bild-Bänder: Ränder lösen sich ins Papier auf, Mitte bleibt klar */
.veil-feather {
  --bw-fade: var(--color-paper);
  background:
    linear-gradient(90deg,  var(--bw-fade) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 90%, var(--bw-fade) 100%),
    linear-gradient(180deg, var(--bw-fade) 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,0) 86%, var(--bw-fade) 100%);
}

/* ============================================================
   Foto-Hero v4 — Bild trägt nur die Frage, Antwort steht auf Papier
   ============================================================ */
.hero--photo { min-height: 0; padding-top: 0; display: block; }
.hero__photo {
  position: relative;
  height: clamp(520px, 86svh, 900px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.hero__photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__photo-text { position: relative; z-index: 2; width: 100%; padding-top: calc(76px + clamp(24px, 7vh, 72px)); }
.hero__photo-text h1 { color: var(--color-paper); }
.hero__photo-text .hero__kicker { color: var(--color-paper); opacity: .92; }
.hero__photo-text .ink-word svg path { stroke: var(--color-paper); }

/* Antwort + Buttons auf Papier unter dem Bild */
.hero__below { background: var(--color-paper); padding: clamp(36px, 5vw, 56px) 0 clamp(40px, 6vw, 64px); }
.hero__below .hero__answer { margin-top: 0; }
.hero__below .hero__cta { margin-top: var(--space-4); }

.hero--photo .hero__meta {
  background: var(--color-paper);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}

/* Header über dem Foto: Creme-Navigation, solange nicht gescrollt */
body.has-photo-hero .header:not(.is-scrolled) .header__logo img { filter: brightness(0) invert(1); opacity: .95; }
body.has-photo-hero .header:not(.is-scrolled) .nav__toggle { color: var(--color-paper); }
@media (min-width: 821px) {
  body.has-photo-hero .header:not(.is-scrolled) .nav__links a:not(.btn) {
    color: var(--color-paper);
    background-image: linear-gradient(var(--color-paper), var(--color-paper));
  }
  body.has-photo-hero .header:not(.is-scrolled) .btn--primary {
    background: var(--color-paper);
    color: var(--color-anchor);
  }
  body.has-photo-hero .header:not(.is-scrolled) .btn--primary:hover {
    background: var(--color-accent-soft);
    border-color: transparent;
  }
}


/* ============================================================
   Dunkle Sektion mit Foto (Warum jetzt?)
   ============================================================ */
.section--photo { position: relative; overflow: hidden; }
.section--photo > .bw-section-media { position: absolute; inset: 0; z-index: 0; }
.section--photo > .bw-section-media > img { width: 100%; height: 100%; object-fit: cover; }
.section--photo > .container { position: relative; z-index: 2; }

/* ============================================================
   Warme Anker-Sektion (Warum jetzt?) — hell statt dunkel
   ============================================================ */
.section--warm { background: var(--color-accent-soft); }
.section--warm .sec-head { border-top-color: var(--color-anchor); }
.section--warm .whynow__quote { color: var(--color-anchor); }
.section--warm .whynow__quote em { color: var(--color-accent); }
.section--warm .whynow__stat .stat__num { color: var(--color-accent); }
.section--warm .whynow__stat .stat__label { color: var(--color-text); }
.section--warm .whynow__stat .label-mono { color: var(--color-text-mute); }
.section--warm .whynow__text .lead { color: var(--color-text); }
.section--warm .whynow__text p { color: var(--color-text-mute); }

/* ============================================================
   Bild-Band zwischen Sektionen (ruhiges Full-bleed-Motiv)
   ============================================================ */
.bw-band {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 5;
  max-height: 560px;
  overflow: hidden;
  margin: 0;
}
.bw-band > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
}
.bw-band__wave {
  position: absolute;
  left: 0; right: 0; bottom: 12%;
  width: 100%; height: 26px;
  pointer-events: none;
  opacity: .55;
}
@media (max-width: 620px) { .bw-band { aspect-ratio: 3 / 2; } }

/* ============================================================
   Der-Weg-Seite: Stärkenbaum als weicher Hintergrund
   ============================================================ */
.bw-term-section { position: relative; overflow: hidden; }
.bw-term-section > .container { position: relative; z-index: 1; }
.bw-term-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bw-term-bg > img { width: 100%; height: 100%; object-fit: cover; }
.bw-term-bg__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(246,244,239,.93) 0%, rgba(246,244,239,.88) 52%, rgba(246,244,239,.55) 100%),
    linear-gradient(180deg, var(--color-paper) 0%, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 85%, var(--color-paper) 100%);
}
@media (max-width: 720px) {
  .bw-term-bg__veil { background:
    linear-gradient(180deg, var(--color-paper) 0%, rgba(246,244,239,.9) 12%, rgba(246,244,239,.9) 85%, var(--color-paper) 100%); }
}

/* ============================================================
   Über mich — Portrait dezent eingetönt
   ============================================================ */
.about__portrait img { filter: saturate(.92) contrast(1.015); }
