/* FahrschulTeam Borken — Look für 16–20 */

:root {
  --ink: #1b243a;
  --ink-soft: #2c3650;
  --muted: #6b7280;
  --paper: #f4f7f2;
  --paper-hot: #ffffff;
  --line: rgba(27, 36, 58, 0.12);
  --accent: #7dc242;
  --accent-deep: #5fa32e;
  --accent-hot: #9fe05a;
  --accent-glow: rgba(125, 194, 66, 0.32);
  --road: #121826;
  --road-2: #1b243a;
  --shadow: 0 22px 50px rgba(18, 24, 38, 0.16);
  --radius: 1.4rem;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --shell: min(1140px, calc(100% - 0.75rem));
  --header-h: 5.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html.page-enter,
html.page-leave {
  overflow-x: hidden;
}

/* Desktop: sanfter Fade hinter dem Menü */
@media (min-width: 961px) {
  html.page-enter #main,
  html.page-enter .site-footer,
  html.page-enter .fab-termin {
    opacity: 0.22;
  }
  html.page-ready #main,
  html.page-ready .site-footer,
  html.page-ready .fab-termin {
    opacity: 1;
    transition: opacity 0.45s ease;
  }
  html.page-leave #main,
  html.page-leave .site-footer,
  html.page-leave .fab-termin {
    opacity: 0.22;
    transition: opacity 0.32s ease;
  }
}

/* Handy: Inhalt schiebt hinter dem Menü */
@media (max-width: 960px) {
  html.page-enter #main,
  html.page-enter .site-footer {
    transform: translate3d(100%, 0, 0);
  }
  html.page-ready #main,
  html.page-ready .site-footer {
    transform: translate3d(0, 0, 0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.page-leave #main,
  html.page-leave .site-footer {
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.page-enter #main,
  html.page-enter .site-footer,
  html.page-enter .fab-termin,
  html.page-ready #main,
  html.page-ready .site-footer,
  html.page-ready .fab-termin,
  html.page-leave #main,
  html.page-leave .site-footer,
  html.page-leave .fab-termin {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(800px 380px at 0% 0%, rgba(125, 194, 66, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 8%, rgba(159, 224, 90, 0.12), transparent 50%),
    linear-gradient(180deg, #f8faf6 0%, var(--paper) 45%, #eef3ea 100%);
  line-height: 1.62;
  min-height: 100%;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-deep); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

h1, h2, h3, .brand-text strong, .path-link h3, .feature h3 {
  font-family: var(--display);
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0 0 0.55em;
  font-weight: 800;
}

h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: 0.02em; }

p { margin: 0 0 1em; }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.5;
  font-weight: 500;
}

.shell { width: var(--shell); margin-inline: auto; }
.narrow { max-width: 44rem; }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  width: auto; height: auto; margin: 0; clip: auto;
  padding: 0.75rem 1rem; background: var(--ink); color: #fff; border-radius: 0.5rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(245, 247, 251, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(7, 16, 24, 0.08);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: 3.1rem;
  max-width: min(240px, 55vw);
  object-fit: contain;
  object-position: left center;
}
.page-home .brand-logo { height: 2.85rem; }
.page-home .hero-inner { display: grid; gap: 0.35rem; }

.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 0.9rem;
  background: rgba(255,255,255,.8); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.15rem; height: 2px; background: var(--ink); margin: 0 auto; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.nav-primary { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav-primary > li { position: relative; }
.nav-primary a, .nav-parent {
  --rx: 50%;
  --ry: 50%;
  --rsize: 8px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; padding: 0.5rem 0.65rem;
  color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  border: 0; background: none; cursor: pointer; font-family: inherit; border-radius: 0.65rem;
  z-index: 0;
}
.nav-primary a:hover, .nav-parent:hover, .nav-primary a.is-active {
  color: var(--ink); background: rgba(125, 194, 66, 0.14);
}
.nav-primary a.is-rippling,
.nav-parent.is-rippling {
  color: var(--ink);
  background: rgba(125, 194, 66, 0.28);
}
.nav-primary a::after,
.nav-parent::after {
  content: "";
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  width: var(--rsize);
  height: var(--rsize);
  margin-left: calc(var(--rsize) / -2);
  margin-top: calc(var(--rsize) / -2);
  border-radius: 50%;
  background: rgba(125, 194, 66, 0.62);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.nav-primary a.is-rippling::after,
.nav-parent.is-rippling::after {
  animation: nav-ripple 0.55s ease-out;
}
@keyframes nav-ripple {
  0% {
    transform: scale(0);
    opacity: 0.95;
  }
  70% {
    opacity: 0.45;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-primary a.is-rippling::after,
  .nav-parent.is-rippling::after {
    animation: none;
  }
}
.nav-sub {
  display: none; position: absolute; top: calc(100% + 0.35rem); left: 0; min-width: 15.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow);
  padding: 0.4rem; list-style: none; margin: 0;
}
/* Unsichtbare Hover-Brücke: Mausweg vom Parent zum Submenü bleibt in :hover */
.has-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.35rem;
  display: none;
}
.has-sub:hover::before,
.has-sub:focus-within::before,
.has-sub.is-open::before { display: block; }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub, .has-sub.is-open .nav-sub { display: grid; }
.nav-sub a { width: 100%; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 3.05rem; padding: 0.75rem 1.35rem; border-radius: 999px;
  font-weight: 800; text-decoration: none; border: 1px solid transparent;
  font-family: var(--font); letter-spacing: -0.01em;
  transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #8ed14f 0%, var(--accent) 45%, var(--accent-deep) 100%);
  color: var(--ink);
  box-shadow: 0 14px 30px var(--accent-glow);
}
.btn-primary:hover { color: var(--ink); }
.btn-ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-outline {
  background: var(--paper-hot);
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* Hero — full-bleed energy */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #eef8fb;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  --hero-shift: 0px;
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(185deg, rgba(7, 16, 24, 0.15) 0%, rgba(7, 16, 24, 0.55) 38%, rgba(7, 16, 24, 0.94) 100%),
    radial-gradient(900px 480px at 78% 18%, rgba(125, 194, 66, 0.5), transparent 58%),
    radial-gradient(600px 360px at 12% 70%, rgba(184, 255, 61, 0.18), transparent 55%),
    linear-gradient(120deg, #050b12 0%, #0d2233 42%, #063846 100%);
  transform: translate3d(0, var(--hero-shift), 0);
  will-change: transform;
}
.hero-media::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(98deg, transparent 0 52px, rgba(255,255,255,0.035) 52px 54px);
  opacity: 0.7;
  animation: road-shift 14s linear infinite;
  mix-blend-mode: screen;
}
.hero-media::after {
  content: "";
  position: absolute;
  width: 70%; height: 60%;
  right: -12%; bottom: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,194,66,.42), transparent 68%);
  filter: blur(8px);
  animation: pulse-glow 5.5s ease-in-out infinite;
}
@keyframes road-shift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-54px, 8px, 0); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .95; transform: scale(1.08); }
}
.hero-inner {
  width: var(--shell);
  margin: 0 auto;
  padding: 6.5rem 0 3.75rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 61, 0.45);
  background: rgba(184, 255, 61, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hot);
}
.hero-kicker::before {
  content: "";
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 12px var(--accent-hot);
}
.hero h1 {
  color: #fff;
  max-width: 12ch;
  text-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead { color: rgba(232, 244, 248, 0.9); max-width: 34rem; }

/* Sections */
.section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section-muted {
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.45));
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 2rem; max-width: 36rem; }
.section-head p { color: var(--muted); font-weight: 500; }

