/**
 * Bobteam Illmann – Components CSS
 * Motorsport-Livery Komponenten (Runde 2: Helles Livery-Design)
 *
 * Farbkonzept:
 * - Grundfläche HELL (Weiß / kühles Hellgrau #f4f6f9), Text Teamblau dunkel (#0f1f38)
 * - Teamblau als kräftige Blöcke: Kopf, Hero, Fuß, Kennzahlen-Band
 * - Livery-Streifen: Diagonale Bänder Rot (#dc1444) und Blau (#0f1f38) über Weiß
 * - Kein Cyan (#4ee2ff) – Akzente ausschließlich Rot, Blau, Weiß
 * - Logo weiß – steht ausschließlich auf Teamblau (Kopf, Fuß)
 */

/* Vorhandene lokale Schriftdateien; ersetzt die alten Dateinamen aus base.css. */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/saira-vf-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/saira-vf-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-vf-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-vf-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   LAYOUT, CONTAINER & SEKTIONEN
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
  background-color: var(--color-bg);
}

.section--white {
  background-color: var(--color-bg-alt);
}

.section--subtle {
  background-color: var(--color-surface-subtle);
}

.section-header {
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-header--centered {
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--text-3xl);
  position: relative;
  display: inline-block;
  color: var(--color-text);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 680px;
  margin-top: var(--space-md);
  margin-bottom: 0;
}

/* ==========================================================================
   LIVERY-STREIFEN & RENNSPORT-DEKORATIONEN
   ========================================================================== */

/* Die charakteristische Deutschland-Trikolore als schmaler Streifen */
.livery-strip-de {
  display: flex;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--livery-black) 0%,
    var(--livery-black) 33.33%,
    var(--livery-red) 33.33%,
    var(--livery-red) 66.66%,
    var(--livery-gold) 66.66%,
    var(--livery-gold) 100%
  );
}

/* Roter Strich unter Seitenüberschriften (statt Schwarz-Rot-Gold, Entscheidung Martin 22.10.) */
.ueberschrift-strich {
  width: 64px;
  height: 3px;
  margin-top: var(--space-xs);
  background: var(--color-red);
}

.livery-strip-de--compact {
  width: 64px;
  height: 3px;
  margin-top: var(--space-xs);
}

/* Diagonales Livery-Abschlussband zwischen dunklen Teamblau-Blöcken und weißem Grund */
.livery-hero-finish {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-red) 0,
    var(--color-red) 18px,
    #ffffff 18px,
    #ffffff 24px,
    var(--color-team-blue) 24px,
    var(--color-team-blue) 42px,
    #ffffff 42px,
    #ffffff 48px
  );
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 2px solid var(--color-team-blue);
  position: relative;
  z-index: 5;
}

/* Horizontales Livery-Band für Abschnittstrenner */
.livery-divider {
  display: flex;
  height: 6px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-red) 35%,
    #ffffff 35%,
    #ffffff 40%,
    var(--color-team-blue) 40%,
    var(--color-team-blue) 100%
  );
  margin: var(--space-xl) 0;
}

/* Diagonales Racing-Band */
.livery-accent-band {
  position: relative;
  overflow: hidden;
}

.livery-accent-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 8px;
  height: 100%;
  background: var(--color-red);
  transform: skewX(var(--skew-angle));
}

/* Schräge Schnittkanten für Sektionen */
.angled-cut-top {
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
  margin-top: -30px;
  padding-top: calc(var(--space-3xl) + 30px);
}

.angled-cut-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
  margin-bottom: -30px;
  padding-bottom: calc(var(--space-3xl) + 30px);
}

/* Telemetrie-Zeile (Technische Daten im Rennsport-Look) */
.telemetry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  padding: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(15, 31, 56, 0.04);
}

/* Telemetrie innerhalb dunkler Teamblau-Blöcke (Hero / Page-Hero) */
.hero .telemetry-row,
.page-hero .telemetry-row {
  background: rgba(15, 31, 56, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--color-red);
  color: var(--color-text-on-dark);
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

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

.hero .telemetry-label,
.page-hero .telemetry-label {
  color: var(--color-text-on-dark-muted);
}

.telemetry-value {
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

.hero .telemetry-value,
.page-hero .telemetry-value {
  color: var(--color-text-on-dark);
}

/* Platzhalter-Kennzeichnung (semantisch [data-platzhalter]) */
[data-platzhalter]::after {
  content: ' [Platzhalter]';
  font-size: 0.7em;
  opacity: 0.85;
  color: var(--color-red);
  font-style: italic;
  font-weight: var(--weight-bold);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--target-min);
  min-width: var(--target-min);
  padding: 0.625rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  clip-path: var(--clip-tag);
}

.btn-primary {
  background-color: var(--color-red);
  color: var(--color-text-on-dark);
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-red-hover);
  color: var(--color-text-on-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 20, 68, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text-on-dark);
  border-color: #ffffff;
}

