/* Cassel Drive Fahrschule
   Markenfarben 1:1 aus casseldrive.de (CSS-Variablen der Originalseite):
   --genel / --butonarkaplan #ED332B (Rot) · --linkyazi #0D1721 (Dunkelblau) · #FFFFFF */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/archivo-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --navy: #0d1721;
  --navy-deep: #080f16;
  --navy-soft: #16222e;
  --navy-raised: #1d2a37;
  --red: #ed332b;
  --red-dark: #bd2433;
  --red-bright: #f5483f;
  --white: #ffffff;
  --text-muted: #a3afba;
  --text-faint: #6c7c8a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow-panel: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --shadow-red: 0 22px 44px -22px rgba(237, 51, 43, 0.6);
  --radius-card: 16px;
  --radius-input: 8px;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 88px;
  --container: 1220px;
  --gutter: max(24px, calc((100vw - var(--container)) / 2 + 24px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  margin: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Inline-Icon-Sprite: unsichtbar, aber nicht display:none (Safari rendert
   <use> auf Symbole in display:none-SVGs sonst nicht zuverlässig). */
.sprite-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bg-deep {
  background: var(--navy-deep);
}

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

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.25s var(--ease-out),
    color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), filter 0.2s var(--ease-out);
}
/* Lichtreflex beim Hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.34) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}
.btn:hover::before {
  transform: translateX(120%);
}
.btn:hover {
  transform: translateY(-3px);
}
.btn:active {
  transform: translateY(0) scale(0.96);
  filter: brightness(1.18);
}
.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.btn .icon {
  font-size: 17px;
  transition: transform 0.35s var(--ease-spring);
}
.btn:hover .icon-arrow {
  transform: translateX(5px);
}

/* schräg angeschnittener Primär-Button wie im Vorbild */
.btn-primary {
  background: var(--red);
  color: var(--white);
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  padding: 0 40px;
}
.btn-primary:hover {
  background: var(--red-bright);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.btn-block {
  width: 100%;
}

/* Klick-Welle */
.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.65s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(13, 23, 33, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring);
}
.nav-logo:hover {
  transform: rotate(-4deg) scale(1.04);
}
.nav-logo img {
  height: 78px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 0;
  transition: color 0.2s var(--ease-out);
}
.nav-links > li > a {
  position: relative;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links > li > a:hover::after,
.nav-links > li > a.is-active::after {
  transform: scaleX(1);
}
.nav-links a:hover {
  color: var(--red);
}
.nav-links .caret {
  font-size: 12px;
  transition: transform 0.25s var(--ease-out);
}
.nav-drop:hover .caret,
.nav-drop:focus-within .caret {
  transform: rotate(180deg);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  min-width: 240px;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  padding: 8px;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-drop:hover .nav-submenu,
.nav-drop:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu a {
  display: flex;
  padding: 10px 14px;
  letter-spacing: 0.05em;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), padding 0.25s var(--ease-out);
}
.nav-submenu a:hover {
  background: var(--navy-raised);
  color: var(--red);
  padding-left: 20px;
}

/* roter CTA-Block, randlos bis zur Fensterkante, links angeschrägt */
.nav-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-left: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--red);
  color: var(--white);
  padding: 0 34px 0 46px;
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%);
  margin-right: min(0px, calc((var(--container) - 100vw) / 2));
  transition: background 0.25s var(--ease-out);
}
.nav-cta:hover {
  background: var(--red-bright);
}
.nav-cta .icon {
  font-size: 19px;
  transition: transform 0.4s var(--ease-spring);
}
.nav-cta:hover .icon {
  transform: translateY(-3px) rotate(-8deg);
}
.nav-cta span {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Sprachumschalter: Hover-Dropdown wie das Führerschein-Menü */
.lang-switch {
  position: relative;
  flex-shrink: 0;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.lang-current:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}
.lang-current .caret {
  font-size: 11px;
  transition: transform 0.25s var(--ease-out);
}
.lang-switch:hover .caret,
.lang-switch.is-open .caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  padding: 8px;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.lang-switch:hover .lang-menu,
.lang-switch.is-open .lang-menu,
.lang-switch:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), padding 0.25s var(--ease-out);
}
.lang-menu button:hover {
  background: var(--navy-raised);
  color: var(--red);
  padding-left: 20px;
}
.lang-menu button.is-active {
  color: var(--red);
  font-weight: 700;
}
.lang-menu button .icon {
  font-size: 15px;
  opacity: 0;
}
.lang-menu button.is-active .icon {
  opacity: 1;
}
.lang-menu-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Echte Flaggen-SVGs (flag-icons, MIT-Lizenz) statt Emoji-Zeichen */
.flag {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lang-current .flag {
  width: 18px;
  height: 13px;
}

@media (max-width: 1150px) {
  .lang-current [data-lang-current] {
    display: none;
  }
  .lang-current {
    padding: 0 10px;
    gap: 8px;
  }
}
@media (max-width: 960px) {
  .lang-switch {
    display: none;
  }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .icon {
  font-size: 22px;
}
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 1150px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .nav-cta {
    padding: 0 22px 0 36px;
  }
}

@media (max-width: 960px) {
  :root {
    --nav-h: 76px;
  }
  .nav-inner {
    padding-right: 24px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-logo img {
    height: 62px;
  }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 59;
  background: var(--navy-deep);
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-menu .mobile-sub {
  padding: 11px 2px 11px 18px;
  font-size: 15px;
  color: var(--text-muted);
}
.mobile-menu .mobile-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  border-bottom: none;
}
.mobile-lang {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mobile-lang button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.mobile-lang button.is-active {
  border-color: var(--red);
  background: rgba(237, 51, 43, 0.14);
  color: var(--red);
}
.mobile-menu .btn {
  margin-top: 16px;
  border-bottom: none;
}

/* ---------- Diagonale Streifen-Textur ---------- */

.stripes {
  position: relative;
}
.stripes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 78%;
  background: repeating-linear-gradient(114deg, rgba(237, 51, 43, 0.16) 0 2px, transparent 2px 30px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 0% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 0% 0%, #000 10%, transparent 72%);
  pointer-events: none;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  background: var(--navy);
  padding-top: 52px;
  padding-bottom: 96px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 52px;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 72px;
}

/* Badge-Zeile: rotes Quadrat + angeschrägtes Panel */
.hero-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: stretch;
  margin-bottom: 30px;
  animation: fadeLeft 0.8s var(--ease-out) 0.1s backwards;
}
.hero-eyebrow-mark {
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  font-size: 18px;
}
.hero-eyebrow-text {
  display: flex;
  align-items: center;
  background: var(--navy-soft);
  padding: 12px 36px 12px 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.5rem, 4.35vw, 4.3rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  padding-right: 0.08em;
}
.hero h1 .line {
  display: block;
  animation: lineUp 0.95s var(--ease-out) backwards;
}
.hero h1 .line:nth-child(1) {
  animation-delay: 0.2s;
}
.hero h1 .line:nth-child(2) {
  animation-delay: 0.34s;
}
.hero .line-accent {
  color: var(--red);
}
.hero-sub {
  margin-top: 26px;
  max-width: 48ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: #c9d1d9;
  animation: fadeUp 0.9s var(--ease-out) 0.48s backwards;
}

/* drei Merkmale mit Trennlinien */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 26px;
  border-left: 1px solid var(--line);
  animation: fadeUp 0.8s var(--ease-out) backwards;
}
.hero-feature:nth-child(1) {
  padding-left: 0;
  border-left: none;
  animation-delay: 0.58s;
}
.hero-feature:nth-child(2) {
  animation-delay: 0.66s;
}
.hero-feature:nth-child(3) {
  animation-delay: 0.74s;
}
.hero-feature .icon {
  font-size: 27px;
  color: var(--red);
  transition: transform 0.45s var(--ease-spring);
}
.hero-feature:hover .icon {
  transform: scale(1.18) rotate(-6deg);
}
.hero-feature span {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.35;
}
.hero-feature span em {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  animation: fadeUp 0.9s var(--ease-out) 0.84s backwards;
}

/* Bildbereich als schräges Parallelogramm wie im Vorbild */
.hero-media {
  --img-skew: 6deg;
  --img-zoom: 1;
  --badge-skew: 6deg;
  position: relative;
  display: flex;
  margin-right: clamp(-64px, calc((var(--container) - 100vw) / 2), 0px);
  transform: skewX(-6deg);
  transform-origin: center bottom;
}
.hero-visual-accent {
  position: absolute;
  top: 0;
  right: -7px;
  width: 60px;
  height: 34%;
  background: var(--red);
  border-radius: 0 var(--radius-card) 0 0;
  transform-origin: top;
  animation: accentIn 0.8s var(--ease-out) 0.75s backwards;
}
.hero-visual {
  position: relative;
  flex: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: clamp(420px, 44vw, 620px);
  background: var(--navy-soft);
  animation: imgIn 1.2s var(--ease-out) 0.15s backwards;
}
.hero-visual:hover {
  --img-zoom: 1.06;
}
/* Gegen-Neigung, damit das Foto selbst nicht verzerrt wirkt */
.hero-photo {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: skewX(var(--img-skew)) scale(var(--img-zoom));
  transition: transform 1.2s var(--ease-out);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 23, 33, 0.55), rgba(13, 23, 33, 0) 55%);
  pointer-events: none;
}
.hero-visual-badge {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  padding: 16px 26px;
  min-width: 240px;
  background: rgba(13, 23, 33, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  transform: skewX(var(--badge-skew));
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: badgeIn 0.7s var(--ease-out) 1s backwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }
}
@keyframes lineUp {
  from {
    opacity: 0;
    transform: translateY(44px) skewY(3deg);
  }
}
@keyframes imgIn {
  from {
    opacity: 0;
    transform: translateX(70px) scale(0.96);
  }
}
@keyframes accentIn {
  from {
    transform: scaleY(0);
  }
}
@keyframes badgeIn {
  from {
    opacity: 0;
    transform: skewX(var(--badge-skew)) translateY(-16px);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy {
    padding-bottom: 64px;
  }
  .hero-media {
    --img-skew: 0deg;
    --badge-skew: 0deg;
    margin-right: 0;
    order: -1;
    transform: none;
  }
  .hero-photo {
    left: 0;
    width: 100%;
  }
  .hero-visual-badge {
    min-width: 0;
    top: 16px;
    right: 16px;
  }
  .hero-visual-accent {
    display: none;
  }
  .hero-visual {
    min-height: clamp(260px, 56vw, 420px);
  }
  .hero-feature {
    padding: 2px 18px;
  }
}
@media (max-width: 560px) {
  .hero-features {
    gap: 16px;
  }
  .hero-feature,
  .hero-feature:nth-child(1) {
    flex: 1 1 100%;
    padding: 0;
    border-left: none;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Kennzahlen-Leiste ---------- */

.stats {
  position: relative;
  z-index: 5;
  margin-top: -56px;
}
.stats-inner {
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-panel);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  animation: fadeUp 1s var(--ease-out) 0.6s backwards;
}
.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 26px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: none;
}
.stat > .icon {
  font-size: 34px;
  color: var(--red);
  transition: transform 0.5s var(--ease-spring);
}
.stat:hover > .icon {
  transform: scale(1.15) rotate(-8deg);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat div > span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .stats {
    margin-top: -40px;
  }
  .stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat > div {
    min-width: 0;
  }
  .stat {
    border-top: 1px solid var(--line);
  }
  .stat:nth-child(-n+2) {
    border-top: none;
  }
  .stat:nth-child(odd) {
    border-left: none;
  }
}
@media (max-width: 480px) {
  .stat {
    padding: 20px 16px;
    gap: 12px;
  }
  .stat > .icon {
    font-size: 26px;
  }
}

/* ---------- Sektions-Grundlagen ---------- */

section {
  padding: 112px 0;
}
@media (max-width: 720px) {
  section {
    padding: 76px 0;
  }
}
.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}
.section-head h2,
.section-title {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  padding-bottom: 0.06em;
}
.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--text-muted);
}
.section-head--bar {
  padding-left: 28px;
  border-left: 4px solid var(--red);
}

