/* Sebastian Posch Golf — Redesign, angelehnt an poschgolfacademy.com */

:root {
  --bg: #1d1d1f;
  --bg-elev: #26262a;
  --bg-elev-2: #2f2f34;
  --border: rgba(255,255,255,0.09);
  --text: #f5f5f2;
  --text-dim: #a1a1a6;
  --accent: #c8a35c;
  --accent-dim: #8f7440;
  --radius: 14px;
  --max: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* kein overflow-x am body: sonst wird der body zum eigenen Scroll-Container und die
     fixierte Kopfzeile (position: sticky) bleibt nicht stehen. Das Seitwärts-Abschneiden
     übernimmt html. */
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29,29,31,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span { color: var(--accent); }

/* Absolut mittig in der Leiste — exakt über dem zentrierten Seiteninhalt (H1 etc.),
   unabhängig davon, wie breit Logo-Bild oder Name-Text sind. Logo/Brand bleiben die
   einzigen zwei Elemente im normalen Flex-Fluss und stehen dadurch flush an den
   Rändern (links/rechts), ohne von der Nav-Breite beeinflusst zu werden. */
nav.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 28px;
}

nav.main-nav .nav-item { position: relative; }

nav.main-nav > .nav-item > a {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 8px 0;
  display: inline-block;
  transition: color .15s;
}
nav.main-nav > .nav-item > a:hover,
nav.main-nav > .nav-item > a.active { color: var(--text); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 220px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text-dim);
}
.dropdown a:hover { background: var(--bg-elev-2); color: var(--text); }

/* Logo — links, Brand-Text rechts */
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark { height: 28px; width: auto; filter: invert(1); }

.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  nav.main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; transform: none; background: var(--bg-elev); flex-direction: column; gap: 0; border-bottom: 1px solid var(--border); padding: 8px 0; }
  nav.main-nav.open { display: flex; }
  nav.main-nav .nav-item { width: 100%; }
  nav.main-nav > .nav-item > a { display: block; padding: 12px 24px; }
  /* Untermenü auf Mobile immer sichtbar (kein Aufklapp-Mechanismus) — direkt eingerückt unter "Academy" */
  .dropdown { position: static; display: block; background: none; border: none; box-shadow: none; padding-left: 34px; width: 100%; }
  .dropdown a { font-size: 13.5px; padding: 8px 12px; color: var(--text-dim); opacity: .85; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 120px 0 90px;
  text-align: center;
}

/* Hero with video background */
.hero-video {
  position: relative;
  padding: 200px 0 160px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background: #0f0f10 center/cover no-repeat;
}
.hero-video .hero-media {
  /* Etwas mattere, gedecktere Farbwiedergabe statt kräftig-satter Kamerafarben */
  filter: saturate(0.72) contrast(0.94) brightness(0.97);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Sanfter, verlaufender Übergang unten ins Seiten-Grau (--bg), statt hartem Schnitt */
  background: linear-gradient(180deg, rgba(29,29,31,0.25) 0%, rgba(29,29,31,0.4) 35%, rgba(29,29,31,0.72) 70%, rgba(29,29,31,0.92) 88%, rgba(29,29,31,1) 100%);
}
.hero-video .hero-content { position: relative; }
@media (max-width: 760px) {
  /* Das bewegte Hero-Video läuft auch mobil (Datei nur ca. 1,4 MB); das Poster dient als Vorschaubild. */
  .hero-video { padding: 104px 0 92px; background: #0f0f10; }
  /* Mehr Luft zwischen den Elementen, Block sitzt höher */
  .hero-video .eyebrow { margin-bottom: 46px; }
  .hero-video h1 { margin-bottom: 40px; line-height: 1.3; }
  .hero-video .lede { margin-bottom: 52px; line-height: 1.8; }
  .hero-video .lede-line + .lede-line { margin-top: 3px; }
  .hero-media { object-position: 47% center; }
  /* Beide Hero-Buttons nebeneinander */
  .hero-video .btn-row { flex-wrap: nowrap; gap: 8px; }
  .hero-video .btn-row .btn { padding: 11px 14px; font-size: 13px; white-space: nowrap; }
}

/* Vollbreite-Fotos mit weichem Verlauf oben/unten — sprengen bewusst den Container */
.bleed-photo {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}
.bleed-photo img {
  width: 100%;
  height: 62vh;
  min-height: 360px;
  max-height: 720px;
  object-fit: cover;
  display: block;
}
.bleed-photo::before, .bleed-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
}
.bleed-photo::before { top: 0; background: linear-gradient(180deg, rgba(29,29,31,1) 0%, rgba(29,29,31,0) 100%); }
.bleed-photo::after { bottom: 0; background: linear-gradient(0deg, rgba(29,29,31,1) 0%, rgba(29,29,31,0) 100%); }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lede {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 34px;
}
/* Startseite-Hero mobil: jeder Satz zentriert in eigener Zeile (nicht als Fließtext) */
@media (max-width: 760px) { .hero-content .lede-line { display: block; } }
.lede a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.lede a:hover { text-decoration-color: var(--accent); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #1d1d1f; }
.btn-primary:hover { background: #dab871; }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--text-dim); }

/* Leitsatz — kurze Manifest-Zeile zwischen Hero und Autorität */
.motto { padding: 36px 0; text-align: center; }
.motto-text {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--bg-elev); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); margin: 0; }
/* Coaching-Seite: Überschrift zu Kacheln überall gleich (48 px) – Programme und Programmauswahl */
#programme .section-head { margin-bottom: 48px; }
#programme .section-head h2 { margin-bottom: 0; }
#aufnahme .section-narrow h2 { margin-bottom: 0; }
#aufnahme .aufnahme-tiles { margin-top: 48px; }
.section-head.einstieg-head h2 { margin-bottom: 28px; }
.section-head p.price-tag, .card p.price-tag { display: inline-block; color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 10px; }
.card p.price-tag.price-tag-right { display: block; text-align: right; font-size: 13px; margin: 14px 0 0; }
/* Preis immer unten rechts in der Kachel, auch bei unterschiedlich hohen Kacheln */
.card:has(> p.price-tag-right) { display: flex; flex-direction: column; }
.card:has(> p.price-tag-right) > p.price-tag-right { margin-top: auto; padding-top: 14px; }
.card:has(> p.price-tag-right) > .tag { align-self: flex-start; }

