/* ===========================================================================
   Gegenüber — shared design system (Wärme-Redesign).
   One stylesheet for the whole site. Brand colour is the only per-brand var,
   injected per request via head.php (--brand / --brand-soft / --brand-deep).
   Static brand constants + neutral tokens live in :root below.
   =========================================================================== */

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

:root {
  /* static brand constants (host-agnostic) */
  --c-gegenueber:        #7A7A75;
  --c-gegenueber-soft:   #EFEEEA;
  --c-bildung:           #5BA47A;
  --c-bildung-soft:      #E6F1EA;
  --c-bildung-deep:      #3F7D59;
  --c-schule:            #6E9BC2;
  --c-schule-soft:       #E7EFF7;
  --c-schule-deep:       #3F6E99;
  --c-adhs:              #E29554;
  --c-adhs-soft:         #FBEDDD;
  --c-adhs-deep:         #B96E2E;

  /* neutral / global tokens */
  --bg: #FFFFFF;
  --text: #1C1C1A;
  --text-mid: #4A4A47;
  --text-light: #7E7E78;
  --rule: #E6E5E0;
  --photo: #E6E5E0;

  /* radius scale (Sprint 12 — was 14× hardcoded; brandguide already references these) */
  --radius-sm: 4px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;

  /* elevation — repeated hover-lift shadows (Sprint 12) */
  --shadow-hover: 0 10px 28px -16px rgba(0,0,0,0.2);
  --shadow-hover-strong: 0 12px 30px -18px rgba(0,0,0,0.4);
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.1rem; }

a { color: inherit; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 2.8rem 0; scroll-margin-top: 84px; }

/* ===========================================================================
   Header (fixed, white, scrollspy underline)
   =========================================================================== */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
header.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
header.site.scrolled {
  box-shadow: 0 6px 22px -16px rgba(0,0,0,0.4);
  border-bottom-color: var(--rule);
}

/* Wordmark (Prototyp: .wm > .g [+ .a | .dot]).
   Submark default: regular "Gegenüber" (.g 400) + bold brand word (.a 700).
   Dachmarke (body[data-brand="gegenueber"]): semibold "Gegenüber" (.g 600) +
   brand-coloured dot, tighter gap — matches the per-prototype wordmark CSS. */
.wm {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}
.wm .g {
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  color: var(--text);
}
.wm .a {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.wm .dot { color: var(--brand); font-weight: 600; }
body[data-brand="gegenueber"] .wm { gap: 0.2rem; }
body[data-brand="gegenueber"] .wm .g { font-weight: 600; }

/* Menu */
nav.menu {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
nav.menu a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.2s;
}
nav.menu a:hover { color: var(--text); }
nav.menu a.active { color: var(--text); }

/* The scrollspy links live in .menu .links so the underline can position
   relative to them; the CTA button sits outside as a sibling. Scoped to
   .menu so the footer's own .links list is unaffected. */
.menu .links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  position: relative;
}
.nav-underline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--brand);
  opacity: 0;
  transition:
    left 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.25s;
  pointer-events: none;
}
.menu .hcta {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--brand);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border-bottom: none;
}
.menu .hcta:hover { filter: brightness(0.95); }

/* ===========================================================================
   Shared primitives
   =========================================================================== */
.tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}
.eyebrow, .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-mid);
  max-width: 24em;
  margin: 0.4rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--brand);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(0.95); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand-deep);
  background: var(--bg);
  border: 1px solid var(--brand);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-outline:hover { background: var(--brand-soft); transform: translateY(-1px); }

