/* ==========================================================================
   Fahrschule Kroppen – Stylesheet
   Stil: Entwurf 2 (dunkel, sportlich). Mobile first.
   Farben: Rot #D4000A · Blau #2563EB · Hintergrund #070707 · Karten #141414
   ========================================================================== */
:root {
  --red: #D4000A;
  --red-hover: #B00008;
  --blue: #2563EB;
  --blue-text: #8DB4FF;   /* Blau für Text auf Schwarz (Kontrast > 7:1) */
  --black: #070707;
  --bg-2: #0E0E0E;
  --card: #141414;
  --card-2: #1B1B1B;
  --line: #2A2A2A;
  --text: #F3F3F3;
  --muted: #B0B0B0;
  --dim: #8E8E8E;
  --max: 1200px;
  --radius: 8px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: Outfit, "Segoe UI", Roboto, Arial, sans-serif;
  --nav-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--black); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* Platz für die mobile Schnellleiste */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p a, li a, dd a, td a, .prose a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, li a:hover, dd a:hover, .prose a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.display { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: .92; }
.red { color: var(--red); }
.blue { color: var(--blue-text); }
.kicker { font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.small { font-size: 14px; color: var(--dim); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Platzhalter – für Web Entwickler/Norman deutlich sichtbar markiert */
.todo { background: #FFE14D; color: #111; font-weight: 700; padding: 0 6px; border-radius: 3px; font-size: .9em; white-space: normal; }
.ph {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  border-radius: var(--radius); min-height: 200px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #1c2433, #0a0a0a 50%, #2a1010);
  border: 1px dashed #4A4A4A;
}
.ph span { margin: 12px; background: #FFE14D; color: #111; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  min-height: 48px; padding: 12px 20px; border-radius: 4px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1D4FC4; }
.btn-outline { border-color: #5A5A5A; color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 19px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header / Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(7,7,7,.97);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand-txt { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.05; }
.brand-txt small { display: block; font-size: 12px; letter-spacing: .16em; color: var(--dim); font-weight: 600; }
.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff; border: 1.5px solid #4A4A4A; border-radius: 4px;
  height: 44px; padding: 0 14px; font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars i { top: 5px; } .menu-toggle .bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .bars i { opacity: 0; }
.menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: #070707; padding: 20px 20px 120px; overflow-y: auto;
  flex-direction: column; gap: 2px;
}
.menu.open { display: flex; }
.menu a { text-decoration: none; }
.menu > a:not(.btn) {
  font-family: var(--head); font-weight: 800; font-size: 30px; text-transform: uppercase; letter-spacing: .01em;
  padding: 10px 0; border-bottom: 1px solid var(--line); color: #fff;
}
.menu > a[aria-current="page"] { color: var(--red); }
.menu .btn { margin-top: 20px; }

/* Mobile Schnellleiste (Anrufen / Anmelden) */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,10,.97); border-top: 1px solid var(--line);
}
.quickbar .btn { min-height: 48px; padding: 8px 6px; font-size: 15px; letter-spacing: .03em; }
.quickbar .btn span { display: block; }

/* ---------- Hero Startseite ---------- */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 48px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(212,0,10,.22), transparent 55%),
    var(--black);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(64px, 19vw, 124px); margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; }