/* Google-Bewertungs-Badge, angelehnt an gängige "Ausgezeichnet ★★★★★ Google" Bewertungs-Badges */
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.review-badge-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.review-badge-stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 2px;
}
.review-badge-text {
  font-size: 14px;
  color: var(--text-dim);
}
.review-badge-google { flex-shrink: 0; }

.section-narrow { max-width: 680px; }
.center { text-align: center; }
.center-row { justify-content: center; margin-top: 8px; }
.section-narrow .eyebrow { }
.section-narrow h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 18px; font-weight: 600; letter-spacing: -0.01em; }
.section-narrow .lede { margin-left: auto; margin-right: auto; }

/* Stat row (Autorität) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 12px auto 40px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: clamp(28px, 4vw, 40px); font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.stat-label { font-size: 13.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .stat-row .stat-num { font-size: 26px; }
  .stat-row .stat-label { font-size: 12px; }
}

/* Autoritäts-Bereich mit kurzem Video-Clip — bewusst klein, Fokus bleibt auf dem Text */
.authority-grid { grid-template-columns: 260px 1fr; align-items: center; gap: 6px; }
.authority-media {
  max-width: 260px;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  /* Weicher, großzügiger Verlauf rundum, der die Kanten des Videos ins Seiten-Grau auflöst (Sektion hat den Standard-Hintergrund, also --bg) */
  box-shadow: inset 0 0 42px 16px var(--bg);
}
.authority-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
/* Video füllt den Rahmen exakt (kein Overscan/Parallax mehr) — einfaches
   object-fit:cover, damit das Gesicht zuverlässig immer im Bild bleibt */
.authority-media video.photo-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.authority-text .section-narrow { max-width: none; }
.authority-text .lede { margin: 0 0 32px; max-width: none; }
.authority-text .stat-row { margin: 0 0 32px; text-align: left; max-width: none; }
.authority-text .btn-row { justify-content: flex-start; }
@media (max-width: 860px) {
  .authority-grid { grid-template-columns: 1fr; gap: 92px; }
  .authority-media { width: 190px; max-width: 100%; aspect-ratio: 3 / 4; margin: 0 auto; }
  /* Mobil: gesamter Autoritäts-Block zentriert */
  .authority-text { text-align: center; }
  .authority-text .lede { margin-left: auto; margin-right: auto; }
  .authority-text .stat-row { text-align: center; row-gap: 40px; margin-top: 28px; margin-bottom: 8px; }
  .authority-text .stat { align-items: center; }
  .authority-text .stat-label { text-align: center !important; }
  .authority-text .btn-row { justify-content: center; }
}

/* Signatur-Akzent (Video, schwarzer Hintergrund verschmilzt per screen-blend mit dem dunklen Theme) */
.signature-mark { max-width: 220px; margin: 28px auto 0; }
.signature-mark video { width: 100%; display: block; mix-blend-mode: screen; }

/* "Das Ziel"-Sektion: Text und Unterschrift enger zusammenrücken;
   Unterschrift-Video oben/unten beschneiden (viel Leerraum im Rohmaterial) */
/* Sektion "Golf Coaching": Satz ist jetzt das letzte Element, daher kein zusätzlicher Abstand unten */
#anfrage .lede { margin-bottom: 0; }
#ziel .lede { margin-bottom: 12px; }
#ziel .signature-mark {
  max-width: 220px;
  height: 78px;
  margin: 12px auto 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ziel .signature-mark video { width: 100%; height: auto; transform: scale(1.15); }

@media (max-width: 760px) {
  #ziel .signature-mark { max-width: 190px; height: 68px; }
}