.path-grid, .feature-grid, .contact-grid { display: grid; gap: 1rem; }
.path-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(2, 1fr); }
.contact-grid { grid-template-columns: 1.15fr 1fr; }

.path-link, .feature, .contact-panel, .steps li, .hours-table {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-link {
  display: block;
  padding: 1.4rem 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.path-link::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent);
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform .2s;
}
.path-link:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 194, 66, 0.5);
  box-shadow: var(--shadow);
  color: inherit;
}
.path-link:hover::before { transform: scaleY(1); }
.path-link .path-label {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-family: var(--font);
}
.path-link h3 { text-transform: uppercase; }
.path-link p { color: var(--muted); margin: 0; font-weight: 500; }
.path-link.emphasis {
  background:
    linear-gradient(155deg, rgba(125,194,66,.16), rgba(255,255,255,.95) 45%),
    #fff;
  border-color: rgba(125, 194, 66, 0.4);
}
.path-link.emphasis::before { background: linear-gradient(180deg, var(--accent), var(--accent-hot)); transform: scaleY(1); }

.feature { padding: 1.35rem 1.4rem; }
.feature h3 { margin-bottom: 0.45rem; }
.feature p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { padding: 1.25rem 1.35rem; }
.steps .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.15rem; height: 2.15rem; margin-bottom: 0.65rem; border-radius: 999px;
  background: var(--road); color: var(--accent-hot);
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
}

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.75rem; align-items: center; }
.visual-panel {
  min-height: 300px;
  border-radius: calc(var(--radius) + 0.15rem);
  background:
    linear-gradient(155deg, rgba(125,194,66,.38), transparent 48%),
    linear-gradient(135deg, #121826, #1b243a 55%, #2a4a1c);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.visual-panel::before {
  content: "";
  position: absolute; inset: 18% -10% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(159,224,90,.85), transparent);
  transform: rotate(-8deg);
  animation: scan 4.5s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { opacity: .35; transform: rotate(-8deg) translateX(-4%); }
  50% { opacity: 1; transform: rotate(-8deg) translateX(4%); }
}
.visual-panel::after {
  content: attr(data-label);
  position: absolute; left: 1.25rem; bottom: 1.2rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-panel { padding: 1.45rem; }
.contact-panel h2, .contact-panel h3 { margin-top: 0; }
.contact-lines {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.contact-lines li {
  display: grid;
  gap: 0.2rem;
}
.contact-lines__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-lines a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.contact-lines a:hover { color: var(--accent-deep); }
.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #128c7e;
  font-weight: 800;
}
.contact-whatsapp:hover { color: #075e54; }
.contact-whatsapp__icon {
  flex-shrink: 0;
  color: #25d366;
}
.hours-table { width: 100%; border-collapse: collapse; overflow: hidden; }
.hours-table th, .hours-table td {
  padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

.page-hero { padding: 4.25rem 0 1.75rem; }
.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-family: var(--font);
}
.page-hero h1 { max-width: 16ch; }

.note {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  background: rgba(125, 194, 66, 0.1);
  border-radius: 0 0.85rem 0.85rem 0;
  font-weight: 500;
}

.fab-termin {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  padding: 0.9rem 1.25rem; border-radius: 999px;
  background: var(--road); color: #fff; font-weight: 800;
  text-decoration: none; box-shadow: var(--shadow); border: 0; font: inherit; cursor: pointer;
}
.fab-termin:hover { color: #fff; background: #101c2a; }
/* Nie durch .fx-trace (position: relative) aus dem Viewport holen */
.fab-termin.fx-trace {
  position: fixed !important;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
}

/* Footer */
.site-footer {
  margin-top: 1.5rem; padding: 3.5rem 0 6.5rem;
  background:
    radial-gradient(700px 280px at 85% 0%, rgba(125,194,66,.22), transparent 55%),
    var(--road);
  color: rgba(232, 244, 248, 0.88);
}
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 2rem; }
.footer-logo {
  display: block;
  width: auto;
  height: 3.75rem;
  max-width: 260px;
  margin: 0 0 1rem;
  object-fit: contain;
  object-position: left center;
}
.footer-brand {
  font-family: var(--display); font-size: 1.7rem; font-weight: 800;
  color: #fff; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.footer-brand span { color: var(--accent); }
.footer-heading {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-hot); margin-bottom: 0.85rem; font-family: var(--font); font-weight: 800;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.45rem; }
.site-footer a { color: #e7f5d8; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.92rem;
}

@media (max-width: 960px) {
  .brand-logo { height: 2.7rem; max-width: 48vw; }
  .path-grid, .feature-grid, .contact-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column;
    align-items: stretch; gap: 0.75rem; padding: 1rem 1.15rem 1.4rem;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    z-index: 60;
  }
  .site-nav.is-open { display: flex; }
  .site-nav.is-open::after {
    content: "";
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 24, 38, 0.22);
    z-index: -1;
    pointer-events: none;
  }
  .nav-primary { flex-direction: column; align-items: stretch; }
  .nav-sub {
    position: static; display: none; box-shadow: none; border: 0;
    background: transparent; padding-left: 0.35rem;
  }
  .has-sub::before { display: none !important; }
  .has-sub.is-open .nav-sub { display: grid; }
  body.nav-open { overflow: hidden; }
  .hero h1 { max-width: 11ch; }
}



