/* ==========================================================================
   CLEAN SHEETS – Design-System
   Schwarz-weiß, viel Weißraum, große Typografie.
   Alles selbst gehostet: keine externen Schriften, keine Fremd-Bibliotheken.
   ========================================================================== */

/* ------------------------------------------------------------- Tokens ---- */

:root {
  color-scheme: light dark;

  /* Flächen und Text */
  --bg:        #ffffff;
  --bg-alt:    #f5f5f7;
  --bg-sunken: #fafafa;
  --ink:       #1d1d1f;
  --ink-strong:#000000;
  --muted:     #6e6e73;
  --line:      #d2d2d7;
  --line-soft: #e8e8ed;

  /* Umgekehrte Sektionen (schwarzer Grund) */
  --invert-bg:    #000000;
  --invert-ink:   #f5f5f7;
  --invert-muted: #a1a1a6;
  --invert-line:  #333336;

  /* Akzent des KIDS-Bereichs, aus dem Logo abgeleitet */
  --kids-1: #d92fbc;
  --kids-2: #a563d8;
  --kids-3: #6fbde8;
  --kids-gradient: linear-gradient(96deg, var(--kids-1) 0%, var(--kids-2) 48%, var(--kids-3) 100%);

  /* Schrift: Systemstack – erzeugt den Apple-Look nativ und lädt nichts nach */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-hero:  clamp(2.75rem, 1.1rem + 6.4vw, 5rem);
  --fs-h1:    clamp(2.25rem, 1.3rem + 3.8vw, 3.5rem);
  --fs-h2:    clamp(1.85rem, 1.15rem + 2.7vw, 2.9rem);
  --fs-h3:    clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  --fs-lead:  clamp(1.125rem, 1rem + 0.55vw, 1.45rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.875rem;

  /* Maße */
  --wrap:      1120px;
  --wrap-text: 720px;
  --gutter:    22px;
  --nav-h:     74px;
  --radius:    18px;
  --radius-lg: 26px;
  --section-y: clamp(72px, 9vw, 132px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 12px 34px rgba(0, 0, 0, .06);

  --logo-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #000000;
    --bg-alt:    #131316;
    --bg-sunken: #0a0a0b;
    --ink:       #f5f5f7;
    --ink-strong:#ffffff;
    --muted:     #a1a1a6;
    --line:      #38383c;
    --line-soft: #29292d;

    --invert-bg:    #f5f5f7;
    --invert-ink:   #1d1d1f;
    --invert-muted: #6e6e73;
    --invert-line:  #d2d2d7;

    --shadow: 0 2px 8px rgba(0, 0, 0, .5), 0 12px 34px rgba(0, 0, 0, .45);
    --logo-ink: #000000;
  }
}

/* -------------------------------------------------------------- Reset ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.028em; line-height: 1.06; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200; padding: 10px 18px; border-radius: 980px;
  background: var(--ink); color: var(--bg); font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); text-decoration: none; }

/* ------------------------------------------------------------ Layout ----- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--text { max-width: var(--wrap-text); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-alt); }
.section--invert { background: var(--invert-bg); color: var(--invert-ink); }
.section--invert .lead,
.section--invert .eyebrow { color: var(--invert-muted); }
.section--invert .hr { background: var(--invert-line); }

.stack > * + * { margin-top: 18px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------------------------------------------------- Typografie --- */

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.display { font-size: var(--fs-hero); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.14; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.35;
  letter-spacing: -0.016em;
  color: var(--muted);
  max-width: 34ch;
}
.lead--wide { max-width: 52ch; }

.prose { max-width: var(--wrap-text); font-size: 1.125rem; line-height: 1.6; }
.prose h2 { font-size: var(--fs-h3); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Großes Bild oder Video oberhalb eines Beitrags */
.media {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: #000;
}

/* Hinweis auf einer Kachel, dass der Beitrag ein Video enthält */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.play-badge::before {
  content: "";
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Autorenzeile unter der Überschrift eines Beitrags */
.byline {
  margin-top: clamp(20px, 3vw, 30px);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
}

.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }

/* ------------------------------------------------------------ Buttons ---- */

.btn {
  --btn-bg: var(--ink-strong);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 980px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), opacity .2s ease, background-color .2s ease;
}
.btn:hover { text-decoration: none; opacity: .85; }
.btn:active { transform: scale(.97); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); opacity: 1; }

