/* =========================================================
   JÖRG'S FAHRSCHULE — STYLESHEET
   Dunkles Grau + Signalgelb (#ffff00). Schrift lokal: /fonts.
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --yellow-hsl: 60 100% 50%;          /* #ffff00 */
  --gray-hsl: 60 3% 11%;

  --color-bg: hsl(var(--gray-hsl));
  --color-surface: hsl(60 3% 14%);
  --color-surface-raised: hsl(60 3% 18%);
  --color-border: hsl(60 4% 25%);
  --color-border-strong: hsl(60 4% 38%);
  --color-text: hsl(60 12% 95%);
  --color-text-muted: hsl(60 5% 68%);
  --color-accent: hsl(var(--yellow-hsl));
  --color-accent-dim: hsl(60 100% 45%);
  --color-on-accent: hsl(60 6% 8%);
  --color-on-accent-muted: hsl(60 8% 22%);

  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --weight-body: 300;
  --weight-strong: 650;
  --weight-display: 800;
  --stretch-display: 112%;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;

  --gutter: clamp(20px, 5vw, 64px);
  --container: 1280px;
  --container-md: 1024px;
  --container-sm: 768px;
  --section-pad: clamp(80px, 12vw, 160px);

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: clamp(24px, 4vw, 48px);
  --radius-full: 999px;

  --header-h: 56px;
  --tabbar-h: 64px;

  /* Federkurven: erst Fallback, darunter echte Spring-Samples (linear()) */
  --spring-snappy: cubic-bezier(0.2, 0.9, 0.3, 1.05);
  --spring-fluid: cubic-bezier(0.2, 0.85, 0.3, 1.03);
  --spring-bouncy: cubic-bezier(0.3, 1.4, 0.5, 1);
  --dur-snappy: 0.39s;
  --dur-fluid: 0.6s;
  --dur-bouncy: 0.7s;
  --stagger: 60ms;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* stiffness 400 / damping 30 */
    --spring-snappy: linear(0, 0.035, 0.12, 0.228, 0.35, 0.468, 0.581, 0.679, 0.767, 0.836, 0.894, 0.938, 0.971, 0.994, 1.011, 1.021, 1.026, 1.027, 1.027, 1.025, 1.022, 1.019, 1.016, 1.012, 1.01, 1.007, 1.005, 1.003, 1);
    /* stiffness 170 / damping 20 */
    --spring-fluid: linear(0, 0.035, 0.119, 0.23, 0.351, 0.471, 0.582, 0.681, 0.766, 0.836, 0.89, 0.934, 0.966, 0.989, 1.005, 1.015, 1.02, 1.023, 1.023, 1.021, 1.019, 1.016, 1.014, 1.011, 1.008, 1.006, 1.005, 1.003, 1);
    /* stiffness 300 / damping 18 */
    --spring-bouncy: linear(0, 0.082, 0.271, 0.5, 0.72, 0.899, 1.03, 1.11, 1.144, 1.144, 1.123, 1.091, 1.058, 1.027, 1.005, 0.989, 0.981, 0.978, 0.98, 0.984, 0.989, 0.994, 0.998, 1.001, 1.002, 1.003, 1.003, 1.003, 1);
  }
}

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