.btn-secondary--light {
  background-color: #ffffff;
  color: var(--color-team-blue);
  border: 1px solid var(--color-border);
}

.btn-secondary--light:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-team-blue);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.75rem 2rem;
}

/* ==========================================================================
   HEADER & HAUPTNAVIGATION (Kräftiger Teamblau-Block)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-team-blue);
  border-bottom: 2px solid var(--color-red);
  box-shadow: 0 2px 12px rgba(15, 31, 56, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-lg);
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  min-height: var(--target-min);
}

.header-logo {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Navigation Desktop */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0.5rem 0.875rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-on-dark);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-red);
}

.nav-link[aria-current="page"] {
  color: var(--color-text-on-dark);
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.875rem;
  right: 0.875rem;
  height: 3px;
  background-color: var(--color-red);
}

/* Menü Toggle (Mobile) */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  padding: var(--space-xs);
  color: var(--color-text-on-dark);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
}

.menu-toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.menu-toggle-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-on-dark);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO-BEREICH STARTSEITE (Kräftiger Teamblau-Block)
   ========================================================================== */

.hero {
  position: relative;
  padding-top: var(--space-md);
  padding-bottom: 0;
  background-color: var(--color-team-blue);
  background-image:
    linear-gradient(135deg, rgba(15, 31, 56, 0.94) 0%, rgba(15, 31, 56, 0.8) 60%, rgba(15, 31, 56, 0.92) 100%),
    url('../img/hintergrund.jpg');
  background-size: cover;
  background-position: center top;
  color: var(--color-text-on-dark);
  overflow: clip;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.hero__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Streifenmotiv im Hintergrund der Athleten (Motorsport-Livery) */
.hero-livery-stripes {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 110%;
  height: 70%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: skewX(-14deg) rotate(-3deg);
  opacity: 0.42;
  overflow: hidden;
}

.livery-stripe {
  width: 100%;
  border-radius: 4px;
}

.livery-stripe--red {
  background: linear-gradient(90deg, transparent 0%, rgba(220, 20, 68, 0.85) 35%, rgba(220, 20, 68, 0.25) 100%);
  height: 18px;
}

.livery-stripe--white {
  background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.1) 100%);
  height: 8px;
}

.livery-stripe--blue {
  background: linear-gradient(90deg, transparent 15%, rgba(30, 58, 104, 0.9) 55%, rgba(15, 31, 56, 0.2) 100%);
  height: 28px;
}

.livery-stripe--gold {
  background: linear-gradient(90deg, transparent 20%, rgba(255, 204, 0, 0.75) 65%, transparent 100%);
  height: 4px;
}

.hero__header {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-intro {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-xs);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  color: var(--color-red);
  text-transform: uppercase;
  margin-bottom: var(--space-2xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.95;
  margin-bottom: var(--space-2xs);
  text-transform: uppercase;
  font-weight: var(--weight-black);
  color: var(--color-text-on-dark);
}

.hero-lead {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-xs);
}

.hero-lead-desktop {
  display: inline;
}

/* Nächstes Rennen Box */
.hero-next-race {
  background: var(--color-team-blue-surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--color-red);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-inline: auto;
  margin-bottom: var(--space-xs);
  max-width: 480px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.next-race-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--color-red);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.next-race-row {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

.next-race-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark);
  margin-bottom: 2px;
  display: block;
}

.next-race-sep {
  display: inline;
  margin: 0 var(--space-xs);
  color: var(--color-text-on-dark-muted);
}

.next-race-date {
  display: inline;
  color: var(--color-text-on-dark-muted);
}

