/* =====================================================================
   Brockys Fahrschule · Waldetzenberg
   Stylesheet · vanilla CSS, no build step
   Identität: Asphaltschwarz + Signalgelb, Motorrad-Welt in Mint/Türkis.
   Sections: 1 Fonts · 2 Tokens · 3 Reset · 4 Type · 5 Layout · 6 Buttons
   7 Header/Nav · 8 Hero/Straße · 9 Marquee · 10 Tacho-Stats · 11 Section-Head
   12 Klassen · 13 Fahrlehrer/Werte · 14 Ablauf · 15 meinFuxx · 16 Standort
   17 Kontakt/Form · 18 Footer · 19 Direktdraht · 20 Legal · 21 Reveal
   22 Roadline · 23 Intro/Ampel · 24 Skin · 25 Responsive · 26 Reduced motion
   ===================================================================== */

/* ---------- 1. Fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* asphalt / dark base */
  --c-black:     #08090b;
  --c-ink:       #0e0f12;   /* primary dark background          */
  --c-asphalt-2: #16181d;   /* dark surface                     */
  --c-asphalt-3: #1f2128;   /* dark card / raised               */
  --c-line:      #2a2d36;   /* dark hairline / border           */
  --c-ink-soft:  #9aa0ab;   /* muted text on dark               */

  /* light / paper */
  --c-paper:  #e7e3da;      /* warm soft grey (entblendet, nicht grell) */
  --c-cloud:  #ffffff;      /* light surface / card             */
  --c-mist:   #e7e3d9;      /* light border / divider           */
  --c-grey:   #5c6066;      /* muted text on light              */

  /* signal yellow — main accent (road marking) */
  --c-yellow:      #ffd400;
  --c-yellow-600:  #e6bf00;
  --c-yellow-700:  #c7a500;
  --c-yellow-tint: rgba(255, 212, 0, .12);

  /* motorcycle world — second accent (only A1/A2/A/Mofa/AM) */
  --c-moto:      #19e0b4;
  --c-moto-600:  #11b894;
  --c-moto-tint: rgba(25, 224, 180, .12);

  /* semantic (dark default) */
  --bg:         var(--c-ink);
  --surface:    var(--c-asphalt-2);
  --card:       var(--c-asphalt-3);
  --text:       #f4f4f2;
  --text-soft:  var(--c-ink-soft);
  --line:       var(--c-line);
  --accent:     var(--c-yellow);
  --accent-ink: #0e0f12;     /* text/icon ON the yellow accent  */

  /* typography */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero:   clamp(2.7rem, 1.1rem + 7vw, 8rem);
  --fs-h1:     clamp(2rem, 1.2rem + 3.4vw, 4rem);
  --fs-h2:     clamp(1.75rem, 1.15rem + 2.5vw, 3.1rem);
  --fs-h3:     clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  --fs-lead:   clamp(1.075rem, 1rem + .55vw, 1.4rem);
  --fs-body:   clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-small:  .875rem;
  --fs-eyebrow:.78rem;

  --lh-tight: 1.02;
  --lh-snug:  1.16;
  --lh-body:  1.65;

  /* spacing & layout */
  --section-y: clamp(4.5rem, 2.5rem + 8vw, 9.5rem);
  --container: 1280px;
  --container-narrow: 860px;
  --gutter: clamp(1.15rem, .6rem + 2.6vw, 3rem);

  --radius: 6px;
  --radius-lg: 14px;
  --radius-pill: 100px;

  /* motion */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --dur: .85s;
  --dur-fast: .35s;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 18px 48px -22px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -42px rgba(0,0,0,.85);
  --glow-yellow: 0 12px 30px -10px rgba(255,212,0,.45);
  --glow-moto: 0 12px 30px -10px rgba(25,224,180,.45);

  --header-h: 76px;
}

/* ---------- 3. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  tab-size: 4;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select, button { font: inherit; }
ul[role="list"] { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--c-yellow); color: #0e0f12; }

.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 1200;
  background: var(--c-yellow); color: #0e0f12;
  padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 700;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform .25s var(--ease-quart);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }
strong, b { font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-yellow);
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; background: var(--c-yellow); display: inline-block;
  border-radius: 2px;
}
.eyebrow--moto { color: var(--c-moto); }
.eyebrow--moto::before { background: var(--c-moto); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.muted { color: var(--text-soft); }
.accent { color: var(--c-yellow); }
.accent-moto { color: var(--c-moto); }

/* ---------- 5. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

/* warm light theme block (trust / Fahrlehrer) */
.theme-light {
  --bg: var(--c-paper);
  --surface: var(--c-cloud);
  --card: #ffffff;
  --text: #14171f;
  --text-soft: var(--c-grey);
  --line: var(--c-mist);
  background: var(--bg);
  color: var(--text);
}
.theme-light .eyebrow { color: var(--c-yellow-700); }
.theme-light .eyebrow::before { background: var(--c-yellow-700); }

