@charset "UTF-8";

/* ==========================================================================
   MOUNTAIN-PATROL — Frontend
   Rot / Weiß / Schwarz. Große Typo, harte Kanten, viel Bewegung.

   Aufbau:
     01 Schriften
     02 Design-Tokens
     03 Reset & Basis
     04 Typografie
     05 Layout-Bausteine
     06 Kopfzeile & Navigation
     07 Titelbild + „Nächstes Training"
     08 Buttons & Links
     09 Laufband
     10 Karten
     11 Kennzahlen & Datenblöcke
     12 Training
     13 Team, Partner, Downloads
     14 Artikel & Fließtext
     15 Formulare
     16 Fußzeile
     17 Bewegung & Sichtbarwerden
     18 Hilfsklassen
     19 Rücksicht: reduzierte Bewegung, Druck
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 Schriften — selbst gehostet, keine Anfrage an Google (DSGVO)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   02 Design-Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Farben */
  --ink: #08080a;
  --ink-2: #0f0f13;
  --ink-3: #17171d;
  --ink-4: #23232b;
  --paper: #ffffff;
  --paper-2: #f4f4f5;
  --paper-3: #e7e7ea;

  --red: #e10600;
  --red-hot: #ff2d18;
  --red-deep: #a30400;
  --red-wash: rgba(225, 6, 0, 0.12);

  --text: var(--ink);
  --text-muted: #5a5a63;
  --text-invert: var(--paper);
  --text-invert-muted: rgba(255, 255, 255, 0.62);

  --line: rgba(8, 8, 10, 0.12);
  --line-invert: rgba(255, 255, 255, 0.14);

  --surface: var(--paper);
  --surface-sunken: var(--paper-2);

  /* Schrift */
  --font-display: "Anton", "Arial Narrow", "Haettenschweiler", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Typo-Skala (fluid) */
  --step--2: clamp(0.72rem, 0.69rem + 0.14vw, 0.79rem);
  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.36rem + 0.7vw, 2rem);
  --step-3: clamp(1.95rem, 1.7rem + 1.25vw, 2.9rem);
  --step-4: clamp(2.5rem, 2rem + 2.5vw, 4.2rem);
  --step-5: clamp(3.2rem, 2.2rem + 5vw, 7rem);
  --step-6: clamp(4rem, 2rem + 9vw, 11rem);

  /* Raster */
  --container: 1320px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  /* Form */
  --radius: 0px;
  --radius-soft: 4px;
  --rule: 3px;

  /* Bewegung */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.18s;
  --dur: 0.42s;
  --dur-slow: 0.9s;

  --header-h: 76px;

  /* Schatten sparsam – das Design lebt von Kanten, nicht von Weichzeichnung */
  --shadow-lift: 0 24px 60px -28px rgba(8, 8, 10, 0.55);
  --shadow-hard: 14px 14px 0 var(--ink);
}