.next-race-extra {
  display: inline;
  color: var(--color-text-on-dark-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-text-full {
  display: inline;
}

.btn-text-short {
  display: none;
}

/* ==========================================================================
   HERO-TEAM (MECHANIK 1:1 WIE BTF)
   Pilot in der Mitte, Anschieber links und rechts überlappend dahinter
   ========================================================================== */

.hero__team {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 100%;
}

/* D5c: Weiche Tiefe hinter der gesamten Gruppe, ohne Schattenfilter am Bild. */
.hero__team::before {
  content: '';
  position: absolute;
  inset: 12% 0 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 58%, rgba(143, 216, 255, 0.12), transparent 70%);
}

.hero__member + .hero__member {
  margin-inline-start: clamp(-5.5rem, -4vw, -2rem);
}

.hero__member {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  outline: none;
  transition: none;
}

.hero__member figure {
  margin: 0;
  padding: 0;
  position: relative;
}

.hero__member picture {
  display: block;
}

.hero__member img {
  display: block;
  height: min(54svh, 440px, 23vw);
  width: auto;
  filter: none;
  -webkit-mask-image: linear-gradient(#000 0% 78%, transparent 100%);
  mask-image: linear-gradient(#000 0% 78%, transparent 100%);
  transition: filter 200ms ease-out;
}

/* Z-Index-Staffelung: Pilot vorn, nach außen abnehmend */
.hero__member--pilot {
  z-index: 4;
}

.hero__member--pilot img {
  height: min(62svh, 510px, 27vw);
}

.hero__member:nth-child(3),
.hero__member:nth-child(5) {
  z-index: 3;
}

.hero__member:nth-child(2),
.hero__member:nth-child(6) {
  z-index: 2;
}

.hero__member:nth-child(1) {
  z-index: 1;
}

/* Beschriftung (Name + Rolle bei Hover/Fokus) */
.hero__member figcaption {
  position: absolute;
  inset: 52% auto auto 50%;
  width: max-content;
  max-width: calc(100vw - 16px);
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  line-height: 1.3;
  color: var(--color-text-on-dark);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  opacity: 0;
  padding: 0.25rem 0.375rem;
  background: rgba(6, 16, 28, 0.92);
  border-radius: 0.25rem;
  transition: opacity 200ms ease-out;
  pointer-events: none;
}

.hero__member figcaption b {
  display: block;
  font-weight: var(--weight-bold);
  font-size: 1.25rem;
  color: #ffffff;
  white-space: nowrap;
}

.hero__member figcaption span {
  color: #ffffff;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero__member:hover figcaption,
.hero__member:focus-visible figcaption {
  opacity: 1;
}

.hero__member:hover img,
.hero__member:focus-visible img {
  filter: brightness(1.12);
}

.hero__member:focus-visible {
  outline: 2px solid var(--focus-ring-inner) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px var(--color-red) !important;
  border-radius: var(--radius-sm);
}

/* Helligkeit und Beschriftung bleiben bei reduzierter Bewegung sofort sichtbar. */
@media (prefers-reduced-motion: reduce) {
  .hero__member img,
  .hero__member figcaption {
    transition: none !important;
  }
}

/* D5b: Gleich breite Flanken halten den Piloten auch bei ungleichen
   Mannschaftsgrößen exakt mittig. Die flache Liste erhält den Mobilwechsel. */
@media (width > 48rem), (orientation: landscape) {
  /* Die vollständigen Renninfos bleiben lesbar, belegen aber weniger Höhe. */
  .hero .telemetry-row { margin-bottom: 8px; padding-block: 4px; }
  .hero-lead { max-width: 680px; margin-bottom: 4px; }
  .hero-next-race { max-width: 680px; }
  .hero-next-race .next-race-title { display: inline; }

  .hero__team {
    /* 4:5-Freisteller: Breite = 0,8 × Höhe. Die linke Flanke bestimmt
       den Platzbedarf einschließlich 20 % Überlappung je Nachbar. */
    --hero-pilot-h: min(66svh, 640px, calc((100vw - 2rem) / 3.8208));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    width: 100%;
    max-width: 100%;
    height: var(--hero-pilot-h);
    margin: calc(12px - var(--hero-pilot-h) * 0.08) 0 0;
    transform: none;
  }

  .hero__member:nth-child(n) {
    --hero-mass: 1;
    --hero-rang: 4;
    grid-row: 1;
    width: max-content;
    min-width: 0;
    z-index: auto;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__member + .hero__member { margin-inline-start: 0; }
  .hero__member--links { grid-column: 1; justify-self: end; }
  .hero__member--pilot { grid-column: 2; }
  .hero__member--rechts { grid-column: 3; justify-self: start; }

  .hero__member.hero__member--nah {
    --hero-mass: 0.88;
    --hero-rang: 3;
    --hero-abstand: calc(var(--hero-pilot-h) * -0.1408);
  }
  .hero__member.hero__member--mitte {
    --hero-mass: 0.78;
    --hero-rang: 2;
    --hero-abstand: calc(var(--hero-pilot-h) * 0.4384);
  }
  .hero__member.hero__member--aussen {
    --hero-mass: 0.70;
    --hero-rang: 1;
    --hero-abstand: calc(var(--hero-pilot-h) * 0.9504);
  }

  .hero__member figure,
  .hero__member picture {
    width: max-content;
    max-width: none;
    /* Eine Maske auf figure würde auch Namen ausblenden und einsperren. */
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__member:nth-child(n) img {
    position: relative;
    z-index: var(--hero-rang);
    width: auto;
    max-width: none;
    height: calc(var(--hero-pilot-h) * var(--hero-mass));
    transform: none;
    -webkit-mask-image: linear-gradient(#000 0% 78%, transparent 100%);
    mask-image: linear-gradient(#000 0% 78%, transparent 100%);
    transition: filter 200ms ease-out;
  }
  .hero__member--links img { margin-inline-end: var(--hero-abstand); }
  .hero__member--rechts img { margin-inline-start: var(--hero-abstand); }

  /* Die Beschriftung liegt über den unverändert gestaffelten Bildern. */
  .hero__member figcaption {
    z-index: 10;
    width: max-content;
    inset-inline: calc(var(--hero-pilot-h) * var(--hero-mass) * 0.4) auto;
  }

  .hero__member figcaption b { font-size: clamp(0.875rem, 1.39vw, 1.25rem); }
  .hero__member figcaption span { font-size: clamp(0.625rem, 0.89vw, 0.8rem); }
}

/* ==========================================================================
   PAGE-HERO FÜR UNTERSEITEN (Kräftiger Teamblau-Kopfblock)
   ========================================================================== */

.page-hero {
  background-color: var(--color-team-blue);
  color: var(--color-text-on-dark);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.page-hero .section-title {
  color: var(--color-text-on-dark);
}

.page-hero .section-lead {
  color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   ERFOLGS-KENNZAHLEN (STATS-BAND – Kräftiger Teamblau-Block)
   ========================================================================== */

.stats-bar {
  background-color: var(--color-team-blue-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid var(--color-red);
  padding: var(--space-xl) 0;
  position: relative;
  color: var(--color-text-on-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.stat-item {
  position: relative;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-red);
  background: var(--color-team-blue-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-none);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-2xs);
  letter-spacing: -0.02em;
}

.stat-number-accent {
  color: var(--color-red);
}

.stat-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-2xs);
}

.stat-detail {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   NEWS-RASTER & KARTEN (Helle Karten auf hellem Grund)
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.news-mehr {
  margin-top: var(--space-xl);
  text-align: center;
}

.news-mehr .btn {
  /* Der äußere Fokusring bleibt auch an den Knopfecken sichtbar. */
  clip-path: none;
}

.news-card[hidden] {
  display: none;
}

.news-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  clip-path: var(--clip-angle-card);
  box-shadow: var(--shadow-card);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
  border-top-color: var(--color-red);
  box-shadow: var(--shadow-card-hover);
}

.news-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--color-surface-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle);
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.news-card:hover .news-card-img {
  transform: scale(1.03);
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2f7 0%, #dfe7f0 100%);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-md);
  text-align: center;
  font-weight: var(--weight-bold);
}

.news-source-tag {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  background: var(--color-team-blue);
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--color-red);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}

.news-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-weight: var(--weight-semibold);
}

.news-card-title {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.news-card[role="button"] {
  cursor: pointer;
}

.news-card[role="button"]:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

.news-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.news-card-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--target-min);
  align-self: flex-start;
}

.news-card-link:hover {
  color: var(--color-text);
}

/* ==========================================================================
   NEWS-MODAL (DIALOG) – ILLMANN HELL / ROT
   ========================================================================== */

.news-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(760px, calc(100vw - 2rem));
  width: 100%;
  margin: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(15, 31, 56, 0.35);
}

.news-modal::backdrop {
  background: rgba(15, 31, 56, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.news-modal__box {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  position: relative;
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 10;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.news-modal__close:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-text-on-dark);
}

.news-modal__close:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.news-modal__content {
  overflow-y: auto;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.news-modal__media {
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-md);
  aspect-ratio: 16 / 9;
  background: var(--color-surface-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle);
}

.news-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-modal__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.news-modal__date {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.news-modal__title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: var(--leading-tight);
  color: var(--color-team-blue);
  margin: 0;
}

.news-modal__body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.news-modal__body p {
  margin: 0;
}

.news-modal__footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-subtle);
}

.news-modal__social-link {
  min-height: var(--target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SPONSOREN-LAUFBAND (MECHANIK WIE BTF – DIREKT UNTER DEM HERO)
   Weiße Kacheln mit roter Kante auf Teamblau
   ========================================================================== */

.section--band {
  position: relative;
  overflow: clip;
  background-color: var(--color-team-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--space-sm);
}

/* Abschluss unter dem Laufband: eine rote Linie wie unter dem Kopf */
.band-abschluss {
  height: 0;
  border-bottom: 2px solid var(--color-red);
}

.marquee {
  --logo-breite: clamp(150px, 16vw, 230px);
  --logo-abstand: 20px;
  position: relative;
  overflow: hidden;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset-block: 0;
  width: min(15vw, 140px);
  min-width: 48px;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-team-blue), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-team-blue), transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__zelle {
  flex: 0 0 calc(var(--logo-breite) + var(--logo-abstand));
  padding-inline: calc(var(--logo-abstand) / 2);
  box-sizing: border-box;
}

/* Laufender Zustand (Compositor Web Animation): Zellen im selben Rasterfeld */
.marquee__track--lauf {
  display: grid;
}

.marquee__track--lauf > .marquee__zelle {
  grid-area: 1 / 1;
  width: calc(var(--logo-breite) + var(--logo-abstand));
}

/* Kachel-Optik Illmann: Weiße Kacheln mit roter Kante auf Teamblau */
.sponsor {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  height: clamp(72px, 7vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.marquee .sponsor:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.sponsor img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sponsor-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: var(--target-min);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.sponsor-link:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px var(--color-red) !important;
}

/* Prefers-reduced-motion: Stehendes, umbrechendes Raster statt Bewegung */
.marquee__track--ruhig {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
}

.marquee__track--ruhig .marquee__zelle {
  flex: 0 1 calc(var(--logo-breite) + var(--logo-abstand));
  padding-inline: 0;
  translate: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
  }
  .marquee::before,
  .marquee::after {
    content: none;
  }
  .marquee__track {
    animation: none;
  }
}

/* ==========================================================================
   SPONSOREN-RASTER (sponsoren.html – 24 gleich große Kacheln)
   ========================================================================== */

.sponsoren-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.sponsoren-grid .sponsor {
  min-width: 0;
  height: 160px;
  padding: 0;
  box-shadow: var(--shadow-card);
}

.sponsoren-grid .sponsor img {
  width: 75%;
  height: 120px;
  object-fit: contain;
}

@media (width < 1280px) {
  .sponsoren-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width < 1024px) {
  .sponsoren-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width < 768px) {
  .sponsoren-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsoren-grid .sponsor {
    height: 150px;
  }

  .sponsoren-grid .sponsor img {
    max-width: 240px;
    height: 110px;
  }
}

/* ==========================================================================
   TEAM-SEITE (team.html)
   ========================================================================== */

/* Pilot hervorgehoben (im Page-Hero-Block) */
.pilot-card {
  background: var(--color-team-blue-surface);
  border: 2px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  clip-path: var(--clip-angle-card);
  position: relative;
  color: var(--color-text-on-dark);
  scroll-margin-top: 100px;
}

.pilot-badge-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: var(--weight-black);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  letter-spacing: -0.05em;
}

.pilot-media {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1e3a68 0%, var(--color-team-blue) 85%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pilot-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pilot-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pilot-role {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xs);
}

.pilot-name {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-on-dark);
}

.pilot-desc {
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-md);
}

/* Athleten-Raster (5 Anschieber – Helle Karten) */
.athletes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.athlete-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  overflow: hidden;
  clip-path: var(--clip-angle-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 100px;
}

.athlete-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border);
  border-top-color: var(--color-red);
  box-shadow: var(--shadow-card-hover);
}

