/* ==========================================================================
   FTB Fitness Training – Design System
   Markenfarben: Neon-Magenta #C40079 · Lila #AB47AD · Neon-Blau #58A4DB
   ========================================================================== */

:root {
  /* Marke */
  --magenta: #C40079;
  --violet: #AB47AD;
  --blue: #58A4DB;
  --grad: linear-gradient(100deg, var(--magenta) 0%, var(--violet) 52%, var(--blue) 100%);
  --grad-soft: linear-gradient(100deg, rgba(196,0,121,.16), rgba(171,71,173,.16) 52%, rgba(88,164,219,.16));

  /* Flächen */
  --bg: #08080d;
  --bg-2: #0e0e16;
  --surface: #14141f;
  --surface-2: #1b1b28;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);

  /* Text */
  --fg: #f5f5fa;
  --fg-muted: #a9a9be;
  --fg-dim: #7c7c92;

  /* Typo */
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Maße */
  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Logo im Kopf: durchgaengig kompakt – auf allen Seiten gleich.
     Das grosse Logo steht im Hero, nicht in der Kopfleiste.             */
  --logo-h: 64px;
  --logo-ratio: 1.07;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section--alt { background: var(--bg-2); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--fg-muted); max-width: 62ch; }
.muted { color: var(--fg-muted); }

.eyebrow {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--grad);
  flex: none;
}

.section-head { max-width: 70ch; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--magenta); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border: 0; border-radius: 100px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn--primary {
  background: var(--grad);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: 0 8px 26px -8px rgba(196,0,121,.65);
}
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 34px -8px rgba(196,0,121,.8); }
.btn--ghost {
  background: rgba(255,255,255,.05);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --------------------------------------------------------- Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s, height .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(8,8,13,.82);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--fg); }
.brand__mark {
  height: var(--logo-h);
  width: calc(var(--logo-h) * var(--logo-ratio));
  flex: none; display: block;
  transition: height .4s var(--ease), width .4s var(--ease);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-family: var(--font-display); font-weight: 500;
  font-size: .92rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--fg-muted);
  padding: .55rem .9rem; border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--grad);
}
/* CTA im Menü nur mobil – auf Desktop steht sie in .header__cta */
.nav > .btn { display: none; }
.header__cta { display: flex; align-items: center; gap: .6rem; }
.header .btn { padding: .72rem 1.35rem; font-size: .88rem; }

.burger {
  display: none;
  width: 46px; height: 46px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-strong);
  border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--fg); position: relative; transition: background-color .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--fg);
  transition: transform .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: flex; }
  .header__cta .btn { display: none; }
  .nav {
    /* An der Kopfleiste verankert statt auf feste Hoehe gesetzt: Das Menue
       folgt so automatisch, wenn der Kopf beim Scrollen schrumpft.        */
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,8,13,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.75rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav a { padding: .95rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 1.25rem; border-bottom: 0; justify-content: center; }
}

/* --------------------------------------------------------- Hero
   Hero + Marquee bilden zusammen genau eine Bildschirmhöhe: Der Slider
   sitzt als fester Abschluss unten und ist damit immer mit sichtbar.
   svh statt vh, damit die Browserleiste auf dem Handy nichts abschneidet.
   min-height (nicht height): auf sehr flachen Fenstern darf die Einheit
   wachsen, statt den Inhalt abzuschneiden.                              */
.hero-shell {
  position: relative;
  min-height: 100vh;          /* Fallback für ältere Browser */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 1.5rem) 0 1.5rem;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media video { opacity: 0; transition: opacity .9s var(--ease); }
.hero__media video.is-ready { opacity: 1; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(8,8,13,.55) 45%, rgba(8,8,13,.25) 100%),
    linear-gradient(100deg, rgba(8,8,13,.86) 8%, rgba(8,8,13,.45) 52%, rgba(8,8,13,.2) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 44ch; }