/* ===== Motion / Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-left.is-in {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-scale.is-in {
  opacity: 1;
  transform: scale(1);
}

.hero-brand,
.hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-brand { animation-delay: 0.05s; }
.hero-copy > .hero-kicker { animation-delay: 0.18s; }
.hero-copy > h1 { animation-delay: 0.3s; }
.hero-copy > .lead { animation-delay: 0.42s; }
.hero-copy > .hero-benefits,
.hero-copy > .hero-proofs { animation-delay: 0.5s; }
.hero-copy > .cta-row,
.hero-copy > .hero-paths { animation-delay: 0.62s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header {
  transition: border-color .25s, box-shadow .25s, background .25s, transform .35s;
}
.site-header.is-scrolled {
  backdrop-filter: blur(18px) saturate(1.25);
}

.path-link,
.feature,
.choice-card,
.contact-panel,
.check-list li {
  transition:
    transform .22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .22s,
    box-shadow .22s,
    background .22s;
}
.check-list li:hover {
  transform: translateX(4px);
  border-color: rgba(125, 194, 66, 0.45);
}

.fab-termin {
  transition: transform .2s, background .2s, box-shadow .2s;
  animation: fab-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}
.fab-termin:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(18, 24, 38, 0.28);
}
@keyframes fab-in {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fst-termin-modal {
  display: grid;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fst-termin-modal:not([hidden]) {
  opacity: 1;
}
.fst-termin-modal[hidden] {
  display: none !important;
  opacity: 0;
}
.fst-termin-dialog {
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.fst-termin-modal.is-open .fst-termin-dialog {
  transform: translateY(0) scale(1);
}

.ftb-consent {
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ftb-consent:not([hidden]) {
  transform: translateY(0);
}
.ftb-consent-panel {
  animation: consent-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes consent-pop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.visual-panel {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.visual-panel.is-in {
  transform: scale(1);
}

.page-hero h1,
.page-hero .lead,
.page-hero .eyebrow {
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero .eyebrow { animation-delay: 0.05s; }
.page-hero h1 { animation-delay: 0.15s; }
.page-hero .lead { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-scale,
  .hero-brand, .hero-copy > *,
  .page-hero h1, .page-hero .lead, .page-hero .eyebrow,
  .fab-termin, .ftb-consent, .ftb-consent-panel {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-media {
    transform: none !important;
  }
}

/* ===== Startseite: ruhige 3D-Kacheln ===== */
.page-home .tile-3d {
  --rx: 0deg;
  --ry: 0deg;
  --tz: 0px;
  --ty: 0px;
  --mx: 50%;
  --my: 40%;
  position: relative;
  z-index: 0;
  transform-style: preserve-3d;
  transform:
    perspective(1100px)
    rotateX(var(--rx))
    rotateY(var(--ry))
    translate3d(0, var(--ty), var(--tz));
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background 0.3s ease,
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 28px rgba(27, 36, 58, 0.08),
    0 28px 50px rgba(27, 36, 58, 0.06);
  will-change: transform;
}