/* Freisteller-Porträt auf Teamfarbe (team.html) */
.athlete-media {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1e3a68 0%, var(--color-team-blue) 85%);
  border-bottom: 2px solid var(--color-red);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.athlete-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--transition-normal);
}

.athlete-card:hover .athlete-img {
  transform: scale(1.03);
}

/* Porträt-Platzhalter 4:5 mit Name */
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #eef2f7 0%, #dfe7f0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 2px solid var(--color-red);
  padding: var(--space-lg);
  text-align: center;
}

.portrait-placeholder-icon {
  width: 64px;
  height: 64px;
  color: #8a9bb0;
  margin-bottom: var(--space-md);
}

.portrait-placeholder-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: var(--space-2xs);
}

.portrait-placeholder-tag {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--weight-bold);
}

.athlete-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.athlete-role {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xs);
}

.athlete-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

/* Datenblatt im Startnummern-Look */
.data-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-top: auto;
}

.data-sheet tr {
  border-bottom: 1px solid var(--color-border-subtle);
}

.data-sheet tr:last-child {
  border-bottom: none;
}

.data-sheet th {
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0;
  width: 40%;
}

.data-sheet td {
  text-align: right;
  font-weight: var(--weight-medium);
  color: var(--color-text);
  padding: 0.375rem 0;
}