/* Testimonials */
.testimonial-card { display: flex; flex-direction: column; gap: 16px; }
.testimonial-card .quote {
  color: var(--text); font-size: 16px; font-style: italic; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.testimonial-more {
  align-self: flex-start;
  background: none; border: none; padding: 0; margin-top: -6px;
  color: var(--text-dim); font-size: 13.5px; text-decoration: underline;
  cursor: pointer;
}
.testimonial-more:hover { color: var(--accent); }

/* Bewertungs-Fenster (Modal) für die volle Bewertung */
.review-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.review-modal.open { display: flex; }
.review-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.review-modal-panel {
  position: relative; z-index: 1;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
.review-modal-panel .quote { -webkit-line-clamp: unset; overflow: visible; }
.review-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--text-dim); font-size: 26px; line-height: 1;
  cursor: pointer;
}
.review-modal-close:hover { color: var(--text); }
.testimonial-name { color: var(--text); font-size: 14.5px; font-weight: 600; display: block; }
.testimonial-head { display: flex; align-items: center; gap: 12px; }
.testimonial-head-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.testimonial-avatar {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim, rgba(200,163,92,0.18));
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.testimonial-stars { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.testimonial-google { flex-shrink: 0; align-self: flex-start; }
/* Im großen Bewertungs-Fenster braucht das Google-Zeichen etwas Abstand zum Schließen-Kreuz oben rechts */
.review-modal-panel .testimonial-google { margin-right: 28px; }

/* Google-Bewertungen als horizontal scrollbares Karussell mit Pfeil-Buttons */
.review-carousel-wrap { display: flex; align-items: center; gap: 14px; }
.review-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 2px 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.review-carousel::-webkit-scrollbar { display: none; }
.review-carousel .testimonial-card {
  flex: 0 0 auto;
  width: min(360px, 84vw);
  scroll-snap-align: start;
}
.review-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.review-arrow:hover { background: var(--accent); color: #1d1d1f; border-color: var(--accent); }
@media (max-width: 640px) {
  .review-carousel-wrap { gap: 2px; }
  .review-arrow {
    width: auto; height: auto; padding: 2px;
    background: none; border: none; box-shadow: none;
    font-size: 18px; color: var(--text-dim); opacity: 0.7;
    flex-shrink: 0;
  }
  .review-arrow:hover { background: none; color: var(--text-dim); }
  .review-carousel { padding: 12px 0 14px; }
  .review-carousel .testimonial-card { width: 100%; }
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Dezenter Premium-Hover: nur auf Geräten mit echtem Hover (Maus), nicht bei Touch/Tap */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-dim);
    box-shadow: 0 16px 32px rgba(0,0,0,0.35);
  }
}
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.card p { color: var(--text-dim); margin: 0; font-size: 15px; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  transition: background .15s, color .15s;
}
a.card .tag,
.card a.tag { cursor: pointer; }
/* Macht die ganze Kachel klickbar, sobald sie einen verlinkten Tag enthält (z. B. Programm-/Übersichtskacheln) */
.card a.tag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* Buttons in der verlinkten Abo-Kachel bleiben klickbar (liegen über der Kachel-Fläche) */
#abos button.book { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .card a.tag:hover { background: var(--accent); color: #1d1d1f; }
}
/* Touch-Feedback fürs Antippen auf Mobil: nur ein goldener Rahmen, sonst keine Veränderung.
   .is-pressed wird per JS gesetzt (siehe main.js) — verlässlicher als CSS :active,
   das auf reinen <div>-Kacheln in Safari/iOS oft gar nicht auslöst. */
@media (hover: none), (pointer: coarse) {
  .card { transition: border-color 0.1s ease; }
  .card.is-pressed,
  .card:active {
    border-color: var(--accent);
  }
}

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.list-clean li strong { color: var(--text); font-weight: 500; }
@media (max-width: 640px) {
  .list-clean li.price-li { flex-wrap: nowrap; align-items: baseline; gap: 12px; font-size: 14px; }
  .list-clean li.price-li .price-total { text-align: right; white-space: nowrap; }
}
@media (max-width: 400px) {
  .list-clean li.price-li { font-size: 13px; gap: 8px; }
}
a.book,
button.book { color: var(--accent); white-space: nowrap; background: none; border: none; padding: 0; font: inherit; cursor: pointer; }

