/* ==========================================================================
   Ursula Beier – style.css
   Stilrichtung: „Warm Earthy Editorial"
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --bg: #f7f2ea;            /* warmes Creme */
  --bg-deep: #efe6d8;       /* tiefer Sand (Alternativ-Flächen) */
  --surface: #fcfaf5;       /* Karten */
  --ink: #2b2320;           /* Fließtext (weiches Schwarzbraun) */
  --ink-soft: #5d5147;      /* zweiter Textpegel */
  --ink-faint: #8c7d6f;     /* Captions, Metadaten */
  --line: #e3d8c8;          /* Haarlinien */
  --line-strong: #d2c3ad;   /* stärkere Trenner */
  --accent: #8a3b2c;        /* Terrakotta (Links, Headings) */
  --accent-deep: #6c2c1f;   /* Hover */
  --accent-tint: #f1e3da;   /* getönter Flächen-Akzent */
  --green: #1e3a2c;         /* tiefes Grün (Footer) */
  --green-deep: #162c21;
  --cream: #f5eee2;         /* Text auf Dunkelgrün */
  --gold: #c48a3f;          /* Safran-Akzent */

  /* Typografie */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Tangerine", "Snell Roundhand", "Brush Script MT", cursive;

  /* Layout */
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --measure: 68ch;

  /* Form */
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 44px rgba(43, 35, 32, 0.09);
  --header-h: 5.5rem;
}

/* --------------------------------------------------------------------------
   02. Base / Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dezente grüne Textur als Seitenhintergrund (Referenz an das Original) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/ub-bg-gruen.jpg") center / cover no-repeat;
  opacity: 0.28;
}

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

img {
  height: auto;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--cream);
}

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

/* --------------------------------------------------------------------------
   03. Typografie
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.005em;
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  max-width: var(--measure);
}

p + p {
  margin-top: 1.1em;
}

strong {
  font-weight: 600;
}

/* Sektions-Header */
.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Kicker / Eyebrow */
.overline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Skript-Akzent (Tangerine) */
.script {
  font-family: var(--font-script);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   04. Layout-Grundgerüst
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--tight {
  padding-block: calc(var(--section-pad) * 0.55);
}

/* Zentrierte Textspalte für lange Fließtexte */
.prose {
  max-width: 46rem;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.prose a:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}

/* Signatur (Tangerine) am Ende eines Textes */
.prose-signature {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   05. Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--accent);
  color: var(--cream);
}

.btn--solid:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn--light {
  border-color: rgba(245, 238, 226, 0.55);
  color: var(--cream);
}

.btn--light:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green-deep);
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* Text-Link mit Pfeil */
.arrow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 0.2rem;
}

.arrow-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left;
  opacity: 0.45;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.arrow-link:hover {
  color: var(--accent-deep);
}

.arrow-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.arrow-link__arrow {
  transition: transform 0.3s ease;
}

.arrow-link:hover .arrow-link__arrow {
  transform: translateX(5px);
}

.arrow-link--light {
  color: var(--cream);
}

.arrow-link--light:hover {
  color: #fff;
}