html {
  scroll-padding-top: calc(var(--header-h) + var(--s-12));
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: var(--weight-body);
  line-height: 1.55;
  letter-spacing: 0.005em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
strong { font-weight: var(--weight-strong); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

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

.sprite { position: absolute; }

.skip-link {
  position: fixed;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 100;
  padding: var(--s-3) var(--s-6);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: var(--weight-strong);
  border-radius: var(--radius-full);
  transform: translateY(-200%);
  transition: transform var(--dur-snappy) var(--spring-snappy);
}
.skip-link:focus { transform: none; outline-color: var(--color-text); }

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

/* ============ TYPE ============ */
h1, h2, .display {
  font-weight: var(--weight-display);
  font-stretch: var(--stretch-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 5vw, 4rem);
  max-width: 18ch;
  text-wrap: balance;
}
h2.display {
  font-size: clamp(2.25rem, 9vw, 8rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 14ch;
}
h3 {
  font-size: 1.25rem;
  font-weight: var(--weight-strong);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.accent { color: var(--color-accent); }

/* Eyebrow: kurzer Fahrbahnstrich vor dem Label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: var(--weight-strong);
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 4px;
  background: var(--color-accent);
  transform: skewX(-24deg);
}

.footnote {
  margin-top: var(--s-8);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.footnote a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.footnote a:hover { color: var(--color-accent); }

/* ============ BUTTONS ============ */
.btn {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-6);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--radius-full);
  font-weight: var(--weight-strong);
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  transition: transform var(--dur-snappy) var(--spring-snappy), background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}
.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-bouncy) var(--spring-bouncy);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: 0.9375rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-text); border-color: var(--color-border-strong); }
.btn--dark { --btn-bg: var(--color-on-accent); --btn-fg: var(--color-accent); }
.btn--outline-dark { --btn-bg: transparent; --btn-fg: var(--color-on-accent); border-color: var(--color-on-accent); }
.btn--dark:focus-visible, .btn--outline-dark:focus-visible { outline-color: var(--color-on-accent); }
.btn:focus-visible { border-radius: var(--radius-full); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover:active { transform: scale(0.97); }
  .btn:hover .btn__icon { transform: translate(3px, -3px); }
  .btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
  .btn--outline-dark:hover { background: var(--color-on-accent); color: var(--color-accent); }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  transition: transform var(--dur-snappy) var(--spring-snappy), background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, opacity 0.2s ease-out;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn__flip { transform: scaleX(-1); }
.icon-btn:focus-visible { border-radius: var(--radius-full); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
  .icon-btn:not(:disabled):hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: var(--s-4);
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  width: min(100% - 2 * var(--gutter), var(--container));
  min-height: var(--header-h);
  margin-inline: auto;
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  background: hsl(60 3% 14% / 0);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  pointer-events: auto;
  transition: background-color 0.3s ease-out, border-color 0.3s ease-out;
}
.header.is-scrolled .header__inner {
  background: hsl(60 3% 14% / 0.82);
  border-color: var(--color-border);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__mark { flex: none; transition: transform var(--dur-bouncy) var(--spring-bouncy); }
.brand strong { font-weight: 750; font-stretch: 108%; }
@media (hover: hover) {
  a.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
}

.nav { position: relative; }
.nav ul { display: flex; gap: var(--s-1); }
.nav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 450;
  border-radius: var(--radius-full);
  transition: color 0.2s ease-out;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--color-text); }
/* Aktiv-Markierung: ein Fahrbahnstrich, der zwischen den Links gleitet */
.nav__dot {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 20px;
  height: 3px;
  background: var(--color-accent);
  opacity: 0;
  transform: translateX(var(--x, 0px)) skewX(-24deg);
  transition: transform var(--dur-fluid) var(--spring-fluid), opacity 0.2s ease-out;
}
.nav__dot.is-on { opacity: 1; }

@media (max-width: 899px) {
  .nav, .header .btn { display: none; }
  .header__inner { width: fit-content; padding-right: var(--s-6); margin-inline: var(--gutter) auto; }
}

/* ============ TABBAR (mobil) ============ */
.tabbar {
  position: fixed;
  left: var(--s-3);
  right: var(--s-3);
  bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-1);
  padding: var(--s-1);
  background: hsl(60 3% 18% / 0.9);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 56px;
  border-radius: 18px;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  touch-action: manipulation;
  transition: transform var(--dur-snappy) var(--spring-snappy), background-color 0.2s ease-out;
}
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__item:active { transform: scale(0.94); background: var(--color-border); }
.tabbar__item--accent { background: var(--color-accent); color: var(--color-on-accent); }
.tabbar__item--accent:active { background: var(--color-accent-dim); }
.tabbar__item--accent:focus-visible { outline-color: var(--color-text); }
.tabbar__burger { display: grid; gap: 6px; width: 22px; height: 22px; align-content: center; }
.tabbar__burger span { height: 2px; background: currentColor; border-radius: 2px; }
@media (min-width: 900px) { .tabbar { display: none; } }
@media (max-width: 899px) {
  body { padding-bottom: calc(var(--tabbar-h) + var(--s-6) + env(safe-area-inset-bottom)); }
}