/* Photo box with parallax inner layer */
.photo {
  background: var(--photo);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.photo > .pq {
  position: absolute;
  inset: 0;
  will-change: transform;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.img-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Soft panel with decorative parallax blob */
.panel {
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.6rem;
  position: relative;
  overflow: hidden;
}
.panel .blob {
  position: absolute;
  right: -120px;
  top: -90px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  /* Brand-tinted decorative circle (prototype .panel .blob uses the brand at
     12%); a flat grey was nearly invisible on the brand-soft panel. */
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  will-change: transform;
  pointer-events: none;
}
.panel > * { position: relative; }

.two   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

/* ===========================================================================
   Hero (hero-box + rest text)
   =========================================================================== */
.hero { padding: 6rem 0 2.6rem; }
.hero-box {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-box-photo { height: 360px; }
.hero-box-body {
  padding: 2.6rem 2.6rem 2.8rem;
  text-align: center;
}
.hero-box-body .tag { margin-bottom: 1rem; }
.hero-box-body h1 { max-width: 16em; margin: 0 auto 1rem; }
.hero-box-body .lead { max-width: 36em; margin: 0 auto; }
.hero-box-body .btn-row { justify-content: center; margin-top: 1.4rem; }
.hero-rest {
  margin: 2.4rem auto 0;
  max-width: 46em;
  text-align: center;
}
.hero-rest .hero-body {
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.hero-rest .hero-online {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.btn-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ===========================================================================
   Illustration strips (brand-fillable inline SVG)
   =========================================================================== */
.illu-strip { display: block; width: 100%; height: 140px; }

/* Area accents for the Dachmarke bereiche tiles */
.area-bildung { --brand: var(--c-bildung); --brand-soft: var(--c-bildung-soft); --brand-deep: var(--c-bildung-deep); }
.area-schule  { --brand: var(--c-schule);  --brand-soft: var(--c-schule-soft);  --brand-deep: var(--c-schule-deep); }
.area-adhs    { --brand: var(--c-adhs);    --brand-soft: var(--c-adhs-soft);    --brand-deep: var(--c-adhs-deep); }

/* ===========================================================================
   CARDS block — bereiche tiles, wege/zielgruppen tiles (NO flip)
   The cards snippet emits .cards > .card-grid > (.card | .card.is-link),
   plus an optional .stimme-grid > .stimme-card after a sub-group (prototype
   #erwachsene). Tile look = .tile-photo from the prototype, mapped onto .card.
   =========================================================================== */
.cards h2 { margin-bottom: 0.5rem; }
.cards .intro {
  color: var(--text-mid);
  margin-bottom: 1.6rem;
  max-width: 42em;
}
/* "Zwei Wege" (#wege) renders a real .panel + parallax blob (prototype),
   emitted by cards.php. #zielgruppen and #bereiche stay on plain white, exactly
   like the prototype "Beide Seiten des Tisches" / "Drei Bereiche" sections. */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}
/* Dachmarke #bereiche: three brand tiles side by side */
body[data-brand="gegenueber"] #bereiche .card-grid { grid-template-columns: repeat(3, 1fr); }

/* Card tile */
.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 1.4rem 1.5rem 1.6rem;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover,
.card.is-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Full-bleed photo strip at the top of a tile (Schule zielgruppen, ADHS Erwachsene/Jugendliche).
   width = content box + the card's 1.5rem left/right padding, so the strip spans the
   full card width flush to both edges (prototype .tile-photo .photo-strip). */
.card .card-photo {
  width: calc(100% + 3rem);
  height: 185px;
  margin: -1.4rem -1.5rem 1.3rem;
  background-color: var(--photo);
}
/* Full-bleed illustration strip at the top of a tile (Dachmarke bereiche, wege
   Sparring/Coaching). The inline SVG fills with var(--brand) via #ill-* symbols.
   Same full-card-width span as the photo strip. */
.card .illu-strip {
  width: calc(100% + 3rem);
  height: 140px;
  margin: -1.4rem -1.5rem 1.3rem;
}

.card .card-tag { color: var(--brand); }
.card h3 { margin-bottom: 0.45rem; }
.card p { font-size: 0.94rem; color: var(--text-mid); line-height: 1.55; flex: 1; }
.card .btn-outline { margin-top: 1rem; align-self: flex-start; }

/* Dachmarke bereiche tiles use the submark accent */
.card.brand-bildung { --brand: var(--c-bildung); --brand-soft: var(--c-bildung-soft); --brand-deep: var(--c-bildung-deep); }
.card.brand-schule  { --brand: var(--c-schule);  --brand-soft: var(--c-schule-soft);  --brand-deep: var(--c-schule-deep); }
.card.brand-adhs    { --brand: var(--c-adhs);    --brand-soft: var(--c-adhs-soft);    --brand-deep: var(--c-adhs-deep); }

/* Topic pills at the tile foot (Dachmarke bereiche) */
.card .card-topics {
  list-style: none;
  padding: 1rem 0 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.card .card-topics li {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--brand-soft);
  line-height: 1.3;
}
body[data-brand="gegenueber"] #bereiche .card .card-topics { margin-top: auto; }

/* Front list (e.g. Eltern/Lehrpersonen, ADHS Erwachsene/Jugendliche) — prototype .arrows */
.card .card-front-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.card .card-front-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.card .card-front-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -0.05rem;
  color: var(--brand);
  font-weight: 700;
}

.card-anlass {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.card-anlass strong { color: var(--text); font-weight: 600; }

/* Sub-group headline between two card grids (Schule/ADHS) */
.cards .wege-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.6rem;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.cards .formate-outro {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Two stacked .cards sections (zielgruppen + wege) without doubled spacing. */
.cards + .cards { padding-top: 0; }

/* Front CTA on tiles with a front list sits at the tile foot (prototype #erwachsene). */
.card .card-front-list ~ .btn-outline { margin-top: auto; }
/* --- Testimonial boxes (prototype #erwachsene .stimme-card) ----------------- */
.cards .stimme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  margin-top: 1.3rem;
}
.stimme-card {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.stimme-card .lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 0.6rem;
}
.stimme-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  font-size: 1rem;
}
.stimme-card .attr {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 0.6rem;
}

/* ===========================================================================
   METHODE block — "Modus" / Prinzipien flow cards (.flow / .pcard)
   The methode snippet emits .methode .flow > .pcard (pmark + n + hr + h3 + p).
   Ported 1:1 from the approved prototypes (#modus / #prinzipien section).
   =========================================================================== */
.methode h2 { margin-bottom: 0.5rem; }
.methode .intro { color: var(--text-mid); margin-bottom: 1.6rem; max-width: 42em; }
#prinzipien.methode h2, #modus.methode h2 { margin-bottom: 1.6rem; }

.methode .flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.methode .pcard {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  position: relative;
  transition: opacity 0.5s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.methode .pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.methode .pmark {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 46px;
  height: 46px;
}
.methode .pcard .n {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.03em;
}
.methode .pcard .hr {
  width: 26px;
  height: 2px;
  background: var(--brand);
  opacity: 0.4;
  margin: 0.7rem 0 1rem;
}
.methode .pcard h3 { margin-bottom: 0.4rem; }
.methode .pcard p { color: var(--text-mid); font-size: 0.94rem; }
.methode .flow .pcard:nth-child(2) { transition-delay: 0.1s; }
.methode .flow .pcard:nth-child(3) { transition-delay: 0.2s; }

/* ===========================================================================
   UEBER block — bio panel with photo + chips
   Snippet emits .ueber.gegenueber-bio > .container > (h2, bio-intro,
   credentials, bio-h3 + bio-tags, bio-outro, link-detail).
   =========================================================================== */
/* Über uses the shared .panel (background, radius, padding, blob); only the
   two-column grid + photo are über-specific. */
.ueber .ueber-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.4rem;
  align-items: start;
}
.ueber .ueber-grid .photo {
  min-height: 320px;
  border: 1px solid rgba(0,0,0,0.05);
}
.ueber h2 { margin-bottom: 1rem; }
.ueber .bio-intro, .ueber .bio-outro {
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.65;
}
.ueber .credentials, .ueber .bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 1.4rem;
  list-style: none;
  padding: 0;
}
.ueber .credential, .ueber .bio-tags li {
  font-size: 0.8rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid transparent;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
}
.ueber .bio-h3 { font-size: 1rem; margin: 1.4rem 0 0.7rem; color: var(--text); }
.link-detail {
  display: inline-block;
  text-decoration: none;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--brand-soft);
  padding-bottom: 1px;
  margin-top: 0.5rem;
}
.link-detail:hover { border-bottom-color: var(--brand); }

/* ===========================================================================
   KENNST-DU block → "resolve" section (quotes + pivot timeline + outro)
   Snippet emits .kennst-du > (h2, zitate-list, kennst-du-pivot,
   pivot_body, timeline (.titem nodes), kennst-du-outro).
   =========================================================================== */
.kennst-du h2 { margin-bottom: 1.2rem; }
.kennst-du .kennst-photo {
  height: 200px;
  border-radius: var(--radius);
  background-color: var(--photo);
  margin: 0 0 1.6rem;
}
.kennst-du .zitate-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}
.kennst-du .zitate-list li {
  position: relative;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.8rem 1.8rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.55;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.kennst-du .zitate-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover-strong);
}
.kennst-du .zitate-list li::before {
  content: "„";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  color: var(--brand-deep);
  line-height: 0.7;
  margin-bottom: 0.5rem;
}