.hero-actions { margin-bottom: 30px; }
.hero-actions .btn { flex: 1 1 220px; }
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.meta div { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-left: 2px solid var(--red); padding-left: 12px; }
.meta div:nth-child(even) { border-color: var(--blue); }
.meta b { display: block; font-family: var(--head); font-size: 28px; letter-spacing: .02em; color: #fff; line-height: 1.1; }
.hero-visual { order: -1; display: flex; align-items: center; gap: 16px; }
.hero-logo { width: 120px; flex: none; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.hero-visual .ph { flex: 1; min-height: 0; aspect-ratio: 16/9; }
.hero-visual .hero-photo { flex: 1; min-width: 0; position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--line); }
.hero-visual .hero-photo img, .photo-wide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-wide { position: relative; margin: 0 auto; max-width: 1000px; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.sec-photo { padding-bottom: 0; }

/* ---------- Seitenkopf Unterseiten ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 44px 0 36px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(37,99,235,.22), transparent 60%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(212,0,10,.16), transparent 55%),
    var(--black);
}
.page-hero h1 { font-size: clamp(48px, 13vw, 96px); margin-bottom: 14px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-hero .btns { margin-top: 24px; }

/* ---------- Sektionen ---------- */
.sec { padding: 56px 0; }
.sec + .sec { padding-top: 8px; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-alt + .sec, .sec + .sec-alt, .sec + .sec.sec-alt { padding-top: 56px; }
.sec-head { margin-bottom: 28px; display: grid; gap: 12px; }
.sec-head h2 { font-size: clamp(42px, 11vw, 68px); }
.sec-head p { color: var(--muted); max-width: 34em; }
h2.h2 { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 8vw, 48px); line-height: 1; margin-bottom: 16px; }
h3.h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: 1.05; margin-bottom: 10px; letter-spacing: .01em; }

/* Karten-Raster */
.grid { display: grid; gap: 14px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); }
.card.b::before { background: var(--blue); }
.card .tag { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card .big { text-transform: uppercase; font-family: var(--head); font-weight: 800; font-size: 52px; line-height: 1; color: #fff; margin: 6px 0 10px; letter-spacing: -0.01em; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card p + p { margin-top: 8px; }
.card .more { margin-top: auto; padding-top: 16px; font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-decoration: none; }
.card .more::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg) translateY(-2px); }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: #4A4A4A; transform: translateY(-2px); }

/* Vorteile-Liste */
.checks { list-style: none; display: grid; gap: 0 40px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 9px; }
.checks li:nth-child(even)::before { background: var(--blue); }
.checks li small { display: block; color: var(--dim); font-weight: 400; font-size: 14px; }