/* ============ MENÜ (dialog) ============ */
.menu {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-bg);
  color: var(--color-text);
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.2s ease-out, translate 0.2s ease-out, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
}
.menu[open] {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.25s ease-out, translate var(--dur-fluid) var(--spring-fluid), display var(--dur-fluid) allow-discrete, overlay var(--dur-fluid) allow-discrete;
}
@starting-style {
  .menu[open] { opacity: 0; translate: 0 24px; }
}
.menu::backdrop { background: var(--color-bg); }
.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-8);
  min-height: 100%;
  padding: var(--s-16) var(--gutter) calc(var(--s-8) + env(safe-area-inset-bottom));
}
.menu__list { display: grid; gap: var(--s-1); }
.menu__list a {
  display: block;
  padding: var(--s-2) 0;
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: var(--weight-display);
  font-stretch: var(--stretch-display);
  letter-spacing: -0.035em;
  line-height: 1.1;
  opacity: 0;
  translate: 0 20px;
  transition: color 0.2s ease-out;
}
.menu[open] .menu__list a {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.3s ease-out calc(var(--i) * var(--stagger) + 60ms), translate var(--dur-fluid) var(--spring-fluid) calc(var(--i) * var(--stagger) + 60ms), color 0.2s ease-out;
}
@starting-style {
  .menu[open] .menu__list a { opacity: 0; translate: 0 20px; }
}
.menu__list li:nth-child(1) a { --i: 0; }
.menu__list li:nth-child(2) a { --i: 1; }
.menu__list li:nth-child(3) a { --i: 2; }
.menu__list li:nth-child(4) a { --i: 3; }
.menu__list li:nth-child(5) a { --i: 4; }
.menu__list li:nth-child(6) a { --i: 5; }
.menu__list a:active { color: var(--color-accent); }
.menu__contact { color: var(--color-text-muted); font-size: 0.9375rem; }
.menu__contact a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 4px; }
.menu__close { align-self: stretch; }