.page-home .tile-3d.reveal:not(.is-in),
.page-home .tile-3d.reveal-scale:not(.is-in) {
  opacity: 0;
  transform:
    perspective(1100px)
    rotateX(4deg)
    rotateY(0deg)
    translate3d(0, 28px, -24px);
}

/* Reveal-Delay nur beim Einblenden, danach wieder 0 (sonst hinkt der Tilt) */
.page-home .tile-3d.reveal.is-in:not(.is-settled),
.page-home .tile-3d.reveal-scale.is-in:not(.is-settled) {
  opacity: 1;
  transform:
    perspective(1100px)
    rotateX(var(--rx))
    rotateY(var(--ry))
    translate3d(0, var(--ty), var(--tz));
  transition-delay: var(--reveal-delay, 0ms);
}

.page-home .tile-3d.reveal.is-settled,
.page-home .tile-3d.reveal-scale.is-settled {
  opacity: 1;
  transition-delay: 0s;
}

.page-home .tile-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      420px circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.34),
      transparent 52%
    );
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: soft-light;
}

.page-home .tile-3d.is-tilting {
  --tz: 22px;
  --ty: -3px;
  z-index: 4;
  border-color: rgba(125, 194, 66, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 36px rgba(27, 36, 58, 0.12),
    0 40px 70px rgba(27, 36, 58, 0.14);
  transition-property: transform, box-shadow, border-color, background, opacity;
  transition-duration: 0.12s, 0.25s, 0.25s, 0.25s, 0.12s;
  transition-delay: 0s;
}

.page-home .tile-3d.is-tilting::after {
  opacity: 1;
}

.page-home .media-frame.tile-3d,
.page-home .media-panel.tile-3d {
  overflow: hidden;
}
.page-home .media-frame.tile-3d img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1.01);
}
.page-home .media-frame.tile-3d.is-tilting img {
  transform: scale(1.045);
}

.page-home .cta-band.tile-3d {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 50px rgba(18, 24, 38, 0.22),
    0 0 0 1px rgba(125, 194, 66, 0.12) inset;
}
.page-home .cta-band.tile-3d.is-tilting {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 28px 60px rgba(18, 24, 38, 0.28),
    0 0 40px rgba(125, 194, 66, 0.16),
    0 0 0 1px rgba(159, 224, 90, 0.22) inset;
}

.page-home .steps .step-num {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.page-home .steps li.is-tilting .step-num {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(18, 24, 38, 0.22), 0 0 0 4px rgba(125, 194, 66, 0.16);
}

.page-home .hero-proofs li {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.page-home .hero-proofs li:has(a:hover),
.page-home .hero-proofs li:has(a:focus-visible) {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 61, 0.5);
  background: rgba(7, 16, 24, 0.48);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tile-3d,
  .page-home .tile-3d.reveal.is-in,
  .page-home .tile-3d.reveal-scale.is-in {
    transform: none !important;
  }
  .page-home .tile-3d::after { display: none; }
}


/* Termin modal + Check-In */
.btn-termin,
button.btn-termin {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 28px var(--accent-glow);
  min-width: min(100%, 22rem);
  min-height: 4.5rem;
  font-size: 1.1rem;
}
.btn-termin:hover { color: var(--ink); background: var(--accent-hot); }
.fst-termin-button-embed { margin: 1rem 0 0.5rem; }
.ftb-checkin-form { display: inline-flex; margin: 0; }
.footer-termin-link {
  border: 0; background: none; padding: 0; color: #e7f5d8;
  font: inherit; cursor: pointer; text-align: left; font-weight: 600;
}
.footer-termin-link:hover { color: #fff; }
.fab-termin { border: 0; font: inherit; cursor: pointer; }
.fst-termin-modal {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(15, 23, 42, 0.55); padding: 16px; box-sizing: border-box;
}
.fst-termin-modal[hidden] { display: none !important; }
.fst-termin-dialog {
  position: relative; max-width: 960px; width: 100%; height: min(90vh, 820px);
  margin: 4vh auto 0; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.fst-termin-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px;
  border: 0; border-radius: 999px; background: #fff; color: #0f172a;
  font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.fst-termin-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
body.termin-modal-open { overflow: hidden; }


/* Hero brand + rich content */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.hero-logo {
  width: auto;
  height: clamp(4.25rem, 12vw, 6.25rem);
  max-width: min(420px, 88vw);
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.28));
}
.hero .hero-copy { max-width: 40rem; }
.hero h1 { max-width: 16ch; }

.check-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.check-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(125, 194, 66, 0.18);
}