/* Das grosse Logo steht im Hero – nicht in der Kopfleiste.
   Es blendet langsam ein, waehrend die Ueberschrift dahinter einfliegt. */
.hero__logo {
  height: clamp(128px, min(20vh, 34vw), 264px);
  width: auto;
  margin-bottom: clamp(.75rem, 2vh, 1.5rem);
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__logo { animation: logoIn 1.6s cubic-bezier(.22,1,.36,1) .1s both; }
}

/* --- Wanderndes Logo: gross im Hero, dockt beim Scrollen im Kopf an -----
   Das Layout kommt komplett aus dem Fluss: .hero__logo und .brand__mark
   bleiben stehen und reservieren ihren Platz, werden aber unsichtbar.
   JS bewegt nur die fixierte Kopie zwischen diesen beiden Rechtecken.
   Ohne JS bleiben schlicht beide sichtbar – nichts geht kaputt.          */
.flying-logo { display: none; }

body.logo-flies .flying-logo {
  display: block;
  position: fixed; top: 0; left: 0;
  z-index: 110;                 /* ueber der Kopfleiste (100) */
  transform-origin: top left;
  will-change: transform;
  pointer-events: none;         /* verdeckt den Logo-Link im Kopf nicht */
}
body.logo-flies .flying-logo img { height: var(--logo-h); width: auto; }

/* Platzhalter behalten ihr Layout, sind aber unsichtbar. Die Animation
   muss mit weg – sie wuerde die Deckkraft sonst wieder auf 1 ziehen.     */
body.logo-flies .hero__logo,
body.logo-flies .brand__mark { opacity: 0; }
body.logo-flies .hero__logo { animation: none; }

@keyframes logoFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  body.logo-flies .flying-logo { animation: logoFade 1.6s ease .1s both; }
}

/* Der Hero-Inhalt skaliert mit Breite UND Höhe des Fensters: Auf flachen
   Monitoren (z. B. 1366x768) würde eine rein breitenbasierte Schrift den
   Slider aus dem Bild schieben. min(vw, vh) nimmt jeweils den knapperen
   Wert, die clamp-Grenzen halten es lesbar bzw. deckeln nach oben.       */
.hero .eyebrow { margin-bottom: clamp(.5rem, 1.4vh, 1rem); }
.hero h1 {
  font-size: clamp(2.2rem, min(6.4vw, 6.2vh), 5.2rem);
  margin-bottom: clamp(.6rem, 1.6vh, 1.2rem);
  text-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.hero h1 span { display: block; }

/* --- Einflug der Ueberschrift ----------------------------------------
   Jede Zeile kommt aus einer anderen Richtung, leicht versetzt.
   Der Hero hat overflow:hidden – die Zeilen werden also sauber
   abgeschnitten, statt Scrollbalken zu erzeugen.                       */
@keyframes flyTop    { from { opacity: 0; transform: translateY(-140%); } to { opacity: 1; transform: none; } }
@keyframes flyRight  { from { opacity: 0; transform: translateX(115%);  } to { opacity: 1; transform: none; } }
@keyframes flyLeft   { from { opacity: 0; transform: translateX(-115%); } to { opacity: 1; transform: none; } }
@keyframes flyBottom { from { opacity: 0; transform: translateY(140%);  } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .fly { animation: .85s cubic-bezier(.16,1,.3,1) both; will-change: transform, opacity; }
  .fly--top    { animation-name: flyTop;    animation-delay: .15s; }
  .fly--right  { animation-name: flyRight;  animation-delay: .33s; }
  .fly--left   { animation-name: flyLeft;   animation-delay: .51s; }
  .fly--bottom { animation-name: flyBottom; animation-delay: .69s; }
}
.hero__claim {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(.85rem, min(1.5vw, 1.9vh), 1.15rem);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg); margin-bottom: clamp(1rem, 2.6vh, 2rem); line-height: 1.5;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1rem, 2.2vh, 1.8rem); }