/* Externer Link: dezenten Hinweis */
.ext::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.3em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   06. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 242, 234, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(43, 35, 32, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand img {
  height: 2.55rem;
  width: auto;
}

/* Desktop-Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.4rem);
}

.nav__link {
  position: relative;
  padding-block: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--accent);
}

/* Tablet: Navigation muss auf einer Zeile bleiben */
@media (min-width: 48em) and (max-width: 60em) {
  .header__inner {
    gap: 1rem;
  }

  .brand img {
    height: 1.9rem;
  }

  .nav {
    gap: clamp(0.85rem, 1.6vw, 1.15rem);
  }

  .nav__link {
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

/* Burger (mobil) */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 70;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.nav-toggle__bar:nth-child(1) {
  transform: translateY(-5px);
}

.nav-toggle__bar:nth-child(2) {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: rotate(-45deg);
}

@media (max-width: 47.99em) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Logo bleibt über dem offenen Menü sichtbar */
  .brand {
    position: relative;
    z-index: 75;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 65;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.25rem;
    background-color: var(--bg);
    padding: calc(var(--header-h) + 1.75rem) var(--gutter) 3rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-102%);
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.45s;
    visibility: hidden;
  }

  /* Textur, exakt wie der Seitenhintergrund */
  .nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../img/ub-bg-gruen.jpg") center / cover no-repeat;
    opacity: 0.28;
    pointer-events: none;
  }

  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav__link {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link[aria-current="page"],
  .nav__link:hover {
    color: var(--accent);
  }

  /* Geöffnet: Header wird fixiert (nicht nur sticky) – damit Logo + X-Button
     bei JEDER Scroll-Position an der Viewport-Kante bleiben. Ein sticky
     Header verliert unter Scroll-Lock seinen Fixpunkt und scrollt mit weg
     (genau dann, wenn das Menü geöffnet ist). */
  body.nav-locked .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  /* Scroll-Lock (iOS-sicher): Das <body> wird fixiert; JS setzt top auf
     -scrollY und stellt beides beim Schließen wieder her. Bewusst KEIN
     overflow:hidden auf html/body – das bricht sticky-Header (Chrome) und
     verschiebt fixed-Elemente (iOS). */
  body.nav-locked {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   07. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 74rem);
  color: var(--cream);
  isolation: isolate;
}

.hero--small {
  min-height: clamp(30rem, 55vw, 40rem);
}

/* Auf hellen Himmelszonen: Overline in Creme statt Gold */
.hero--small .hero__overline {
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--green-deep);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 18, 13, 0.8) 0%, rgba(20, 18, 13, 0.3) 40%, rgba(20, 18, 13, 0.06) 66%, rgba(20, 18, 13, 0.3) 100%),
    linear-gradient(to bottom, rgba(20, 18, 13, 0.38), transparent 28%);
}

/* Volle Breite: weiches Scrim-Band hinter dem Hero-Text (Lesbarkeit) */
.hero__content {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(3rem, 9vw, 5.5rem) var(--gutter) clamp(2.5rem, 7vw, 5rem);
  background: linear-gradient(to top,
    rgba(13, 12, 10, 0.9) 0%,
    rgba(13, 12, 10, 0.62) 40%,
    rgba(13, 12, 10, 0.28) 70%,
    transparent 100%);
}

.hero__overline {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__title {
  color: #fffdf9;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__lead {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: rgba(245, 238, 226, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 33.99em) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   08. Topic-Karten (Startseite)
   -------------------------------------------------------------------------- */
.topics {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem);
}

@media (min-width: 48em) {
  .topics {
    grid-template-columns: repeat(12, 1fr);
  }

  .topic--a {
    grid-column: span 5;
  }

  .topic--b {
    grid-column: span 7;
  }

  .topic--c {
    grid-column: span 7;
  }

  .topic--d {
    grid-column: span 5;
  }
}

.topic {
  display: flex;
  flex-direction: column;
}

.topic__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
}

.topic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.19, 0.6, 0.22, 1);
}

.topic:hover .topic__media img {
  transform: scale(1.045);
}

.topic__body {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 1.4rem;
}

.topic__title {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.topic:hover .topic__title {
  color: var(--accent-deep);
}

.topic__kicker {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.topic__body p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.topic__body p + p {
  margin-top: 0.9em;
}

.topic__cta {
  margin-top: 1.4rem;
}

/* Termine-Tabelle in der Seminar-Karte */
.termin-list {
  margin: 1rem 0 1.25rem;
  border-top: 1px solid var(--line);
}

.termin-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Inline-Quote in Karten */
.quote-inline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent-deep);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin: 1.1rem 0;
  max-width: none;
}

/* --------------------------------------------------------------------------
   09. Quote-Band (Blumen-Hintergrund)
   -------------------------------------------------------------------------- */
.quoteband {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}

.quoteband__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green-deep) url("../img/home/blumen-hintergrund.jpg") center / cover no-repeat;
}

@media (hover: hover) and (min-width: 48em) {
  .quoteband__bg {
    background-attachment: fixed;
  }
}