/* Datenblatt im Pilot-Block auf Teamblau */
.pilot-card .data-sheet tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pilot-card .data-sheet th {
  color: var(--color-text-on-dark-muted);
}

.pilot-card .data-sheet td {
  color: var(--color-text-on-dark);
}

/* Trainer-Bereich */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.trainer-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.trainer-role {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xs);
}

.trainer-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.trainer-club {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.trainer-desc {
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ==========================================================================
   ERFOLGE-SEITE (erfolge.html)
   Medaillenfarbe UND Text ("1.", "2.", "3.") – Barrierefrei WCAG AA
   ========================================================================== */

.erfolge-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 900px) {
  .erfolge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.erfolge-season {
  min-width: 0;
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.season-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-border);
}

.season-title {
  font-size: var(--text-2xl);
  color: var(--color-text);
}

.erfolge-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.erfolg-card {
  padding-block: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.erfolg-card + .erfolg-card {
  border-top: 1px solid var(--color-border-subtle);
}

/* Medaillen-Badge mit Text UND Farbe */
.medal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 44px;
  padding: 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-black);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.medal-badge--1 {
  background-color: var(--medal-gold-bg);
  color: var(--medal-gold-text);
  border: 2px solid var(--medal-gold-border);
}

.medal-badge--2 {
  background-color: var(--medal-silver-bg);
  color: var(--medal-silver-text);
  border: 2px solid var(--medal-silver-border);
}

.medal-badge--3 {
  background-color: var(--medal-bronze-bg);
  color: var(--medal-bronze-text);
  border: 2px solid var(--medal-bronze-border);
}

.erfolg-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.erfolg-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2xs);
}

.erfolg-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   TERMINE-SEITE (termine.html)
   ========================================================================== */

.termine-list {
  display: grid;
  gap: var(--space-md);
}