/* ---------- Klassen: Feature-Panel + Klassen-Kacheln ---------- */

.class-layout {
  display: grid;
  gap: 26px;
}

/* Großes Panel: Foto links, Inhalt rechts */
.class-feature {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.class-feature::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(237, 51, 43, 0) 0%, var(--red) 100%);
  transform: scaleX(0.5);
  transform-origin: right;
  transition: transform 0.7s var(--ease-out);
}
.class-feature:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 51, 43, 0.45);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(237, 51, 43, 0.12);
}
.class-feature:hover::before {
  transform: scaleX(1);
}
.class-feature:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}
.class-feature-media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--navy-raised);
}
.class-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.class-feature:hover .class-feature-media img {
  transform: scale(1.07);
}
.class-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(22, 34, 46, 0) 55%, rgba(22, 34, 46, 0.8));
}
.class-badge {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  padding: 10px 16px;
  background: rgba(13, 23, 33, 0.9);
  border-left: 3px solid var(--red);
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: transform 0.45s var(--ease-spring);
}
.class-feature:hover .class-badge {
  transform: translateX(4px);
}
.class-feature-body {
  padding: 54px 48px 46px;
  display: flex;
  flex-direction: column;
}
.class-feature-body h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.1;
}
.class-feature-body > p {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 16px;
}
.class-feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.class-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
}
.class-feature-list .icon {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 19px;
  color: var(--red);
}
.class-link {
  margin-top: auto;
  padding-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.class-link .icon {
  font-size: 18px;
  transition: transform 0.4s var(--ease-spring);
}
.class-feature:hover .class-link .icon {
  transform: translateX(7px);
}

/* Vier anklickbare Klassen-Kacheln, bewusst eckig angeschnitten statt gerundet */
.class-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.class-tile {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  background: var(--navy-raised);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  transition: transform 0.5s var(--ease-out);
}
.class-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) brightness(0.52);
  transition: transform 1s var(--ease-out), filter 0.6s var(--ease-out);
}
.class-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 15, 22, 0.94) 6%, rgba(8, 15, 22, 0.25) 62%, rgba(8, 15, 22, 0.5));
}
.class-tile:hover {
  transform: translateY(-8px);
}
.class-tile:hover img {
  transform: scale(1.08);
  filter: grayscale(0) brightness(0.68);
}
.class-tile:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.class-tile-body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 24px 28px;
}
.class-tile-code {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  transition: color 0.4s var(--ease-out), transform 0.5s var(--ease-spring);
}
.class-tile:hover .class-tile-code {
  color: var(--red);
  transform: translateX(4px);
}
.class-tile-body strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.class-tile-note {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.class-tile-go {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  background: rgba(13, 23, 33, 0.7);
  border: 1px solid var(--line-strong);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.45s var(--ease-spring);
}
.class-tile:hover .class-tile-go {
  background: var(--red);
  border-color: var(--red);
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .class-feature {
    grid-template-columns: 1fr;
  }
  .class-feature-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .class-feature-media::after {
    background: linear-gradient(to top, rgba(22, 34, 46, 0.85), rgba(22, 34, 46, 0) 60%);
  }
  .class-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .class-feature-body {
    padding: 32px 24px 30px;
  }
  .class-tile,
  .class-tile-body {
    min-height: 210px;
  }
  .class-tile-body {
    padding: 20px 18px 22px;
  }
}

/* ---------- Fahrplan (Scroll-Animation) ---------- */

.roadmap {
  position: relative;
  height: 290vh;
  padding: 0;
}
.roadmap-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  background-position: -4px -4px;
}
.roadmap-sticky > .container {
  width: 100%;
}
.roadmap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.roadmap h2 {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1;
}
/* Akzent als "gestempeltes" Schild statt handgezeichneter Unterstreichung */
.roadmap h2 .tag {
  display: inline-block;
  background: var(--red);
  color: var(--navy);
  padding: 6px 20px 9px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transform: rotate(-2deg);
}