/* ============ HERO ============ */
.hero {
  display: flex;
  align-items: center;
  min-height: min(100svh, 960px);
  padding: calc(var(--header-h) + var(--s-16)) 0 var(--s-16);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s-12) clamp(var(--s-8), 5vw, var(--s-24));
  align-items: center;
}
.hero__content { will-change: transform; }
.hero__title {
  font-size: clamp(2rem, 4.4vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}
/* Maske je Zeile: Text fährt von unten ein */
.line {
  display: block;
  overflow: hidden;
  padding-block: 0.12em;
  margin-block: -0.12em;
}
.line > span { display: block; }

.hero__lead {
  max-width: 46ch;
  margin-top: var(--s-8);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--color-text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.hero__facts li { display: flex; align-items: center; gap: var(--s-2); }
.hero__facts svg { width: 16px; height: 16px; color: var(--color-accent); flex: none; }

.hero__visual, .hero__frame { position: relative; }
.hero__photo {
  aspect-ratio: 4 / 5;
  max-height: 68svh;
  width: 100%;
  background: var(--color-surface-raised);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  scale: 1.14;
  will-change: transform;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0 var(--s-6) 0 var(--s-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease-out, transform var(--dur-snappy) var(--spring-snappy);
}
.rating:focus-visible { border-radius: var(--radius-full); }
.rating:active { transform: scale(0.97); }
.rating__stars { display: flex; gap: 2px; color: var(--color-accent); }
.rating__stars svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .rating:hover { border-color: var(--color-accent); transform: translateY(-2px); }
}

/* Einkerbungen: Seitenhintergrund schneidet eine Ecke aus dem Foto,
   ::before/::after runden die beiden Übergänge konkav aus */
.hero__visual { --notch-r: 24px; --notch-gap: 12px; }
.notch {
  position: absolute;
  z-index: 1;
  margin: 0;
  background: var(--color-bg);
}
.notch::before, .notch::after {
  content: "";
  position: absolute;
  width: var(--notch-r);
  height: var(--notch-r);
  pointer-events: none;
}
.notch--tr {
  top: 0;
  right: 0;
  display: flex;
  gap: var(--s-6);
  padding: 0 0 var(--notch-gap) calc(var(--notch-gap) + var(--s-3));
  border-bottom-left-radius: calc(var(--notch-r) + var(--notch-gap));
}
.notch--tr::before, .notch--tr::after {
  background: radial-gradient(circle at 0 100%, transparent calc(var(--notch-r) - 0.5px), var(--color-bg) var(--notch-r));
}
.notch--tr::before { top: 0; right: 100%; }
.notch--tr::after { top: 100%; right: 0; }
.notch--bl {
  left: 0;
  bottom: 0;
  padding: var(--notch-gap) var(--notch-gap) 0 0;
  border-top-right-radius: calc(var(--notch-r) + var(--notch-gap));
}
.notch--bl::before, .notch--bl::after {
  background: radial-gradient(circle at 100% 0, transparent calc(var(--notch-r) - 0.5px), var(--color-bg) var(--notch-r));
}
.notch--bl::before { left: 0; bottom: 100%; }
.notch--bl::after { left: 100%; bottom: 0; }

.stat { display: grid; gap: var(--s-1); text-align: left; }
.stat dt { color: var(--color-text-muted); font-size: 0.8125rem; font-weight: 550; letter-spacing: 0.01em; }
.stat dd {
  margin: 0;
  color: var(--color-accent);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: var(--weight-display);
  font-stretch: var(--stretch-display);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero__card {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 1;
  display: grid;
  gap: var(--s-1);
  min-width: 200px;
  padding: var(--s-4) var(--s-12) var(--s-4) var(--s-4);
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius-m);
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: transform var(--dur-snappy) var(--spring-snappy);
}
.hero__card-label { font-size: 0.8125rem; font-weight: var(--weight-strong); color: var(--color-on-accent-muted); }
.hero__card-row { font-weight: 450; }
.hero__card-row strong { display: inline-block; min-width: 2em; font-weight: var(--weight-display); font-stretch: var(--stretch-display); }
.hero__card svg {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 20px;
  height: 20px;
  transition: transform var(--dur-bouncy) var(--spring-bouncy);
}
.hero__card:focus-visible { outline-color: var(--color-text); border-radius: var(--radius-m); }
.hero__card:active { transform: scale(0.97); }
@media (hover: hover) {
  .hero__card:hover { transform: translateY(-3px); }
  .hero__card:hover svg { transform: translate(3px, -3px); }
}

@media (max-width: 899px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-12)); min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2rem, 8.6vw, 4.5rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__photo { aspect-ratio: 1; max-height: none; }
  .hero__visual { --notch-gap: 10px; }
  .stat dd { font-size: 1.5rem; }
  /* zu wenig Platz neben der Bewertung: Info-Karte unter das Foto */
  .hero__card { position: relative; right: auto; bottom: auto; margin-top: var(--s-3); }
}

/* Hero-Einstieg beim Laden */
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }
.js .hero .line > span {
  animation: rise 0.9s var(--spring-fluid) both;
  animation-delay: calc(var(--d) * 80ms + 80ms);
}
.js .hero__fade {
  animation: fade-up 0.7s var(--spring-fluid) both;
  animation-delay: calc(var(--d) * 80ms + 80ms);
}