/* Dunkle Abschnitte kehren die Token um, statt jede Regel zu doppeln */
.on-dark {
  --text: var(--text-invert);
  --text-muted: var(--text-invert-muted);
  --line: var(--line-invert);
  --surface: var(--ink-2);
  --surface-sunken: var(--ink);
  color: var(--text);
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   03 Reset & Basis
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "cv05" 1, "ss03" 1;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

figure {
  margin: 0;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, figure {
  margin: 0;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

::selection {
  background: var(--red);
  color: #fff;
}

/* Feines Korn über der ganzen Seite – nimmt Flächen die Sterilität */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.85rem 1.4rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

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

.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display {
  font-size: var(--step-6);
}

.h1 {
  font-size: var(--step-5);
}

.h2 {
  font-size: var(--step-4);
}

.h3 {
  font-size: var(--step-2);
  line-height: 1.02;
}

/* Kleine technische Beschriftung – Trailschild-Optik */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.kicker--muted {
  color: var(--text-muted);
}

.kicker::before {
  content: "";
  width: 1.6em;
  height: var(--rule);
  background: currentColor;
  flex: none;
}

.kicker--bare::before {
  display: none;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Rot hervorgehobenes Wort in einer Überschrift */
.hl {
  color: var(--red);
}

/* Wort mit rotem Balken hinterlegt */
.mark {
  position: relative;
  display: inline-block;
  padding-inline: 0.14em;
  color: #fff;
  isolation: isolate;
}

.mark::before {
  content: "";
  position: absolute;
  inset: 0.1em -0.02em 0.08em;
  background: var(--red);
  z-index: -1;
  transform: skewX(-7deg);
}

/* Outline-Schrift für große Hintergrundwörter */
.ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
  opacity: 0.16;
}

/* --------------------------------------------------------------------------
   05 Layout-Bausteine
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - var(--gutter) * 2, var(--container-narrow));
  margin-inline: auto;
}

.container--flush {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--dark {
  background: var(--ink);
  color: var(--text-invert);
}

.section--sunken {
  background: var(--paper-2);
}

/* Kopf eines Abschnitts: Kicker links, Titel groß, Link rechts */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
  padding-bottom: 1.5rem;
  border-bottom: var(--rule) solid currentColor;
}

.section-head__text > .kicker {
  margin-bottom: 0.9rem;
}

.section-head__link {
  white-space: nowrap;
  padding-bottom: 0.35rem;
}

@media (max-width: 640px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Diagonale Kante zwischen zwei Flächen */
.edge-slice {
  clip-path: polygon(0 0, 100% 2.4vw, 100% 100%, 0 100%);
  margin-top: -2.4vw;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

/* --------------------------------------------------------------------------
   06 Kopfzeile & Navigation
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background var(--dur) var(--ease-out),
    height var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.85), rgba(8, 8, 10, 0));
  opacity: 1;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.header.is-stuck {
  height: 62px;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-invert);
}

.header.is-stuck::before {
  opacity: 0;
}

/* Auf hellen Unterseiten steht die Leiste von Anfang an auf Schwarz */
.header--solid {
  background: var(--ink);
}

.header--solid::before {
  opacity: 0;
}

.header__inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  margin-right: auto;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand__text {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.32rem;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.brand__text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  color: var(--red);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.6rem);
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.is-active {
  color: #fff;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

/* Menü-Schalter für kleine Bildschirme */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-invert);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex: none;
}

.burger__box {
  display: block;
  width: 20px;
  height: 12px;
  position: relative;
}

.burger__box::before,
.burger__box::after,
.burger__box span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}

.burger__box::before { top: 0; }
.burger__box span { top: 5px; }
.burger__box::after { top: 10px; }

.burger[aria-expanded="true"] .burger__box::before {
  transform: translateY(5px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__box span {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__box::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .burger {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 420px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 6rem 2rem 2rem;
    background: var(--ink);
    border-left: var(--rule) solid var(--red);
    transform: translateX(101%);
    transition: transform var(--dur) var(--ease-in-out);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    letter-spacing: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-invert);
    color: #fff;
  }

  .nav__link::after {
    height: 3px;
  }

  .header__actions .btn--sm {
    display: none;
  }
}

body.nav-open {
  overflow: hidden;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(8, 8, 10, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}

.nav-scrim.is-visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   07 Titelbild + „Nächstes Training"
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero--compact {
  min-height: min(62svh, 560px);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Rückfall; das Template setzt den in der Mediathek gewählten Ausschnitt */
  object-position: center 42%;
  /* Langsamer Zoom: erzeugt Bewegung, ohne abzulenken */
  animation: hero-drift 26s var(--ease-in-out) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.03); }
  to   { transform: scale(1.13) translate3d(-1.2%, -1%, 0); }
}

/* Abdunkeln, damit die Schrift immer sitzt – unabhängig vom Foto */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.22) 34%, rgba(8, 8, 10, 0.94) 100%),
    linear-gradient(96deg, rgba(8, 8, 10, 0.8) 0%, rgba(8, 8, 10, 0.1) 62%);
}

/* Rote Diagonale als Energie-Element.
   Läuft oben und unten aus – sonst entsteht dort eine harte Kante,
   während das Foto durchgehend bis in die Kopfleiste reicht. */