.road {
  position: relative;
  height: clamp(120px, 23vh, 220px);
  margin: clamp(8px, 2.5vh, 30px) 0 clamp(14px, 3.5vh, 40px);
}
.road-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.road-base,
.road-line,
.road-glow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.road-base {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
  stroke-dasharray: 2 12;
}
.road-glow {
  stroke: var(--red);
  stroke-width: 14;
  opacity: 0.14;
}
.road-line {
  stroke: var(--red);
  stroke-width: 3;
}
.road-stop {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border: 2px solid rgba(255, 255, 255, 0.28);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.5s var(--ease-spring);
}
.road-stop span {
  display: block;
  transform: rotate(-45deg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.4s var(--ease-out);
}
.road-stop::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--red);
  opacity: 0;
}
.road-stop.is-active {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(45deg) scale(1.12);
}
.road-stop.is-active span {
  color: var(--navy);
}
.road-stop.is-active::after {
  animation: stopPulse 1.1s var(--ease-out);
}
@keyframes stopPulse {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}
.road-car {
  --speed: 0;
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 84px;
  height: 52px;
  margin: -48px 0 0 -42px;
  transform-origin: 50% 94%;
  color: var(--white);
  will-change: transform;
}
.road-car svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 0 10px rgba(237, 51, 43, 0.65));
}
/* Fahrtwind-Streifen, Deckkraft je nach Tempo */
.car-trail {
  position: absolute;
  right: 92%;
  top: 30%;
  width: 70px;
  height: 26px;
  opacity: var(--speed);
  background:
    linear-gradient(to left, rgba(255, 255, 255, 0.7), transparent) 0 0 / 100% 2px no-repeat,
    linear-gradient(to left, rgba(237, 51, 43, 0.9), transparent) 18px 11px / 80% 3px no-repeat,
    linear-gradient(to left, rgba(255, 255, 255, 0.5), transparent) 8px 22px / 70% 2px no-repeat;
  transition: opacity 0.2s linear;
}
.car-light {
  position: absolute;
  z-index: 1;
  left: 88%;
  top: 38%;
  width: 70px;
  height: 30px;
  background: radial-gradient(ellipse at left center, rgba(255, 238, 200, 0.5), transparent 70%);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.8vh, 30px) 24px;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  opacity: 0.35;
  filter: grayscale(1);
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out), transform 0.5s var(--ease-spring),
    border-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.step-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 7px 8px 0 0;
  background: var(--navy-raised);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--text-faint);
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.step.is-active {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1.015);
  border-color: rgba(237, 51, 43, 0.4);
  box-shadow: var(--shadow-red);
}
.step.is-active .step-badge {
  background: var(--red);
  color: var(--navy);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 20px;
}
.step-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-raised);
  color: var(--text-muted);
  font-size: 24px;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out), transform 0.6s var(--ease-spring);
}
.step.is-active .step-icon {
  background: var(--red);
  color: var(--white);
  transform: rotate(-6deg);
}
.step h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.step p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 900px) and (max-height: 720px) {
  .roadmap h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  }
  .step p {
    font-size: 14px;
    margin-top: 8px;
  }
}
@media (min-width: 900px) and (max-height: 600px) {
  .step p {
    display: none;
  }
}