/* ============ BÄNDER ============ */
.bands {
  position: relative;
  z-index: 2;
  height: clamp(120px, 17vw, 240px);
  overflow-x: clip;
}
.band {
  position: absolute;
  top: 50%;
  left: -5vw;
  width: 110vw;
  padding-block: clamp(10px, 1.4vw, 18px);
  font-size: clamp(1rem, 2.2vw, 1.875rem);
  font-weight: var(--weight-display);
  font-stretch: 125%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.band--dark {
  background: var(--color-surface-raised);
  color: var(--color-accent);
  border-block: 1px solid var(--color-border);
  transform: translateY(-50%) rotate(3deg);
}
.band--accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
  transform: translateY(-50%) rotate(-2.5deg);
}
.band__track { display: flex; width: max-content; will-change: transform; }
.band__group { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); }
.band__group i {
  width: clamp(20px, 3vw, 40px);
  height: clamp(4px, 0.5vw, 7px);
  background: currentColor;
  transform: skewX(-24deg);
}

/* ============ SECTIONS ============ */
.section {
  position: relative;
  padding-block: var(--section-pad);
}
.section__head { margin-bottom: clamp(var(--s-12), 6vw, var(--s-24)); }
.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-8) var(--s-16);
  align-items: end;
}
.section__note { max-width: 44ch; color: var(--color-text-muted); }
@media (max-width: 899px) {
  .section__head--split { grid-template-columns: 1fr; }
}

.theory { padding-top: calc(var(--section-pad) / 2); }

/* ============ ROWS (Theorie + Kontakt) ============ */
.rows { border-top: 1px solid var(--color-border); }
.row {
  --fg: var(--color-text);
  --fg-muted: var(--color-text-muted);
  --fg-accent: var(--color-accent);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: var(--s-4) var(--s-8);
  padding: clamp(var(--s-6), 3.4vw, var(--s-12)) clamp(var(--s-4), 2vw, var(--s-8));
  border-bottom: 1px solid var(--color-border);
  color: var(--fg);
  overflow: hidden;
  transition: color 0.25s ease-out;
}
/* Gelbe Fläche, die von unten hochfährt */
.sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-snappy) var(--spring-snappy);
}
.row__key {
  font-size: clamp(1.625rem, 3.6vw, 3rem);
  font-weight: var(--weight-display);
  font-stretch: var(--stretch-display);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--fg-accent);
  transition: color 0.25s ease-out;
}
.row__body { display: grid; gap: var(--s-1); }
.row__body address { color: var(--fg-muted); transition: color 0.25s ease-out; }
.row__link { outline: none; }
.row__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.row:has(.row__link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.row__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.9375rem;
  font-weight: var(--weight-strong);
  white-space: nowrap;
}
.row__cta svg {
  width: 22px;
  height: 22px;
  transition: transform var(--dur-bouncy) var(--spring-bouncy);
}
.row:active { --fg: var(--color-on-accent); --fg-muted: var(--color-on-accent-muted); --fg-accent: var(--color-on-accent); }
.row:active::before { transform: scaleY(1); }
@media (hover: hover) {
  .row:hover { --fg: var(--color-on-accent); --fg-muted: var(--color-on-accent-muted); --fg-accent: var(--color-on-accent); }
  .row:hover::before { transform: scaleY(1); }
  .row:hover .row__cta svg { transform: translate(4px, -4px); }
}