/* --- Anpassung an flache Fenster ---------------------------------------
   WICHTIG: Diese Bloecke muessen NACH allen Hero-Basisregeln stehen.
   Media-Queries erhoehen die Spezifitaet nicht – eine spaeter notierte
   Basisregel wuerde sie sonst still ueberschreiben.
   Schwelle 780px deckt auch Vollbild (F11) auf 1366x768 und 1280x720 ab,
   wo der Viewport exakt 768 bzw. 720 hoch ist.                           */
@media (max-height: 780px) {
  .hero { padding: calc(var(--header-h) + .75rem) 0 1rem; }
  .hero h1 { font-size: clamp(2rem, min(6.4vw, 5.2vh), 5.2rem); }
  .hero__logo { height: clamp(88px, min(13vh, 30vw), 168px); margin-bottom: .5rem; }
  .hero .eyebrow { margin-bottom: .4rem; }
  .hero__claim { margin-bottom: .9rem; }
  .hero__badges { margin-bottom: .9rem; }
}

/* Kleine, niedrige Handys: Hier stapeln sich Badges und Buttons zusaetzlich. */
@media (max-height: 780px) and (max-width: 560px) {
  .hero { padding: calc(var(--header-h) + .5rem) 0 1rem; }
  .hero__logo { height: clamp(64px, min(11vh, 28vw), 140px); margin-bottom: .4rem; }
  .hero h1 { font-size: clamp(1.5rem, min(6.4vw, 4.6vh), 5.2rem); }
  .hero .eyebrow { margin-bottom: .4rem; }
  .hero__claim { margin-bottom: .8rem; font-size: .85rem; }
  .hero .btn { padding: .75rem 1.3rem; font-size: .9rem; }
  /* Auf kleinen Handys reicht der Platz nicht fuer alles. Die Badges
     entfallen hier – Bodybuilding, HYROX und Funktionelle Fitness laufen
     direkt darunter im Slider vorbei, es geht also nichts verloren.      */
  .hero__badges { display: none; }
}
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem .95rem; border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* --------------------------------------------------------- Marquee */
.marquee {
  flex: none;                 /* fester Abschluss der Hero-Einheit */
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1.1rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; gap: 2.5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-dim);
  padding-right: 2.5rem;
  white-space: nowrap;
}
.marquee__item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }

/* --------------------------------------------------------- Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg); padding: 2rem 1.5rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; margin-bottom: .35rem; }
.stat__label { font-size: .88rem; color: var(--fg-muted); letter-spacing: .04em; }

/* --------------------------------------------------------- Cards / Grids */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.card__body { padding: 1.75rem; }

/* Trainings-Fokus */
.focus { display: block; text-decoration: none; color: inherit; }
.focus__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.focus__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.focus:hover .focus__media img { transform: scale(1.06); }
.focus__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface) 4%, rgba(20,20,31,.5) 40%, transparent 75%);
}
.focus__num {
  position: absolute; top: 1rem; right: 1.25rem; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.3);
}
.focus__title { display: flex; align-items: center; gap: .6rem; }
.focus__title::after {
  content: "→"; font-size: 1.1rem; color: var(--blue);
  transition: transform .3s var(--ease);
}
.focus:hover .focus__title::after { transform: translateX(6px); }
.focus ul { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.focus li {
  font-size: .78rem; letter-spacing: .04em;
  padding: .3rem .75rem; border-radius: 100px;
  border: 1px solid var(--line); color: var(--fg-muted);
}

/* Standort-Karten */
.loc__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.loc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .loc__media img { transform: scale(1.05); }
.loc__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  font-family: var(--font-display); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 100px;
  background: var(--grad); color: #fff;
}
.loc__facts { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .6rem; }
.loc__facts li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--fg-muted); }
.loc__facts svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }
.loc__facts strong { color: var(--fg); font-weight: 600; }