/* Mobil: senkrechte Zeitleiste statt Strecke */
@media (max-width: 899px) {
  .roadmap {
    height: auto;
    padding: 76px 0;
  }
  .roadmap-sticky {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
    background-size: 20px 20px;
  }
  .road {
    display: none;
  }
  .roadmap-head {
    margin-bottom: 36px;
  }
  .steps {
    --mp: 0%;
    position: relative;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 38px;
  }
  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 10px;
    width: 2px;
  }
  .steps::before {
    bottom: 10px;
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0 8px, transparent 8px 16px);
  }
  .steps::after {
    height: calc(var(--mp) - 20px);
    max-height: calc(100% - 20px);
    background: var(--red);
    transition: height 0.7s var(--ease-out);
  }
  .step::after {
    content: "";
    position: absolute;
    left: -35px;
    top: 34px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  }
  .step.is-active::after {
    background: var(--red);
    border-color: var(--red);
  }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap {
    height: auto;
    padding: 112px 0;
  }
  .roadmap-sticky {
    position: static;
    height: auto;
    display: block;
  }
  .step {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ---------- Über uns ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.about-visual:hover img {
  transform: scale(1.06);
}
.about-visual::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38%;
  height: 5px;
  background: var(--red);
}
.about-copy p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-top: 20px;
}
.about-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  transition: transform 0.35s var(--ease-out);
}
.about-list li:hover {
  transform: translateX(6px);
}
.about-list .icon {
  color: var(--red);
  font-size: 20px;
  margin-top: 3px;
}

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

