/* Fahrschule Johanneskirchen · Designsystem
   Farben aus Logo (Lila #662483, Orange #F39200) und dem Motorrad der Fahrschule (schwarz, gold, lila).
   Schrift: Barlow / Barlow Condensed – inspiriert von Straßenschildern und Kennzeichen (SIL OFL, lokal). */

/* ---------- Schriften ---------- */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/barlow-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-condensed-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800-italic-latin.woff2') format('woff2'); }

/* ---------- Designwerte ---------- */
:root {
  --ink: #16111d;
  --ink-2: #221a2c;
  --ink-3: #2f2539;
  --night: #0f0b14;
  --page: #f7f5f2;
  --surface: #ffffff;
  --alt: #efeaf4;
  --text: #1c1524;
  --muted: #5b5266;
  --brand: #662483;
  --brand-dark: #4b1a61;
  --brand-deep: #2a1238;
  --brand-tint: #f1e8f7;
  --brand-on-dark: #d4b1ee;
  --signal: #f39200;
  --signal-hover: #ffa82e;
  --on-signal: #16111d;
  --line: #ddd5e4;
  --line-dark: rgb(255 255 255 / 0.14);
  --text-on-dark: #ffffff;
  --muted-on-dark: rgb(255 255 255 / 0.74);
  --ok: #1d7a4b;
  --error: #b42318;

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;

  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --text-h1: clamp(2.6rem, 1.55rem + 4.4vw, 5.25rem);
  --text-h2: clamp(2.05rem, 1.45rem + 2.4vw, 3.4rem);
  --text-h3: clamp(1.35rem, 1.2rem + 0.55vw, 1.65rem);

  --content: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 2.6rem + 5.5vw, 7.5rem);
  --gap: clamp(1.25rem, 2.4vw, 2rem);
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 18px;
  --cut: 2rem;
  --shadow: 0 1px 2px rgb(22 17 29 / 0.06), 0 12px 32px rgb(22 17 29 / 0.08);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 75em) {
  :root { --header-h: 5rem; }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 var(--text-body)/1.6 var(--font-body);
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-dark); }
p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: var(--text-h1); line-height: 1.0; }
h2 { font-size: var(--text-h2); }
h3, .h3 { font-size: var(--text-h3); font-weight: 700; line-height: 1.15; letter-spacing: 0; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
::selection { background: var(--signal); color: var(--ink); }

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
a[href^='tel:'] { white-space: nowrap; }
.container { width: min(calc(100% - 2 * var(--gutter)), var(--content)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--signal); color: var(--ink); font-weight: 600; border-radius: var(--r-s); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kennzeichen-Plakette ---------- */
.plate {
  --plate-fg: var(--brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5em;
  padding: 0.2em 0.42em 0.17em 0.78em;
  font: 800 1.25rem/1 var(--font-display);
  letter-spacing: 0.03em;
  color: var(--plate-fg);
  background: #fff;
  border: 0.09em solid var(--plate-fg);
  border-radius: 0.24em;
  white-space: nowrap;
  vertical-align: middle;
}
.plate::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.36em;
  border-radius: 0.15em 0 0 0.15em;
  background: var(--signal);
}
.plate + .plate { margin-left: 0.35em; }
.plate-sm { font-size: 0.95rem; }
.plate-lg { font-size: 2.1rem; }
.plate-h1 { min-width: 2.2em; font-size: 0.8em; padding-top: 0.12em; padding-bottom: 0.1em; vertical-align: 0.06em; margin-inline: 0.04em; }
.plate-ghost { --plate-fg: var(--muted); border-style: dashed; }
.plate-ghost::before { background: var(--line); }
.plates-row { display: flex; gap: 0.5rem; margin-top: 2.5rem; }
.plates-row .plate { font-size: clamp(2.5rem, 8vw, 4.5rem); }

/* ---------- Buttons und Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font: 600 1.0625rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn .icon-arrow { transition: transform 0.18s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-signal { background: var(--signal); color: var(--on-signal); }
.btn-signal:hover { background: var(--signal-hover); color: var(--on-signal); transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-ghost-light { border-color: rgb(255 255 255 / 0.4); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgb(255 255 255 / 0.07); color: #fff; }
.btn-sm { min-height: 2.6rem; padding: 0.45rem 1rem; font-size: 1rem; }
.btn-lg { min-height: 3.5rem; padding: 0.85rem 1.6rem; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link .icon { transition: transform 0.18s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link-light { color: #fff; }
.text-link-light:hover { color: var(--signal-hover); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; margin-right: auto; padding-block: 0.4rem; }
.brand-logo { display: none; width: 10.75rem; }
.brand-wortmarke { width: clamp(12rem, 52vw, 14.5rem); }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: rgb(255 255 255 / 0.86);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--r-s);
  position: relative;
}
.main-nav a:hover { color: #fff; background: rgb(255 255 255 / 0.06); }
.main-nav a[aria-current='page'] { color: #fff; }
.main-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--signal);
}
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-wa { display: none; align-items: center; gap: 0.45rem; color: #fff; text-decoration: none; font-weight: 600; padding: 0.5rem 0.6rem; border-radius: var(--r-s); }
.header-wa:hover { color: var(--signal-hover); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle:hover { background: rgb(255 255 255 / 0.14); }
.menu-toggle-icon { display: grid; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  padding: 0.5rem 0 1.75rem;
  box-shadow: 0 24px 40px rgb(0 0 0 / 0.35);
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav li + li { border-top: 1px solid var(--line-dark); }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  font: 700 1.5rem/1.1 var(--font-display);
  color: #fff;
  text-decoration: none;
}
.mobile-menu nav a[aria-current='page'] { color: var(--signal); }
.mobile-menu .btn { margin-top: 1.25rem; }
.mobile-menu-contact { margin-top: 1.25rem !important; display: grid; gap: 0.35rem; }
.mobile-menu-contact a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; color: var(--muted-on-dark); text-decoration: none; }
.mobile-menu-contact a:hover { color: #fff; }
html.menu-open { overflow: hidden; }

@media (min-width: 40em) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 75em) {
  .brand-logo { display: block; }
  .brand-wortmarke { display: none; }
  .main-nav { display: block; }
  .header-wa { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section-tight-top { padding-top: clamp(2rem, 4vw, 3.5rem); }
.section-page { background: var(--page); }
.section-white { background: var(--surface); }
.section-alt { background: var(--alt); }
.section-ink { background: var(--ink); color: var(--text-on-dark); }
.section-brand {
  color: var(--text-on-dark);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(102 36 131 / 0.55) 0%, rgb(102 36 131 / 0) 60%),
    linear-gradient(160deg, var(--brand-deep) 0%, var(--ink) 100%);
}
.section-ink .section-lead, .section-brand .section-lead { color: var(--muted-on-dark); }
.section-ink a:not(.btn), .section-brand a:not(.btn):not(.text-link-light) { color: var(--brand-on-dark); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font: 600 0.8125rem/1.3 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: '';
  flex: none;
  width: 1.6rem;
  height: 3px;
  border-radius: 2px;
  background: var(--signal);
  transform: skewX(-24deg);
}
.section-ink .eyebrow, .section-brand .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .contact-band .eyebrow, .note-brand .eyebrow { color: var(--signal); }
.section-intro { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-intro.is-center { margin-inline: auto; text-align: center; }
.section-intro.is-center .eyebrow { justify-content: center; }
.section-lead { margin-top: 1rem; font-size: var(--text-lead); line-height: 1.55; color: var(--muted); max-width: 44rem; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-row .section-intro { margin-bottom: 0; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-person { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .split-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-faq > .section-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
  .split-prices { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split-map { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-track { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
  .split-english { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .split-tip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
}

.cut-corner { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); border-radius: var(--r-l); overflow: hidden; }

/* ---------- Startseite: Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 7vw, 6.5rem) clamp(2rem, 4vw, 4rem); }
.hero-text { max-width: 41rem; }
.hero h1 { margin-top: 0.25rem; }
.hero .lead { margin-top: 1.25rem; font-size: var(--text-lead); line-height: 1.55; color: var(--muted-on-dark); max-width: 36rem; }
.hero-facts { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.hero-facts li { display: flex; align-items: center; gap: 0.75rem; color: var(--muted-on-dark); font-size: var(--text-small); }
.hero-facts strong { color: #fff; }
.hero-facts .icon { width: 2.25rem; height: 2.25rem; padding: 0.45rem; border-radius: 10px; background: rgb(255 255 255 / 0.07); color: var(--signal); }
.hero-media { position: relative; order: 2; margin: 0 var(--gutter); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.hero-ticker { position: relative; z-index: 2; order: 3; margin-top: 1.5rem; border-top: 1px solid var(--line-dark); background: rgb(255 255 255 / 0.04); }
.hero-ticker-inner { display: grid; gap: 0.25rem; padding-block: 0.9rem; }
.hero-ticker p { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-small); color: var(--muted-on-dark); min-height: 2rem; }
.hero-ticker .icon { color: var(--signal); }
.hero-ticker a { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.hero-ticker a:hover { color: var(--signal-hover); }
.hero-ticker strong { color: #fff; font-weight: 600; }
@media (min-width: 40em) {
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .hero-facts li { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .hero-ticker-inner { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 1.5rem; }
}
@media (min-width: 60em) {
  .hero { min-height: min(47rem, calc(100svh - var(--header-h))); justify-content: center; }
  .hero-inner { padding-bottom: clamp(6.5rem, 9vw, 8rem); }
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; margin: 0; z-index: 0; }
  .hero-media img { height: 100%; aspect-ratio: auto; border-radius: 0; clip-path: none; object-position: 55% 55%; }
  .hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, var(--ink) 0%, rgb(22 17 29 / 0.72) 18%, rgb(22 17 29 / 0.18) 46%, rgb(22 17 29 / 0) 70%),
      linear-gradient(0deg, rgb(22 17 29 / 0.85) 0%, rgb(22 17 29 / 0) 30%);
  }
  .hero-ticker { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; background: rgb(22 17 29 / 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* ---------- Unterseiten: Seitenkopf ---------- */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -6rem;
  bottom: -3.5rem;
  width: min(40rem, 90vw);
  aspect-ratio: 535 / 188;
  background: url('/assets/img/logo-auto.svg') no-repeat center / contain;
  opacity: 0.16;
}
.page-hero-inner { padding-block: clamp(2rem, 5vw, 4.25rem) clamp(2.75rem, 6vw, 5rem); display: grid; gap: 2rem; }
.page-hero-text { max-width: 48rem; }
.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.3vw, 4.25rem); }
.page-hero .lead { margin-top: 1.1rem; font-size: var(--text-lead); line-height: 1.55; color: var(--muted-on-dark); max-width: 44rem; }
@media (min-width: 60em) {
  .page-hero-inner.has-aside { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); align-items: end; gap: 4rem; }
}
.breadcrumb { margin-bottom: 1.5rem; font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; color: var(--muted-on-dark); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.35rem; opacity: 0.5; }
.breadcrumb a { color: var(--muted-on-dark); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero-404 { min-height: 60vh; }

.plate-jump { background: rgb(255 255 255 / 0.05); border: 1px solid var(--line-dark); border-radius: var(--r-l); padding: 1.25rem; }
.plate-jump-label { font-size: 0.875rem; color: var(--muted-on-dark); margin-bottom: 0.85rem; }
.plate-jump ul { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.plate-jump a { display: block; border-radius: 0.35rem; text-decoration: none; transition: transform 0.18s var(--ease); }
.plate-jump a:hover { transform: translateY(-2px); }
.plate-jump .plate { font-size: 1.4rem; }

/* ---------- Altersleiste ---------- */
.ageline-form {
  display: grid;
  gap: 0.75rem;
  max-width: 38rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
}
.ageline-form .field { margin: 0; }
.ageline-form .field-hint { grid-column: 1 / -1; margin: 0; }
@media (min-width: 34em) {
  .ageline-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.ageline-result {
  max-width: 50rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--signal);
  background: var(--surface);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  font-size: 1.0625rem;
}
.ageline-result strong { color: var(--brand); }
.ageline-result .text-link { margin-left: 0.25rem; white-space: nowrap; }
.ageline-result.is-error { display: flex; gap: 0.6rem; align-items: flex-start; border-left-color: var(--error); color: var(--error); font-weight: 600; }
.ageline-result.is-error .icon { margin-top: 0.2rem; }
.ageline-track { --node: 1.1rem; position: relative; list-style: none; margin: 2.5rem 0 0; padding: 0 0 0 2rem; display: grid; gap: 1rem; }
.ageline-track::before { display: none; content: ''; position: absolute; left: calc(var(--node) / 2 - 2px); top: 1.6rem; bottom: 1.6rem; width: 4px; border-radius: 2px; background: linear-gradient(var(--brand), var(--signal)); }
.ageline-stop { position: relative; padding: 1.1rem 1.25rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); transition: border-color 0.2s, opacity 0.2s, box-shadow 0.2s; }
.ageline-stop::before { content: ''; position: absolute; left: calc(-2rem - 1px); top: 1.55rem; width: var(--node); height: var(--node); border-radius: 50%; background: var(--surface); border: 4px solid var(--brand); }
.ageline-stop:not(:last-child)::after { content: ''; position: absolute; left: calc(-2rem - 1px + var(--node) / 2 - 2px); top: calc(1.55rem + var(--node)); height: calc(100% + 1rem + 2px - var(--node)); width: 4px; border-radius: 2px; }
.ageline-stop:nth-child(1)::after { background: linear-gradient(#662483, #894062); }
.ageline-stop:nth-child(2)::after { background: linear-gradient(#894062, #ad5b42); }
.ageline-stop:nth-child(3)::after { background: linear-gradient(#ad5b42, #d07721); }
.ageline-stop:nth-child(4)::after { background: linear-gradient(#d07721, #f39200); }
.ageline-age { display: flex; align-items: baseline; gap: 0.35rem; color: var(--brand); }
.ageline-num { font: 800 2.75rem/0.9 var(--font-display); }
.ageline-unit { font: 700 1.1rem/1 var(--font-display); }
.ageline-plates { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.75rem; }
.ageline-plates .plate { font-size: 1.15rem; margin: 0; }
.ageline-extra { font: 600 0.8125rem/1.2 var(--font-body); color: var(--muted); padding: 0.25rem 0.5rem; border-radius: 999px; background: var(--alt); }
.ageline-text { margin-top: 0.6rem; font-size: var(--text-small); color: var(--muted); line-height: 1.5; }
.ageline-date { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; background: var(--alt); color: var(--brand-dark); }
.ageline-date .icon { width: 1.05rem; height: 1.05rem; }
.ageline-stop.is-reached { border-color: rgb(102 36 131 / 0.35); }
.ageline-stop.is-reached::before { background: var(--brand); }
.ageline-stop.is-reached .ageline-date { background: #e4f3ea; color: var(--ok); }
.ageline-stop.is-next { border-color: var(--signal); box-shadow: 0 0 0 3px rgb(243 146 0 / 0.22), var(--shadow); }
.ageline-stop.is-next::before { border-color: var(--signal); background: var(--signal); }
.ageline-stop.is-next .ageline-date { background: var(--signal); color: var(--on-signal); }
.ageline-stop.is-later { opacity: 0.78; }
@media (min-width: 60em) {
  .ageline-track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; padding: 2.25rem 0 0; }
  .ageline-stop:not(:last-child)::after { display: none; }
  .ageline-track::before { display: block; left: 0.5rem; right: 0.5rem; top: 0.45rem; bottom: auto; width: auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--signal)); }
  .ageline-stop { padding: 1.25rem 1.1rem 1.3rem; }
  .ageline-stop::before { left: 1.1rem; top: calc(-2.25rem - 1px + 0.45rem + 2px - var(--node) / 2); }
}

/* ---------- Klassen ---------- */
.class-groups { display: grid; gap: var(--gap); }
@media (min-width: 56em) { .class-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.class-group { padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--page); border: 1px solid var(--line); border-radius: var(--r-l); }
.class-group-title { display: flex; align-items: center; gap: 0.65rem; font-size: 1.5rem; }
.class-group-title .icon { width: 2rem; height: 2rem; color: var(--brand); }
.class-list { display: grid; gap: 0.6rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.class-item {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.class-item:hover { color: var(--text); border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.class-item .plate { justify-self: start; }
.class-item-text strong { display: block; font-weight: 600; line-height: 1.3; }
.class-item-text span { display: block; font-size: var(--text-small); color: var(--muted); line-height: 1.45; }
.class-item-arrow { color: var(--brand); transition: transform 0.18s var(--ease); }
.class-item:hover .class-item-arrow { transform: translateX(3px); }

.class-cards { display: grid; gap: var(--gap); }
@media (min-width: 56em) { .class-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.class-card { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.class-card-head { display: flex; align-items: center; gap: 1.1rem; }
.class-card-head h3 { font-size: 1.6rem; }
.class-card-head p { color: var(--muted); font-size: var(--text-small); margin-top: 0.2rem; }
.class-facts { display: grid; gap: 0.9rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.class-facts dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.class-facts dd { margin: 0.25rem 0 0; }
.class-facts ul { margin: 0; padding-left: 1.1rem; }
.class-facts li + li { margin-top: 0.2rem; }
.class-facts li::marker { color: var(--signal); }
.class-card .text-link { margin-top: auto; }

.note-card { padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--r-l); }
.note-card h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.note-card p + p { margin-top: 0.75rem; }
.note-card .text-link { margin-top: 1.25rem; }
.note-brand { color: #fff; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); }
.note-brand p { color: rgb(255 255 255 / 0.86); }
.note-brand .eyebrow { gap: 0.5rem; }
.note-brand .eyebrow .plate { font-size: 0.85rem; }
.note-steps { display: grid; gap: 1.5rem; margin-top: var(--gap); background: var(--alt); }
.note-steps p { color: var(--muted); }
.stufen { display: grid; gap: 0.75rem; list-style: none; margin: 0; padding: 0; counter-reset: stufe; }
.stufen li { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: var(--surface); border-radius: var(--r-m); font-weight: 500; }
.stufen .plate { flex: none; min-width: 3.2em; }
@media (min-width: 56em) {
  .note-steps { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
}

/* ---------- Ablauf ---------- */
.steps { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 1.5rem; background: var(--surface); border-radius: var(--r-l); border: 1px solid var(--line); }
.step-num { position: absolute; top: 1.1rem; right: 1.25rem; font: 800 2.5rem/1 var(--font-display); color: var(--alt); -webkit-text-stroke: 1.5px var(--brand); color: transparent; opacity: 0.55; }
.step-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--brand); color: #fff; }
.step-icon .icon { width: 1.5rem; height: 1.5rem; }
.step h3 { margin-top: 1.1rem; font-size: 1.45rem; }
.step p { margin-top: 0.5rem; color: var(--muted); font-size: var(--text-small); line-height: 1.55; }
.step:last-child .step-icon { background: var(--signal); color: var(--on-signal); }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
  .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
}
@media (min-width: 40em) and (max-width: 63.99em) { .steps-3 { grid-template-columns: 1fr; } }

/* ---------- Fahrlehrer ---------- */
.person-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 59.99em) { .person-media { max-width: 26rem; } .person-media img { aspect-ratio: 4 / 5; } }
.person-text h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.quote { margin-top: 2rem; padding-left: 1.25rem; border-left: 4px solid var(--signal); }
.quote p { font: italic 800 clamp(1.4rem, 1.15rem + 1vw, 1.9rem)/1.2 var(--font-display); color: #fff; }
.quote footer { margin-top: 0.75rem; font-size: var(--text-small); color: var(--muted-on-dark); }
.quote-dark p { color: var(--brand-dark); }
.quote-dark footer { color: var(--muted); }
.value-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.75rem 0; padding: 0; }
.value-chips li { padding: 0.4rem 0.85rem; border: 1px solid rgb(255 255 255 / 0.28); border-radius: 999px; font-size: var(--text-small); font-weight: 500; }

/* ---------- Angebote ---------- */
.offer-cards { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 56em) { .offer-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .offer-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer-card { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.5rem, 2.5vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease); }
.offer-card:has(.stretched):hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.offer-icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.offer-icon .icon { width: 1.6rem; height: 1.6rem; }
.offer-card h3 { margin-top: 0.4rem; }
.offer-card p { color: var(--muted); }
.offer-card .text-link { margin-top: auto; padding-top: 0.5rem; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Motto ---------- */
.motto { text-align: center; position: relative; overflow: hidden; }
.motto-inner { display: grid; justify-items: center; }
.motto-mark { width: min(30rem, 78vw); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.motto h2 { max-width: 20ch; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem); }
.motto h2 em { font-style: italic; color: var(--signal); }
.motto .section-lead { margin-inline: auto; }

/* ---------- Preise ---------- */
.price-blocks { display: grid; gap: 1.25rem; }
.cost-list { list-style: none; margin: 0; padding: 0.5rem 1.5rem; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-l); }
.cost-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; }
.cost-list li + li { border-top: 1px solid var(--line); }
.cost-list .icon { width: 1.6rem; height: 1.6rem; color: var(--brand); margin-top: 0.1rem; }
.cost-list strong { display: block; font-weight: 600; }
.cost-list span { display: block; color: var(--muted); font-size: var(--text-small); }
.cost-note { color: var(--muted); font-size: var(--text-small); }
.tip { padding: 1.1rem 1.25rem; border-radius: var(--r-m); background: var(--brand-tint); color: var(--brand-dark); }

.price-table { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.price-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1rem; align-items: start; padding: 1.25rem clamp(1.1rem, 2.5vw, 1.75rem); }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--brand-tint); color: var(--brand); }
.price-what h3 { font-size: 1.4rem; }
.price-what p { color: var(--muted); font-size: var(--text-small); margin-top: 0.25rem; }
.price-value { grid-column: 2; display: flex; align-items: baseline; gap: 0.75rem; }
.price-value strong { font: 700 1.3rem/1.1 var(--font-display); color: var(--brand); }
.price-unit { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 48em) {
  .price-row { grid-template-columns: auto minmax(0, 1fr) minmax(11rem, auto); align-items: center; }
  .price-value { grid-column: 3; flex-direction: column; align-items: flex-end; gap: 0.15rem; text-align: right; }
}
.price-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--r-l); background: var(--alt); }
.price-cta p { max-width: 38rem; }
.mini-cards { display: grid; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 40em) { .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .mini-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mini-cards li { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1.1rem; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-m); }
.mini-cards .icon { width: 1.5rem; height: 1.5rem; color: var(--brand); }
.mini-cards strong { display: block; font-weight: 600; line-height: 1.3; }
.mini-cards span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }

/* ---------- Fakten ---------- */
.fact-cards { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 40em) { .fact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .fact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fact-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; } }
.fact-card { padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.section-white .fact-card { background: var(--page); }
.fact-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--brand-tint); color: var(--brand); margin-bottom: 1rem; }
.fact-value { font: 800 clamp(2.4rem, 1.8rem + 2vw, 3.25rem)/1 var(--font-display); color: var(--brand); margin-bottom: 0.6rem; }
.fact-card h3 { font-size: 1.35rem; }
.fact-card p:last-child { margin-top: 0.4rem; color: var(--muted); font-size: var(--text-small); }

.english-text { display: grid; gap: 1rem; font-size: 1.0625rem; }
.english-text p:first-child { font-size: var(--text-lead); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-icon { width: 1.6rem; height: 1.6rem; padding: 0.2rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand); transition: transform 0.2s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--signal); color: var(--on-signal); }
.faq-answer { padding: 0 2.5rem 1.25rem 0; color: var(--muted); }
.faq-answer p + p { margin-top: 0.6rem; }

/* ---------- Kontakt ---------- */
.contact-band { background: var(--ink); color: #fff; }
.contact-band-inner { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.contact-band .section-lead { color: var(--muted-on-dark); }
.contact-band-cards { display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .contact-band-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact-band-cards .info-tile:last-child { grid-column: 1 / -1; } }
@media (min-width: 64em) {
  .contact-band-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.info-tile { padding: 1.25rem 1.35rem; border-radius: var(--r-l); background: var(--ink-2); border: 1px solid var(--line-dark); }
.info-tile h3, .info-tile .h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.3rem; margin-bottom: 0.75rem; }
.info-tile h3 .icon, .info-tile .h3 .icon { color: var(--signal); }
.info-tile p, .info-tile address { color: var(--muted-on-dark); }
.info-tile-light { background: var(--surface); border-color: var(--line); }
.info-tile-light h3 .icon, .info-tile-light .h3 .icon { color: var(--brand); }
.info-tile-light p, .info-tile-light address { color: var(--muted); }
.info-tile + .info-tile { margin-top: 0; }
.times { display: grid; gap: 0.35rem; }
.times div { display: flex; justify-content: space-between; column-gap: 1rem; row-gap: 0.1rem; flex-wrap: wrap; }
.times dt { font-weight: 600; }
.times dd { margin: 0; color: var(--muted-on-dark); }
.info-tile-light .times dd { color: var(--muted); }
.live-status { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; font-size: 0.9375rem; font-weight: 600; color: #fff !important; }
.info-tile-light .live-status { color: var(--text) !important; }
.live-status::before { content: ''; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgb(243 146 0 / 0.22); }
.live-status.is-open::before { background: #3fcf8e; box-shadow: 0 0 0 4px rgb(63 207 142 / 0.22); }
.tile-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.9rem; }
.tile-links a { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff !important; font-weight: 600; text-decoration: none; }
.tile-links a:hover { color: var(--signal-hover) !important; }
.tile-links-dark a { color: var(--brand) !important; }
.tile-links-dark a:hover { color: var(--brand-dark) !important; }
.split-map > div:first-child { display: grid; gap: 0.9rem; }
.split-map .section-intro { margin-bottom: 0.5rem; }

.contact-cards { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 40em) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.contact-card { position: relative; display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.contact-card h3 { margin-top: 0.5rem; }
.contact-card p:not(.muted) { font-weight: 600; font-size: 1.125rem; overflow-wrap: anywhere; }
.contact-card p.muted { font-size: var(--text-small); }
.contact-card:has(.stretched):hover { border-color: var(--brand); box-shadow: var(--shadow); }
.contact-card .muted a { position: relative; z-index: 1; }

.map { position: relative; min-height: 24rem; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--brand-tint); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(90deg, rgb(102 36 131 / 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgb(102 36 131 / 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--brand-tint);
}
.map-pin { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 0 0 10px rgb(102 36 131 / 0.14); }
.map-pin .icon { width: 1.6rem; height: 1.6rem; }
.map-note { max-width: 24rem; font-size: 0.875rem; color: var(--muted); }
.map-note a { display: inline-flex; align-items: center; gap: 0.3rem; }
.map.is-loaded .map-placeholder { display: none; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-row .hero-actions { margin-top: 0; }

/* ---------- Formular ---------- */
.signup-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 64em) {
  .signup-layout { grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); }
  .signup-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.signup-aside { display: grid; gap: 0.75rem; }
.contact-lines { display: grid; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.contact-lines a { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; color: var(--text); text-decoration: none; }
.contact-lines a:hover { color: var(--brand); }
.contact-lines .icon { color: var(--brand); width: 1.4rem; height: 1.4rem; }
.contact-lines strong { display: block; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-lines span { overflow-wrap: anywhere; }

.signup { display: grid; gap: 1.25rem; }
.form-step { margin: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); min-width: 0; }
.form-step > legend { display: flex; align-items: center; gap: 0.75rem; float: left; width: 100%; margin-bottom: 1.25rem; padding: 0; font: 700 1.5rem/1.15 var(--font-display); }
.form-step > legend + * { clear: both; }
.step-badge { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--brand); color: #fff; font: 800 1.1rem/1 var(--font-display); }
.form-step[hidden] { display: none; }
.form-grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 40em) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; margin: 0; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 1rem; }
.field-inline { border: 0; padding: 0; }
.field-inline > legend { padding: 0; margin-bottom: 0.5rem; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-left: 0.25rem; }
.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #c9bfd3;
  border-radius: var(--r-s);
  background: #fff;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover { border-color: #a99bb7; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(102 36 131 / 0.2); }
textarea.input { min-height: 7rem; resize: vertical; }
select.input { appearance: none; padding-right: 2.75rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23662483' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1.2rem; }
input[type='date'].input { min-height: 3rem; }
.field-hint { font-size: 0.875rem; color: var(--muted); }
.field.has-error .input, .input[aria-invalid='true'] { border-color: var(--error); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.12); }
.field-error { display: flex; align-items: flex-start; gap: 0.4rem; font-size: 0.9375rem; font-weight: 600; color: var(--error); }
.field-error .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
fieldset.has-error { border-color: var(--error); }

.choice-grid { display: grid; gap: 0.6rem; }
@media (min-width: 34em) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice, .plate-choice, .pill { position: relative; display: block; cursor: pointer; }
.choice input, .plate-choice input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box { display: flex; align-items: center; gap: 0.7rem; min-height: 3.5rem; padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--page); font-weight: 600; transition: border-color 0.15s, background-color 0.15s; }
.choice-box .icon { color: var(--brand); width: 1.4rem; height: 1.4rem; }
.choice:hover .choice-box { border-color: #a99bb7; }
.choice input:checked + .choice-box { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + .choice-box, .plate-choice input:focus-visible + .plate-choice-box, .pill input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }

.plate-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); gap: 0.6rem; }
.plate-choice-box { position: relative; display: grid; justify-items: start; gap: 0.55rem; height: 100%; padding: 0.85rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--page); transition: border-color 0.15s, background-color 0.15s; }
.plate-choice-box .plate { font-size: 1.2rem; }
.plate-choice-name { font-size: 0.875rem; line-height: 1.3; color: var(--muted); font-weight: 500; }
.plate-tag { position: absolute; top: 0.7rem; left: 4.2rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--signal); color: var(--on-signal); font: 800 0.8rem/1.2 var(--font-display); }
.plate-choice:hover .plate-choice-box { border-color: #a99bb7; }
.plate-choice input:checked + .plate-choice-box { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.plate-choice input:checked + .plate-choice-box::after {
  content: '';
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 0.9rem;
}
.plate-choice input:checked + .plate-choice-box .plate-choice-name { color: var(--brand-dark); }

.pill-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill span { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--page); font-weight: 600; transition: border-color 0.15s, background-color 0.15s; }
.pill span .icon { color: var(--brand); }
.pill input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.pill input:checked + span .icon { color: #fff; }

.form-submit { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-l); background: var(--ink); color: #fff; }
.submit-info { display: flex; gap: 0.6rem; color: var(--muted-on-dark); font-size: var(--text-small); }
.submit-info .icon { color: var(--signal); margin-top: 0.15rem; }
.submit-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.submit-buttons .btn-ghost { border-color: rgb(255 255 255 / 0.4); color: #fff; }
.submit-buttons .btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.07); color: #fff; }
@media (max-width: 33.99em) { .submit-buttons .btn { width: 100%; } }

.form-errors, .form-status { padding: 1.25rem 1.5rem; border-radius: var(--r-l); }
.form-errors { border: 2px solid var(--error); background: #fdf1f0; }
.form-errors h3, .form-status h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; }
.form-errors ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.form-errors a { color: var(--error); font-weight: 600; }
.form-status { border: 2px solid var(--brand); background: var(--surface); display: grid; gap: 0.85rem; }
.form-status.is-success { border-color: var(--ok); }
.form-status.is-error { border-color: var(--error); }
.form-status .icon { width: 1.5rem; height: 1.5rem; }
.status-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.form-errors, .form-status { scroll-margin-top: calc(var(--header-h) + 1rem); }
.form-errors:focus, .form-status:focus { outline: none; }
.form-errors:focus-visible, .form-status:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.form-status h3 { align-items: flex-start; }
.form-status h3 .icon { margin-top: 0.15rem; color: var(--brand); }
.form-status.is-success h3 .icon { color: var(--ok); }
.form-status.is-error h3 .icon { color: var(--error); }
.form-status details summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.form-status details[open] summary { margin-bottom: 0.6rem; }
.form-status .muted { font-size: var(--text-small); }
.status-preview { margin: 0; padding: 1rem; max-height: 16rem; overflow: auto; white-space: pre-wrap; font: 0.9rem/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--page); border-radius: var(--r-m); border: 1px solid var(--line); }

.preview-note { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.25rem; padding: 0.9rem 1.1rem; border: 2px dashed var(--signal); border-radius: var(--r-m); background: #fff8ec; color: #5a3600; font-size: var(--text-small); }
.preview-note .icon { color: #b86e00; margin-top: 0.1rem; }
.form-submit .preview-note { margin: 0; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 48rem; }
.legal h2 { font-size: 1.6rem; margin-top: 2.25rem; margin-bottom: 0.6rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.legal li::marker { color: var(--signal); }
.legal .preview-note + h2 { margin-top: 1rem; }

/* ---------- Rennstrecke ---------- */
.track-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--muted-on-dark); padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; font-size: var(--text-small); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer-logo img { width: 12.5rem; }
.footer-brand p { margin-top: 1.25rem; max-width: 22rem; line-height: 1.6; }
.footer-title { font: 700 1.15rem/1.2 var(--font-display); color: #fff; letter-spacing: 0.02em; margin-bottom: 0.85rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-col a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.25rem; color: var(--muted-on-dark); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-times { display: grid; gap: 0.6rem; }
.footer-times dt { color: #fff; font-weight: 600; }
.footer-times dd { margin: 0; }
.footer-contact { margin-top: 0.75rem !important; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--muted-on-dark); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Mobile Aktionsleiste ---------- */
.action-bar { display: none; }
@media (max-width: 47.99em) {
  .has-action-bar .site-footer { padding-bottom: calc(1.5rem + 4.25rem + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgb(22 17 29 / 0.96);
    border-top: 1px solid var(--line-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3rem;
    border-radius: 10px;
    color: #fff;
    background: rgb(255 255 255 / 0.08);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
  }
  .action-bar a .icon { width: 1.25rem; height: 1.25rem; }
  .action-bar .action-bar-main { background: var(--signal); color: var(--on-signal); }
  html.menu-open .action-bar { display: none; }
}

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .action-bar, .hero-media, .map, .hero-actions { display: none !important; }
  body { background: #fff; padding: 0; }
  .hero, .page-hero, .section-ink, .section-brand, .contact-band, .site-footer { background: #fff !important; color: #000 !important; }
}