.hero__slash {
  position: absolute;
  right: -8vw;
  top: -15%;
  width: 46vw;
  height: 150%;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(225, 6, 0, 0) 0%,
    rgba(225, 6, 0, 0.55) 22%,
    var(--red) 42%,
    rgba(225, 6, 0, 0) 88%
  );
  opacity: 0.42;
  transform: skewX(-14deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  /* Reservierter Streifen unter den Spalten für den Scroll-Hinweis */
  padding-bottom: 2.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--step-6);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 1.5rem;
  text-wrap: balance;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line > span {
  display: block;
  transform: translateY(102%);
  animation: line-rise 1.05s var(--ease-out) forwards;
}

.hero__title .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes line-rise {
  to { transform: translateY(0); }
}

.hero__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Scroll-Hinweis: liegt in einem eigenen Streifen unter den Spalten,
   damit er nicht mit den Buttons kollidiert. */
.hero__scroll {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

/* Waagerechte Linie statt senkrechter – die wurde unten abgeschnitten. */
.hero__scroll::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform-origin: left;
  animation: scroll-pulse 2.4s var(--ease-in-out) infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleX(0.35); opacity: 0.35; }
  50%      { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__scroll {
    display: none;
  }

  /* Ohne Scroll-Hinweis wird der reservierte Streifen nicht gebraucht. */
  .hero__inner {
    padding-bottom: 0;
  }

  .hero__slash {
    opacity: 0.28;
  }
}

/* ---- Die Tafel „Nächstes Training" ------------------------------------- */

.next-training {
  --panel-bg: var(--paper);
  position: relative;
  background: var(--panel-bg);
  color: var(--ink);
  padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.35rem, 2.4vw, 1.9rem);
  border-top: 6px solid var(--red);
  box-shadow: var(--shadow-lift);
  justify-self: end;
  width: 100%;
  max-width: 480px;
}

/* Angeschnittene Ecke unten rechts – Trailschild-Anmutung */
.next-training::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border-width: 0 0 22px 22px;
  border-style: solid;
  border-color: transparent transparent var(--red) transparent;
}

.next-training__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.next-training__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

/* Pulsierender Punkt: signalisiert „das ist aktuell" */
.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: pulse-ring 2s var(--ease-out) infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

.next-training__countdown {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--paper-2);
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
}

.next-training__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.next-training__title .sep {
  color: var(--red);
  margin-inline: 0.15em;
}

.next-training__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.next-training__meta > * {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.next-training__meta svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--red);
}

.next-training__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.next-training__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease-out);
}

.next-training__link:hover svg {
  transform: translateX(5px);
}

/* Hinweis, wenn ein Termin ausfällt oder verlegt wurde */
.next-training__note {
  margin-top: 0.85rem;
  padding: 0.6rem 0.8rem;
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink);
}

.next-training--empty .next-training__title {
  font-size: var(--step-2);
}

@media (max-width: 900px) {
  .next-training {
    justify-self: stretch;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   08 Buttons & Links
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  text-align: center;
}

/* Füllung wischt von links durch */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  border-color: var(--ink);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}

.btn--ghost::before {
  background: var(--red);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: #fff;
  border-color: var(--red);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: #fff;
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}

.btn--dark::before {
  background: var(--red);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  border-color: var(--red);
}

.btn--sm {
  padding: 0.62rem 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.btn--lg {
  padding: 1.2rem 2.4rem;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Textlink mit Pfeil und Unterstrich-Animation */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease-out);
}

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

/* --------------------------------------------------------------------------
   09 Laufband
   -------------------------------------------------------------------------- */

.marquee {
  --speed: 34s;
  position: relative;
  display: flex;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  padding-block: 0.85rem;
  user-select: none;
  border-block: var(--rule) solid var(--ink);
}

.marquee--dark {
  background: var(--ink);
  color: #fff;
  border-block-color: var(--red);
}

.marquee--tilt {
  transform: rotate(-1.6deg) scaleX(1.04);
}

.marquee__track {
  display: flex;
  flex: none;
  gap: 2.5rem;
  padding-right: 2.5rem;
  align-items: center;
  animation: marquee var(--speed) linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 9px;
  height: 9px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  height: 100%;
  isolation: isolate;
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink-3);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}