/* ---------- Foto-Galerie ---------- */

.gallery {
  margin-top: 96px;
}
.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.gallery-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gallery-label .icon {
  color: var(--red);
  font-size: 20px;
  animation: nudge 2.4s var(--ease-out) infinite;
}
@keyframes nudge {
  0%, 60%, 100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(7px);
  }
}
.gallery-nav {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}
@media (max-width: 600px) {
  .gallery {
    margin-top: 72px;
  }
  .gallery-label {
    font-size: 12.5px;
    letter-spacing: 0.03em;
    gap: 8px;
  }
  .gallery-btn {
    width: 44px;
    height: 44px;
  }
}
.gallery-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font-size: 19px;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.3s var(--ease-out),
    opacity 0.25s var(--ease-out);
}
.gallery-btn:hover:not(:disabled) {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}
.gallery-btn:active:not(:disabled) {
  transform: scale(0.92);
}
.gallery-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.gallery-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  padding-bottom: 6px;
  scrollbar-width: none;
  cursor: grab;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-track:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.gallery-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.gallery-item {
  flex: 0 0 clamp(270px, 36vw, 470px);
  margin: 0;
  scroll-snap-align: start;
}
.gallery-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-soft);
}
.gallery-media img,
.gallery-media .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.gallery-item:hover .gallery-media img,
.gallery-item:hover .gallery-media .ph {
  transform: scale(1.07);
}
.gallery-media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover .gallery-media::after {
  transform: scaleX(1);
}
/* Foto-Platzhalter, bis echte Bilder da sind */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(114deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 25% 20%, rgba(237, 51, 43, 0.16), transparent 60%),
    var(--navy-soft);
  color: var(--text-faint);
}
.ph .icon {
  font-size: 42px;
  color: var(--text-muted);
}
.ph span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Bewertungen (Google-Original-Farben, goldgelbe Sterne) ---------- */