.badge-full { color: #8b8b8f; font-size: 13px; }

.note {
  background: var(--bg-elev-2);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 18px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: #151517;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 14px; }
.footer-grid a, .footer-grid p { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--text); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12.5px;
  color: #7c7c80;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.page-hero {
  padding: 70px 0 20px;
}
.page-hero h1 { font-size: clamp(28px, 4.4vw, 42px); }

/* Page-Hero mit Foto-Hintergrund statt Video (Academy/Coaching) — echtes Element statt Pseudo,
   damit JS beim Scrollen einen sanften Parallax-Versatz aufbringen kann (angelehnt an chanel.com) */
.page-hero.photo-hero {
  position: relative;
  padding: 230px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.photo-hero-bg {
  position: absolute;
  top: -14%;
  left: -6%;
  right: -6%;
  bottom: -14%;
  z-index: -2;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: var(--hero-photo-pos, center);
  background-repeat: no-repeat;
  filter: saturate(0.85) contrast(0.96);
  will-change: transform;
}
.photo-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(29,29,31,0.5) 0%, rgba(29,29,31,0.4) 30%, rgba(29,29,31,0.78) 72%, rgba(29,29,31,1) 100%);
}
.page-hero.photo-hero .container { position: relative; }
@media (max-width: 760px) {
  .page-hero.photo-hero { padding: 170px 0 80px; }
}

/* Foto-Band — großes Bild als eigenständiges Zwischenstück zwischen zwei Text-Sektionen.
   Das Foto bleibt beim Scrollen fix im Hintergrund stehen (wie auf meandmygolf.com) und
   läuft oben/unten mit einem weichen Verlauf in die Seitenfarbe aus. */
.photo-band {
  position: relative;
  height: 38vh;
  min-height: 280px;
  max-height: 440px;
  overflow: hidden;
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: var(--hero-photo-pos, center);
  background-attachment: fixed;
  background-repeat: no-repeat;
  filter: saturate(0.9) contrast(0.97);
}
.photo-band-fade-top,
.photo-band-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 130px;
  pointer-events: none;
}
.photo-band-fade-top { top: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(29,29,31,0) 100%); }
.photo-band-fade-bottom { bottom: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(29,29,31,0) 100%); }

/* Modifier für Foto-Bänder, die direkt in den Footer übergehen (dunkler als --bg) —
   deutlich größerer, weicherer Verlauf, der exakt in der Footer-Farbe endet, damit
   kein sichtbarer Farbsprung zwischen Foto-Band und Footer entsteht. */
.photo-band-fade-bottom.footer-fade {
  height: 92%;
  background: linear-gradient(0deg,
    #151517 0%,
    rgba(21,21,23,0.92) 12%,
    rgba(21,21,23,0.78) 26%,
    rgba(21,21,23,0.6) 42%,
    rgba(21,21,23,0.42) 58%,
    rgba(21,21,23,0.25) 72%,
    rgba(21,21,23,0.1) 86%,
    rgba(21,21,23,0) 100%);
}

/* Modifier für Foto-Bänder, deren vorherige Sektion die helle "alt"-Hintergrundfarbe
   (--bg-elev) hat — ebenso großer, weicher Verlauf nach oben, exakt in dieser Farbe. */
.photo-band-fade-top.alt-fade {
  height: 92%;
  background: linear-gradient(180deg,
    #26262a 0%,
    rgba(38,38,42,0.92) 12%,
    rgba(38,38,42,0.78) 26%,
    rgba(38,38,42,0.6) 42%,
    rgba(38,38,42,0.42) 58%,
    rgba(38,38,42,0.25) 72%,
    rgba(38,38,42,0.1) 86%,
    rgba(38,38,42,0) 100%);
}

/* Modifier für Foto-Bänder, deren vorherige Sektion die normale Seitenfarbe (--bg)
   hat — gleicher großer, weicher Verlauf wie die anderen Modifier, nur in --bg. */
.photo-band-fade-top.bg-fade {
  height: 92%;
  background: linear-gradient(180deg,
    #1d1d1f 0%,
    rgba(29,29,31,0.92) 12%,
    rgba(29,29,31,0.78) 26%,
    rgba(29,29,31,0.6) 42%,
    rgba(29,29,31,0.42) 58%,
    rgba(29,29,31,0.25) 72%,
    rgba(29,29,31,0.1) 86%,
    rgba(29,29,31,0) 100%);
}

@media (max-width: 760px) {
  .photo-band { height: 30vh; min-height: 220px; }
  /* background-attachment:fixed ist auf iOS Safari unzuverlässig — dort normal mitscrollen lassen */
  .photo-band::before { background-attachment: scroll; }
}

.page-banner { margin: 0 0 20px; }
.page-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Newsletter-Anmeldeformular (Brevo), im Site-Design gehalten */
.sib-form-message-panel {
  display: none;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  text-align: left;
}
#error-message {
  background: rgba(255,73,73,0.1);
  border: 1px solid rgba(255,73,73,0.4);
  color: #ff8a8a;
}
#success-message {
  background: rgba(200,163,92,0.12);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
}
.sib-form-message-panel__text { display: flex; align-items: flex-start; gap: 10px; }
.sib-form-message-panel .sib-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; fill: currentColor; }
.newsletter-form-wrap {
  max-width: 480px;
  margin: 0 auto;
}
#sib-container.newsletter-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.newsletter-field { margin-bottom: 16px; }
.newsletter-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  text-align: left;
}
.newsletter-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.newsletter-input::placeholder { color: var(--text-dim); }
.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-dim);
}
.newsletter-input-error {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #ff8a8a;
  text-align: left;
}
.newsletter-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: left;
}
.newsletter-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}
.newsletter-consent {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: left;
}
.newsletter-consent a { color: var(--accent); text-decoration: underline; }
.newsletter-modal-title { font-size: 22px; font-weight: 600; color: var(--text); margin: 0; }