/* Abdunkelung wie bei Hero/Carousel: Gradient, unten stärker –
   dort liegt der Press-Block, dessen Text volle Lesbarkeit braucht */
.quoteband__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(15, 20, 16, 0.58) 0%,
    rgba(15, 20, 16, 0.68) 42%,
    rgba(9, 13, 10, 0.88) 100%);
}

.quoteband__inner {
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}

.quoteband__script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.quoteband__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.3;
  color: #fffdf9;
  text-wrap: balance;
}

.quoteband__sub {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(245, 238, 226, 0.88);
}

/* --------------------------------------------------------------------------
   10. Video-Sektion
   -------------------------------------------------------------------------- */
.videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 42em) {
  .videos {
    grid-template-columns: 1fr 1fr;
  }
}

.video-card {
  display: block;
  color: inherit;
}

.video-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
}

.video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.19, 0.6, 0.22, 1);
}

.video-card:hover .video-card__media img {
  transform: scale(1.04);
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-card__play span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(247, 242, 234, 0.92);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.video-card:hover .video-card__play span {
  transform: scale(1.12);
  background: var(--accent);
  color: var(--cream);
}

.video-card__title {
  margin-top: 1.1rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.video-card:hover .video-card__title {
  color: var(--accent-deep);
}

.video-card__hint {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   11. Pressecitation (Deutschlandfunk) – liegt im dunklen Band-Teil,
   daher helle Textpegel (wie im Carousel)
   -------------------------------------------------------------------------- */
.press {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid rgba(245, 238, 226, 0.25);
  border-bottom: 1px solid rgba(245, 238, 226, 0.25);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 48em) {
  .press {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

.press__label {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold);
}

.press__title {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 14ch;
  color: #fffdf9;
}

.press__text {
  color: rgba(245, 238, 226, 0.9);
}

.press__source {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(245, 238, 226, 0.62);
}

.press__source strong {
  color: rgba(245, 238, 226, 0.92);
}

/* --------------------------------------------------------------------------
   12. Kapitel-Navigation (Mein Leben und Wirken)
   -------------------------------------------------------------------------- */
.chapter-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 48em) {
  .chapter-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chapter-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.chapter-nav a:hover {
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.chapter-nav a img {
  width: 58px;
  height: 58px;
  flex: none;
  object-fit: cover;
  border-radius: 9px;
}

.chapter-nav a .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-faint);
  margin-right: 0.1rem;
}

/* --------------------------------------------------------------------------
   13. Kapitel / lange Textblöcke
   -------------------------------------------------------------------------- */
.chapter {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.chapter:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.chapter__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  aspect-ratio: 21 / 9;
  background: var(--bg-deep);
}

.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter__head {
  margin-bottom: 1.75rem;
}

.chapter .prose {
  font-size: 1.0625rem;
}

.chapter .prose strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   14. Carousel (sub-page hero)
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  overflow: hidden;
  min-height: clamp(28rem, 52vw, 38rem);
  color: var(--cream);
  isolation: isolate;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
  background: var(--green-deep);
}

.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 18, 13, 0.8) 0%, rgba(20, 18, 13, 0.24) 45%, rgba(20, 18, 13, 0.32) 100%);
}

/* Volle Breite: weiches Scrim-Band hinter dem Carousel-Text (Lesbarkeit) */
.carousel__content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  max-width: none;
  margin-inline: 0;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(2.25rem, 5vw, 3.5rem);
  background: linear-gradient(to top,
    rgba(13, 12, 10, 0.88) 0%,
    rgba(13, 12, 10, 0.6) 40%,
    rgba(13, 12, 10, 0.26) 70%,
    transparent 100%);
}