.row--contact { grid-template-columns: minmax(0, 0.45fr) minmax(0, 2fr) auto; }
.row--contact .row__key {
  font-size: 0.9375rem;
  font-weight: var(--weight-strong);
  font-stretch: 100%;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
}
.row__value {
  font-size: clamp(1.75rem, 5.2vw, 4.25rem);
  font-weight: var(--weight-display);
  font-stretch: var(--stretch-display);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.row__value--long {
  font-size: clamp(1.0625rem, 4.1vw, 3.25rem);
  font-stretch: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 699px) {
  .row, .row--contact { grid-template-columns: minmax(0, 1fr) auto; }
  .row__key { grid-column: 1; }
  .row__body, .row__value { grid-column: 1; grid-row: 2; }
  .row__cta { grid-column: 2; grid-row: 1 / span 2; font-size: 0; gap: 0; }
}

/* ============ KLASSEN ============ */
.classes { background: var(--color-surface); }
.rail-nav { display: grid; gap: var(--s-6); justify-items: start; }
.rail-nav__buttons { display: flex; gap: var(--s-2); }

.rail {
  --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex;
  gap: var(--s-4);
  padding: var(--s-2) var(--rail-pad) var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }

.card {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  width: clamp(248px, 72vw, 304px);
  min-height: 420px;
  padding: var(--s-6);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  scroll-snap-align: start;
  transition: transform var(--dur-fluid) var(--spring-fluid), border-color 0.2s ease-out;
}
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 28px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 550;
}
.card__badge {
  padding: 6px var(--s-3);
  background: var(--color-on-accent);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
}
.card__code {
  display: block;
  margin-block: auto;
  padding-block: var(--s-6);
  font-size: 7.5rem;
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: -0.06em;
  line-height: 0.9;
  transform-origin: left center;
  transition: color 0.25s ease-out, transform var(--dur-bouncy) var(--spring-bouncy);
}
.card__code--long { font-size: 4rem; letter-spacing: -0.05em; }
.card__info h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.card__age {
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.card__info p { color: var(--color-text-muted); font-size: 0.9375rem; }
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  font-weight: var(--weight-strong);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.card__cta svg { width: 18px; height: 18px; transition: transform var(--dur-bouncy) var(--spring-bouncy); }
.card__cta:focus-visible { outline-color: var(--color-on-accent); }

.card--featured { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.card--featured .card__top, .card--featured .card__info p { color: var(--color-on-accent-muted); }
.card--featured .card__age { border-color: var(--color-on-accent); }

@media (hover: hover) {
  .card:hover { transform: translateY(-6px); border-color: var(--color-border-strong); }
  .card:not(.card--featured):hover .card__code { color: var(--color-accent); }
  .card:hover .card__code { transform: scale(1.04); }
  .card__cta:hover svg { transform: translate(3px, -3px); }
}

/* ============ WARUM WIR ============ */
.value { overflow: clip; }
.value__ghost, .cta__ghost {
  position: absolute;
  z-index: 0;
  font-size: clamp(6rem, 24vw, 22rem);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  line-height: 0.8;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.value__ghost { top: var(--s-12); left: 20vw; color: var(--color-surface); }
.value .container { position: relative; z-index: 1; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-12) var(--s-8);
}
.feature {
  position: relative;
  padding-top: var(--s-6);
  border-top: 1px solid var(--color-border);
}
/* Gelbe Linie wächst beim Hover über die Trennlinie */
.feature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fluid) var(--spring-fluid);
}
.feature__num {
  display: block;
  margin-bottom: var(--s-8);
  color: var(--color-accent);
  font-size: 0.9375rem;
  font-weight: 750;
  font-stretch: 125%;
  font-variant-numeric: tabular-nums;
}
.feature h3 { margin-bottom: var(--s-3); font-size: 1.375rem; }
.feature p { color: var(--color-text-muted); max-width: 40ch; }
@media (hover: hover) {
  .feature:hover::before { transform: scaleX(1); }
}
@media (max-width: 899px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .features { grid-template-columns: 1fr; gap: var(--s-8); }
  .feature__num { margin-bottom: var(--s-4); }
}

.checklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--s-8) var(--s-16);
  align-items: center;
  margin-top: clamp(var(--s-12), 6vw, var(--s-24));
  padding: clamp(var(--s-6), 4vw, var(--s-12));
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
}
.checklist h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-stretch: 108%; letter-spacing: -0.025em; max-width: 16ch; }
.checklist ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-8); }
.checklist li { display: flex; align-items: flex-start; gap: var(--s-3); }
.checklist svg {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 4px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius-full);
}
@media (max-width: 899px) {
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .checklist ul { grid-template-columns: 1fr; }
}