/* Kontakt-Formular (Web3Forms): Mehrzeiliges Nachrichtenfeld + Sende-Status */
textarea.newsletter-input { min-height: 120px; resize: vertical; font-family: inherit; }
select.newsletter-input { cursor: pointer; }
.form-result { margin-top: 12px; font-size: 13px; line-height: 1.5; text-align: left; min-height: 1em; }
.form-result-success { color: var(--accent); }
.form-result-error { color: #ff8a8a; }

/* Brevo-Formular: Lade-Icon im Absenden-Button (Brevos Skript erwartet ein SVG im Button) */
.newsletter-submit .sib-hide-loader-icon { display: none; width: 14px; height: 14px; fill: currentColor; margin-right: 8px; vertical-align: -2px; animation: sib-spin 1s linear infinite; }
@keyframes sib-spin { to { transform: rotate(360deg); } }

/* Brevo-Formular: Skript blendet Erfolgs-/Fehlermeldung ueber diese Klasse ein */
.sib-form-message-panel--active { display: block; }

/* Newsletter-Anmeldung (zentraler Endpunkt): Meldung oben im Formular, nach Erfolg nur Meldung und Rechtstext zeigen */
.newsletter-msg { display: none; margin: 0 auto 20px; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; line-height: 1.5; text-align: left; }
.newsletter-msg--ok { display: block; background: rgba(200,163,92,0.12); border: 1px solid var(--accent-dim); color: var(--accent); }
.newsletter-msg--err { display: block; background: rgba(255,73,73,0.1); border: 1px solid rgba(255,73,73,0.4); color: #ff8a8a; }
.newsletter-msg-row { display: flex; align-items: flex-start; gap: 10px; }
.newsletter-msg .sib-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; fill: currentColor; }
.newsletter-signup.is-done .newsletter-field, .newsletter-signup.is-done .newsletter-submit { display: none; }
form[data-inquiry-form].is-done .newsletter-field, form[data-inquiry-form].is-done .newsletter-submit, form[data-inquiry-form].is-done .newsletter-consent { display: none; }

/* FAQ (Häufige Fragen) */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-size: 17px; font-weight: 500; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 22px; font-weight: 300; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 20px; color: var(--text-dim); font-size: 15px; }
/* FAQ-Seite: aufklappbare Gruppen */
.faq-groups { border-top: 1px solid var(--border); }
.faq-group { border-bottom: 1px solid var(--border); }
.faq-group > summary { cursor: pointer; list-style: none; padding: 28px 44px 28px 0; position: relative; }
.faq-group > summary::-webkit-details-marker { display: none; }
.faq-group > summary h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); }
.faq-group > summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 28px; font-weight: 300; }
.faq-group[open] > summary::after { content: "–"; }
.faq-group .faq-list { margin-bottom: 20px; }

/* Dezenter Textlink (z. B. mehr Google-Bewertungen) */
.btn-quiet { display:inline-block; padding:8px 4px; font-size:14px; color:var(--text-dim); border:0; background:none; text-decoration:none; border-bottom:1px solid transparent; transition:color .2s, border-color .2s; }
.btn-quiet:hover, .btn-quiet.is-pressed { color:var(--text); border-bottom-color:var(--text-dim); }

/* Jahres-Überschriften (Golfreisen): gleiche Größe wie H1, zentriert */
.year-head { text-align: center; margin: 0 0 32px; }
.year-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