.carousel__overline {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.carousel__title {
  color: #fffdf9;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  max-width: 22ch;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.3);
}

.carousel__subtitle {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  color: rgba(245, 238, 226, 0.88);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.carousel__link {
  margin-top: 1.5rem;
  display: inline-flex;
}

/* Steuerung */
.carousel__controls {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.25rem, 3vw, 2rem);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 238, 226, 0.45);
  color: var(--cream);
  background: rgba(22, 20, 15, 0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.carousel__btn:hover {
  background: rgba(245, 238, 226, 0.18);
  border-color: rgba(245, 238, 226, 0.8);
}

.carousel__dots {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.4rem, 3vw, 2.1rem);
  z-index: 3;
  display: flex;
  gap: 0.55rem;
}

.carousel__dot {
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: rgba(245, 238, 226, 0.4);
  transition: background-color 0.3s ease, width 0.3s ease;
}

.carousel__dot.is-active {
  background: var(--gold);
  width: 40px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
}

/* --------------------------------------------------------------------------
   15. Seminare: Begegnungen (3er-Spalte)
   -------------------------------------------------------------------------- */
.meetings {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 48em) {
  .meetings {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.meeting {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.meeting__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
}

.meeting__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meeting__body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meeting__quote {
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  line-height: 1.18;
  color: var(--accent);
  flex: 1;
}

.meeting__dates {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 0;
}

.meeting__dates h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  max-width: none;
}

.dates-list {
  border-top: 1px solid var(--line);
}

.dates-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.dates-list .day {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.dates-list .until {
  color: var(--ink-faint);
  padding-right: 0.5rem;
}

.meeting__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.meeting__actions .btn {
  justify-content: center;
  font-size: 0.88rem;
  padding: 0.75rem 1.4rem;
}

/* --------------------------------------------------------------------------
   16. Meditationen (Audio)
   -------------------------------------------------------------------------- */
.meditations__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.meditations__head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.meditations__head p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.meditations {
  border-top: 1px solid var(--line);
}

.meditation {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 42em) {
  .meditation {
    grid-template-columns: 3.5rem 14rem 1fr;
  }
}

.meditation__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--line-strong);
  padding-top: 0.1rem;
}

.meditation__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
  grid-column: 2;
}

@media (min-width: 42em) {
  .meditation__title {
    grid-column: auto;
    padding-top: 0.15rem;
  }
}

.meditation audio {
  width: 100%;
  margin-top: 0.4rem;
  grid-column: 2;
}

@media (min-width: 42em) {
  .meditation audio {
    grid-column: auto;
    margin-top: 0;
    align-self: center;
    max-width: 40rem;
    width: 100%;
  }
}

@media (max-width: 41.99em) {
  .meditation__title {
    padding-top: 0.1rem;
  }
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--green);
  color: rgba(245, 238, 226, 0.82);
  margin-top: var(--section-pad);
}

.footer a {
  color: var(--cream);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

@media (min-width: 48em) {
  .footer__grid {
    grid-template-columns: 4fr 4fr 4fr;
    gap: 3rem;
  }
}

.footer__brand img {
  height: 2.4rem;
  width: auto;
  filter: brightness(0) invert(0.93) sepia(0.22) saturate(0.7) hue-rotate(-15deg);
  opacity: 0.95;
}

.footer__tagline {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 30ch;
  color: rgba(245, 238, 226, 0.7);
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 238, 226, 0.55);
  margin-bottom: 1.1rem;
}

.footer__contact {
  font-size: 0.98rem;
  line-height: 1.8;
}

.footer__contact a {
  color: var(--cream);
}

.footer__contact .name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream);
  display: block;
  margin-bottom: 0.5rem;
}

.footer__list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.98rem;
}

.footer__ext {
  color: rgba(245, 238, 226, 0.6);
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

.footer__meta {
  border-top: 1px solid rgba(245, 238, 226, 0.14);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(245, 238, 226, 0.55);
}

.footer__meta a {
  color: rgba(245, 238, 226, 0.7);
}

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */
.error {
  min-height: 70svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 5rem;
}

.error__script {
  font-family: var(--font-script);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.9;
  color: var(--accent);
}

.error h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 1rem;
}

.error p {
  margin: 1rem auto 2rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   19. Nach-oben-Button
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.3s ease, color 0.3s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--accent);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   20. Reveal-Animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 0.6, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .topic__media img,
  .video-card__media img,
  .video-card__play span,
  .btn {
    transition: none;
  }
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 8px 8px;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--cream);
}

.text-center {
  text-align: center;
}