.termin-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-lg);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.termin-card:hover {
  border-color: var(--color-border);
  border-left-color: var(--color-red);
  box-shadow: var(--shadow-card-hover);
}

/* Nächstes Rennen hervorgehoben */
.termin-card--next {
  background: #ffffff;
  border: 2px solid var(--color-red);
  border-left: 6px solid var(--color-red);
  box-shadow: 0 4px 20px rgba(220, 20, 68, 0.2);
  position: relative;
}

.termin-card--next::before {
  content: 'NÄCHSTES RENNEN';
  position: absolute;
  top: -12px;
  left: var(--space-lg);
  background: var(--color-red);
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
}

.termin-date-box {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--color-red);
  padding-left: var(--space-sm);
}

.termin-date {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  color: var(--color-text);
  line-height: var(--leading-tight);
}

.termin-year {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.termin-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.termin-location {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2xs);
}

.termin-competition {
  font-size: var(--text-sm);
  color: var(--color-red);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--weight-semibold);
}

.termine-hinweis {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted, #4a5568);
}

.termin-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

/* ==========================================================================
   SHOP-SEITEN (shop.html & shop-produkt.html)
   ========================================================================== */

.shop-category {
  margin-bottom: var(--space-4xl);
}

.shop-category-header {
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-sm);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.product-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  clip-path: var(--clip-angle-card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
  border-top-color: var(--color-red);
  box-shadow: var(--shadow-card-hover);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

/* Neutrale Platzhalterfläche für Artikel ohne eigenes Bild mit "Bild folgt" */
.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4f6f9 0%, #e5ebf2 100%);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-md);
  text-align: center;
  border: 1px dashed var(--color-border);
  font-weight: var(--weight-bold);
}

.product-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.product-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-card-price-row {
  margin-top: auto;
  padding-top: var(--space-sm);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--color-border-subtle);
}

.product-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  color: var(--color-text);
}

.product-vat-note {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* PRODUKT-DETAILSEITE (shop-produkt.html mit Galerie) */
.product-back-link-wrap {
  padding-top: var(--space-xl);
}

.product-back-link {
  margin-bottom: var(--space-md);
}

.product-detail-section {
  padding-top: var(--space-md);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Galerie-Komponente */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-gallery-main {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  clip-path: var(--clip-angle-card);
  box-shadow: var(--shadow-card);
}

.product-detail-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 3px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}

.gallery-thumb:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.gallery-thumb.is-active,
.gallery-thumb[aria-pressed="true"] {
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px rgba(220, 20, 68, 0.35);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-detail-tag {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.product-detail-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.product-detail-price-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 2px 8px rgba(15, 31, 56, 0.04);
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-text);
  line-height: var(--leading-none);
  margin-bottom: var(--space-2xs);
}

.product-detail-tax-info {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.selected-size-highlight {
  color: var(--color-red);
}

/* Größenwahl als Knopfreihe (KEIN Select!) */
.size-selector-group {
  margin-bottom: var(--space-xl);
}

.selector-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.size-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.size-btn {
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0.5rem 1rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--color-red);
  background-color: var(--color-surface-hover);
}

.size-btn[aria-pressed="true"] {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-text-on-dark);
  box-shadow: 0 0 10px rgba(220, 20, 68, 0.4);
}

/* Mengenauswahl & Warenkorb */
.purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.qty-btn {
  width: var(--target-min);
  height: var(--target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--color-surface-hover);
}

.qty-input {
  width: 50px;
  height: var(--target-min);
  text-align: center;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-notice {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: var(--text-sm);
}

.product-specs {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
}

.product-specs-title {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

/* ==========================================================================
   FOOTER (Kräftiger Teamblau-Block)
   ========================================================================== */

.site-footer {
  background-color: var(--color-team-blue);
  border-top: 3px solid var(--color-red);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  position: relative;
  color: var(--color-text-on-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
  color: var(--color-text-on-dark);
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  max-width: 400px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-2xs);
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-red);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav-link {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--color-red);
}

/* Hauptnavigation im Fuß: gleiche Punkte und gleiche Schreibweise wie oben im Kopf */
.footer-nav-list--haupt {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 var(--space-xs);
  margin-inline-start: -0.875rem;
}

.footer-nav-list--haupt .footer-nav-link {
  padding: 0.5rem 0.875rem;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-on-dark);
}

/* Bob-Allianz Sachsen im Fuß: Hinweis, BAS-Logo und Teamlogos linksbündig. */
.bas-zeile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.bas-zeile__haupt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  min-height: var(--target-min);
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-weight: 600;
}

.bas-zeile__logo {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.bas-zeile__teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.bas-zeile__team {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  min-width: var(--target-min);
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.bas-zeile__team:hover,
.bas-zeile__team:focus-visible { opacity: 1; }

.bas-zeile__team img {
  height: 28px;
  width: auto;
}

/* Das Friedrich-Logo ist zweizeilig und wirkt bei gleicher Höhe zu klein */
.bas-zeile__team--friedrich img { height: 40px; }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-lg);
  max-width: 100%;
}