.grid { display: grid; gap: var(--gutter); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--c-yellow);
  --btn-fg: #0e0f12;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--radius);
  border: 2px solid transparent;
  overflow: hidden;
  transition: transform .4s var(--ease-expo), box-shadow .4s var(--ease-expo), background-color .3s, color .3s, border-color .3s;
}
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow-yellow); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--c-yellow); --btn-fg: #0e0f12; }
.btn--primary:hover { background: var(--c-yellow-600); }

.btn--moto { --btn-bg: var(--c-moto); --btn-fg: #052b23; }
.btn--moto:hover { background: var(--c-moto-600); box-shadow: var(--glow-moto); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: currentColor;
  border-color: color-mix(in srgb, currentColor 34%, transparent);
}
.btn--ghost:hover {
  background: var(--c-yellow); color: #0e0f12; border-color: var(--c-yellow);
  box-shadow: none;
}
.btn--ghost:hover .btn__label, .btn--ghost:hover .icon { color: #0e0f12; }

.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--c-yellow);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .4s var(--ease-expo); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- 7. Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-quart), box-shadow .4s, backdrop-filter .4s, transform .5s var(--ease-expo), border-color .4s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.header.is-scrolled {
  background: color-mix(in srgb, var(--c-ink) 85%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--c-line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.9);
}
.header.is-hidden { transform: translateY(-100%); }

/* CSS brand lockup (uses Archivo — crisp, themeable, no font-in-SVG issue) */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; line-height: 1; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: inline-flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.32rem;
  letter-spacing: -.01em; text-transform: uppercase; color: #fff;
}
.brand__name .y { color: var(--c-yellow); }
.brand__sub {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(.62rem, .55rem + .2vw, .68rem);
  letter-spacing: .2em; text-transform: uppercase; color: var(--c-ink-soft);
}
.brand:hover .brand__name .y { color: var(--c-yellow-600); }
@media (max-width: 560px) { .brand__name { font-size: 1.16rem; } .brand__mark { width: 34px; height: 34px; } }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.9rem); list-style: none; }
.nav__link {
  position: relative; color: #e9e9ec; font-weight: 500; font-size: .95rem; padding: .35rem 0;
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--c-yellow); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-expo);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__cta { display: flex; align-items: center; gap: .7rem; }
.header__phone {
  display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; white-space: nowrap;
}
.header__phone .icon { width: 1.1em; height: 1.1em; color: var(--c-yellow); }
.header__phone:hover { color: var(--c-yellow); }

.burger {
  display: none; width: 46px; height: 46px; position: relative; z-index: 120;
  border: 1px solid var(--c-line); border-radius: var(--radius);
}
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .4s var(--ease-expo), opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--c-ink);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .6s var(--ease-expo);
  visibility: hidden;
  overflow-y: auto;
}
.nav-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu__list { list-style: none; display: flex; flex-direction: column; gap: .25rem; margin-top: auto; }
.mobile-menu__link {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 9vw, 3rem);
  color: #fff; padding: .35rem 0; display: inline-flex; align-items: center; gap: .8rem;
  letter-spacing: -.01em; text-transform: uppercase;
}
.mobile-menu__link .num { font-family: var(--font-body); font-size: .8rem; color: var(--c-yellow); font-weight: 700; }
.mobile-menu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .8rem; border-top: 1px solid var(--c-line); }
.mobile-menu__foot a { color: #cfcfd6; display: inline-flex; align-items: center; gap: .6rem; }
.mobile-menu__foot a .icon { color: var(--c-yellow); width: 1.2em; height: 1.2em; }
@media (max-height: 480px) {
  .mobile-menu { padding-top: calc(var(--header-h) + 0.75rem); padding-bottom: 1.5rem; gap: 1rem; }
  .mobile-menu__list { margin-top: 0; }
  .mobile-menu__link { font-size: clamp(1.3rem, 5.5vw, 1.6rem); padding: .25rem 0; }
  .mobile-menu__foot { margin-top: 0; padding-top: 1.25rem; }
}

/* ---------- 8. Hero / Straße ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: var(--header-h);
  color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% 8%, rgba(255,212,0,.10) 0%, rgba(255,212,0,0) 46%),
    radial-gradient(130% 100% at 50% 120%, #15171d 0%, var(--c-ink) 55%, var(--c-black) 100%);
}
/* perspektivische SVG-Straße */
.hero__road { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__road svg { width: 100%; height: 100%; }
.road__surface { fill: #15171c; }
.road__edge { stroke: rgba(255,255,255,.16); stroke-width: 2; fill: none; }
.road__dash {
  stroke: var(--c-yellow); fill: none; stroke-width: 9;
  stroke-dasharray: 26 34;
  filter: drop-shadow(0 0 8px rgba(255,212,0,.45));
}
.js .hero__road .road__dash { animation: road-rush 1.15s linear infinite; }
@keyframes road-rush { to { stroke-dashoffset: -60; } }

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,9,11,.62) 0%, rgba(8,9,11,.18) 28%, rgba(8,9,11,.55) 72%, rgba(8,9,11,.96) 100%);
}
.hero__particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero__particles { display: none; } }