.card:hover .card__media img,
.card:focus-within .card__media img {
  transform: scale(1.06);
}

/* Roter Schleier beim Überfahren */
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(225, 6, 0, 0) 40%, rgba(225, 6, 0, 0.5));
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.card:hover .card__media::after,
.card:focus-within .card__media::after {
  opacity: 1;
}

.card__badge {
  position: absolute;
  left: 0;
  top: 1rem;
  z-index: 2;
  background: var(--red);
  color: #fff;
  padding: 0.32rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card__badge--dark {
  background: var(--ink);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: clamp(1.15rem, 2vw, 1.6rem) 0 0;
}

.card--boxed .card__body {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border: 1px solid var(--line);
  border-top: none;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card__meta .dot {
  width: 4px;
  height: 4px;
  background: var(--red);
  flex: none;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.card:hover .card__title,
.card:focus-within .card__title {
  color: var(--red);
}

.card__text {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: auto;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hervorgehobener erster Artikel */
.card--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.card--feature .card__media {
  aspect-ratio: 4 / 3;
}

.card--feature .card__title {
  font-size: var(--step-4);
}

@media (max-width: 860px) {
  .card--feature {
    grid-template-columns: 1fr;
  }

  .card--feature .card__title {
    font-size: var(--step-3);
  }
}

/* Karte, die komplett aus einem Bild besteht */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(320px, 42vw, 460px);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  overflow: hidden;
  color: #fff;
  background: var(--ink-2);
  isolation: isolate;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease-out);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.15) 20%, rgba(8, 8, 10, 0.9));
  transition: background var(--dur) var(--ease-out);
}

.tile:hover img,
.tile:focus-within img {
  transform: scale(1.07);
}

.tile:hover::before,
.tile:focus-within::before {
  background: linear-gradient(180deg, rgba(163, 4, 0, 0.2) 10%, rgba(8, 8, 10, 0.92));
}

.tile__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.95;
  text-transform: uppercase;
  margin-block: 0.5rem 0.4rem;
}

.tile__text {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
}

.tile a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Zahlenreihe unter dem Titelbild */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
}

.stat {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.9;
  color: var(--red);
}

.stat__value small {
  font-size: 0.42em;
  margin-left: 0.15em;
  color: var(--text);
}

.stat__label {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11 Kennzahlen & Datenblöcke (Tourdaten)
   -------------------------------------------------------------------------- */

.datastrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.datastrip__cell {
  background: var(--surface);
  padding: 1.1rem 1.25rem;
}

.datastrip__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.datastrip__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  text-transform: uppercase;
}

.datastrip__value small {
  font-size: 0.45em;
  color: var(--red);
  margin-left: 0.15em;
}

/* Schwierigkeits-Kennzeichnung */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.chip--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.chip--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip--outline-red {
  border-color: var(--red);
  color: var(--red);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Filterleiste über Listen */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filters__item {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}

.filters__item:hover {
  border-color: var(--ink);
  color: var(--text);
}

.filters__item.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* --------------------------------------------------------------------------
   12 Training
   -------------------------------------------------------------------------- */

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.week__day {
  background: var(--surface);
  min-height: 190px;
  padding: 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.week__day.is-today {
  background: var(--red-wash);
}

.week__name {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.week__day.is-today .week__name {
  color: var(--red);
}

.week__slot {
  display: block;
  padding: 0.6rem;
  background: var(--paper-2);
  border-left: 3px solid var(--red);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}

.week__slot:hover {
  transform: translateX(3px);
  background: var(--paper-3);
}

.week__time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red);
}

.week__label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.15rem;
}

.week__empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.55;
}

@media (max-width: 900px) {
  .week {
    grid-template-columns: 1fr;
  }

  .week__day {
    min-height: 0;
  }

  .week__day:has(.week__empty) {
    display: none;
  }
}

/* Trainingsgruppen-Karte */
.group {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.group:nth-child(even) .group__media {
  order: 2;
}

.group__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
}

.group__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.group:hover .group__media img {
  transform: scale(1.05);
}