.footer-legal-link {
  color: var(--color-text-on-dark-muted);
  text-decoration: none;
  min-height: var(--target-min);
  min-width: var(--target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-legal-link:hover {
  color: var(--color-text-on-dark);
}

/* Kontakt und Rechtstexte: ruhige Lesespalte mit umbrechenden Inhalten. */
.textseite {
  max-width: 72ch;
  margin-inline: auto;
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.textseite h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: var(--text-2xl);
}

.textseite h3,
.textseite h4 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xl);
}

.textseite h4 {
  font-size: var(--text-lg);
}

.textseite > :first-child {
  margin-top: 0;
}

.textseite p,
.textseite address,
.textseite ul,
.textseite ol,
.textseite table {
  margin-bottom: var(--space-lg);
}

.textseite address {
  font-style: normal;
}

.textseite ul,
.textseite ol {
  padding-left: var(--space-lg);
}

.textseite ul { list-style: disc; }
.textseite ol { list-style: decimal; }

.textseite a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  min-width: var(--target-min);
  max-width: 100%;
}

.textseite table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.textseite caption {
  text-align: left;
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
}

.textseite th,
.textseite td {
  padding: var(--space-xs);
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.textseite th:first-child {
  width: 40%;
}

.textseite thead,
.entwurf-hinweis {
  background: var(--color-surface-subtle);
}

.entwurf-hinweis {
  padding: var(--space-md);
  border-left: 4px solid var(--color-red);
  font-weight: var(--weight-semibold);
}

/* ==========================================================================
   RESPONSIVE DESIGN (390px, 768px, 1024px, 1440px)
   Kein waagerechtes Scrollen – alle Tippziele >= 44px
   ========================================================================== */

/* Ab 1024px: Desktop */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .athletes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Sieben Menüpunkte: unter 960 px die vollständige aufklappbare Navigation. */
@media (width < 960px) {
  .header-inner {
    height: 70px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-team-blue);
    border-bottom: 3px solid var(--color-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: var(--space-lg) var(--container-pad);
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .main-nav[data-open="true"] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2xs);
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    background: var(--color-team-blue-surface);
  }

  .nav-link[aria-current="page"] {
    border-left: 4px solid var(--color-red);
    background: #1e3a68;
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }
}