.btn--small { padding: 9px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

.section--invert .btn { --btn-bg: var(--invert-ink); --btn-fg: var(--invert-bg); }
.section--invert .btn--ghost { --btn-bg: transparent; --btn-fg: var(--invert-ink); border-color: var(--invert-line); }

/* Textlink mit Pfeil, wie bei Apple */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1.0625rem;
  font-weight: 500;
}
.arrow-link::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .25s var(--ease);
}
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: rotate(-45deg) translate(2px, 2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

/* ------------------------------------------------------------ Navigation - */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__brand:hover { text-decoration: none; }
/* In der Kopfzeile steht das Logo ganz rechts, mit etwas Luft zum Button. */
.nav .nav__brand { margin-left: 16px; }
/* Bildzeichen in der Kopfzeile: die Bilddatei ist querformatig, die
   gezeichnete Ersatzgrafik quadratisch – deshalb zwei Größenangaben. */
.logo-mark { height: 26px; width: auto; flex: none; }
.logo-mark--drawn { width: 30px; height: 30px; border-radius: 7px; color: var(--ink-strong); }
.nav__brand picture, .admin-bar__brand picture { display: flex; flex: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  /* schiebt alles Folgende – Instagram, Button, Logo – an den rechten Rand */
  margin-right: auto;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 400;
  color: var(--ink);
  opacity: .82;
  transition: opacity .2s ease;
}
.nav__link:hover { opacity: 1; text-decoration: none; }
.nav__link[aria-current] { opacity: 1; font-weight: 600; }

/* Ausklappmenü „Programme“ */
.nav__group { position: relative; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: .875rem;
  color: var(--ink);
  opacity: .82;
  cursor: pointer;
}
.nav__toggle:hover { opacity: 1; }
.nav__toggle[aria-expanded="true"] { opacity: 1; }
.nav__toggle::after {
  content: "";
  width: 5px; height: 5px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .25s var(--ease);
}
.nav__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  min-width: 268px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__group[data-open="true"] .nav__menu { opacity: 1; visibility: visible; transform: none; }

.nav__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color .18s ease;
}
.nav__menu a:hover { background: var(--bg-alt); text-decoration: none; }
.nav__menu strong { display: block; font-size: .9375rem; font-weight: 600; }
.nav__menu span { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }

.nav__cta { margin-left: 6px; }

/* Instagram-Verweis in der Kopfzeile */
.nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin-left: 4px;
  border-radius: 50%;
  color: var(--ink);
  opacity: .8;
  transition: opacity .2s ease, background-color .2s ease;
}
.nav__icon:hover { opacity: 1; background: var(--bg-alt); text-decoration: none; }
.nav__icon .icon { width: 20px; height: 20px; }

@media (max-width: 900px) { .nav__icon { display: none; } }