/* The pivot block sits in the prototype's soft .panel (provides background,
   radius and padding + the decorative parallax blob). Inner elements no
   longer carry their own backgrounds. Matches .resolve .panel from the
   prototype. */
.kennst-du .panel { padding: 3rem 2.8rem; }
.kennst-du .kennst-du-pivot {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
.kennst-du .panel p {
  margin: 0 0 2rem;
  color: var(--text-mid);
  max-width: 44em;
  line-height: 1.65;
}
/* Scroll-driven timeline (prototype .resolve .timeline): a track that fills as
   the user scrolls, with nodes that flip to a filled check when passed. The
   .tfill height + .titem.active are driven by warm-ui.js; CSS only styles. */
.kennst-du .timeline {
  position: relative;
  margin: 0 0 1.8rem;
}
.kennst-du .timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(0,0,0,0.12);
}
.kennst-du .timeline .tfill {
  position: absolute;
  left: 15px;
  top: 10px;
  width: 2px;
  height: 0;
  background: var(--brand);
}
.kennst-du .titem {
  position: relative;
  padding: 0 0 1.5rem 3rem;
}
.kennst-du .titem:last-child { padding-bottom: 0; }
.kennst-du .titem .node {
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}
.kennst-du .titem .node::after {
  content: "✓";
  font-size: 0.82rem;
  font-weight: 700;
  color: transparent;
  transition: color 0.3s;
}
.kennst-du .titem.active .node {
  background: var(--brand);
  border-color: var(--brand);
}
.kennst-du .titem.active .node::after { color: var(--bg); }
.kennst-du .titem p {
  color: var(--text);
  line-height: 1.5;
  padding-top: 0.35rem;
  margin: 0;
  transition: color 0.3s;
}
.kennst-du .titem:not(.active) p { color: var(--text-mid); }
.kennst-du .kennst-du-outro {
  margin: 0 0 1.6rem;
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.65;
}
.kennst-du .kennst-du-outro :last-child { margin-bottom: 0; }