/* ============ TEAM ============ */
.team { background: var(--color-surface); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-16) clamp(var(--s-6), 5vw, var(--s-16));
}
.member:nth-child(even) { margin-top: var(--s-24); }
.member__photo {
  aspect-ratio: 3 / 2;
  margin-bottom: var(--s-6);
  background: var(--color-surface-raised);
  border-radius: var(--radius-m);
  overflow: hidden;
  clip-path: inset(0 round var(--radius-m));
  transition: clip-path 0.9s var(--spring-fluid);
}
.js .member:not(.is-in) .member__photo { clip-path: inset(10% 8% 10% 8% round var(--radius-m)); }
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.18;
  will-change: transform;
}
/* Jörgs Foto hat kaum Luft über dem Kopf: kein Zoom, kein Parallax */
.member:nth-child(1) img { object-position: 70% 0; scale: 1; }
.member:nth-child(3) img { object-position: 80% 50%; }
.member:nth-child(4) img { object-position: 20% 30%; }
.member h3 { font-size: 1.5rem; font-stretch: 108%; letter-spacing: -0.025em; }
.member__role { margin-top: var(--s-1); color: var(--color-accent); font-size: 0.9375rem; font-weight: 550; }
.member__bio { margin-top: var(--s-3); color: var(--color-text-muted); max-width: 52ch; }
@media (max-width: 699px) {
  .team__grid { grid-template-columns: 1fr; gap: var(--s-12); }
  .member:nth-child(even) { margin-top: 0; }
}

/* ============ FAHRPLAN ============ */
.roadmap__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-12) var(--s-16);
  align-items: start;
}
.roadmap__head { position: sticky; top: calc(var(--header-h) + var(--s-16)); margin-bottom: 0; }
.roadmap__head .section__note { margin-top: var(--s-6); }

.route { --marker: 48px; position: relative; padding-left: calc(var(--marker) + var(--s-8)); }
.route ol { display: grid; gap: clamp(var(--s-12), 6vw, var(--s-24)); }
/* Mittelstreifen: gestrichelt, füllt sich beim Scrollen gelb */
.route__track {
  position: absolute;
  top: calc(var(--marker) / 2);
  bottom: calc(var(--marker) / 2);
  left: calc(var(--marker) / 2 - 2px);
  width: 4px;
  background: repeating-linear-gradient(to bottom, var(--color-border) 0 14px, transparent 14px 26px);
}
.route__fill {
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}
.route__step { position: relative; }
.route__num {
  position: absolute;
  top: -10px;
  left: calc(-1 * (var(--marker) + var(--s-8)));
  display: grid;
  place-items: center;
  width: var(--marker);
  height: var(--marker);
  background: var(--color-bg);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 750;
  font-stretch: 115%;
  font-variant-numeric: tabular-nums;
  transition: transform var(--dur-bouncy) var(--spring-bouncy), background-color 0.25s ease-out, border-color 0.25s ease-out, color 0.25s ease-out;
}
.route__step h3 {
  margin-bottom: var(--s-3);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-stretch: 108%;
  letter-spacing: -0.03em;
  transition: color 0.3s ease-out;
}
.route__step p { color: var(--color-text-muted); max-width: 48ch; }
.js .route__step:not(.is-active) h3 { color: var(--color-text-muted); }
.route__step.is-active .route__num {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  transform: scale(1.12);
}
@media (max-width: 899px) {
  .roadmap__grid { grid-template-columns: 1fr; }
  .roadmap__head { position: static; }
  .route { --marker: 40px; padding-left: calc(var(--marker) + var(--s-6)); }
  .route__num { left: calc(-1 * (var(--marker) + var(--s-6))); top: -6px; }
}

/* ============ KONTAKT ============ */
.contact { padding-bottom: calc(var(--section-pad) / 2); }
.places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8);
  margin-top: clamp(var(--s-12), 6vw, var(--s-24));
}
.place { display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.place__label { color: var(--color-text-muted); font-size: 0.9375rem; font-weight: var(--weight-strong); }
.place__text { font-size: 1.25rem; line-height: 1.4; }
.place a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--color-accent);
  font-size: 0.9375rem;
  font-weight: var(--weight-strong);
}
.place a svg { width: 18px; height: 18px; transition: transform var(--dur-bouncy) var(--spring-bouncy); }
@media (hover: hover) {
  .place a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .place a:hover svg { transform: translate(3px, -3px); }
}
@media (max-width: 799px) { .places { grid-template-columns: 1fr; } }