.group__index {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.4rem 0.9rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.group__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.98;
  text-transform: uppercase;
  margin-block: 0.7rem 0.9rem;
}

.group__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 1.2rem;
}

.slot-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: #fff;
}

.slot-pill__day {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.slot-pill__time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-hot);
}

.slot-pill__season {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.group__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.group__facts > * {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.group__facts svg {
  width: 15px;
  height: 15px;
  color: var(--red);
  flex: none;
}

@media (max-width: 820px) {
  .group {
    grid-template-columns: 1fr;
  }

  .group:nth-child(even) .group__media {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   13 Team, Partner, Downloads
   -------------------------------------------------------------------------- */

.person {
  position: relative;
  background: var(--surface);
}

.person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-3);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}

.person:hover .person__photo img {
  filter: grayscale(0);
  transform: scale(1.04);
}

/* Platzhalter mit Initialen, wenn kein Foto hinterlegt ist */
.person__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
}

.person__body {
  padding: 1.1rem 0 0;
}

.person__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  line-height: 1.05;
}

.person__role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.35rem;
}

.person__mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--text-muted);
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.person__mail:hover {
  color: var(--text);
  border-bottom-color: var(--red);
}

/* Partner-Logos */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.partner-strip__item {
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 130px;
  transition: background var(--dur) var(--ease-out);
}

.partner-strip__item:hover {
  background: var(--paper-2);
}

/* Logos kommen in allen Formaten – quer, hoch, quadratisch.
   Ein fester Rahmen mit object-fit gibt jedem gleich viel Platz,
   statt hochformatige Logos winzig erscheinen zu lassen. */
.partner-strip__item img {
  width: 100%;
  max-width: 190px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  /* Graustufe mit etwas mehr Kontrast – helle oder feine Logos
     verschwinden sonst im Hintergrund. */
  filter: grayscale(1) contrast(1.2);
  opacity: 0.82;
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.partner-strip__item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.partner-strip__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  transition: color var(--dur) var(--ease-out);
}

.partner-strip__item:hover .partner-strip__name {
  color: var(--red);
}

/* Download-Liste */
.dl-list {
  border-top: 1px solid var(--line);
}

.dl-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.1rem, 2.2vw, 1.6rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease-out);
}

.dl-item:hover {
  background: var(--paper-2);
}

.dl-item__ext {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex: none;
}

.dl-item:hover .dl-item__ext {
  background: var(--red);
}

.dl-item__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  line-height: 1.05;
}

.dl-item__desc {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.dl-item__size {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dl-item {
    grid-template-columns: auto 1fr;
  }

  .dl-item__size {
    grid-column: 2;
  }
}

/* --------------------------------------------------------------------------
   14 Artikel & Fließtext
   -------------------------------------------------------------------------- */

.article-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.article-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.article-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.8), rgba(8, 8, 10, 0.55) 40%, var(--ink));
}

.article-hero__inner {
  position: relative;
  z-index: 1;
}

.article-hero__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 0.88;
  text-transform: uppercase;
  margin-block: 1.25rem;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--red);
}

.prose {
  font-size: 1.075rem;
  line-height: 1.75;
  color: #26262c;
  max-width: 68ch;
}

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

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}

.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }
.prose h4 { font-size: var(--step-1); }

.prose a {
  color: var(--red);
  border-bottom: 1px solid rgba(225, 6, 0, 0.35);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.prose a:hover {
  border-bottom-color: var(--red);
  background: var(--red-wash);
}

.prose strong {
  font-weight: 650;
  color: var(--ink);
}

.prose .md-list {
  padding-left: 1.4em;
  list-style: none;
}

.prose .md-list li {
  position: relative;
  margin-top: 0.55em;
}

.prose .md-list li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}

.prose .md-list--ordered {
  counter-reset: item;
}

.prose .md-list--ordered li::before {
  counter-increment: item;
  content: counter(item);
  background: none;
  transform: none;
  left: -1.5em;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 700;
  color: var(--red);
  width: auto;
  height: auto;
}

.prose .md-quote {
  border-left: var(--rule) solid var(--red);
  padding: 0.3em 0 0.3em 1.4em;
  font-size: 1.2em;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
}