/* Menüschalter auf dem Handy */
.nav__burger {
  display: none;
  width: 38px; height: 38px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s ease;
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  padding: 26px var(--gutter) 60px;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav-panel[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel > ul > li { border-bottom: 1px solid var(--line-soft); }
.nav-panel > ul > li > a,
.nav-panel__label {
  display: block;
  padding: 17px 2px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.nav-panel__label { color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; padding-bottom: 4px; }
.nav-panel__sub li a { display: block; padding: 11px 2px; font-size: 1.125rem; }
.nav-panel .btn { margin-top: 30px; }

@media (max-width: 900px) {
  .nav__list, .nav__cta { display: none; }
  /* Ohne Menüleiste rückt das Logo nach links, der Menüschalter bleibt rechts. */
  .nav .nav__brand { margin-left: 0; margin-right: auto; }
  .nav__burger { display: block; }
}

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------- Hero ---- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(86vh, 760px);
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--bg-alt);
  text-align: center;
  overflow: hidden;
}
.hero--invert { background: var(--invert-bg); color: var(--invert-ink); }
.hero--invert .hero__sub { color: var(--invert-muted); }
.hero--invert .btn { --btn-bg: var(--invert-ink); --btn-fg: var(--invert-bg); }
.hero--invert .btn--ghost { --btn-bg: transparent; --btn-fg: var(--invert-ink); border-color: var(--invert-line); }
.hero--compact { min-height: 0; padding-block: clamp(56px, 8vw, 104px); }

.hero picture { display: block; }
.hero__logo { width: min(300px, 62vw); height: auto; margin: 0 auto clamp(22px, 4vw, 40px); }
.hero__title { font-size: var(--fs-hero); }
.hero__sub {
  margin: clamp(16px, 2.5vw, 24px) auto 0;
  max-width: 30ch;
  font-size: var(--fs-lead);
  line-height: 1.32;
  letter-spacing: -0.016em;
  color: var(--muted);
}
.hero .btn-row { justify-content: center; margin-top: clamp(26px, 4vw, 40px); }

/* Markenzeile: beide Logos nebeneinander, dazwischen ein × */

.brandbar {
  padding-block: clamp(30px, 4vw, 52px);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
}
.lockup picture { display: flex; }
.lockup__logo {
  width: auto;
  height: clamp(72px, 11vw, 132px);
  object-fit: contain;
}

/* Kompakte Varianten für Kopf- und Fußzeile */
.lockup--nav, .lockup--footer { justify-content: flex-start; }
.lockup--nav { gap: 13px; }
.lockup--nav .lockup__logo { height: 52px; }
.lockup--nav .lockup__x { font-size: .9rem; }
.lockup--nav .lockup__text { font-size: .6rem; }

.lockup--hero { margin-bottom: clamp(22px, 4vw, 40px); }
.lockup--hero .lockup__logo { height: clamp(62px, 8.5vw, 104px); }

.lockup--admin { gap: 10px; }
.lockup--admin .lockup__logo { height: 40px; }
.lockup--admin .lockup__x { font-size: .8rem; }
.lockup--admin .lockup__text { font-size: .55rem; }

.lockup--login { gap: 14px; justify-content: flex-start; }
.lockup--login .lockup__logo { height: 62px; }

.lockup--footer { gap: 14px; margin-bottom: 4px; }
.lockup--footer .lockup__logo { height: 54px; }
.lockup--footer .lockup__x { font-size: 1rem; }
.lockup--footer .lockup__text { font-size: .7rem; }

@media (max-width: 560px) {
  .lockup--nav { gap: 8px; }
  .lockup--nav .lockup__logo { height: 36px; }
}
.lockup__x {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
}
.lockup__text {
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* Startbild über die volle Bildschirmbreite, darunter der Text.
   Die Höhe ist gedeckelt, damit ein Hochformat die Seite nicht sprengt –
   object-fit: cover schneidet mittig zu. */
.hero-image {
  margin: 0;
  width: 100%;
  background: var(--bg-alt);
  line-height: 0;
}
/* Das Bild wird immer vollständig gezeigt – es behält sein Seitenverhältnis
   und wird nie beschnitten. Auf schmalen Displays wird es dadurch flacher,
   aber nichts fehlt.
   max-height greift nur bei sehr hochformatigen Bildern, damit die Seite nicht
   von einem einzigen Foto gesprengt wird; object-fit: contain sorgt dann für
   eine vollständige Darstellung statt eines Zuschnitts. */
.hero-image img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
}

/* ------------------------------------------------- Bewertungs-Laufband ---- */

.reviews-bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  padding: 14px clamp(14px, 2.4vw, 34px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.reviews-bar__summary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  flex: none;
  font-size: .875rem;
  white-space: nowrap;
}
.reviews-bar__stars { color: var(--ink); letter-spacing: -1px; }

/* Sichtfenster mit weichen Kanten, damit die Einträge nicht hart abreißen */
.reviews-bar__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.reviews-bar__track {
  display: flex;
  width: max-content;
  animation: reviews-lauf var(--laufzeit, 55s) linear infinite;
}
.reviews-bar:hover .reviews-bar__track,
.reviews-bar:focus-within .reviews-bar__track { animation-play-state: paused; }

@keyframes reviews-lauf {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.reviews-bar__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0 clamp(10px, 1.5vw, 22px) 0 0;
  list-style: none;
}

/* Jede Bewertung ist eine Karte mit umbrechendem Text. Sehr lange Texte
   würden das Band sonst meterhoch machen – deshalb ist die Höhe gedeckelt
   und läuft unten weich aus. Vollständig stehen alle auf /bewertungen.php. */
.review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
  width: clamp(250px, 27vw, 340px);
  white-space: normal;
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-strong);
  color: var(--bg);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.review__body { display: block; }
.review__head { display: flex; align-items: center; gap: 8px; font-size: .8125rem; }
.review__stars { color: var(--ink); font-size: .75rem; letter-spacing: -1px; }
.review__text {
  position: relative;
  display: block;
  margin-top: 6px;
  max-height: 8.4em;              /* rund sechs Zeilen */
  overflow: hidden;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--muted);
}
/* Weicher Auslauf statt harter Kante bei längeren Texten */
.review__text::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1.6em;
  background: linear-gradient(to bottom, transparent, var(--bg-alt));
}