/* ===== Posch-Golf-Code: Struktur-Darstellung (Startseite = Kacheln, Code-Seite = Baum + Ablauf) ===== */
.code-ic { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Startseite: sechs Icon-Kacheln */
.code-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 880px; margin: 36px auto 0; padding: 0; list-style: none; }
.code-tiles li { flex: 0 0 calc((100% - 48px) / 4); background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 12px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.code-tiles .code-ic { width: 30px; height: 30px; }
.code-tiles span { font-size: 15px; font-weight: 500; line-height: 1.35; }
.code-tiles small { display: block; font-size: 12.5px; color: var(--text-dim); font-weight: 400; margin-top: 3px; letter-spacing: 0; }
@media (max-width: 860px) { .code-tiles li { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 640px) { .code-tiles { gap: 12px; } .code-tiles li { flex-basis: calc((100% - 12px) / 2); padding: 20px 8px 16px; } }

/* Code-Seite: Baum */
.code-root { display: flex; justify-content: center; margin: 0 0 8px; }
.code-root span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--accent-dim); color: var(--accent); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.code-tree { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; position: relative; }
.code-tree > li { position: relative; display: grid; grid-template-columns: 44px 210px 1fr; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.code-tree .code-ic { width: 28px; height: 28px; }
.code-tree h3 { margin: 0; font-size: 17px; font-weight: 600; }
.code-tree .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.code-tree .chips li { flex: 1 1 0; min-width: 118px; text-align: center; font-size: 13.5px; line-height: 1.35; color: var(--accent); background: transparent; border: 1px solid var(--accent-dim); border-radius: 999px; padding: 12px 10px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 700px) {
  .code-tree > li { grid-template-columns: auto auto; justify-content: center; gap: 20px 12px; padding: 20px 16px; }
  .code-tree .branch-txt { text-align: center; }
  .code-tree .chips { grid-column: 1 / -1; }
  .code-tree .chips li { flex: 1 1 calc(50% - 10px); }
}

/* Code-Seite: Ablauf (jedes Kapitel in 5 Bausteinen) */
.code-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 880px; margin: 0 auto 16px; padding: 0; list-style: none; }
.code-flow li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 8px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14.5px; }
.code-flow .code-ic { width: 26px; height: 26px; }
.code-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 880px; margin: 0 auto 20px; padding: 0; list-style: none; }
.code-steps li { text-align: center; font-size: 13.5px; line-height: 1.35; color: var(--accent); border: 1px solid var(--accent-dim); border-radius: 999px; padding: 12px 10px; display: flex; align-items: center; justify-content: center; }
.code-example { max-width: 620px; margin: 0 auto; text-align: center; font-size: 15px; color: var(--text-dim); border: 1px dashed var(--accent-dim); border-radius: var(--radius); padding: 14px 18px; }
.code-example strong { color: var(--text); font-weight: 600; }
@media (max-width: 700px) {
  .code-aufbau { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; max-width: 440px; margin: 44px auto 28px; }
  .code-flow, .code-steps { grid-template-columns: 1fr; margin: 0; gap: 18px; }
  .code-flow li { padding: 24px 8px; }
}
.code-tree .branch-txt p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-dim); }

/* Pillen im Code-Baum mit dünnen Linien verbunden */
.code-tree .chips { gap: 22px; }
.code-tree .chips li { position: relative; }
.code-tree .chips li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 22px; border-top: 1px solid var(--accent-dim); }
@media (max-width: 700px) {
  .code-tree .code-ic { stroke: var(--text); }
  .code-tree .chips { flex-direction: column; align-items: center; gap: 18px; }
  .code-tree .chips li, .code-tree .chips li:nth-child(n) { flex: none; width: 100%; max-width: 280px; }
  .code-tree .chips li + li::before { right: auto; left: 50%; top: auto; bottom: 100%; width: 0; height: 18px; border-top: 0; border-left: 1px solid var(--accent-dim); }
}

/* Mobil: überall, wo vier Pillen stehen, als 2 x 2 (links/rechts, darunter links/rechts) */
@media (max-width: 700px) {
  .code-tree .chips:has(> li:nth-child(4)) { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
  .code-tree .chips:has(> li:nth-child(4)) li,
  .code-tree .chips:has(> li:nth-child(4)) li:nth-child(n) { max-width: none; width: auto; padding: 12px 6px; }
  .code-tree .chips:has(> li:nth-child(4)) li + li::before { content: none; }
  .code-tree .chips:has(> li:nth-child(4)) li:nth-child(even)::before { content: ""; position: absolute; right: 100%; left: auto; top: 50%; bottom: auto; width: 18px; height: 0; border-left: 0; border-top: 1px solid var(--accent-dim); }
  .code-tree .chips:has(> li:nth-child(4)) li:nth-child(n+3)::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 0; height: 18px; border-left: 1px solid var(--accent-dim); }
}