/* Google-"G" in den Originalfarben, Größe steuert die Schriftgröße */
.google-mark {
  display: inline-flex;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  line-height: 0;
}
.google-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rating-stars.is-gold {
  color: #fbbc04;
}
.stat > .icon.is-gold {
  color: #fbbc04;
}
.stat > .google-mark {
  font-size: 32px;
  transition: transform 0.5s var(--ease-spring);
}
.stat:hover > .google-mark {
  transform: scale(1.12);
}

/* Bewertung und Google-Link sitzen unter den Karten, rechts ausgerichtet */
.reviews-foot {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px 18px 22px;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.rating-summary:hover {
  border-color: rgba(251, 188, 4, 0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-panel);
}
.rating-summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.google-mark--lg {
  font-size: 34px;
}
.rating-number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rating-stars {
  display: flex;
  gap: 3px;
  color: var(--red);
  font-size: 16px;
}
.rating-meta small {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Laufband mit gleich großen Karten */
.reviews-rail {
  margin-top: 0;
}
.reviews-rail .gallery-label .icon {
  animation-name: nudgeLeft;
}
@keyframes nudgeLeft {
  0%, 60%, 100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-7px);
  }
}
.review-track .review-card {
  flex: 0 0 clamp(272px, 25vw, 344px);
  height: 228px;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.review-track .review-card:hover {
  background: var(--navy-raised);
  border-color: rgba(251, 188, 4, 0.4);
  box-shadow: var(--shadow-panel);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 13px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--av, var(--red));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-who {
  flex: 1;
  min-width: 0;
}
.review-who strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-who .rating-stars {
  margin-top: 4px;
  font-size: 14px;
}
.review-top .google-mark {
  font-size: 21px;
}

/* Text wird nur optisch beschnitten, er steht komplett im HTML */
.review-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 14px;
}
.review-card.is-cut .review-body {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
}
.review-body p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.68;
}
.review-body p + p {
  margin-top: 10px;
}
.review-more {
  align-self: flex-start;
  margin-top: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease-out);
}
.review-more:hover {
  color: var(--red-bright);
}
.review-more .icon {
  font-size: 15px;
  transition: transform 0.35s var(--ease-spring);
}
.review-more:hover .icon {
  transform: translateY(3px);
}
.review-more:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.reviews-foot .google-mark {
  font-size: 19px;
}
.reviews-foot .google-mark--lg {
  font-size: 34px;
}

/* ---------- Ganze Bewertung im Dialog ---------- */

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.review-modal[hidden] {
  display: none;
}
.review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 14, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease-out);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.review-modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 30px 26px;
  background: var(--navy-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-panel);
  animation: modalIn 0.4s var(--ease-out);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}
.review-modal .review-top {
  padding-right: 48px;
}
.review-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.3s var(--ease-out);
}
.review-modal-close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}
.review-modal-close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.review-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}
.review-modal-body p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
}
.review-modal-body p + p {
  margin-top: 14px;
}

@media (max-width: 600px) {
  .rating-summary {
    width: 100%;
  }
  /* Der lange Google-Link passt bei 375px nicht in eine Zeile */
  .reviews-foot .btn {
    width: 100%;
    height: auto;
    min-height: 56px;
    padding: 15px 20px;
    white-space: normal;
    line-height: 1.35;
  }
  .review-track .review-card {
    height: 220px;
    padding: 18px 18px 16px;
  }
  .reviews-foot {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }
  .review-modal {
    padding: 16px;
  }
  .review-modal-card {
    max-height: 86vh;
    padding: 28px 22px 22px;
  }
}

/* ---------- CTA-Banner ---------- */