.prose { max-width: 46rem; }
.prose > :first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-weight: 500; }
.ftb-map {
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.05rem);
  overflow: hidden;
  background: #e8ece6;
  box-shadow: 0 12px 28px rgba(27, 36, 58, 0.06);
}
.ftb-map__frame {
  display: block;
  width: 100%;
  height: min(22rem, 58vw);
  min-height: 16rem;
  border: 0;
  background: #dfe5db;
}
.ftb-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  padding: 0.9rem 1rem 1rem;
  margin: 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .ftb-map__actions .btn { width: 100%; text-align: center; }
}
.prose strong { color: var(--ink); font-weight: 800; }
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.prose li { margin-bottom: 0.4rem; }
.prose h2, .prose h3 {
  margin-top: 1.75rem;
  text-transform: uppercase;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.choice-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.choice-card .num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.choice-card p { margin: 0; color: var(--muted); font-weight: 500; }
.stat-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-box article {
  background: var(--road);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
}
.stat-box strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--accent-hot);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-box p { margin: 0; color: rgba(255,255,255,.78); font-size: 0.95rem; }
@media (max-width: 960px) {
  .choice-grid, .stat-box { grid-template-columns: 1fr; }
  .hero-logo { height: 3.75rem; }
}


/* Consent */
.ftb-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100000;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(18,24,38,.35));
}
.ftb-consent[hidden] { display: none !important; }
.ftb-consent-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.1rem;
}
.ftb-consent-panel h2 {
  font-size: 1.55rem;
  margin-bottom: .4rem;
}
.ftb-consent-panel > p { color: var(--muted); font-weight: 500; }
.ftb-consent-options { display: grid; gap: .55rem; margin: 1rem 0; }
.ftb-consent-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .35rem .7rem;
  align-items: start;
  font-weight: 700;
}
.ftb-consent-option__text {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.ftb-consent-option__hint {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: .92rem;
}
.ftb-consent-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.ftb-consent-links { margin: .85rem 0 0; font-size: .9rem; }
.fst-termin-consent-note {
  display: grid;
  place-content: center;
  gap: .75rem;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
}
.fst-termin-consent-note[hidden],
#fst-termin-frame[hidden] { display: none !important; }
#fst-termin-frame { background: #fff; }


/* Home conversion layout */
.page-home .fab-termin { display: none !important; }
.page-home .hero-logo { display: none; } /* Hero fokus first; logo bleibt im Header */

.hero--convert {
  min-height: min(78vh, 700px);
}
.hero--convert .hero-inner {
  padding: 6.25rem 0 3.25rem;
  max-width: var(--shell);
}
.hero--convert h1 {
  max-width: 18ch;
  font-size: clamp(2.45rem, 7.2vw, 4.35rem);
}
.hero--convert .lead {
  max-width: 28rem;
  margin-top: 0.85rem;
  font-size: 1.05rem;
}
.hero-proofs {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  max-width: 34rem;
}
.hero-proofs li {
  display: inline-flex;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 61, 0.28);
  background: rgba(7, 16, 24, 0.35);
  color: rgba(238, 246, 249, 0.95);
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
}
.hero-proofs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.8rem;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.hero-proofs a:hover {
  color: var(--accent-hot);
}
.hero-paths {
  display: grid;
  gap: 1rem;
  margin-top: 1.45rem;
  max-width: 40rem;
}
.hero-paths__label {
  margin: 0;
  color: var(--accent-hot);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-paths__choices {
  display: grid;
  gap: 0.75rem;
}
.hero-paths__or {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--accent-hot);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-paths__or span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 61, 0.45);
  background: rgba(7, 16, 24, 0.55);
  color: var(--accent-hot);
}
.hero-path {
  display: grid;
  gap: 0.85rem;
  align-items: center;
  justify-items: center;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1px solid rgba(184, 255, 61, 0.22);
  background: rgba(7, 16, 24, 0.42);
  text-align: center;
}
.hero-path__body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.4rem;
  justify-items: center;
  align-content: start;
  min-width: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}
.hero-path__title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  min-height: 1.25em;
}
.hero-path__text {
  margin: 0;
  color: rgba(232, 244, 248, 0.86);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  min-height: 2.8em;
}
.hero-path .btn,
.hero-path .ftb-checkin-form {
  margin-top: auto;
  align-self: center;
}
.hero-path--shared {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  justify-items: center;
  align-items: center;
  margin-top: 0.15rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}
.hero-path--shared .hero-path__title {
  color: var(--accent-hot);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-path--shared .hero-path__text {
  min-height: 0;
  max-width: 32rem;
}
.hero-path--shared .ftb-checkin-form,
.hero-path--shared .btn {
  margin-top: 0.35rem;
  align-self: center;
  justify-self: center;
}
@media (min-width: 700px) {
  .hero-paths__choices {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-paths__or {
    align-self: center;
  }
  .hero-path {
    height: 100%;
  }
}
.hero-benefits {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
}
.hero-benefits li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(238, 246, 249, 0.92);
  font-weight: 600;
}
.hero-benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(159, 224, 90, 0.18);
}
@media (max-width: 640px) {
  .hero--convert {
    min-height: auto;
  }
  .hero--convert .hero-inner {
    padding: 5.5rem 0 2.5rem;
  }
  .hero--convert h1 {
    max-width: 14ch;
  }
  .hero--convert .lead {
    font-size: 0.98rem;
  }
  .hero-proofs {
    gap: 0.45rem;
  }
  .hero-proofs li {
    font-size: 0.84rem;
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
  }
}