.prose .md-rule {
  border: none;
  height: var(--rule);
  background: var(--ink);
  width: 80px;
  margin-block: 2.5em;
}

.prose .md-figure {
  margin-block: 2.2em;
}

.prose .md-figure img {
  width: 100%;
}

.prose figcaption,
.figure-caption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.prose .md-code {
  background: var(--ink);
  color: #f4f4f5;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 0.15em 0.4em;
}

.prose .md-code code {
  background: none;
  padding: 0;
}

.prose .md-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.prose .md-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prose mark {
  background: var(--red-wash);
  color: inherit;
  padding: 0.1em 0.25em;
}

/* Galerie unter einem Bericht */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 4px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink-3);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

/* Bildbetrachter */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 8, 10, 0.95);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox__caption {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 1px solid var(--line-invert);
  color: #fff;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* Seitenumbruch */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.pagination a,
.pagination span {
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding-inline: 0.6rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease-out);
}

.pagination a:hover {
  border-color: var(--ink);
}

.pagination .is-current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.pagination .is-disabled {
  opacity: 0.35;
}

/* Leerer Zustand */
.empty-state {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border: 2px dashed var(--line);
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.empty-state__text {
  color: var(--text-muted);
  max-width: 46ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   15 Formulare (Kontakt, Suche)
   -------------------------------------------------------------------------- */

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: var(--step-0);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: inset 0 -3px 0 var(--red);
}

.textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.search-bar {
  display: flex;
  gap: 0;
  border: 2px solid var(--ink);
}

.search-bar .input {
  border: none;
  padding: 1.05rem 1.2rem;
}

.search-bar .input:focus {
  box-shadow: none;
}

.search-bar .btn {
  flex: none;
  border: none;
}

/* --------------------------------------------------------------------------
   16 Fußzeile
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: #fff;
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-invert);
}

.footer__claim {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.95;
  text-transform: uppercase;
  margin-block: 1rem 1.25rem;
  max-width: 16ch;
}

.footer__text {
  font-size: var(--step--1);
  color: var(--text-invert-muted);
  max-width: 40ch;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

.footer__list li + li {
  margin-top: 0.6rem;
}

.footer__list a {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}

.footer__list a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom a:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: 0.6rem;
}

.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-invert);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.social a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.social svg {
  width: 19px;
  height: 19px;
}

/* Großer Aufruf über der Fußzeile */
.cta-band {
  position: relative;
  background: var(--red);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}

.cta-band__ghost {
  position: absolute;
  inset: auto 0 -0.18em;
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 16rem);
  line-height: 0.8;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.11);
  pointer-events: none;
  white-space: nowrap;
}

.cta-band__inner {
  position: relative;
  text-align: center;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.92;
  text-transform: uppercase;
  margin-block: 1rem 1.25rem;
  text-wrap: balance;
}

.cta-band .kicker {
  color: rgba(255, 255, 255, 0.75);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   17 Bewegung & Sichtbarwerden
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out);
}

[data-reveal="clip"].is-visible {
  clip-path: inset(0 0 0 0);
}

/* Bild schiebt sich beim Scrollen leicht gegen die Richtung */
[data-parallax] {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   18 Hilfsklassen
   -------------------------------------------------------------------------- */

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

.flow > * + * { margin-top: var(--flow, 1.25rem); }
.flow-sm { --flow: 0.75rem; }
.flow-lg { --flow: 2rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--red); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.full-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.stack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hinweisboxen (z. B. Cookie-freier DSGVO-Hinweis, Ausfallmeldung) */
.notice {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-left: var(--rule) solid var(--red);
  background: var(--red-wash);
  font-size: var(--step--1);
  line-height: 1.55;
}

.notice--dark {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   19 Rücksicht
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero__media img,
  .hero__media video {
    animation: none;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .hero__title .line > span {
    transform: none;
  }
}

@media print {
  .header,
  .footer,
  .marquee,
  .cta-band,
  .hero__scroll,
  .lightbox,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  body::after {
    display: none;
  }

  .hero {
    min-height: 0;
    color: #000;
    background: none;
    padding-top: 0;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