.cta-banner {
  position: relative;
  background: var(--red);
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40px -200px;
  background: repeating-linear-gradient(114deg, rgba(0, 0, 0, 0.13) 0 2px, transparent 2px 28px);
  animation: stripeDrift 18s linear infinite;
  pointer-events: none;
}
@keyframes stripeDrift {
  to {
    transform: translateX(110px);
  }
}
.cta-banner .container {
  position: relative;
  z-index: 2;
  padding-block: 58px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-banner h2 {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-banner .btn-primary {
  background: var(--navy);
}
.cta-banner .btn-primary:hover {
  background: var(--navy-deep);
}
.cta-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
}
.cta-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), padding 0.35s var(--ease-out);
}
.faq-q:hover {
  color: var(--red);
  padding-left: 12px;
}
.faq-q:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.faq-q .icon {
  color: var(--red);
  font-size: 18px;
  transition: transform 0.35s var(--ease-out);
}
.faq-item.is-open .faq-q .icon {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-a p {
  padding: 0 4px 26px;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ---------- Kontakt: links die Daten, rechts die Abfrage ----------
   Bewusst ohne Karten, ohne Rahmen und ohne rote Akzente: nur weiße Schrift. */

.section-head--center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 6px;
}
.info-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.info-line > .icon {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 22px;
  color: var(--white);
}
.info-line strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.info-line span,
.info-line a {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  color: var(--white);
}
.info-line a {
  transition: opacity 0.25s var(--ease-out);
}
.info-line a:hover {
  opacity: 0.62;
}

/* Google Maps als Zwei-Klick-Lösung */
.map-card {
  position: relative;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--navy-soft);
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  padding: 48px 24px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.map-pin {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(237, 51, 43, 0.14);
  border: 1px solid rgba(237, 51, 43, 0.35);
  color: var(--red);
  font-size: 30px;
  animation: mapPulse 2.6s var(--ease-out) infinite;
}
@keyframes mapPulse {
  0%, 70%, 100% {
    box-shadow: 0 0 0 0 rgba(237, 51, 43, 0.35);
  }
  35% {
    box-shadow: 0 0 0 16px rgba(237, 51, 43, 0);
  }
}
.map-placeholder strong {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.map-placeholder p {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 14.5px;
  color: var(--text-muted);
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
@media (max-width: 520px) {
  .map-placeholder {
    min-height: 320px;
    padding: 40px 20px;
  }
  .map-actions .btn {
    width: 100%;
  }
}

.form-card {
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px;
}
.form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}
.form-progress span {
  position: relative;
  height: 3px;
  flex: 1;
  background: var(--line-strong);
  overflow: hidden;
}
.form-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.form-progress span.is-done::after {
  transform: scaleX(1);
}
.form-step {
  display: none;
}
.form-step.is-active {
  display: block;
  animation: fadeLeft 0.5s var(--ease-out);
}
.form-step h3 {
  font-style: italic;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.form-step > p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.field {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  background: var(--navy-deep);
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s var(--ease-out);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.field-help {
  font-size: 12.5px;
  color: var(--text-faint);
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.option-card {
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out),
    transform 0.35s var(--ease-spring);
}
.option-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.option-card:active {
  transform: scale(0.97);
}
.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-card:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.option-card.is-selected {
  border-color: var(--red);
  background: rgba(237, 51, 43, 0.14);
  color: var(--red);
}
.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}
.form-success.is-active {
  display: block;
  animation: fadeUp 0.6s var(--ease-out);
}
.form-success .icon {
  font-size: 46px;
  color: var(--red);
}
.form-success h3 {
  margin-top: 16px;
  font-style: italic;
  font-weight: 800;
  font-size: 1.35rem;
}
.form-success p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 480px) {
  .form-card {
    padding: 26px 20px;
  }
  .option-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Unterseiten ---------- */

.hero--page {
  padding-bottom: 104px;
}
.hero--page .hero-copy {
  padding-bottom: 0;
}
.hero--page .hero-visual {
  min-height: clamp(320px, 34vw, 480px);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: fadeUp 0.7s var(--ease-out) backwards;
}
.breadcrumb a:hover {
  color: var(--white);
}
.breadcrumb .icon {
  font-size: 11px;
}
.breadcrumb [aria-current] {
  color: var(--red);
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  animation: fadeUp 0.9s var(--ease-out) 0.6s backwards;
}

.class-detail {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.class-detail:last-child {
  border-bottom: 1px solid var(--line);
}
.class-code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  transition: color 0.5s var(--ease-out), transform 0.5s var(--ease-spring);
  padding-right: 0.1em;
}
.class-detail:hover .class-code {
  color: var(--red);
  transform: translateX(6px);
}
.class-code-label {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.class-detail-media {
  position: relative;
  margin-top: 22px;
  max-width: 250px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.class-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.class-detail:hover .class-detail-media img {
  transform: scale(1.07);
}
.class-detail-media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.class-detail:hover .class-detail-media::after {
  transform: scaleX(1);
}
@media (max-width: 980px) {
  .class-detail-media {
    max-width: 320px;
  }
}

.class-detail h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.class-detail-text p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
}
.class-detail-text .btn {
  margin-top: 26px;
}
.facts {
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 6px 24px;
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.class-detail:hover .facts {
  border-color: rgba(237, 51, 43, 0.4);
  transform: translateY(-4px);
}
.fact {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.fact:first-child {
  border-top: none;
}
.fact .icon {
  color: var(--red);
  font-size: 22px;
  margin-top: 2px;
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.fact span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .class-detail {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 44px 0;
  }
}

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

.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding: 68px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img {
  height: 92px;
  width: auto;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 36ch;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: 20px;
  border: 1px solid var(--line-strong);
  font-size: 19px;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.4s var(--ease-spring);
}
.footer-social:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px) rotate(-6deg);
}
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.footer-col a,
.footer-col span {
  color: var(--text-muted);
  font-size: 14.5px;
}
.footer-col a {
  display: inline-block;
  transition: color 0.2s var(--ease-out), transform 0.3s var(--ease-out);
}
.footer-col a:hover {
  color: var(--red);
  transform: translateX(4px);
}
.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
}
.footer-legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-legal a:hover {
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Einflug-Animationen beim Scrollen ---------- */

.js .reveal {
  opacity: 0;
}
.js .reveal.is-visible {
  opacity: 1;
  animation: rv-up 0.95s var(--ease-out) var(--d, 0ms) backwards;
}
.js .reveal.is-visible[data-reveal="left"] {
  animation-name: rv-left;
}
.js .reveal.is-visible[data-reveal="right"] {
  animation-name: rv-right;
}
.js .reveal.is-visible[data-reveal="zoom"] {
  animation-name: rv-zoom;
}
.js .reveal.is-visible[data-reveal="card"] {
  animation-name: rv-card;
  animation-duration: 1.05s;
}
@keyframes rv-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}
@keyframes rv-left {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
}
@keyframes rv-right {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
}
@keyframes rv-zoom {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}
@keyframes rv-card {
  from {
    opacity: 0;
    transform: translateY(70px) rotate(2deg) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal {
    opacity: 1;
  }
  .gallery-track {
    scroll-behavior: auto;
  }
}

/* ---------- Galerie: Bildunterschriften + Hochformat-Variante ---------- */

.gallery--portrait .gallery-item {
  flex: 0 0 clamp(190px, 21vw, 265px);
}
.gallery--portrait .gallery-media {
  aspect-ratio: 3 / 4;
}

/* ---------- Bestandene Fahrschüler ---------- */

.passed {
  background: var(--navy-deep);
  padding-bottom: 76px;
}
.reviews-section {
  padding-top: 76px;
}
.passed .section-head {
  max-width: 760px;
}
.passed .gallery {
  margin-top: 4px;
}
.h-accent {
  color: var(--red);
}

/* ---------- Endlos-Laufband ----------
   Kein Scroll-Snap und kein weiches Scrollen: beides würde gegen die
   Bild-für-Bild-Bewegung in main.js arbeiten. Ohne Innenabstand bricht der
   Lauf außerdem ohne sichtbaren Sprung um. */
.gallery-track.is-marquee {
  scroll-snap-type: none;
  scroll-behavior: auto;
  padding-inline: 0;
  scroll-padding-inline: 0;
}
.gallery-track.is-marquee .gallery-item {
  scroll-snap-align: none;
}
.gallery-track.is-marquee.is-dragging {
  cursor: grabbing;
}

html.modal-open {
  overflow: hidden;
}

/* ---------- Rechtsseiten (Impressum/Datenschutz) ---------- */
.legal-section {
  padding-block: 64px 120px;
}
.legal-content {
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-content h2 {
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 26px);
  margin-top: 44px;
  margin-bottom: 12px;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content a {
  overflow-wrap: anywhere;
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content strong {
  color: var(--white);
}
.legal-note {
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--navy-soft);
  color: var(--text-faint);
  font-size: 14px;
}

/* Schmale Handys: lange Wörter wie "FÜHRERSCHEIN." passen sonst nicht in die Zeile */
@media (max-width: 420px) {
  .hero h1 {
    font-size: min(2.5rem, 9.4vw);
  }
}