/* ===========================================================================
   ANGEBOT-DETAIL block — Prototyp "Wärme-Redesign v3" (#angebot)
   Snippet emits .angebot-detail > .panel with TWO .two grids:
     1) .offer cards (illu-strip + .offer-main: eyebrow, .olead, .offer-foot
        with .garantie-line + booking button).
     2) .ablauf cards (eyebrow "Ablauf …", <ol class="psteps">) — the optional
        Eltern procedure is a native <details class="angebot-disclosure flip-link">
        at the card foot (where the prototype's .flip-link sits).
   Rules below are ported verbatim from the prototype (selectors scoped under
   .angebot-detail).
   =========================================================================== */
/* Angebot sits in a real .panel + parallax blob (prototype #angebot),
   emitted by angebot-detail.php. */
.angebot-detail h2 { margin-bottom: 1.4rem; }
.angebot-detail .sub {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 1.1rem;
}
.angebot-detail .offer {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.angebot-detail .offer .illu-strip { border-radius: 0; }
.angebot-detail .offer .offer-main {
  padding: 1.6rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.angebot-detail .offer .offer-preis {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}
.angebot-detail .offer .olead {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.angebot-detail .offer .offer-foot { margin-top: auto; }
.angebot-detail .offer .garantie-line {
  font-size: 0.86rem;
  color: var(--text-mid);
  border-left: 2px solid var(--brand);
  padding-left: 0.8rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.angebot-detail .offer .garantie-line b {
  color: var(--brand-deep);
  font-weight: 600;
}
.angebot-detail .offer .btn { align-self: flex-start; }
.angebot-detail .ablauf {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.angebot-detail .ablauf .eyebrow { margin-bottom: 0.8rem; }
/* Eltern-Reihe: kurze Einleitung + Buchungs-Button am Fuss. */
.angebot-detail .ablauf .ablauf-intro {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.angebot-detail .ablauf .ablauf-foot {
  margin-top: auto;
  padding-top: 1.1rem;
}
.angebot-detail .ablauf .ablauf-foot .btn { align-self: flex-start; }
.angebot-detail .psteps {
  list-style: none;
  counter-reset: p;
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.angebot-detail .psteps li {
  counter-increment: p;
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.angebot-detail .psteps li::before {
  content: counter(p);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===========================================================================
   TECHNISCH block — "was dich erwartet" cards + Konditionen table
   Snippet emits .technisch > (h2, tech-list, technisch-konditionen-titel,
   konditionen-list > kondition (dt/dd), konditionen-note).
   =========================================================================== */
.technisch h2 { margin-bottom: 1.2rem; }
.technisch .technisch-konditionen-titel { margin-top: 2.4rem; }

.technisch .erwartet-box {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--brand-soft);
}
.technisch .erwartet-photo { height: 220px; }
.technisch .erwartet-inner { padding: 1.6rem; }

.technisch .tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.technisch .tech-list li {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.2rem 3rem;
  position: relative;
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.5;
}
.technisch .tech-list li::before {
  content: "✓";
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.technisch .konditionen-list {
  margin: 1rem 0 1rem;
  display: grid;
  gap: 0;
  max-width: 52em;
}
.technisch .kondition {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.technisch .kondition:last-child { border-bottom: none; }
.technisch .kondition dt { font-weight: 600; font-size: 0.95rem; }
.technisch .kondition dd { margin: 0; font-size: 0.93rem; color: var(--text-mid); }
.technisch .konditionen-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-left: 2px solid var(--brand-soft);
  padding-left: 1rem;
}

/* ===========================================================================
   CTA-FINAL block — kontakt panel (buttons + inline forms)
   Snippet emits .cta-final.bg-*.align-* > .container > (h2, p, btn-group,
   subline, cta-form-wrap*).
   =========================================================================== */
/* Kontakt-Panel = geteiltes .panel, verschachtelt in .container (gleiche Breite
   wie das Über-Panel; Prototyp #kontakt ist ebenfalls .panel im .container).
   Hintergrund / Radius / Padding / Blob kommen aus der gemeinsamen .panel-Regel;
   die bottom-left-Blob-Position setzt das Inline-Style im Snippet. */
.cta-final.bg-light .panel { background: transparent; padding: 0; border-radius: 0; overflow: visible; }
.cta-final.align-center { text-align: center; }
.cta-final.align-left   { text-align: left; }
.cta-final.align-right  { text-align: right; }
.cta-final h2 { margin-bottom: 0.6rem; }
.cta-final p { color: var(--text-mid); margin: 0 0 1.6rem; max-width: 42em; }
.cta-final.align-center p { margin-left: auto; margin-right: auto; }
.cta-final.align-right  p { margin-left: auto; }
.cta-final .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.cta-final.align-center .btn-group { justify-content: center; }
.cta-final.align-left   .btn-group { justify-content: flex-start; }
.cta-final.align-right  .btn-group { justify-content: flex-end; }
.cta-final .subline { margin-top: 1rem; font-size: 0.82rem; color: var(--text-light); }
/* Foto-Streifen oben im Kontakt-Panel (bricht aus dem Panel-Padding aus). */
.cta-final .cta-photo {
  height: 220px;
  margin: -2.8rem -2.6rem 2.2rem;
  background-color: var(--photo);
}

/* Top-conversion CTA right after hero: drop the stacking gap. */
.hero + .cta-final { padding-top: 0; }

/* ===========================================================================
   Footer (warm)
   =========================================================================== */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 2.2rem 0 2.8rem;
  font-size: 0.83rem;
  color: var(--text-light);
}
footer.site .row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
footer.site .legal-line { color: var(--text-mid); margin-bottom: 0.6rem; }
footer.site .links a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 1.2rem;
}
footer.site .links a:first-child { margin-left: 0; }
footer.site .links a:hover { color: var(--brand); }
footer.site .dachhinweis { margin-top: 0.8rem; color: var(--text-light); }
footer.site .dachhinweis a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-soft);
}

/* ===========================================================================
   Reveal / slide-in animations + parallax safety
   =========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.slide-r {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.slide-r.in { opacity: 1; transform: none; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 820px) {
  .ueber .ueber-grid { grid-template-columns: 1fr; }
  .two, .three,
  .card-grid,
  body[data-brand="gegenueber"] #bereiche .card-grid,
  .cards .stimme-grid,
  .methode .flow,
  .kennst-du .zitate-list,
  .technisch .tech-list { grid-template-columns: 1fr; }
  .hero-box-photo { height: 220px; }
  .hero-box-body { padding: 1.8rem 1.4rem 2rem; }
  .panel { padding: 2rem 1.5rem; }
  .cta-final .cta-photo { height: 180px; margin: -2rem -1.5rem 1.6rem; }
  .technisch .kondition { grid-template-columns: 1fr; gap: 0.2rem; }
  nav.menu .links { display: none; }
}

@media (max-width: 760px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  section { padding: 2.4rem 0; }
  .wm .a { font-size: 1rem; }
}

@media (max-width: 520px) {
  .wm .g, .wm .a { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .slide-r { opacity: 1; transform: none; transition: none; }
  .pq, .blob { transform: none !important; }
  .nav-underline { transition: none; }
}

/* ===========================================================================
   Legal page (Impressum & Datenschutz)
   =========================================================================== */
.legal {
  padding-top: 7rem;
  padding-bottom: 4rem;
  max-width: 720px;
}
.legal h1 { font-size: 2.1rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2.6rem 0 0.9rem; }
.legal h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal ul, .legal ol { margin-bottom: 1rem; color: var(--text-mid); }
.legal strong { color: var(--text); }
.legal a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-color: var(--brand-soft);
  text-underline-offset: 2px;
}

/* ===========================================================================
   Cookie banner (bottom strip)
   =========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}
.cookie-banner__text {
  flex: 1 1 22rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.cookie-banner__btn {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
}
.cookie-banner__btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}
.cookie-banner__btn--secondary { background: var(--bg); }
.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.cookie-banner__link {
  font-size: 0.8rem;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .cookie-banner { padding: 0.85rem 1rem; }
  .cookie-banner__inner { gap: 0.75rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1 1 auto; }
}

/* ===========================================================================
   Zeeg booking modal
   =========================================================================== */
.zeeg-modal {
  width: min(95vw, 1040px);
  max-width: 95vw;
  height: min(95vh, 800px);
  max-height: 95vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.zeeg-modal::backdrop { background: rgba(0, 0, 0, 0.55); }
.zeeg-modal__mount { width: 100%; height: 100%; }
.zeeg-modal__mount iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}
.zeeg-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.zeeg-modal__close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .zeeg-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ===========================================================================
   Inline CTA forms (Rückruf + Kontakt)
   =========================================================================== */
.cta-form-wrap { margin-top: 1.5rem; text-align: left; }
.cta-final.align-center .cta-form-wrap { max-width: 32em; margin-left: auto; margin-right: auto; }
.cta-final.align-right  .cta-form-wrap { max-width: 32em; margin-left: auto; }

.cta-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  position: relative;
}
.cta-form[hidden] { display: none; }
.cta-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.cta-form-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cta-form-close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cta-form-close:hover, .cta-form-close:focus { color: var(--text); background: var(--rule); outline: none; }
.cta-form-field { display: grid; gap: 0.3rem; }
.cta-form-field label { font-size: 0.9rem; font-weight: 600; color: var(--text-mid); }
.cta-form-field .cta-form-optional { font-weight: 400; color: var(--text-light); font-size: 0.85rem; }
.cta-form-field input, .cta-form-field textarea {
  font: inherit;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg);
  width: 100%;
}
.cta-form-field input:focus, .cta-form-field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.cta-form-field textarea { resize: vertical; min-height: 5rem; }
.cta-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta-form-actions { margin-top: 0.25rem; }
.cta-form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; line-height: 1.4; }
.cta-form-hint a { color: var(--text-light); text-decoration: underline; }
.cta-form-error[hidden] { display: none; }
.cta-form-error { font-size: 0.9rem; color: #b3261e; margin-top: 0.25rem; }
.cta-form-success[hidden] { display: none; }
.cta-form-success {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--brand-soft, var(--rule));
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

/* ===========================================================================
   Podcast episode teaser card (.card.is-link.ep) — keep acceptable look.
   The podcast template ships its own .ep* layout inline; here we only make
   sure the .card.is-link base does not fight it (override flex/border-radius).
   =========================================================================== */
.card.is-link.ep { padding: 1.6rem; display: grid; }