/* Feature-Pills */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pills li {
  font-family: var(--font-display); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .9rem; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-muted);
}

/* --------------------------------------------------------- Tabs (Kursplan) */
.tabs { display: inline-flex; gap: .3rem; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; margin-bottom: 2.5rem; }
.tabs button {
  font-family: var(--font-display); font-size: .92rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .7rem 1.6rem; border: 0; border-radius: 100px; cursor: pointer;
  background: transparent; color: var(--fg-muted);
  transition: color .25s, background .25s;
}
.tabs button[aria-selected="true"] { background: var(--grad); color: #fff; }
.tabs button:hover:not([aria-selected="true"]) { color: var(--fg); }

.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; }
.day {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem;
}
.day--empty { opacity: .45; }
.day__name {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: .85rem; margin-bottom: .85rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.day__count { font-size: .72rem; font-weight: 500; color: var(--fg-dim); letter-spacing: .08em; }
.course { display: block; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.course:last-child { border-bottom: 0; padding-bottom: 0; }
.course__time {
  font-family: var(--font-display); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; color: var(--blue);
  display: flex; align-items: center; gap: .5rem;
}
.course__dur { color: var(--fg-dim); }
.course__name {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; margin-top: .15rem;
}
.course__name sup { color: var(--magenta); font-size: .7em; }
.day--rest { display: flex; align-items: center; justify-content: center; min-height: 120px; color: var(--fg-dim); font-family: var(--font-display); letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; }
.plan-note { margin-top: 1.5rem; font-size: .88rem; color: var(--fg-dim); display: flex; gap: .5rem; align-items: flex-start; }
.plan-note sup { color: var(--magenta); }

/* --------------------------------------------------------- Preise */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; align-items: start; }
.price {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 1.6rem;
  position: relative; text-align: center;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.price:hover { transform: translateY(-6px); }
.price--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}
.price--featured::before {
  content: "Beliebteste Wahl";
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: .68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--grad); color: #fff;
  padding: .35rem 1rem; border-radius: 100px; white-space: nowrap;
}
.price__term { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
.price__num { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; margin: .3rem 0 .1rem; }
.price__amount { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1.1; margin: 1.1rem 0 .1rem; }
.price__per { font-size: .85rem; color: var(--fg-dim); }
.price__meta { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--fg-muted); }
.price .btn { margin-top: 1.35rem; width: 100%; }
.price-notes { margin-top: 2rem; display: grid; gap: .6rem; }
.price-note { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--fg-muted); }
.price-note svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--blue); }

/* --------------------------------------------------------- Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; z-index: 1;
  padding: 2.5rem 1rem .9rem;
  font-family: var(--font-display); font-size: .8rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(8,8,13,.9), transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery figure { aspect-ratio: 1; }
.gallery .g-tall { aspect-ratio: 1/2.06; }
.gallery .g-wide { aspect-ratio: 2.06/1; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-tall { grid-row: span 1; aspect-ratio: 1; }
  .gallery .g-wide { grid-column: span 2; aspect-ratio: 2.06/1; }
}

/* --------------------------------------------------------- Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); mix-blend-mode: overlay;
}
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; color: var(--fg-muted); }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--blue); }
.checks strong { color: var(--fg); font-weight: 600; }

/* --------------------------------------------------------- Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.review {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.review__stars { display: flex; gap: .15rem; color: #ffc94d; }
.review__stars svg { width: 17px; height: 17px; }
.review blockquote { margin: 0; font-size: .97rem; color: var(--fg-muted); line-height: 1.7; }
.review__author { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--grad);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
}
.review__name { font-weight: 600; font-size: .93rem; }
.review__date { font-size: .8rem; color: var(--fg-dim); }

/* --------------------------------------------------------- FAQ */
.faq { display: grid; gap: .75rem; max-width: 900px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.3rem 1.5rem;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--blue);
  flex: none; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.5rem 1.4rem; color: var(--fg-muted); font-size: .98rem; }