/* kleine Start-Ampel oben rechts */
.hero__ampel {
  position: absolute; top: calc(var(--header-h) + clamp(.8rem, 3vw, 2rem)); right: var(--gutter); z-index: 2;
  width: clamp(34px, 7vw, 52px);
}
@media (max-width: 760px) { .hero__ampel { display: none; } }

.hero__inner { width: 100%; padding-block: clamp(2.5rem, 6vw, 6rem); }
.hero__eyebrow { margin-bottom: 1.4rem; color: var(--c-yellow); }
.hero__title {
  font-size: var(--fs-hero); font-weight: 900; line-height: var(--lh-tight);
  letter-spacing: -.025em; text-transform: uppercase; margin: 0;
}
.hero__title .line { display: block; padding-bottom: .04em; }
.hero__title .line > span { display: block; }
.hero__title .accent { color: var(--c-yellow); }
.hero__sub {
  margin-top: 1.6rem; max-width: 52ch; font-size: var(--fs-lead); line-height: 1.5; color: #e7e7ea;
}
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* Klassen-Pills unter dem Hero-Text */
.hero__pills { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  padding: .42rem .8rem; border-radius: var(--radius-pill);
  border: 1.5px solid color-mix(in srgb, var(--c-yellow) 55%, transparent); color: #fff;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-expo);
}
.pill:hover { background: var(--c-yellow); color: #0e0f12; transform: translateY(-2px); }
.pill--moto { border-color: color-mix(in srgb, var(--c-moto) 60%, transparent); }
.pill--moto:hover { background: var(--c-moto); color: #052b23; }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 1.8rem; z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: .55rem;
  font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; color: #cfcfd6;
}
.hero__scroll .mouse { width: 24px; height: 38px; border: 2px solid #cfcfd6; border-radius: 14px; position: relative; }
.hero__scroll .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 2px;
  background: var(--c-yellow); transform: translateX(-50%); animation: wheel 1.8s var(--ease-quart) infinite;
}
@keyframes wheel { 0%{opacity:0;transform:translate(-50%,0)} 35%{opacity:1} 70%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* ---------- 9. Marquee ---------- */
.marquee {
  background: var(--c-yellow); color: #0e0f12; overflow: hidden; white-space: nowrap;
  padding-block: .75rem; border-block: 2px solid #0e0f12;
}
.marquee__track { display: inline-flex; gap: 2.5rem; padding-left: 2.5rem; will-change: transform; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: .95rem; display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee span::after { content: "›"; font-size: 1.1em; opacity: .65; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 10. Tacho-Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--c-asphalt-2); padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .4rem; }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__num .unit { color: var(--c-yellow); }
.stat__label { font-size: .92rem; color: var(--c-ink-soft); }

/* ---------- 11. Section header ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: .9rem; }
.section-head p { margin-top: 1rem; color: var(--text-soft); font-size: var(--fs-lead); line-height: 1.5; }

/* ---------- 12. Klassen ---------- */
.klassen-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.klassen-group:first-of-type { margin-top: 0; }
.klassen-group__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.klassen-group__head h3 { font-size: var(--fs-h2); }
.klassen-group__lead { color: var(--text-soft); max-width: 48ch; font-size: 1rem; margin-top: .4rem; }

.klassen { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.9rem, 1.6vw, 1.5rem); }
.kcard {
  grid-column: span 4;
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-expo), box-shadow .5s var(--ease-expo), border-color .5s;
}
.kcard::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--c-yellow); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-expo);
}
.kcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.kcard:hover::before { transform: scaleX(1); }
.kcard__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.kcard__code {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1; letter-spacing: -.02em; color: #fff;
}
.kcard__icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--c-yellow-tint); color: var(--c-yellow);
  transition: background-color .4s, color .4s, transform .5s var(--ease-expo);
}
.kcard__icon .icon { width: 28px; height: 28px; }
.kcard:hover .kcard__icon { background: var(--c-yellow); color: #0e0f12; transform: rotate(-6deg); }
.kcard__title { font-size: 1.12rem; margin-bottom: .45rem; font-family: var(--font-display); font-weight: 800; }
.kcard__desc { color: var(--text-soft); font-size: .96rem; line-height: 1.55; }
.kcard__meta { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: var(--radius); background: var(--c-asphalt-3); color: #c9c9d0;
  border: 1px solid var(--c-line);
}
.tag--age { background: var(--c-yellow-tint); color: var(--c-yellow); border-color: color-mix(in srgb, var(--c-yellow) 40%, transparent); }

/* motorcycle world — mint accent overrides */
.klassen-group--moto { position: relative; }
.kcard--moto::before { background: var(--c-moto); }
.kcard--moto .kcard__icon { background: var(--c-moto-tint); color: var(--c-moto); }
.kcard--moto:hover .kcard__icon { background: var(--c-moto); color: #052b23; }
.kcard--moto:hover { box-shadow: var(--glow-moto); }
.kcard--moto .tag--age { background: var(--c-moto-tint); color: var(--c-moto); border-color: color-mix(in srgb, var(--c-moto) 40%, transparent); }
.kcard--feature { grid-column: span 6; }
.kcard--feature .kcard__code { font-size: clamp(2.6rem, 6vw, 4rem); }

/* ---------- 13. Fahrlehrer / Werte ---------- */
.peter { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.peter__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  background:
    radial-gradient(80% 60% at 50% 12%, rgba(255,212,0,.18), transparent 60%),
    linear-gradient(160deg, #1f2128, #14161b);
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
}
.peter__placeholder { display: flex; flex-direction: column; align-items: center; gap: .8rem; color: var(--c-ink-soft); padding: 2rem; }
.peter__placeholder .icon { width: 64px; height: 64px; color: var(--c-yellow); }
.peter__placeholder span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.peter__badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: var(--c-yellow); color: #0e0f12; padding: .9rem 1.1rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 800; line-height: 1.05; box-shadow: var(--shadow-md);
}
.peter__badge b { display: block; font-size: 1.15rem; }
.peter__badge span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.peter__body > * + * { margin-top: 1.1rem; }
.peter__quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); line-height: 1.25; }
.peter__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.peter__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* ---------- 13b. Galerie / Slideshow (Admin-gepflegt) ---------- */
.gallery[hidden] { display: none; }
.slideshow { position: relative; }
.slideshow__stage {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--c-asphalt-2); aspect-ratio: 16 / 10;
}
.slideshow__track { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; transition: transform .7s var(--ease-expo); }
.slideshow__slide { position: relative; flex: 0 0 100%; height: 100%; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow__slide.is-broken img { display: none; }   /* fehlendes Bild -> dunkle Fläche statt Broken-Icon */
.slideshow__caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; z-index: 1;
  padding: 2.4rem 1.4rem .95rem; color: #fff; font-weight: 600; font-size: .98rem;
  background: linear-gradient(transparent, rgba(8,9,11,.82));
}
.slideshow__caption:empty { display: none; }
.slideshow__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: color-mix(in srgb, var(--c-ink) 70%, transparent); color: #fff;
  border: 1px solid var(--c-line); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color .3s, color .3s, transform .3s var(--ease-expo);
}
.slideshow__arrow:hover { background: var(--c-yellow); color: #0e0f12; }
.slideshow__arrow[hidden] { display: none; }
.slideshow__arrow--prev { left: .8rem; }
.slideshow__arrow--next { right: .8rem; }
.slideshow__arrow--prev .icon { transform: rotate(180deg); }
.slideshow__arrow .icon { width: 22px; height: 22px; }
.slideshow__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.slideshow__dot { width: 10px; height: 10px; border-radius: 50%; padding: 0; background: var(--c-line); border: 0; transition: background-color .3s, transform .3s var(--ease-expo); }
.slideshow__dot:hover { background: var(--c-ink-soft); }
.slideshow__dot.is-active { background: var(--c-yellow); transform: scale(1.25); }

.values { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.value {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; gap: .5rem;
  transition: transform .4s var(--ease-expo), box-shadow .4s var(--ease-expo);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value__icon { width: 46px; height: 46px; border-radius: var(--radius); background: var(--c-yellow-tint); color: var(--c-yellow); display: grid; place-items: center; margin-bottom: .3rem; }
.value__icon .icon { width: 26px; height: 26px; color: var(--c-yellow); }
.value b { font-family: var(--font-display); font-size: 1.1rem; }
.value span { font-size: .92rem; color: var(--text-soft); }

/* ---------- 14. Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2vw, 2rem); counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--c-yellow);
  line-height: 1; display: block; margin-bottom: .9rem;
}
.step::after { content: ""; position: absolute; top: .55rem; left: 0; right: 0; height: 2px; background: var(--line); }
.step__bar { position: absolute; top: .55rem; left: 0; height: 2px; width: 2.4rem; background: var(--c-yellow); }
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; font-family: var(--font-display); font-weight: 800; }
.step p { color: var(--text-soft); font-size: .95rem; }
.step__icon { color: var(--c-yellow); width: 28px; height: 28px; margin-bottom: .8rem; }

/* ---------- 15. meinFuxx ---------- */
.portal {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(25,224,180,.16), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(255,212,0,.12), transparent 55%),
    var(--c-asphalt-2);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.portal__body > * + * { margin-top: 1rem; }
.portal h2 { font-size: var(--fs-h2); }
.portal p { color: var(--text-soft); max-width: 52ch; }
.portal__features { list-style: none; padding: 0; margin-top: 1.3rem !important; display: grid; gap: .65rem; }
.portal__features li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.portal__features .icon { width: 1.2em; height: 1.2em; color: var(--c-moto); flex: none; }
.portal__cta { display: flex; flex-direction: column; gap: .8rem; }
.portal__device {
  aspect-ratio: 9 / 16; max-height: 320px; margin-inline: auto;
  border-radius: 22px; border: 3px solid var(--c-line); background: linear-gradient(160deg, #1c1f26, #121419);
  display: grid; place-items: center; color: var(--c-moto); box-shadow: var(--shadow-md);
}
.portal__device .icon { width: 56px; height: 56px; }

/* ---------- 16. Standort / Karte ---------- */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.area__map {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--c-ink); border: 1px solid var(--line);
}
.area__map--consent { display: block; padding: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; overflow: hidden; }
.map-consent__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.map-consent__panel {
  position: relative; z-index: 1; max-width: 22rem; padding: clamp(1.1rem, 4vw, 1.8rem); margin: 1rem;
  background: color-mix(in srgb, var(--c-ink) 80%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.map-consent__text { margin: 0 0 1.1rem; font-size: .9rem; line-height: 1.45; color: var(--text-soft); }
.map-consent__btn { width: 100%; justify-content: center; }
.area__map--consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.area__map--consent.is-loaded .map-consent { display: none; }
.area__address { display: flex; align-items: center; gap: .55rem; margin: .9rem 0 0; font-size: .92rem; color: var(--text-soft); }
.area__address .icon { width: 1.05em; height: 1.05em; color: var(--c-yellow); flex: none; }
.area__parking { display: flex; align-items: center; gap: .55rem; margin: .45rem 0 0; font-size: .92rem; color: var(--text-soft); }
.area__parking .icon { width: 1.05em; height: 1.05em; color: var(--c-yellow); flex: none; }
.area__list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .2rem; }
.area__list li { padding: .5rem 0; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); }
.area__list .icon { width: 1em; height: 1em; color: var(--c-yellow); flex: none; }

/* ---------- 17. Kontakt / Form ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__cards { display: grid; gap: 1rem; margin-top: 1.8rem; }
.contact-card {
  display: flex; gap: 1rem; align-items: center; padding: 1.3rem 1.4rem;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .35s var(--ease-expo), box-shadow .35s var(--ease-expo), transform .35s var(--ease-expo);
}
.contact-card:hover { border-color: var(--c-yellow); box-shadow: var(--glow-yellow); transform: translateY(-2px); }
.contact-card__icon { width: 46px; height: 46px; flex: none; align-self: center; display: grid; place-items: center; border-radius: var(--radius); background: var(--c-yellow); color: #0e0f12; }
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card__body { display: block; min-width: 0; }
.contact-card__label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: .15rem; }
.contact-card b, .contact-card a.contact-card__val { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.contact-card a.contact-card__val:hover { color: var(--c-yellow); }
.contact-card small { color: var(--c-ink-soft); font-family: var(--font-body); font-weight: 400; font-size: .85rem; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: #d4d4da; }
.field .req { color: var(--c-yellow); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; color: #fff;
  background: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a95; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b6b; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-yellow); box-shadow: 0 0 0 3px var(--c-yellow-tint); background: #0b0c0f;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff6b6b; }
.field .err { font-size: .78rem; color: #ff8b8b; min-height: 1em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: #c4c4cc; line-height: 1.5; }
.consent input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .15rem; accent-color: var(--c-yellow); }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form__foot { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 1rem; }
.form__note { font-size: .82rem; color: var(--c-ink-soft); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-status.is-ok { display: block; background: rgba(25,224,180,.14); border: 1px solid rgba(25,224,180,.5); color: #b9f4e6; }
.form-status.is-err { display: block; background: rgba(255,107,107,.14); border: 1px solid rgba(255,107,107,.5); color: #ffc1c5; }

/* ---------- 18. Footer ---------- */
.footer { background: var(--c-black); color: #cfcfd6; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 3rem); }
.footer h3, .footer h4 { font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: #fff; margin-bottom: 1.1rem; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer a:hover { color: #fff; }
.footer__brand .brand { margin-bottom: 1.1rem; }
.footer__brand p { font-size: .92rem; max-width: 34ch; color: var(--c-ink-soft); }
.footer__contact a, .footer__contact span { display: inline-flex; gap: .55rem; align-items: flex-start; }
.footer__contact .icon { width: 1.05em; height: 1.05em; color: var(--c-yellow); flex: none; margin-top: .15em; }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid #22242b;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #7c7c86;
}
.footer__bottom nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* ---------- 19. Direktdraht: to-top / callbar / side-dock ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; background: var(--c-yellow); color: #0e0f12;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .4s, transform .4s var(--ease-expo), visibility .4s, background-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--c-yellow-600); transform: translateY(-3px); }
.to-top .icon { width: 22px; height: 22px; }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; grid-template-columns: 1fr 1fr;
  background: var(--c-ink); border-top: 1px solid var(--c-line);
}
.callbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem; font-weight: 700; color: #fff; font-size: .92rem; }
.callbar a + a { border-left: 1px solid var(--c-line); }
.callbar__call { background: var(--c-yellow); color: #0e0f12 !important; }
.callbar__portal { background: var(--c-moto); color: #052b23 !important; }
.callbar .icon { width: 1.2em; height: 1.2em; }

.side-dock {
  position: fixed; z-index: 80;
  right: clamp(.6rem, 1.4vw, 1.1rem); bottom: clamp(5rem, 14vh, 8.5rem);
  display: none; flex-direction: column; gap: .6rem;
  opacity: 0; visibility: hidden; transform: translateX(14px);
  transition: opacity .4s, transform .4s var(--ease-expo), visibility .4s;
}
.side-dock.is-visible { opacity: 1; visibility: visible; transform: translateX(0); }
.side-dock__btn {
  position: relative; width: 48px; height: 48px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--c-asphalt-2); color: #fff;
  border: 1px solid var(--c-line); box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease-expo), background-color .3s, border-color .3s, color .3s;
}
.side-dock__btn .icon { width: 22px; height: 22px; }
.side-dock__btn:hover, .side-dock__btn:focus-visible { background: var(--c-yellow); border-color: var(--c-yellow); color: #0e0f12; transform: translateY(-3px); }
.side-dock__btn--portal:hover, .side-dock__btn--portal:focus-visible { background: var(--c-moto); border-color: var(--c-moto); color: #052b23; }
.side-dock__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.side-dock__tip {
  position: absolute; right: calc(100% + .55rem); top: 50%; transform: translateY(-50%) translateX(6px);
  padding: .3rem .6rem; border-radius: var(--radius); background: var(--c-black); color: #fff; border: 1px solid var(--c-line);
  font-size: .8rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease-expo);
}
.side-dock__btn:hover .side-dock__tip, .side-dock__btn:focus-visible .side-dock__tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (min-width: 861px) {
  .side-dock { display: flex; }
  .to-top { display: none; }
}

/* ---------- 20. Legal / prose ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2rem,4vw,3rem); background: var(--c-ink); color: #fff; }
.page-hero .eyebrow { color: var(--c-yellow); }
.page-hero h1 { font-size: var(--fs-h1); margin-top: .8rem; }
.prose { max-width: 75ch; }
.prose h1 { font-size: var(--fs-h2); margin-bottom: 1.2rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; margin-bottom: .7rem; color: var(--text); }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose a { color: var(--c-yellow); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.theme-light .prose a { color: var(--c-yellow-700); }
.prose table { border-collapse: collapse; margin: .5rem 0 1.2rem; }
.prose td { padding: .25rem 1.5rem .25rem 0; vertical-align: top; }
.prose strong { font-weight: 700; }
.prose .lead { margin-bottom: 1.6rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- 21. Reveal / animation states ---------- */
.js [data-reveal]:not(.is-in) { will-change: transform, opacity; }
.js [data-reveal] { transition: opacity .9s var(--ease-expo), transform .95s var(--ease-expo); }
.js [data-reveal="up"] { opacity: 0; transform: translateY(34px); }
.js [data-reveal="fade"] { opacity: 0; }
.js .hero__title .line > span { opacity: 0; transform: translateY(34px); }
.js .hero__eyebrow, .js .hero__sub, .js .hero__actions, .js .hero__pills, .js .hero__scroll { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--solid { fill: currentColor; stroke: none; fill-rule: evenodd; }   /* gefüllte Silhouette (z. B. Motorrad-Icon) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 22. Roadline (Signature: durchgehende Mittellinie) ---------- */
.roadline {
  position: fixed; top: 0; bottom: 0; left: clamp(.5rem, 2.2vw, 2rem); z-index: 1; width: 6px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--c-yellow) 0, var(--c-yellow) 22px,
    transparent 22px, transparent 52px);
  background-size: 6px 52px;
  background-position: 0 var(--roadline-offset, 0px);
  opacity: .16;
}
.no-js .roadline { display: none; }
@media (max-width: 1080px) { .roadline { display: none; } }
@media (prefers-reduced-motion: reduce) { .roadline { background-position: 0 0; } }

/* ---------- 23. Intro / Ampel-Preloader ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  background: radial-gradient(120% 100% at 50% 30%, #15171d 0%, var(--c-ink) 55%, var(--c-black) 100%);
  color: #fff; overflow: hidden; isolation: isolate;
  transition: transform .9s var(--ease-expo), clip-path .9s var(--ease-expo), opacity .7s var(--ease-quart) .12s;
}
.no-js .intro { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }
.intro__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 3vw, 2.2rem); padding-inline: var(--gutter); text-align: center; }

.ampel {
  width: clamp(54px, 12vw, 74px); padding: clamp(.5rem,1.6vw,.7rem); border-radius: 16px;
  background: #121419; border: 2px solid var(--c-line);
  display: flex; flex-direction: column; gap: clamp(.45rem,1.4vw,.65rem); box-shadow: var(--shadow-md);
}
.ampel__light { aspect-ratio: 1; border-radius: 50%; background: #23262e; transition: background-color .3s, box-shadow .3s; }
.ampel__light.is-on.ampel__light--red { background: #ff4136; box-shadow: 0 0 18px rgba(255,65,54,.7); }
.ampel__light.is-on.ampel__light--yellow { background: var(--c-yellow); box-shadow: 0 0 18px rgba(255,212,0,.7); }
.ampel__light.is-on.ampel__light--green { background: var(--c-moto); box-shadow: 0 0 20px rgba(25,224,180,.8); }

.intro__brand { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; opacity: 0; }
.intro__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 1.2rem + 5vw, 4.6rem); letter-spacing: -.015em; line-height: 1; text-transform: uppercase; }
.intro__name .y { color: var(--c-yellow); }
.intro__tagline { font-size: clamp(.66rem, .5rem + .5vw, .85rem); letter-spacing: .28em; text-transform: uppercase; color: var(--c-ink-soft); }
.intro__hint { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; margin-bottom: clamp(2rem, 5vh, 3.4rem); opacity: 0; }
.intro__hint-label { font-size: .64rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #b9b9c2; }
.intro__hint-track { position: relative; width: 22px; height: 34px; border: 2px solid var(--c-line); border-radius: 12px; }
.intro__hint-dot { position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; border-radius: 2px; background: var(--c-yellow); transform: translateX(-50%); animation: intro-wheel 1.8s var(--ease-quart) infinite; }
@keyframes intro-wheel { 0%{opacity:0;transform:translate(-50%,0)} 35%{opacity:1} 70%{opacity:0;transform:translate(-50%,11px)} 100%{opacity:0} }
.intro.is-done { display: none; }
html.intro-lock, html.intro-lock body { overflow: hidden; height: 100%; }

/* ---------- 24. Skin overlay (subtile Vignette + Körnung) ---------- */
.skin-overlay { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(8,9,11,.22) 88%, rgba(8,9,11,.4) 100%); }
.skin-overlay::before { content: ""; position: absolute; inset: 0; filter: url(#fx-grain); opacity: .045; }
@supports not (filter: url(#fx-grain)) { .skin-overlay::before { display: none; } }

/* ---------- 27. Admin-Bereich (Galerie-Verwaltung) ---------- */
.admin-login { max-width: 27rem; margin-inline: auto; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.admin-flash { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-size: .92rem; line-height: 1.5; }
.admin-flash.is-ok  { background: rgba(25,224,180,.14); border: 1px solid rgba(25,224,180,.5); color: #b9f4e6; }
.admin-flash.is-err { background: rgba(255,107,107,.14); border: 1px solid rgba(255,107,107,.5); color: #ffc1c5; }
.admin-flash code { background: rgba(255,255,255,.08); padding: .1em .4em; border-radius: 4px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.admin-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.admin-item__thumb { aspect-ratio: 4 / 3; background: var(--c-ink); }
.admin-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item__body { padding: .9rem; display: flex; flex-direction: column; gap: .7rem; }
.admin-item__row { display: flex; gap: .5rem; align-items: flex-end; margin: 0; }
.admin-item__row .field { flex: 1; }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--sm .icon { width: 1em; height: 1em; }
.btn--danger { --btn-bg: #ff6b6b; --btn-fg: #2a0b0b; }
.btn--danger:hover { background: #ff5252; box-shadow: none; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list { display: none; }
  .header__phone .label { display: none; }
  .header__phone { min-width: 44px; min-height: 44px; justify-content: center; }
  .burger { display: block; }
  .kcard { grid-column: span 6; }
  .kcard--feature { grid-column: span 6; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .peter { grid-template-columns: 1fr; }
  .peter__media { aspect-ratio: 16 / 10; max-height: 60vh; }
  .area { grid-template-columns: 1fr; }
  .area__map { aspect-ratio: 16 / 10; max-height: 60vh; }
  .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .portal { grid-template-columns: 1fr; }
  .portal__device { display: none; }
  .callbar { display: grid; }
  body { padding-bottom: 60px; }
  .to-top { bottom: 70px; }
  /* Mobile: Hero-Inhalt von oben fließen lassen (sonst überlappt der hohe
     Inhalt bei flex-end den fixen Header). */
  .hero { min-height: 100svh; align-items: flex-start; }
  .hero__inner { padding-top: clamp(1rem, 3vw, 1.6rem); padding-bottom: clamp(1.5rem, 5vw, 2.5rem); }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .kcard, .kcard--feature { grid-column: span 12; }
  .form__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .header__cta .btn--anfrage { display: none; }
}
@media (min-width: 561px) and (max-width: 1080px) {
  .container { padding-inline: clamp(1.5rem, 4vw, 2.5rem); }
}
@media (hover: none) {
  .kcard:active { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .kcard:active::before { transform: scaleX(1); }
  .contact-card:active { border-color: var(--c-yellow); box-shadow: var(--glow-yellow); transform: translateY(-2px); }
}

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .hero__title .line > span { transform: none !important; opacity: 1 !important; }
  .js .hero__eyebrow, .js .hero__sub, .js .hero__actions, .js .hero__pills, .js .hero__scroll { opacity: 1 !important; }
  .marquee__track { animation: none; }
  .hero__road .road__dash { animation: none; }
  .hero__scroll .mouse::after { animation: none; }
}