.reviews-bar__more {
  flex: none;
  align-self: center;
  font-size: .8125rem;
  white-space: nowrap;
}

/* ------------------------------------------------- Torhüter im Team ----- */

.keeper-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.keeper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg);
}
/* Mit Foto: Bild oben, Text darunter mittig */
.keeper--mit-foto { align-items: center; text-align: center; padding-top: 20px; }
.keeper__photo {
  width: 84px; height: 84px;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line-soft);
}

/* Gruppenfoto über der Namensliste */
.team-photo { margin: 0; }
.team-photo img {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.keeper__name { font-weight: 600; font-size: 1rem; }
.keeper__since { font-size: .8125rem; color: var(--muted); }
.keeper__from { font-size: .75rem; color: var(--muted); opacity: .75; }

/* ---------------------------------------------------------- Mediathek --- */

.media-card { display: flex; flex-direction: column; }

.media-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.media-card__poster {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.media-card__poster--leer {
  background: linear-gradient(140deg, var(--line-soft), var(--line));
}
.media-card__video { width: 100%; height: 100%; display: block; background: #000; }

/* Abspielknopf über dem Vorschaubild */
.media-card__play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color .25s ease;
}
.media-card__play::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease);
}
.media-card__play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  width: 0; height: 0;
  border-left: 18px solid #000;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.media-card__play:hover { background: rgba(0, 0, 0, .12); }
.media-card__play:hover::before { transform: translate(-50%, -50%) scale(1.08); }
.media-card__play:focus-visible { outline: 3px solid var(--bg); outline-offset: -6px; }

/* Große Vorschau über der Seite – bewusst kein Vollbild, damit man sieht,
   dass man noch auf der Webseite ist. */