/* --------------------------------------------------------- Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem;
}
.contact-card h3 { display: flex; align-items: center; gap: .6rem; }
.contact-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--blue); }
.contact-list a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-list a:hover { border-bottom-color: var(--blue); color: var(--blue); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { color: var(--fg-muted); }
.hours span:last-child { font-variant-numeric: tabular-nums; text-align: right; }

/* --------------------------------------------------------- CTA */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background: var(--grad);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 120%, rgba(0,0,0,.45), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 55ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 2rem; }
.cta .btn--primary { background: #fff; color: var(--magenta); box-shadow: 0 8px 30px -6px rgba(0,0,0,.4); }
.cta .btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }

/* --------------------------------------------------------- Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .85rem; letter-spacing: .18em; color: var(--fg-dim); margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { color: var(--fg-muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer a:hover { color: var(--fg); }
.footer__brand p { color: var(--fg-muted); font-size: .95rem; max-width: 34ch; margin-top: 1rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
  font-size: .87rem; color: var(--fg-dim);
}
.footer__bottom nav { display: flex; gap: 1.25rem; }

/* --------------------------------------------------------- Kündigungs-Dialog
   Pflicht nach § 312k BGB: Der Button muss staendig verfuegbar und leicht
   auffindbar sein, daher im Footer jeder Seite.                          */
.footer__bottom .cancel-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--fg-muted);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.footer__bottom .cancel-link:hover { color: var(--fg); }

.modal {
  width: min(100% - 2rem, 640px);
  max-height: min(90dvh, 900px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg);
  overflow: auto;
}
.modal::backdrop { background: rgba(4,4,8,.72); backdrop-filter: blur(5px); }
.modal__inner { padding: clamp(1.5rem, 4vw, 2.5rem); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.modal h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.modal__close {
  flex: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); color: var(--fg);
  font-size: 1.3rem; line-height: 1;
}
.modal__close:hover { background: rgba(255,255,255,.12); }

.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 2fr; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
/* Ohne das gewinnt display:grid gegen das hidden-Attribut und die
   bedingten Felder (Grund, Datum) waeren immer sichtbar.               */
.field[hidden] { display: none; }
.field > label {
  font-family: var(--font-display); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--fg);
  font: inherit; font-size: .97rem;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent;
}
.field textarea { resize: vertical; min-height: 90px; }
.field__hint { font-size: .8rem; color: var(--fg-dim); }
.choice { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice label {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border: 1px solid var(--line-strong); border-radius: 100px;
  cursor: pointer; font-size: .92rem;
}
.choice input { accent-color: var(--magenta); }
.choice label:has(input:checked) { border-color: var(--blue); background: rgba(88,164,219,.12); }
.form__note { font-size: .85rem; color: var(--fg-dim); }

/* Bestaetigung nach dem Absenden – nach § 312k mit Datum und Uhrzeit,
   speicherbar bzw. druckbar.                                            */
.modal__done { display: none; }
.modal.is-done .modal__done { display: block; }
.modal.is-done .form, .modal.is-done .modal__lead { display: none; }
.receipt {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: .93rem;
}
.receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; }
.receipt dt { color: var(--fg-dim); }
.receipt dd { margin: 0; }

/* --------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------- Page hero (Unterseiten) */
.phero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 5rem) 0 4rem;
  border-bottom: 1px solid var(--line);
}
.phero__media { position: absolute; inset: 0; z-index: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,8,13,.92) 10%, rgba(8,8,13,.62) 60%, rgba(8,8,13,.4));
}
.phero__inner { position: relative; z-index: 1; }
.phero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: .6rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--fg-dim); margin-bottom: 1.5rem; list-style: none; padding: 0; }
.breadcrumb li { display: flex; gap: .5rem; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--fg-dim); }
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* Karte */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(1) invert(.92) contrast(.85); }