/* Zahlen-Kacheln */
.tiles { display: grid; gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile .num { font-family: var(--head); font-weight: 800; font-size: 60px; line-height: 1; }
.tile h3 { font-size: 17px; letter-spacing: .06em; text-transform: uppercase; margin: 8px 0; }
.tile p { color: var(--muted); font-size: 15px; }

/* Zweispalter mit Bild */
.split { display: grid; gap: 28px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split p { color: #C9C9C9; margin-bottom: 14px; }
.quote { font-size: 21px; font-weight: 600; line-height: 1.4; color: #fff; border-left: 3px solid var(--red); padding-left: 16px; margin-top: 18px; }

/* Schritte */
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 76px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; font-family: var(--head); font-weight: 800; font-size: 48px; line-height: 1; color: var(--red); }
.steps li:nth-child(even)::before { color: var(--blue-text); }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Standorte */
.locs { display: grid; gap: 16px; }
.loc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.loc .loc-img { aspect-ratio: 16/9; overflow: hidden; }
.loc .loc-img img { width: 100%; height: 100%; object-fit: cover; }
.loc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.loc h3 { font-family: var(--head); font-weight: 800; font-size: 38px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin-bottom: 14px; }
.loc dl { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 15.5px; margin-bottom: 20px; }
.loc dt { color: var(--dim); }
.loc .btns { margin-top: auto; }
.loc .btns .btn { flex: 1 1 140px; }

/* Infotabellen (Zeiten) */
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--dim); }
.table td:first-child { font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 12px; }

/* Klassen-Detail */
.klasse { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.klasse + .klasse { margin-top: 14px; }
.klasse-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.klasse-head .badge { font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 1; min-width: 72px; height: 64px; padding: 0 10px; display: grid; place-items: center; border-radius: 6px; background: var(--red); color: #fff; }
.klasse.b .badge { background: var(--blue); }
.klasse-head h3 { font-size: 21px; line-height: 1.2; }
.klasse-head p { color: var(--muted); font-size: 15px; }
.facts { display: grid; }
.facts > div { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts h4 { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 8px; }
.facts ul { padding-left: 18px; color: #D2D2D2; font-size: 15.5px; }
.facts li + li { margin-top: 4px; }
.facts p { color: #D2D2D2; font-size: 15.5px; }

/* Vergleich (B / B197 / B78) */
.compare { display: grid; gap: 14px; }
.compare .card h3 { font-family: var(--head); font-weight: 800; font-size: 34px; text-transform: uppercase; }
.compare .card .tag { color: var(--blue-text); }
.pm { list-style: none; margin-top: 10px; font-size: 15px; color: #D2D2D2; }
.pm li { padding: 6px 0 6px 24px; position: relative; border-top: 1px solid var(--line); }
.pm li::before { position: absolute; left: 0; top: 5px; font-weight: 800; }
.pm .plus::before { content: "+"; color: #5BD38A; }
.pm .minus::before { content: "–"; color: #FF7A7A; }

/* Akkordeon (FAQ) */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: #CFCFCF; font-size: 16px; }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: 10px; }
.faq .answer ul { padding-left: 20px; }
.faq h2 { margin-top: 28px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery figure { position: relative; border-radius: 6px; overflow: hidden; background: var(--card); aspect-ratio: 4/3; }
.gallery a { display: block; height: 100%; position: relative; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.84) saturate(.82);
  transition: filter .2s;
}
.gallery a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.34) 100%);
  pointer-events: none;
  transition: opacity .2s;
}
.gallery a:hover img,
.gallery a:focus-visible img { filter: brightness(.96) saturate(.92); }
.gallery a:hover::after,
.gallery a:focus-visible::after { opacity: .4; }
.gallery a:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; }
.gallery-title { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person .ph { min-height: 0; aspect-ratio: 1/1; border: 0; border-bottom: 1px dashed #4A4A4A; border-radius: 0; }
.person .ph span { font-size: 10px; margin: 8px; }
.person-body { padding: 14px 14px 16px; }
.person h3 { font-family: var(--head); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: 1; }
.person .role { color: var(--blue-text); font-size: 13.5px; font-weight: 600; margin: 4px 0 8px; }
.person p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.person .klassen-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .04em; background: #222; border: 1px solid #333; border-radius: 3px; padding: 1px 6px; }

/* Hinweisbox */
.note { background: #101826; border: 1px solid #22355E; border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 18px 20px; color: #D7E3FF; }
.note.red { background: #1A0B0C; border-color: #4A1518; border-left-color: var(--red); color: #FFD9DA; }
.note strong { color: #fff; }
.note p + p { margin-top: 8px; }

/* CTA-Band */
.cta { padding: 64px 0; text-align: center; background: linear-gradient(180deg, var(--black), #170405 85%); border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(46px, 12vw, 80px); margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 18px; margin: 0 auto 26px; max-width: 32em; }
.cta .btns { justify-content: center; }

/* Fließtext (Rechtstexte) */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 30px; margin: 36px 0 12px; line-height: 1.1; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose li { color: #D2D2D2; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose address { font-style: normal; color: #D2D2D2; }

/* Terminplan-Bilder */
.plan { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.plan + .plan { margin-top: 14px; }
.plan-cap { font-size: 14px; color: var(--dim); margin: 8px 0 22px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 28px; background: #050505; }
.foot { display: grid; gap: 28px; margin-bottom: 28px; }
.foot img { height: 64px; width: auto; margin-bottom: 12px; }
.foot h2 { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.foot p, .foot li { font-size: 15px; color: var(--muted); line-height: 1.7; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot ul { list-style: none; }
.legal { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--dim); letter-spacing: .05em; }
.legal a { color: var(--dim); text-decoration: none; text-transform: uppercase; }
.legal a:hover { color: #fff; }
.legal span { flex-basis: 100%; }

/* ==========================================================================
   Ab Tablet
   ========================================================================== */
@media (min-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 64px)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .meta { grid-template-columns: repeat(4, auto); justify-content: start; gap: 20px 32px; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div { border-right: 1px solid var(--line); }
  .facts > div:nth-child(2n) { border-right: 0; }
  .facts > div:nth-last-child(-n+2):nth-child(odd), .facts > div:last-child { border-bottom: 0; }
  .locs { grid-template-columns: repeat(2, 1fr); }
  .legal span { flex-basis: auto; margin-left: auto; }
  .hero-logo { width: 160px; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --nav-h: 80px; }
  body { padding-bottom: 0; }
  .quickbar { display: none; }
  .nav { background: rgba(7,7,7,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .brand img { height: 60px; }
  .menu-toggle { display: none; }
  .menu, .menu.open {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 24px;
    margin-left: auto; padding: 0; background: none; overflow: visible;
  }
  .menu > a:not(.btn) { font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: .06em; padding: 6px 0; border: 0; color: #C8C8C8; border-bottom: 2px solid transparent; }
  .menu > a:not(.btn):hover { color: #fff; }
  .menu > a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
  .menu .btn { margin: 0 0 0 4px; min-height: 44px; font-size: 16px; }
  .hero { padding: 72px 0 84px; min-height: 760px; display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-visual { order: 0; flex-direction: column; align-items: stretch; width: min(100%, 440px); margin-left: auto; }
  .hero-logo { width: 100%; }
  .hero-visual .ph { min-height: 130px; flex: none; }
  .hero-visual .hero-photo { flex: none; }
  .hero-actions .btn { flex: 0 0 auto; }
  .sec { padding: 88px 0; }
  .sec + .sec { padding-top: 16px; }
  .sec-alt + .sec, .sec + .sec-alt, .sec + .sec.sec-alt { padding-top: 88px; }
  .sec-head { grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: 40px; }
  .sec-head p { max-width: 26em; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .checks { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .split.rev { grid-template-columns: 1.1fr .9fr; }
  .split.rev .media { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.four { grid-template-columns: repeat(4, 1fr); }
  .steps.four li { padding: 76px 22px 22px; }
  .steps.four li::before { top: 18px; }
  .compare { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .person-body { padding: 18px; }
  .person p { font-size: 14.5px; }
  .foot { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
  .page-hero { padding: 72px 0 56px; }
  .cta { padding: 88px 0; }
  .layout-side { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
  .side-nav { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.side-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.side-nav a { text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: #DDD; }
.side-nav a:hover { border-color: #555; color: #fff; }
@media (min-width: 1024px) { .side-nav { flex-direction: column; } .side-nav a { border-width: 0 0 0 2px; border-radius: 0; background: none; padding: 8px 14px; border-color: var(--line); } .side-nav a:hover { border-color: var(--red); } }
@media (max-width: 639px) {
  .cta .btns, .page-hero .btns { flex-direction: column; align-items: stretch; }
  .cta .btns .btn, .page-hero .btns .btn { width: 100%; }
  .loc dl { grid-template-columns: 78px 1fr; }
}
.prose-wide { max-width: 880px; }
.faq + h2.h2 { margin-top: 44px; }
.plan { display: block; max-width: 980px; }

/* Team als Textseite (ohne Fotos) */
.team-text { margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .team-text { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-text { grid-template-columns: repeat(4, 1fr); } }
.person-top { display: flex; gap: 14px; align-items: center; padding: 16px 16px 0; }
.initial { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--head); font-weight: 800; font-size: 30px; line-height: 1; }
.person.b .initial { background: var(--blue); }
.person-top h3 { margin: 0; }
.person-top .role { margin: 4px 0 0; }
.team-text .person-body { padding-top: 10px; }

/* Social-Media-Links (Inline-SVG) */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #333; border-radius: 6px; background: #141414; color: #E6E6E6; text-decoration: none; font-size: 14px; font-weight: 600; }
.soc svg { width: 20px; height: 20px; flex: none; }
a.soc:hover { border-color: var(--blue); color: #fff; }
.soc-todo { border-style: dashed; border-color: #FFE14D; flex-wrap: wrap; }
.soc-todo .todo { font-size: 11px; }
.foot .social { flex-direction: column; align-items: flex-start; }
.foot .soc { min-height: 40px; }
.social-card { margin-top: 12px; }
.social-menu { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.social-menu .soc { padding: 8px 10px; font-size: 13.5px; }
.social-menu .soc-todo .todo { font-size: 10px; }
@media (min-width: 1024px) {
  .social-menu { display: flex; margin: 0 0 0 6px; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid #2A2A2A; gap: 6px; flex-wrap: nowrap; }
  .social-menu .soc { min-height: 36px; width: 36px; padding: 0; justify-content: center; border-radius: 50%; }
  .social-menu .soc svg { width: 17px; height: 17px; }
  .social-menu .soc-l, .social-menu .soc-todo .todo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .social-menu .soc-todo { background: #2a2610; color: #FFE14D; }
}

/* Frisch bestanden (sieger.html) */
.winners { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
.win { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 12px 14px; }
.win:nth-child(even) { border-left-color: var(--blue); }
.win .kl { flex: none; min-width: 54px; height: 44px; padding: 0 8px; display: grid; place-items: center; border-radius: 6px; background: var(--red); color: #fff; font-family: var(--head); font-weight: 800; font-size: 22px; line-height: 1; }
.win:nth-child(even) .kl { background: var(--blue); }
.win strong { font-family: var(--head); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1.05; flex: 1; }
.win time { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.winners:not(:has(li)) { display: none; }
.winners:has(li) + .empty-note { display: none; }
.empty-note { text-align: center; max-width: 620px; margin: 0 auto; padding: 36px 20px; background: var(--card); border: 1px dashed #3A3A3A; border-radius: var(--radius); }
.empty-note p { color: var(--muted); margin-top: 8px; }
.badge-big { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 36px; font-weight: 800; }
@media (min-width: 640px) { .winners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .winners { grid-template-columns: repeat(3, 1fr); } }
.menu > a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .brand-txt { display: none; }
  .menu, .menu.open { gap: 14px; }
  .menu > a:not(.btn) { font-size: 13px; letter-spacing: .04em; }
  .menu .btn { padding-left: 14px; padding-right: 14px; font-size: 15px; }
  .social-menu { gap: 4px; margin-left: 2px; padding-left: 10px; }
  .social-menu .soc { width: 32px; min-height: 32px; }
}

/* Theorieplan (theorie.html) */
.no-js .js-only { display: none !important; }
.t { display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 6px; border-radius: 5px; font-family: var(--head); font-weight: 800; font-size: 18px; line-height: 1; background: #EDEDED; color: #111; }
.zb .t { background: var(--blue); color: #fff; }
.za .t { background: var(--red); color: #fff; }
.ausfall .t { background: transparent; color: #8A8A8A; border: 1px dashed #555; }
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.legende li { display: flex; align-items: center; gap: 8px; }
.legende .t { font-size: 15px; height: 26px; }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 22px; }
.plan-head .display { margin-top: 6px; }
.plan-zeit { color: var(--muted); margin-top: 6px; }
.naechste { background: linear-gradient(135deg, rgba(212,0,10,.16), rgba(37,99,235,.14)); border: 1px solid #333; border-radius: var(--radius); padding: 16px; margin-bottom: 22px; }
.naechste h3 { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.naechste ol { list-style: none; display: grid; gap: 6px; }
.naechste p { color: var(--muted); }
.monate { display: grid; grid-template-columns: 1fr; gap: 14px; }
.monat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; }
.monat h4 { font-family: var(--head); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; margin-bottom: 10px; }
.monat h4 small { font-size: 16px; color: var(--muted); font-weight: 700; }
.termine { list-style: none; }
.termine li, .naechste li { display: grid; grid-template-columns: 74px 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #222; font-size: 14.5px; line-height: 1.3; }
.naechste li { border-top: 0; padding: 4px 0; }
.termine li:first-child { border-top: 0; }
.termine time, .naechste time { font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.termine span, .naechste span { color: #CFCFCF; hyphens: auto; overflow-wrap: break-word; }
.termine li.ausfall span { color: #8A8A8A; font-style: italic; }
.termine li.past { opacity: .42; }
.termine li.next { background: rgba(37,99,235,.14); box-shadow: inset 3px 0 0 var(--blue); border-radius: 4px; padding-left: 8px; margin-left: -8px; }
.plan-sec .monat.vorbei { display: none; }
.plan-sec.show-past .monat.vorbei { display: block; }
.themen-grid { display: grid; gap: 14px; }
.themen-col { display: grid; gap: 14px; align-content: start; }
.themen { list-style: none; margin-top: 10px; }
.themen li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #222; color: #D6D6D6; font-size: 15px; }
.themen li:first-child { border-top: 0; }
.orig { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.orig summary { cursor: pointer; font-weight: 700; }
.orig .plan { margin-top: 14px; }
.theorie-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: linear-gradient(135deg, #1a0204 0%, #141414 45%, #06102a 100%); border: 1px solid #333; border-left: 4px solid var(--red); border-radius: var(--radius); padding: 20px; text-decoration: none; color: #fff; }
.theorie-teaser h2 { font-family: var(--head); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1.02; }
.theorie-teaser p { color: var(--muted); margin-top: 6px; max-width: 44em; }
.theorie-teaser .badges { display: flex; gap: 6px; margin-top: 12px; }
.theorie-teaser:hover { border-color: var(--blue); }
.sec-teaser { padding: 22px 0 0; }
.menu > a.nav-hot:not([aria-current="page"]) { color: #8DB4FF; }
@media (min-width: 640px) {
  .monate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .naechste ol { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
}
@media (min-width: 1024px) {
  .monate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .themen-grid { grid-template-columns: 1fr 1fr; }
  .theorie-teaser { padding: 26px 30px; }
  .theorie-teaser h2 { font-size: 38px; }
  .sec-teaser { padding-top: 0; margin-top: -36px; position: relative; z-index: 2; }
}
.nav .brand { flex: none; }
.nav .brand img { width: auto; }
@media (min-width: 1024px) { .brand-txt { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .menu, .menu.open { gap: 11px; }
  .menu > a:not(.btn) { font-size: 12.5px; letter-spacing: .03em; }
  .menu .btn { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .social-menu .soc { width: 30px; min-height: 30px; }
}
/* Theorieplan: PDF-Download je Standort */
.plan-dl{margin-top:8px;font-size:14px}
.plan-dl a{color:#fff;font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--red,#D4000A)}
.plan-dl a::before{content:"↓ ";color:var(--red,#D4000A)}
.plan-dl span{color:#9a9a9a}

/* Goodie-Box auf der Startseite (direkt unter dem Theorieplan-Teaser) */
.sec-teaser { padding-bottom: 28px; }
.goodie-sec {
  background: #0C0C0C;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 40px;
}
.goodie-box { display: grid; gap: 24px; }
.goodie-intro h2 { font-size: clamp(36px, 9vw, 56px); margin-bottom: 12px; }
.goodie-intro p { color: var(--muted); max-width: 28em; }
.goodie-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.goodie-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 16px 16px;
  min-width: 0;
}
.goodie-label {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: #fff;
  font-family: var(--head); font-weight: 700; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; line-height: 1.2;
}
.goodie-ico { width: 28px; height: 28px; color: var(--red); display: block; margin-bottom: 10px; }
.goodie-card h3 {
  font-family: var(--head); font-weight: 800; font-size: 22px;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.1;
  margin-bottom: 8px;
}
.goodie-card p { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.goodie-cta { display: grid; gap: 10px; justify-items: start; }
.goodie-cta .btn { white-space: normal; text-align: center; }
.goodie-cta .small a { color: var(--dim); }
.goodie-cta .small a:hover { color: #fff; }
@media (min-width: 1024px) {
  .sec-teaser { padding-bottom: 44px; }
  .goodie-sec { padding: 48px 0 52px; }
  .goodie-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .goodie-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .goodie-intro h2 { font-size: clamp(40px, 4.2vw, 56px); }
  .goodie-card { padding: 36px 14px 16px; }
  .goodie-card h3 { font-size: 20px; }
  .goodie-cta { grid-template-columns: auto 1fr; align-items: center; gap: 16px 20px; }
}
@media (min-width: 1280px) {
  .goodie-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .goodie-card h3 { font-size: 18px; }
}

/* Gutschein-Karten auf der Motorradseite (Goodie-Karten, 2 Spalten) */
.gutschein-box { margin-bottom: 22px; }
.gutschein-box > .display { font-size: clamp(28px, 7vw, 42px); margin-bottom: 8px; }
.gutschein-box > p { color: var(--muted); margin-bottom: 16px; max-width: 40em; }
.goodie-card { display: flex; flex-direction: column; }
.goodie-more {
  margin-top: auto; padding-top: 14px;
  font-family: var(--head); font-weight: 700; font-size: 16px;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
a.goodie-card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.goodie-card:hover { border-color: var(--blue); transform: translateY(-2px); }
a.goodie-card:hover .goodie-more { color: var(--blue-text); }
a.goodie-card:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; }
@media (min-width: 640px) {
  .gutschein-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .goodie-cards.gutschein-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gutschein-cards .goodie-logo {
  height: 36px;
  width: auto;
  max-width: calc(100% - 92px);
  margin: 0 0 12px 0;
  border-radius: 4px;
}

/* Symbol-Knöpfe (Telefon / WhatsApp) statt sichtbarer Nummer */
.kontakt-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.card .kontakt-icons {
  margin-top: auto;
  padding-top: 14px;
}
.foot .kontakt-icons { margin: 8px 0; }
.table .kontakt-icons, .loc .kontakt-icons { margin: 0; }
.table td .kontakt-icons { margin-top: 8px; }
.table .fax { display: block; color: var(--muted); margin-top: 6px; font-weight: 400; font-size: 13.5px; overflow-wrap: anywhere; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 4px;
  border: 1.5px solid #5A5A5A;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn svg { width: 22px; height: 22px; flex: none; }
/* höher priorisiert als dd/td/footer-Linkfarben */
a.icon-btn,
p a.icon-btn, li a.icon-btn, dd a.icon-btn, td a.icon-btn,
.prose a.icon-btn, .foot a.icon-btn {
  color: #fff;
  text-decoration: none;
}
.icon-btn:hover,
a.icon-btn:hover,
p a.icon-btn:hover, li a.icon-btn:hover, dd a.icon-btn:hover, td a.icon-btn:hover,
.prose a.icon-btn:hover, .foot a.icon-btn:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.card .icon-btn:hover,
.card .icon-btn:focus-visible,
.kontakt-icons.accent-red .icon-btn:hover,
.kontakt-icons.accent-red .icon-btn:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.card.b .icon-btn:hover,
.card.b .icon-btn:focus-visible,
.kontakt-icons.accent-blue .icon-btn:hover,
.kontakt-icons.accent-blue .icon-btn:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Partner-Logos in der Goodie-Box */
.goodie-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 10px 0;
  align-self: flex-start;
  flex: 0 0 auto;
}
.partner-row { margin-top: 4px; }
.partner-label {
  font-family: var(--head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.partner-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
}
.partner-logos a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.partner-logos img {
  height: 24px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) opacity(.85) brightness(1.25);
  transition: filter .2s;
}
.partner-logos a:hover img,
.partner-logos a:focus-visible img {
  filter: grayscale(0) opacity(1) brightness(1);
}
@media (max-width: 700px) {
  .partner-logos {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: start;
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
  }
  .partner-logos img { height: 22px; }
}