/* Mobil: kleinere Pillen, Dreier-Reihen in einer Zeile, Icon immer direkt links neben dem Titel */
@media (max-width: 700px) {
  .code-tree .chips li { font-size: 12.5px; }
  .code-tree .branch-txt h3 { white-space: nowrap; font-size: 16px; }
  .code-tree > li > .code-ic { justify-self: end; align-self: center; flex: none; }
  .code-tree > li > .branch-txt { justify-self: start; align-self: center; }
  .code-tree .chips:has(> li:nth-child(3):last-child) { display: flex; flex-direction: row; align-items: stretch; gap: 14px; width: 100%; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li,
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(n) { flex: 1 1 0; width: auto; max-width: none; min-width: 0; padding: 10px 4px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li + li::before { right: 100%; left: auto; top: 50%; bottom: auto; width: 14px; height: 0; border-left: 0; border-top: 1px solid var(--accent-dim); }
}

/* Mobil: alle Pillen im Code-Baum mit identischer Schrift und Höhe */
@media (max-width: 700px) {
  .code-tree .chips li,
  .code-tree .chips:has(> li:nth-child(4)) li:nth-child(n),
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(n) { font-size: 12px; min-height: 42px; padding: 8px 6px; line-height: 1.3; }
}

/* Mobil: Dreier-Reihen in EINER Zeile über die volle Breite, Pillen gleiche Höhe und Schrift wie überall */
@media (max-width: 700px) {
  .code-tree .chips:has(> li:nth-child(3):last-child) { display: flex; flex-direction: row; align-items: stretch; gap: 14px; width: 100%; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(n) { flex: 1 1 0; width: auto; max-width: none; min-width: 0; justify-self: auto; grid-column: auto; padding: 8px 4px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(2)::before,
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(3)::before { right: 100%; left: auto; top: 50%; bottom: auto; width: 14px; height: 0; border-left: 0; border-top: 1px solid var(--accent-dim); }
}
.code-tree .chips li.nw { white-space: nowrap; }

/* Mobil: einheitliche Pillengröße (Mindestbreite 98 px, wächst nur bei langen Wörtern); Dreier- und Vierer-Reihen mittig */
@media (max-width: 700px) {
  .code-tree .chips:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(98px, max-content)); justify-content: center; width: 100%; }
  .code-tree .chips:has(> li:nth-child(4)) li:nth-child(n) { padding: 8px 10px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) { justify-content: center; gap: 12px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(n) { flex: 0 1 auto; min-width: 98px; padding: 8px 10px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(2)::before,
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(3)::before { width: 12px; }
}

/* Mobil: Dreier-Reihen dürfen nie umbrechen, auch auf schmalen Handys (360 px): Pillen schrumpfen gleichmäßig, einheitliche Schrift 11,5 px */
@media (max-width: 700px) {
  .code-tree .chips li,
  .code-tree .chips:has(> li:nth-child(4)) li:nth-child(n),
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(n) { font-size: 11.5px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) { flex-wrap: nowrap; gap: 8px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(n) { flex: 1 1 0; min-width: 0; padding: 8px 3px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(2)::before,
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(3)::before { width: 8px; }
}

/* Mobil: alle Pillen-Reihen reichen gleich weit (gleicher Abstand links/rechts zum Kachel-Rand) */
@media (max-width: 700px) {
  .code-tree .chips { width: 100%; justify-content: stretch; }
  .code-tree .chips:has(> li:nth-child(4)) { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .code-tree .chips:has(> li:nth-child(3):last-child) { justify-content: stretch; }
}

/* Mobil: Zeile = Flex statt Grid, damit die Pillen-Reihe IMMER die volle Kachelbreite hat (vorher richtete sich die Breite nach dem Titel) */
@media (max-width: 700px) {
  .code-tree > li { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 12px; }
  .code-tree .chips { flex: 0 0 100%; width: 100%; max-width: 100%; }
}

/* Mobil: mehr Luft zwischen Überschrift "Sieben Bausteine bilden den Code" und den Kacheln */
@media (max-width: 700px) {
  #struktur .code-tree { margin-top: 36px; }
}

/* Desktop: mehr Luft unter den Überschriften "Sieben Bausteine bilden den Code" und "Jedes Thema folgt demselben Ablauf" */
@media (min-width: 701px) {
  #struktur h2 { margin-bottom: 44px; }
}

/* Desktop: Struktur in zwei Spalten, jede Kachel wie auf dem Handy (Titel mit Icon mittig, Pillen darunter) */
@media (min-width: 701px) {
  .code-tree { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; }
  .code-tree > li { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; align-content: center; gap: 22px 14px; padding: 26px 24px; margin: 0; }
  /* Nur Desktop: Reihenfolge Hauptsäulen, Phasen, Grundbewegungen, Grundschlagarten, Prinzipien (allein, mittig); Handy behält die HTML-Reihenfolge */
  .code-tree > li:nth-child(5) { order: 3; }
  .code-tree > li:nth-child(4) { order: 4; }
  .code-tree > li:nth-child(3) { order: 5; grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
  .code-tree .code-ic { stroke: var(--text); }
  .code-tree .branch-txt { text-align: center; }
  .code-tree .chips { flex: 0 0 100%; width: 100%; max-width: 100%; }
  .code-tree .chips li { min-height: 46px; padding: 10px 8px; font-size: 13.5px; }
  .code-tree .chips li + li::before { content: none; }
  /* Vier Pillen: 2x2 mit dünnen Linien */
  .code-tree .chips:has(> li:nth-child(4)) { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .code-tree .chips:has(> li:nth-child(4)) li:nth-child(even)::before { content: ""; position: absolute; right: 100%; top: 50%; width: 20px; border-top: 1px solid var(--accent-dim); }
  .code-tree .chips:has(> li:nth-child(4)) li:nth-child(n+3)::after { content: ""; position: absolute; left: 50%; bottom: 100%; height: 20px; border-left: 1px solid var(--accent-dim); }
  /* Drei Pillen: eine Reihe */
  .code-tree .chips:has(> li:nth-child(3):last-child) { display: flex; flex-wrap: nowrap; gap: 16px; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li { flex: 1 1 0; min-width: 0; }
  .code-tree .chips:has(> li:nth-child(3):last-child) li:nth-child(n+2)::before { content: ""; position: absolute; right: 100%; top: 50%; width: 16px; border-top: 1px solid var(--accent-dim); }
}

/* Der Kern: nur noch drei Kacheln (Verstehen, Kontrollieren, Anwenden) */
#kern h2 { margin-bottom: 44px; }
#kern .code-flow { margin: 0 auto; gap: 16px; }
#kern .code-flow li { padding: 26px 12px 24px; font-size: 16px; gap: 12px; }
#kern .code-flow .code-ic { width: 30px; height: 30px; }
@media (max-width: 700px) {
  #kern h2 { margin-bottom: 0; }
  #kern .code-aufbau { display: block; max-width: none; margin: 40px auto 8px; }
  #kern .code-flow { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  #kern .code-flow li { padding: 20px 4px 18px; font-size: 13px; gap: 8px; }
  #kern .code-flow .code-ic { width: 24px; height: 24px; }
}

/* Hintergründe getauscht: Die Logik dunkel (Kacheln grau), Die Struktur grau (Kacheln dunkel) */
#kern .code-flow li { background: var(--bg-elev); }
#struktur .code-tree > li { background: var(--bg); }

/* Methode: Drei Bausteine und Vier Dimensionen, Kacheln mit dünnen Linien verbunden */
#kern .code-flow li { position: relative; }
#kern .code-flow { gap: 30px; }
#kern .code-flow li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 30px; border-top: 1px solid var(--accent-dim); }
#kern .code-flow-4 { grid-template-columns: repeat(4, 1fr); }
#kern .code-sub { margin: 64px 0 44px; }
@media (max-width: 700px) {
  #kern .code-sub { margin: 48px 0 0; }
  #kern .code-flow { gap: 14px; }
  #kern .code-flow li + li::before { width: 14px; }
  #kern .code-flow-4 { grid-template-columns: 1fr 1fr; gap: 18px; }
  #kern .code-flow-4 li { padding: 20px 4px 18px; }
  #kern .code-flow-4 li + li::before { content: none; }
  #kern .code-flow-4 li:nth-child(even)::before { content: ""; position: absolute; right: 100%; left: auto; top: 50%; width: 18px; border-top: 1px solid var(--accent-dim); }
  #kern .code-flow-4 li:nth-child(n+3)::after { content: ""; position: absolute; left: 50%; bottom: 100%; height: 18px; border-left: 1px solid var(--accent-dim); }
}

/* Methode näher an den Seitenkopf: Desktop 60 px, Handy 60 px */
#kern { padding-top: 60px; }
@media (max-width: 700px) {
  #kern { padding-top: 60px; }
}

/* Aufnahme (Programme): drei Kacheln, auch mobil nebeneinander */
#aufnahme .container { max-width: 760px; }
.aufnahme-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px auto 0; padding: 0; list-style: none; }
.aufnahme-tiles li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 14px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.aufnahme-tiles li { position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
/* Gleiches Hover- und Tap-Verhalten wie die Kacheln (.card) */
@media (hover: hover) and (pointer: fine) {
  .aufnahme-tiles li:hover { transform: translateY(-6px); border-color: var(--accent-dim); box-shadow: 0 16px 32px rgba(0,0,0,0.35); }
}
@media (hover: none), (pointer: coarse) {
  .aufnahme-tiles li { transition: border-color 0.1s ease; }
  .aufnahme-tiles li.is-pressed, .aufnahme-tiles li:active { border-color: var(--accent); }
}
.aufnahme-tiles .code-ic { width: 30px; height: 30px; }
.aufnahme-tiles strong { font-size: 15px; font-weight: 500; line-height: 1.35; }
.aufnahme-tiles p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.aufnahme-note { margin: 24px 0 0; font-size: 14px; color: var(--text-dim); }
@media (max-width: 640px) {
  .aufnahme-tiles { gap: 10px; }
  .aufnahme-tiles li { padding: 18px 8px 16px; gap: 8px; }
  .aufnahme-tiles .code-ic { width: 24px; height: 24px; }
  .aufnahme-tiles strong { font-size: 13.5px; }
  .aufnahme-tiles p { font-size: 12px; }
}

/* Karten zentriert (Coaching: Entwicklung braucht Zeit) */
.cards-center .card { text-align: center; }
.cards-center .card > .code-ic { display: block; width: 30px; height: 30px; margin: 0 auto 14px; }

/* Zeilenumbruch nur mobil */
.br-mobile { display: none; }
@media (max-width: 760px) { .br-mobile { display: inline; } }

/* Scroll-Reveal: leises Einblenden und Heben beim ersten Erscheinen (Klassen setzt main.js) */
.reveal.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
.reveal.reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal { opacity: 1; transform: none; transition: none; }
}

/* Plattform-Seite: Funktions-Kacheln und Weg */
.feature-card .code-ic { display: block; width: 30px; height: 30px; margin: 0 auto 16px; }
.feature-card h3 { margin-bottom: 8px; }
.weg-tree p { margin: 0; color: var(--text-dim); font-size: 15px; }
@media (max-width: 860px) {
  .weg-tree > li > p { grid-column: 1 / -1; text-align: center; }
}