/* ============ ACCORDION (FAQ + Rechtliches) ============ */
.faq { padding-top: calc(var(--section-pad) / 2); }
.accordion { border-top: 1px solid var(--color-border); }
.acc { border-bottom: 1px solid var(--color-border); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  font-weight: var(--weight-strong);
  letter-spacing: -0.01em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease-out;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  transition: transform var(--dur-bouncy) var(--spring-bouncy);
}
.acc[open] summary svg { transform: rotate(135deg); }
@media (hover: hover) {
  .acc summary:hover { color: var(--color-accent); }
}
.acc__body {
  display: grid;
  gap: var(--s-3);
  max-width: 68ch;
  padding-bottom: var(--s-8);
  color: var(--color-text-muted);
}
.acc__body h3 { margin-top: var(--s-4); font-size: 1rem; color: var(--color-text); }
.acc__body a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; }
.acc__stand { font-size: 0.875rem; }
/* Sanftes Auf-/Zuklappen, wo der Browser es kann (sonst sofort) */
.acc::details-content {
  block-size: 0;
  opacity: 0;
  overflow: clip;
  transition: block-size 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.25s ease-out, content-visibility 0.35s allow-discrete;
}
.acc[open]::details-content { block-size: auto; opacity: 1; }

/* ============ FOOTER ============ */
.footer { padding-top: var(--s-12); }
.cta {
  position: relative;
  isolation: isolate;
  margin-inline: clamp(var(--s-2), 2vw, var(--s-6));
  padding-block: clamp(var(--s-24), 16vw, 224px);
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius-l);
  overflow: hidden;
  will-change: transform;
}
.cta__ghost { z-index: -1; bottom: -0.08em; right: -4vw; color: var(--color-accent-dim); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: clamp(var(--s-8), 5vw, var(--s-16)); }
.cta ::selection { background: var(--color-on-accent); color: var(--color-accent); }

.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-12) var(--s-8);
  padding-block: clamp(var(--s-16), 8vw, var(--s-24)) var(--s-12);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.footer__col { display: grid; gap: var(--s-4); align-content: start; }
.footer__col .brand { color: var(--color-text); }
.footer__col h3 { color: var(--color-text); font-size: 0.9375rem; }
.footer__col ul { display: grid; gap: var(--s-2); }
.footer__col a { transition: color 0.2s ease-out; }
.footer__col a:hover { color: var(--color-accent); }
.footer__legal .acc:first-child { border-top: 1px solid var(--color-border); }
.footer__legal .acc summary { font-size: 1rem; padding: var(--s-4) 0; }
.footer__bottom { padding-block: var(--s-8); color: var(--color-text-muted); font-size: 0.875rem; }
@media (max-width: 799px) {
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__main > :first-child { grid-column: 1 / -1; }
}

/* ============ SCROLL-REVEAL ============ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease-out, transform var(--dur-fluid) var(--spring-fluid);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Überschriften: Wort für Wort aus der Maske */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.14em;
  margin-block: -0.14em;
}
.w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.8s var(--spring-fluid);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.is-in > .w > span { transform: none; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 0.4s ease-out; }
  .w > span { transform: none; transition: none; }
  .js .hero .line > span { animation: none; }
  .js .hero__fade { animation: fade-up-reduced 0.4s ease-out both; }
  .js .member:not(.is-in) .member__photo { clip-path: inset(0 round var(--radius-m)); }
  .member__photo img, .hero__photo img { scale: 1; }
  .menu, .menu[open], .menu[open] .menu__list a { translate: 0 0; }
  .btn, .card, .icon-btn, .rating, .tabbar__item, .sweep::before, .feature::before,
  .route__num, .card__code, .btn__icon, .row__cta svg, .acc summary svg, .brand__mark, .nav__dot {
    transition-duration: 0.01s;
  }
  .acc::details-content { transition: none; }
}
@keyframes fade-up-reduced { from { opacity: 0; } }