.lightbox {
  width: min(1080px, 90vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
}
.lightbox[open] { animation: lightbox-auf .22s var(--ease); }

/* Breite zusätzlich über die verfügbare Höhe begrenzen, damit die Vorschau
   auch in flachen Fenstern vollständig hineinpasst. */
.lightbox__frame {
  width: min(100%, calc(72vh * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.lightbox__frame video { width: 100%; height: 100%; display: block; background: #000; }

.lightbox__title {
  margin: 14px 2px 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
}
.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 1.6px;
  background: #fff;
}
.lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@keyframes lightbox-auf {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Auf kleinen Displays bleibt kein Platz über dem Video – Knopf nach unten. */
@media (max-width: 620px) {
  .lightbox__close { top: auto; bottom: -46px; right: 50%; transform: translateX(50%); }
  .lightbox__title { margin-bottom: 52px; }
}

/* Eingeblendete Karte mit dem vollständigen Text beim Überfahren.
   Liegt bewusst außerhalb des Bandes, weil das alles abschneidet, was über
   seinen Rand hinausragt. */
.review-pop {
  position: fixed;
  z-index: 120;
  width: min(420px, calc(100vw - 24px));
  max-height: min(60vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
  animation: review-pop-auf .16s var(--ease);
  pointer-events: none;
}
.review-pop__head { margin: 0 0 8px; font-size: .875rem; font-weight: 600; }
.review-pop__text { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--ink); white-space: pre-line; }

@keyframes review-pop-auf {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Ein Fingertipp kennt kein Überfahren – dort führt „Alle lesen“ zum Ziel. */
@media (hover: none) {
  .review-pop { display: none; }
}

/* Übersichtsseite: alle Bewertungen ungekürzt, in Spalten gesetzt */
.review-grid { columns: 3 320px; column-gap: 22px; }
.review-card {
  break-inside: avoid;
  margin-bottom: 22px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.review-card .review__head { font-size: .9375rem; }
.review-card__text { margin: 14px 0 0; font-size: .9375rem; line-height: 1.55; }
.review-card__date { margin: 12px 0 0; font-size: .75rem; color: var(--muted); }

@media (max-width: 720px) {
  .reviews-bar { flex-direction: column; align-items: stretch; gap: 10px; padding-inline: 0; }
  .reviews-bar__summary { justify-content: center; padding-inline: var(--gutter); }
  .reviews-bar__more { padding-inline: var(--gutter); align-self: flex-start; }
  .review { width: clamp(230px, 72vw, 300px); }
}

/* Wer Bewegung reduziert haben will, bekommt ein ruhiges, scrollbares Band. */
@media (prefers-reduced-motion: reduce) {
  .reviews-bar__track { animation: none; }
  .reviews-bar__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reviews-bar__list:last-child { display: none; }
}

/* Steht der Text unter dem Bild, braucht er oben keine volle Bildschirmhöhe. */
.hero--below-image { min-height: 0; padding-block: clamp(52px, 7vw, 96px); }

/* Randnaher Block ohne die übliche Inhaltsbreite */
.bleed { width: 100%; padding-inline: clamp(14px, 2.4vw, 34px); }

/* Große, randnahe Überschrift wie auf dem Trainingsplakat */
.headline-wide {
  font-size: clamp(1.9rem, 8.1vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.statement-list {
  max-width: 46ch;
  margin: clamp(30px, 5vw, 56px) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.statement-list li {
  padding: 16px 0;
  border-top: 1px solid var(--invert-line);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.42;
}
.statement-list li:first-child { border-top: 0; }

/* KIDS-Akzent: Der Farbverlauf des Logos bleibt auf diesen Bereich beschränkt. */
[data-accent="kids"] .eyebrow,
.accent-text {
  background: var(--kids-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-accent="kids"] .hero { background: var(--bg); }
[data-accent="kids"] .hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 70%;
  background: var(--kids-gradient);
  filter: blur(90px);
  opacity: .22;
  pointer-events: none;
}
.accent-bar { height: 4px; border-radius: 4px; background: var(--kids-gradient); }

/* -------------------------------------------------------------- Karten --- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.tile {
  --tile-pad: clamp(26px, 3vw, 38px);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--tile-pad);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  overflow: hidden;
  transition: transform .4s var(--ease);
}
.tile--link:hover { transform: translateY(-3px); }
.tile--link:hover .arrow-link::after { transform: rotate(-45deg) translate(2px, 2px); }
.tile__title { font-size: var(--fs-h3); }
.tile__text { margin-top: 12px; color: var(--muted); }
.tile__foot { margin-top: auto; padding-top: 26px; }
/* Titelbild randlos über die volle Kachelbreite.
   max-width: none ist nötig, weil die globale Regel img { max-width: 100% }
   das Bild sonst auf die Inhaltsbreite stutzt – es würde dann nach links
   herausragen und rechts eine Lücke lassen. */
.tile__cover {
  width: calc(100% + 2 * var(--tile-pad));
  max-width: none;
  margin: calc(-1 * var(--tile-pad)) calc(-1 * var(--tile-pad)) 24px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--line-soft);
}
.tile--invert { background: var(--invert-bg); color: var(--invert-ink); }
.tile--invert .tile__text { color: var(--invert-muted); }
.tile--kids::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--kids-gradient);
}

.tile__stretch::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Merkmal-Liste ohne Kartenrahmen */
.features { display: grid; gap: clamp(34px, 4vw, 56px) 40px; }
.feature__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.feature__text { margin-top: 8px; color: var(--muted); }
.feature__rule { height: 1px; background: var(--line); margin-bottom: 18px; }

/* Kennzahl / Faktenzeile */
.facts { display: grid; gap: 6px 40px; }
.fact__value { font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; }
.fact__label { color: var(--muted); font-size: .9375rem; }

/* Etikett / Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 980px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
}
.chip--solid { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--bg); }
.chip--kids { border-color: transparent; background: var(--kids-gradient); color: #fff; }

/* Termin-Zeile (Vorschau auf der Startseite) */
.slot { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.slot__day { min-width: 5.5rem; font-weight: 600; }
.slot__time { min-width: 9rem; }
.slot__meta { color: var(--muted); font-size: .9375rem; min-width: 0; }

/* Auf schmalen Displays reicht die Breite für drei Spalten nicht.
   Der Ort rutscht dann in eine eigene Zeile, statt seitlich herauszuragen. */
@media (max-width: 560px) {
  .slot { flex-wrap: wrap; gap: 4px 14px; }
  .slot__day, .slot__time { min-width: 0; }
  .slot__meta { flex: 1 0 100%; }
}

/* ------------------------------------------------------------- Footer ---- */

.footer {
  padding-block: clamp(46px, 5vw, 70px);
  background: var(--bg-alt);
  font-size: .8125rem;
  color: var(--muted);
}
.footer a:hover { color: var(--ink); }
.footer__cols { display: grid; gap: 34px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 800px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer__cols { grid-template-columns: minmax(0, 1fr); } }
.footer h2 { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer__bottom p { margin: 0; }
.footer__note { max-width: 42ch; margin-top: 14px; }

/* --------------------------------------------------------- Animationen --- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------ Hilfsmittel */

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.nowrap { white-space: nowrap; }