/* Bis 768px: Tablet */
@media (max-width: 768px) {
  .pilot-card {
    grid-template-columns: 1fr;
  }

  .pilot-media {
    max-width: 320px;
    margin: 0 auto;
  }

  .athletes-grid {
    grid-template-columns: 1fr;
  }

  .trainers-grid {
    grid-template-columns: 1fr;
  }

  .termin-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .termin-date-box {
    border-left: none;
    border-bottom: 2px solid var(--color-red);
    padding-left: 0;
    padding-bottom: var(--space-xs);
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ==========================================================================
   HERO MOBIL (SCHMAL: max-width 48rem UND orientation: portrait – WIE BTF)
   Pilot steht fest mittig vorn, Anschieber wechseln paarweise dahinter
   ========================================================================== */

@media (max-width: 48rem) and (orientation: portrait) {
  .hero {
    padding-top: var(--space-xs);
  }

  /* Telemetrie & Zusatztexte auf schmal ausblenden für Pilot im 1. Bildschirm */
  .hero .telemetry-row {
    display: none;
  }

  .hero-lead {
    display: none;
  }

  .hero-next-race {
    display: none;
  }

  .hero-actions {
    display: none;
  }

  .hero-intro {
    margin-bottom: var(--space-2xs);
  }

  .hero-title {
    font-size: 1.85rem;
    margin-bottom: 2px;
  }

  .hero__team {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: end center;
    overflow: clip;
    /* Mit angehobenen Anschiebern bleiben die Köpfe neben den Pilotschultern frei. */
    --hero-anschieber-h: min(42svh, 350px, 60vw);
    --hero-wechsel: 1300ms;
    --hero-kurve: cubic-bezier(0.45, 0, 0.2, 1);
    --hero-verzug: 650ms;
  }

  .hero__member {
    grid-area: 1 / 1;
  }

  .hero__member + .hero__member {
    margin-inline-start: 0;
  }

  .hero__member--pilot {
    transform: none;
  }

  .hero__member--pilot img {
    height: min(56svh, 460px, 82vw);
  }

  .hero__member:not(.hero__member--pilot) {
    --x: 0px;
    z-index: auto;
    width: 100%;
    animation: none;
  }

  .hero__member:not(.hero__member--pilot) figure {
    padding-block-end: calc(var(--hero-anschieber-h) * 0.26);
  }

  .hero__member:not(.hero__member--pilot) picture {
    display: block;
    width: max-content;
    margin-inline: auto;
    opacity: 0;
    transform: translateX(var(--x));
    transition:
      opacity var(--hero-wechsel) var(--hero-kurve),
      transform var(--hero-wechsel) var(--hero-kurve);
    will-change: opacity, transform;
    position: relative;
    z-index: 1;
  }

  .hero__member:not(.hero__member--pilot) img {
    height: var(--hero-anschieber-h);
  }

  .hero__member[data-seite='links'] picture {
    --x: calc(-50vw + 50% + 8px);
  }

  .hero__member[data-seite='rechts'] picture {
    --x: calc(50vw - 50% - 8px);
  }

  .hero__member.is-sichtbar picture {
    opacity: 1;
    transform: translateX(var(--x));
    transition-delay: var(--hero-verzug);
  }

  .hero__member:nth-child(n) {
    z-index: auto;
    transform: none;
    transition: none;
  }

  .hero__member--pilot picture {
    position: relative;
    z-index: 2;
  }

  .hero__member figcaption {
    z-index: 10;
    opacity: 1;
    transform: none;
    line-height: 1.2;
    padding-inline: 0.125rem;
  }

  .hero__member figcaption span {
    display: block;
    letter-spacing: 0.04em;
  }

  /* Kompakte Beschriftungen bleiben auch am Rand vollständig auf einer Zeile. */
  .hero__member figcaption b {
    font-size: 0.75rem;
    overflow-wrap: normal;
  }

  .hero__member figcaption span { font-size: 0.625rem; }

  .hero__member--pilot figcaption {
    inset: 56% 0 auto;
    width: max-content;
    max-width: calc(100vw - 32px);
    margin-inline: auto;
  }

  .hero__member:not(.hero__member--pilot) figcaption {
    inset-block: 44% auto;
    width: max-content;
    opacity: 0;
    transition: opacity var(--hero-wechsel) var(--hero-kurve);
  }

  .hero__member.is-sichtbar figcaption {
    opacity: 1;
    transition-delay: var(--hero-verzug);
  }

  .hero__member[data-seite='links'] figcaption {
    inset-inline: calc((100% - 100vw) / 2 + 8px) auto;
    text-align: center;
  }

  .hero__member[data-seite='rechts'] figcaption {
    inset-inline: auto calc((100% - 100vw) / 2 + 8px);
    text-align: center;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__member:not(.hero__member--pilot) picture,
    .hero__member:not(.hero__member--pilot) figcaption {
      transition: none !important;
    }
  }
}

/* Ab 390px: Mobil */
@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .erfolg-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* Reihe über die volle Inhaltsbreite (Entscheidung Martin 22.10.):
   Frytz – Dahms – Illmann – Koller – Proske – Strauß, Max an dritter Stelle.
   4:5-Freisteller (Breite = 0,8 × Höhe), Größen 0,78 / 0,88 / 1 / 0,88 / 0,78 / 0,70,
   Überlappung je 20 % der kleineren Nachbarbreite. Bildanfänge in Pilothöhen H:
   0 / 0,4992 / 1,0624 / 1,7216 / 2,3008 / 2,8128, Ende 3,3728 H = Inhaltsbreite. */
@media (width > 48rem), (orientation: landscape) {
  .hero__team {
    --hero-pilot-h: min(66svh, 640px, calc((100vw - 2rem) / 3.3728));
    grid-template-columns: minmax(0, 1fr);
    width: min(100% - 2rem, 1400px);
    margin-inline: auto;
  }

  .hero__member:nth-child(n) {
    grid-area: 1 / 1;
    justify-self: start;
  }
  .hero__member.hero__member--links,
  .hero__member.hero__member--pilot,
  .hero__member.hero__member--rechts {
    grid-column: 1;
    justify-self: start;
  }

  .hero__member.hero__member--links.hero__member--mitte { --hero-start: 0px; }
  .hero__member.hero__member--links.hero__member--nah { --hero-start: calc(var(--hero-pilot-h) * 0.4992); }
  .hero__member.hero__member--pilot { --hero-start: calc(var(--hero-pilot-h) * 1.0624); }
  .hero__member.hero__member--rechts.hero__member--nah { --hero-start: calc(var(--hero-pilot-h) * 1.7216); }
  .hero__member.hero__member--rechts.hero__member--mitte { --hero-start: calc(var(--hero-pilot-h) * 2.3008); }
  .hero__member.hero__member--rechts.hero__member--aussen { --hero-start: calc(var(--hero-pilot-h) * 2.8128); }

  .hero__member--links img,
  .hero__member--rechts img { margin-inline-end: 0; }
  .hero__member:nth-child(n) img { margin-inline-start: var(--hero-start); }

  .hero__member figcaption,
  .hero__member--rechts figcaption {
    inset-inline: calc(var(--hero-start) + var(--hero-pilot-h) * var(--hero-mass) * 0.4) auto;
  }
}

/* Sehr schmale Querformate behalten dieselbe Aufstellung ohne überstehende Namen. */
@media (max-width: 48rem) and (orientation: landscape) {
  .hero__member figcaption b { font-size: 0.625rem; }
  .hero__member figcaption span { font-size: 0.5rem; }
}