.section-trust {
  padding-top: 1.75rem;
  padding-bottom: 2.75rem;
  background:
    linear-gradient(180deg, rgba(125, 194, 66, 0.1), rgba(255, 255, 255, 0) 70%);
}
.trust-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 1.75rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.6rem;
  border: 1px solid rgba(66, 133, 244, 0.22);
  border-radius: calc(var(--radius) + 0.15rem);
  background:
    linear-gradient(135deg, #ffffff 0%, #f7fbff 55%, #f4faf0 100%);
  box-shadow:
    0 10px 28px rgba(27, 36, 58, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-bar:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(27, 36, 58, 0.12),
    0 0 0 1px rgba(66, 133, 244, 0.18) inset;
}
.trust-google-logo {
  display: block;
  width: 5.75rem;
  height: auto;
  flex-shrink: 0;
}
.trust-score {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1 1 auto;
  min-width: 12rem;
}
.trust-rating {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.trust-meta {
  display: grid;
  gap: 0.15rem;
}
.trust-stars {
  color: #fbbc04;
  letter-spacing: 0.12em;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.trust-count {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.trust-link {
  font-weight: 800;
  text-decoration: none;
  color: #1a73e8;
  white-space: nowrap;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.08);
  border: 1px solid rgba(26, 115, 232, 0.18);
  transition: background 0.2s ease, color 0.2s ease;
}
.trust-bar:hover .trust-link {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
@media (max-width: 640px) {
  .trust-bar { padding: 1.15rem 1.2rem; }
  .trust-link { width: 100%; text-align: center; }
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.review-carousel {
  margin-top: 1rem;
}
.review-carousel__viewport {
  overflow: hidden;
}
.review-carousel__track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.review-carousel__slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.review-carousel__slide p {
  flex: 1;
}
@media (max-width: 900px) {
  .review-carousel__slide {
    flex-basis: calc((100% - 1rem) / 2);
  }
}
@media (max-width: 640px) {
  .review-carousel__slide {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-carousel__track { transition: none; }
}
.review-card {
  margin: 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(27, 36, 58, 0.05);
}
.review-card .review-stars {
  color: #fbbc04;
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  margin-left: auto;
}
.review-card p { margin: 0; color: var(--ink-soft); font-weight: 500; }
.review-card__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  min-width: 0;
}
.review-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8ecf4;
}
.review-card__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-deep);
  background: #eef2fa;
}
.review-card__name {
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.steps--row {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mini-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.mini-list li {
  padding-left: 1.1rem;
  position: relative;
  font-weight: 600;
  color: var(--ink-soft);
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.split--media { align-items: stretch; }
.media-frame {
  margin: 0;
  min-height: 280px;
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(155deg, rgba(125,194,66,.28), transparent 48%),
    linear-gradient(135deg, #121826, #1b243a 55%, #2a4a1c);
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.media-frame::after {
  content: attr(data-label);
  position: absolute;
  left: 1.15rem; bottom: 1.1rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 24px rgba(0,0,0,.45);
}

/* Helle Marken-Panels statt dunkler Leerflächen (bis echte Fotos liegen) */
.media-panel {
  margin: 0;
  min-height: 300px;
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  position: relative;
  display: grid;
  align-items: end;
  border: 1px solid rgba(125, 194, 66, 0.28);
  background:
    radial-gradient(420px 260px at 88% 12%, rgba(159, 224, 90, 0.45), transparent 62%),
    radial-gradient(380px 240px at 8% 88%, rgba(125, 194, 66, 0.22), transparent 58%),
    linear-gradient(145deg, #f7fbf3 0%, #e8f4dc 48%, #d7ebc4 100%);
  box-shadow: 0 18px 40px rgba(27, 36, 58, 0.08);
}
.media-panel__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.55), transparent 42%),
    repeating-linear-gradient(118deg, transparent 0 28px, rgba(27,36,58,.035) 28px 29px);
}
.media-panel__art::before,
.media-panel__art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(95, 163, 46, 0.22);
}
.media-panel__art::before {
  width: 11rem; height: 11rem;
  right: -2.2rem; top: -2.5rem;
}
.media-panel__art::after {
  width: 7rem; height: 7rem;
  right: 3.5rem; top: 3.2rem;
  border-color: rgba(125, 194, 66, 0.35);
}
.media-panel__body {
  position: relative;
  z-index: 1;
  padding: 1.55rem 1.5rem 1.45rem;
}
.media-panel__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.media-panel__stat {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.media-panel__stat span {
  color: var(--accent-deep);
}
.media-panel__note {
  margin: 0.65rem 0 0;
  max-width: 18rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.media-panel--theorie {
  background:
    radial-gradient(420px 260px at 90% 10%, rgba(159, 224, 90, 0.5), transparent 60%),
    radial-gradient(340px 220px at 10% 90%, rgba(125, 194, 66, 0.18), transparent 55%),
    linear-gradient(150deg, #f8fcf4 0%, #eaf6df 50%, #d9edc8 100%);
}
.media-panel--intensiv {
  background:
    radial-gradient(420px 260px at 12% 14%, rgba(159, 224, 90, 0.42), transparent 58%),
    radial-gradient(360px 240px at 92% 86%, rgba(27, 36, 58, 0.08), transparent 55%),
    linear-gradient(210deg, #f3f8ef 0%, #e4f1d6 46%, #cfe6b5 100%);
}
.media-panel--intensiv .media-panel__art::before {
  right: auto; left: -2.2rem;
}
.media-panel--intensiv .media-panel__art::after {
  right: auto; left: 14%; top: 18%;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.75rem 1.6rem;
  border-radius: calc(var(--radius) + 0.1rem);
  background: var(--road);
  color: rgba(238,246,249,.9);
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { margin: 0; color: rgba(238,246,249,.78); }
.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.choice-grid--compact .choice-card { padding: 1.1rem; }

@media (max-width: 960px) {
  .feature-grid--3,
  .steps--row,
  .review-grid { grid-template-columns: 1fr; }
  .split--media { grid-template-columns: 1fr; }
}

/* ===== Border Glow Trace (Link-Buttons & Link-Kacheln) ===== */
.fx-trace {
  --trace-angle: 180deg;
  --trace-a: var(--accent-hot);
  --trace-b: var(--accent);
  position: relative;
  isolation: isolate;
}
.fx-trace.btn-primary,
.fx-trace.btn-termin {
  --trace-a: #ffffff;
  --trace-b: #e8ffe0;
}
.fx-trace-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--trace-angle),
    transparent 0%,
    transparent 55%,
    var(--trace-a) 72%,
    var(--trace-b) 84%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.fx-trace:hover .fx-trace-ring,
.fx-trace:focus-visible .fx-trace-ring,
.fx-trace.is-tracing .fx-trace-ring {
  opacity: 1;
}
.fx-trace:hover,
.fx-trace:focus-visible {
  box-shadow:
    0 14px 30px rgba(27, 36, 58, 0.1),
    0 0 0 1px rgba(125, 194, 66, 0.18);
}
.btn-primary.fx-trace:hover,
.btn-primary.fx-trace:focus-visible,
.btn-termin.fx-trace:hover,
.btn-termin.fx-trace:focus-visible {
  box-shadow:
    0 16px 34px rgba(125, 194, 66, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}
.btn-ghost.fx-trace:hover,
.btn-ghost.fx-trace:focus-visible {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(184, 255, 61, 0.28);
}
.hero-proofs a.fx-trace:hover,
.hero-proofs a.fx-trace:focus-visible {
  box-shadow: none;
}
.path-link.fx-trace:hover {
  box-shadow: var(--shadow), 0 0 0 1px rgba(125, 194, 66, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .fx-trace-ring {
    display: none !important;
  }
}

/* ===== Erfolgsgeschichten (Galerie) ===== */
.section-success-gallery {
  padding-top: clamp(2rem, 4vw, 3rem);
}
.section-success-gallery .section-head--success {
  margin-bottom: 1.5rem;
}
.success-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
}
.success-filters__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.success-filters__link:hover {
  border-color: rgba(125, 194, 66, 0.5);
  color: var(--ink);
}
.success-filters__link.is-active {
  background: var(--road);
  border-color: var(--road);
  color: var(--accent-hot);
}
.success-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 700px) {
  .success-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}
@media (min-width: 1024px) {
  .success-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 1.75rem;
  }
}
.success-gallery__empty {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}
.success-card {
  margin: 0;
}
.success-card__open {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border-radius: calc(var(--radius) + 0.1rem);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 16px 36px rgba(27, 36, 58, 0.08);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.success-card__open:hover,
.success-card__open:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 22px 44px rgba(27, 36, 58, 0.12);
  outline: none;
}
.success-card__open:focus-visible {
  box-shadow:
    0 0 0 3px rgba(125, 194, 66, 0.35),
    0 22px 44px rgba(27, 36, 58, 0.12);
}
.success-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ecf4;
}
.success-card__media picture,
.success-card__media img {
  display: block;
  width: 100%;
  height: 100%;
}
.success-card__media img {
  object-fit: cover;
}
.success-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem 1.4rem;
}
.success-card__name {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.success-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.success-card__quote {
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.success-overlay {
  border: 0;
  padding: 0;
  max-width: min(920px, calc(100vw - 1.5rem));
  width: 100%;
  background: transparent;
}
.success-overlay::backdrop {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}
.success-overlay__panel {
  position: relative;
  background: #fff;
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.success-overlay__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}
.success-overlay__close:hover,
.success-overlay__close:focus-visible {
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 194, 66, 0.35);
}
.success-overlay__media {
  background: #121826;
  aspect-ratio: 1 / 1;
  max-height: min(70vh, 560px);
}
@media (min-width: 800px) {
  .success-overlay__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .success-overlay__media {
    aspect-ratio: 1 / 1;
    max-height: min(80vh, 640px);
    min-height: 0;
  }
}
.success-overlay__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.success-overlay__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
}
.success-overlay__body h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.success-overlay__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  font-weight: 700;
  color: var(--ink-soft);
}
.success-overlay__quote {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  max-width: 32rem;
}

@media (prefers-reduced-motion: reduce) {
  .success-card__open {
    transition: none;
  }
}

/* Homepage Erfolgsgeschichten-Slider */
.section-success-home {
  overflow: hidden;
}
.section-success-home > .shell {
  width: min(1320px, calc(100% - 0.75rem));
}
.section-head--success em {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 600;
}
.success-home-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.success-fallback-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .success-fallback-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .success-fallback-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.success-card--static,
.success-slider__slide {
  border-radius: calc(var(--radius) + 0.1rem);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 16px 36px rgba(27, 36, 58, 0.08);
}
.success-slider {
  --success-gap: 1.25rem;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.65rem;
}
.success-slider.is-ready {
  display: grid;
}
.success-slider.is-static .success-slider__nav {
  display: none;
}
.success-slider__viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  touch-action: pan-y;
  cursor: grab;
  padding: 0.35rem 0 0.85rem;
}
.success-slider__viewport:active {
  cursor: grabbing;
}
.success-slider__track {
  display: flex;
  gap: var(--success-gap);
  width: 100%;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Zwei Karten; Breite relativ zum sichtbaren Viewport (nicht shrink-to-fit) */
.success-slider__slide {
  flex: 0 0 calc((100% - var(--success-gap)) / 2);
  width: calc((100% - var(--success-gap)) / 2);
  max-width: calc((100% - var(--success-gap)) / 2);
  min-width: 0;
  box-sizing: border-box;
}
.success-slider__slide .success-card__media {
  aspect-ratio: 1 / 1;
  background: #e8ecf4;
}
.success-slider__slide .success-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.success-slider__slide .success-card__body {
  padding: 1.1rem 1.2rem 1.25rem;
}
.success-slider__slide .success-card__open {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.success-slider__slide .success-card__open:hover,
.success-slider__slide .success-card__open:focus-visible {
  transform: none;
  box-shadow: none;
}
.success-slider__slide .success-card__open:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(125, 194, 66, 0.45);
}
.success-slider__nav {
  display: none;
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(27, 36, 58, 0.08);
}
.success-slider__nav:hover,
.success-slider__nav:focus-visible {
  border-color: rgba(125, 194, 66, 0.55);
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 194, 66, 0.28);
}
@media (min-width: 900px) {
  .success-slider__nav {
    display: inline-grid;
    place-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .success-slider__track {
    transition: none;
  }
}

/* Öffentliche Theoriekurse */
.prose .theory-courses,
.prose .theory-courses__empty,
.prose .section-head {
  max-width: none;
}
.theory-courses-section > .shell {
  width: var(--shell);
  max-width: none;
}
.theory-courses-section h2 {
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}
.theory-courses {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
}
.theory-courses__empty {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-weight: 600;
  max-width: 36rem;
}
.theory-course {
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 36, 58, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main seats"
    "panel panel";
  column-gap: 1rem;
  row-gap: 0.5rem;
  align-items: start;
}
.theory-course__main {
  grid-area: main;
  min-width: 0;
}
.theory-course__details {
  grid-area: panel;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}
.theory-course__panel {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}
.theory-course__toggle {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0 0 0.35rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.theory-course__toggle::-webkit-details-marker {
  display: none;
}
.theory-course__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.25rem;
}
.theory-course__name {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--ink);
}
.theory-course__countdown {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--road);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.theory-course__countdown.is-started {
  color: #e53935;
  font-weight: 800;
  text-shadow:
    0 0 0.35rem rgba(229, 57, 53, 0.85),
    0 0 0.85rem rgba(229, 57, 53, 0.55),
    0 0 1.4rem rgba(229, 57, 53, 0.35);
}
.theory-course__range {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}
.theory-course__dates {
  font-weight: 700;
  color: var(--ink-soft);
}
.theory-course__hours {
  font-weight: 600;
  color: var(--muted);
}
.theory-course__seats-form {
  grid-area: seats;
  justify-self: end;
  align-self: end;
  margin: 0;
  max-width: 13rem;
}
.prose .theory-course__seats,
.theory-course__seats {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #00c853;
  text-align: right;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
}
.prose .theory-course__seats:hover,
.theory-course__seats:hover,
.prose .theory-course__seats:focus-visible,
.theory-course__seats:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.theory-course__seats:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.prose p.theory-course__seats,
p.theory-course__seats {
  grid-area: seats;
  justify-self: end;
  align-self: end;
  max-width: 13rem;
  cursor: default;
}
.prose .theory-course__seats.is-urgent,
.theory-course__seats.is-urgent {
  color: #ff9800;
}
.theory-course__toggle-arrow {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.theory-course__details[open] .theory-course__toggle-arrow {
  transform: rotate(180deg);
}
.theory-course__toggle:hover .theory-course__toggle-arrow,
.theory-course__toggle:focus-visible .theory-course__toggle-arrow {
  border-color: rgba(125, 194, 66, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 194, 66, 0.22);
}
.theory-course__toggle:focus-visible {
  outline: none;
}
.prose .theory-course__days,
.theory-course__days {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.theory-course__day {
  min-width: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(27, 36, 58, 0.08);
  border-radius: 0.65rem;
  background: rgba(246, 247, 250, 0.85);
}
.prose .theory-course__day-label,
.theory-course__day-label {
  margin: 0 0 0.45rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.3;
}
.prose .theory-course__lessons,
.theory-course__lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.prose .theory-course__lessons li,
.theory-course__lessons li {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.5rem 0.65rem;
  align-items: baseline;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  min-width: 0;
}
.theory-course__time {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.theory-course__topic {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none !important;
  hyphens: none !important;
  line-height: 1.35;
}
@media (min-width: 720px) {
  .prose .theory-course__days,
  .theory-course__days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 1rem;
    width: 100%;
  }
  /* Einzelner letzter Tag zentriert unter beiden Spalten */
  .theory-course__day:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc((100% - 1.25rem) / 2);
    justify-self: center;
  }
}
@media (max-width: 520px) {
  .prose .theory-course__lessons li,
  .theory-course__lessons li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
