/* ==========================================================================
   UBIQ RACING — Design v4
   Wird nach style.css geladen. Alle bisherigen Klassen bleiben gültig:
   Templates, Buchungsformular, Rechnung, Hell/Dunkel und beide Logos
   funktionieren unverändert.

   Leitmotiv: die Rennstrecke.
   - Kurvenform (eine grosse Ecke) für Buttons, Karten, Bilder
   - Ideallinie und Sektoren als gezeichnete Strecke (template-parts/circuit.php)
   - Doppel-Chevron (Kurvenschild) als Pfeil
   ========================================================================== */

/* ---------- Schrift (lokal, SIL OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --font-display: "Archivo", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "Archivo", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(.9rem, .84rem + .25vw, 1.02rem);
  --step-0:  clamp(1.05rem, .93rem + .5vw, 1.3rem);
  --step-1:  clamp(1.2rem, 1rem + .85vw, 1.7rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2.05rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3.1rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.6vw, 5rem);
  --step-5:  clamp(2.9rem, 1.5rem + 6.2vw, 7.6rem);

  --gutter:  clamp(1rem, 4vw, 3rem);
  --max:     1280px;
  --section: clamp(5rem, 3rem + 9vw, 11rem);

  --curve:    2px 2px 22px 2px;      /* Kurvenform: eine Ecke ist die Kurve */
  --curve-lg: 4px 4px 72px 4px;
  --curve-xl: 6px 6px 130px 6px;
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-apex: cubic-bezier(.65, 0, .2, 1);
}

/* Dunkel (Standard) */
:root, [data-theme="dark"] {
  --u-bg: #07090D; --u-bg2: #0D1118; --u-card: #121824;
  --u-ink: #EEF2F8; --u-ink2: #A3AFC2; --u-line: rgba(238, 242, 248, .13);
  --u-blue: #1E6BFF; --u-blue-ink: #FFFFFF; --u-blue2: #62B8FF; --u-bluetext: #6AA5FF;
  --u-deep: #0E1522; --u-ondeep: #EEF2F8; --u-ondeep2: #97A4B8;
  color-scheme: dark;

  /* bisherige Variablen der Unterseiten */
  --black: var(--u-bg); --surface: var(--u-bg2); --card: var(--u-card);
  --white: var(--u-ink); --muted: var(--u-ink2); --border: var(--u-line);
  --royal: var(--u-blue); --accent: var(--u-blue); --electric: var(--u-bluetext);
}
/* Hell */
[data-theme="light"] {
  --u-bg: #F3F5F9; --u-bg2: #E7ECF3; --u-card: #FFFFFF;
  --u-ink: #0A1322; --u-ink2: #45536A; --u-line: rgba(10, 19, 34, .13);
  --u-blue: #0B5BE0; --u-blue-ink: #FFFFFF; --u-blue2: #49AEF7; --u-bluetext: #0A52CC;
  /* Im hellen Design sind auch die hervorgehobenen Flächen hell (zartes Blau statt Dunkel) */
  --u-deep: #DDE7F5; --u-ondeep: #0A1322; --u-ondeep2: #3F4E66;
  color-scheme: light;

  --black: var(--u-bg); --surface: var(--u-bg2); --card: var(--u-card);
  --white: var(--u-ink); --muted: var(--u-ink2); --border: var(--u-line);
  --royal: var(--u-blue); --accent: var(--u-blue); --electric: var(--u-bluetext);
}

/* ---------- Basis ---------- */
html { scroll-padding-top: 6rem; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body,
[data-theme="light"] body, body[data-theme="light"] {
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; font-stretch: 100%;
  color: var(--u-ink); background: var(--u-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
/* Startaufstellung: feine Spaltenlinien im Hintergrund */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, var(--u-line) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 4) 100%;
  background-position: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 0;
  opacity: .4;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -.025em; }
em { font-style: italic; }
h1 em, h2 em, .act__title em { font-weight: 400; font-style: italic; letter-spacing: -.03em; color: var(--u-bluetext); }
:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--u-blue); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Chevron (Kurvenschild) ---------- */
.chev {
  display: inline-block; flex: none; width: .95em; height: .95em; vertical-align: -.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 3 7.5 8l-5 5M8.5 3l5 5-5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 3 7.5 8l-5 5M8.5 3l5 5-5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .45s var(--ease-out);
}
.chev--down { transform: rotate(90deg); }

/* ---------- Typo-Bausteine ---------- */
.section-title, .display-xl, .display-lg, .display-md {
  font-family: var(--font-display); font-weight: 600; font-stretch: 100%;
  text-transform: none; letter-spacing: -.03em; line-height: 1.02; color: var(--u-ink);
}
.section-title { font-size: var(--step-4); margin-top: 0; }
.display-md { font-size: var(--step-3); }
.section-title .blue,
.section-title span[style*="color:var(--electric)"] { color: var(--u-bluetext) !important; font-style: italic; font-weight: 400; }
.section-line { display: none; }
.section-head { max-width: 62rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; letter-spacing: .2em; color: var(--u-ink2); }
.body-lg { font-size: var(--step-1); line-height: 1.5; color: var(--u-ink2); }
.body-md { color: var(--u-ink2); }
.card-title { font-family: var(--font-display); font-weight: 600; text-transform: none; letter-spacing: -.015em; font-size: var(--step-1); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .8em;
  padding: 1rem 1.6rem; border: 1.5px solid transparent; border-radius: var(--curve);
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0); letter-spacing: 0; text-transform: none; line-height: 1.2;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; clip-path: none;
  transition: color .35s var(--ease-out), border-color .35s, background-color .35s, border-radius .5s var(--ease-out);
}
.btn::before { /* Füllung, die aus der Kurve heraus aufgeht */
  content: ""; position: absolute; inset: -2px; z-index: -1; opacity: 1;
  background: var(--u-ink); border-radius: inherit; transform: none;
  clip-path: circle(0% at 100% 100%);
  transition: clip-path .6s var(--ease-apex);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at 100% 100%); transform: none; }
.btn:hover { border-radius: 2px 22px 2px 2px; transform: none; box-shadow: none; }
.btn .chev { transition: transform .45s var(--ease-out); }
.btn:hover .chev { transform: translateX(4px); }
.btn > span { position: relative; }
.btn--lg { padding: 1.2rem 1.9rem; font-size: var(--step-1); }

.btn-primary, .btn-electric { background: var(--u-blue); color: var(--u-blue-ink) !important; }
.btn-primary:hover, .btn-electric:hover { background: var(--u-blue); color: var(--u-bg) !important; }
.btn-outline,
[data-theme="light"] .btn-outline { background: transparent; color: var(--u-ink); border-color: var(--u-line); }
.btn-outline::before { background: var(--u-blue); }
.btn-outline:hover,
[data-theme="light"] .btn-outline:hover { color: #fff; border-color: var(--u-blue); background: transparent; }
.btn-ghost { padding: .3rem 0; border: 0; border-radius: 0; overflow: visible; color: var(--u-ink); background: none; }
.btn-ghost::before { display: none; }
.btn-ghost:hover { color: var(--u-bluetext); border-radius: 0; }
.btn-arrow::after {
  content: ""; width: .95em; height: .95em; flex: none; background: currentColor; margin-left: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 3 7.5 8l-5 5M8.5 3l5 5-5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 3 7.5 8l-5 5M8.5 3l5 5-5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .45s var(--ease-out);
}
.btn-arrow:hover::after { transform: translateX(4px); }

.link-curve, .btn-ghost {
  position: relative; display: inline-flex; align-items: center; gap: .6em; padding: .3rem 0;
  font-weight: 600; text-decoration: none; color: var(--u-ink);
}
.link-curve::after, .btn-ghost::before { /* geschwungene Unterlinie: die Ideallinie */
  content: ""; display: block; position: absolute; left: 0; right: 0; bottom: -.15rem; top: auto; height: .5rem; inset-block-start: auto;
  background: none; clip-path: none; z-index: 0;
  border-bottom: 1.5px solid var(--u-blue); border-radius: 0 0 100% 0 / 0 0 100% 0;
  transform-origin: left; transition: transform .5s var(--ease-out);
}
.link-curve:hover::after, .btn-ghost:hover::before { transform: scaleX(.35); clip-path: none; }
.link-curve:hover { color: var(--u-bluetext); }

/* ---------- Header ---------- */
#site-header { transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s; }
#site-header.is-hidden { transform: translateY(-100%); }
#site-header.scrolled,
body:not(.home) #site-header {
  background: color-mix(in srgb, var(--u-bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--u-line); border-bottom: 0;
}
#primary-nav > li > a {
  font-family: var(--font-body); font-weight: 500; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--u-ink);
}
#primary-nav > li > a::after {
  left: 1rem; right: 1rem; height: 1.5px; background: var(--u-blue);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
#primary-nav > li:hover > a::after,
#primary-nav > li.current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
#primary-nav > li.current-menu-item > a { color: var(--u-ink); }
.header-cta { padding: .65rem 1.05rem; font-size: var(--step--1); }
.scroll-progress { background: var(--u-blue); height: 2px; top: 0; z-index: 1001; }

#mobile-nav-overlay .mobile-nav-link {
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: -.03em; text-transform: none;
  opacity: 0; transform: translateX(24px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), padding .2s, background .2s, color .2s;
}
#mobile-nav-overlay.active .mobile-nav-link { opacity: 1; transform: none; }
#mobile-nav-overlay.active .mobile-nav-link:nth-child(2) { transition-delay: .04s, .04s, 0s, 0s, 0s; }
#mobile-nav-overlay.active .mobile-nav-link:nth-child(3) { transition-delay: .08s, .08s, 0s, 0s, 0s; }
#mobile-nav-overlay.active .mobile-nav-link:nth-child(4) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
#mobile-nav-overlay.active .mobile-nav-link:nth-child(5) { transition-delay: .16s, .16s, 0s, 0s, 0s; }
#mobile-nav-overlay.active .mobile-nav-link:nth-child(6) { transition-delay: .20s, .20s, 0s, 0s, 0s; }
#mobile-nav-overlay.active .mobile-nav-link:nth-child(7) { transition-delay: .24s, .24s, 0s, 0s, 0s; }
.mobile-nav-link.active { color: var(--u-bluetext); border-left-color: var(--u-blue); }
.mobile-nav-arrow { opacity: .5; color: var(--u-bluetext); }

/* ---------- Strecke (SVG) ---------- */
.circuit { overflow: visible; width: 100%; height: 100%; }
.circuit path, .circuit line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.circuit__asphalt { stroke: color-mix(in srgb, var(--u-ink) 9%, transparent); stroke-width: 17; }
.circuit__kerb { stroke: color-mix(in srgb, var(--u-ink) 20%, transparent); stroke-width: 21; stroke-dasharray: 4 6; opacity: .45; }
.circuit__line { stroke: var(--u-blue2); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.circuit__finish line { stroke: var(--u-ink); stroke-width: 2.4; stroke-dasharray: 3 3; opacity: .85; }
.circuit__kart { fill: var(--u-ink); }
.circuit__halo { fill: var(--u-blue); opacity: .35; transform-box: fill-box; transform-origin: center; animation: kart-halo 1.8s ease-out infinite; }
@keyframes kart-halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
.circuit__sector line { stroke: var(--u-ink2); stroke-width: 2; transition: stroke .4s; }
.circuit__sector text { fill: var(--u-ink2); font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .08em; transition: fill .4s; }
.circuit__sector.is-on line { stroke: var(--u-blue2); }
.circuit__sector.is-on text { fill: var(--u-ink); }
.circuit--mono .circuit__asphalt, .circuit--mono .circuit__kerb, .circuit--mono [data-layer="kart"] { display: none; }
.circuit--mono .circuit__line { stroke: currentColor; stroke-width: 2; }
.circuit--mono .circuit__finish line { stroke: currentColor; }

/* ---------- Hero ---------- */
.uhero { position: relative; display: flex; align-items: center; min-height: 100svh; padding-top: clamp(7rem, 14vh, 10rem); padding-bottom: 6rem; overflow: clip; }
.uhero__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; min-height: min(70vh, 44rem); }
.uhero__copy { grid-column: 1 / span 8; position: relative; z-index: 3; }
.uhero__title { font-size: var(--step-5); line-height: .96; letter-spacing: -.04em; margin-bottom: 2rem; color: var(--u-ink); }
.uhero__title em { display: inline-block; padding-right: .06em; }
.uhero__lead { max-width: 34rem; font-size: var(--step-1); line-height: 1.5; color: var(--u-ink2); margin-bottom: 2.6rem; }
.uhero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }

.uhero__media { position: absolute; z-index: 1; right: 0; top: 50%; width: min(41vw, 600px); aspect-ratio: 4 / 5; max-height: 78vh; transform: translateY(-50%); }
.uhero__frame {
  position: absolute; inset: 0; overflow: hidden; background: var(--u-deep);
  border-radius: 6px 6px clamp(90px, 15vw, 230px) 6px;
  animation: frame-in 1.5s var(--ease-apex) .15s both;
}
@keyframes frame-in { from { clip-path: inset(100% 0 0 0 round 6px); } to { clip-path: inset(0 0 0 0 round 6px 6px clamp(90px, 15vw, 230px) 6px); } }
.uhero__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--u-bg) 40%, transparent), transparent 35%); }
.uhero__frame .hero-slides { position: absolute; inset: 0; }
.uhero__frame .hero-slide { transform: scale(1.08); transition: opacity 1.4s var(--ease-out), transform 8s linear; }
.uhero__frame .hero-slide.active { transform: scale(1); }
.uhero__circuit { position: absolute; z-index: 2; left: -25%; bottom: -13%; width: 46%; aspect-ratio: 289 / 380; pointer-events: none; }

.specimen {
  position: absolute; z-index: 4; right: -1.5rem; top: 2rem; width: min(17rem, 70vw);
  padding: 1.1rem 1.25rem; background: color-mix(in srgb, var(--u-card) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--u-line); border-radius: var(--curve); font-size: .98rem; line-height: 1.5;
}
.specimen p { margin: 0; }
.specimen__fig { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--u-ink2); margin-bottom: .35rem !important; }
.specimen__fig::after { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.specimen__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; color: var(--u-ink); margin-bottom: .25rem !important; }
.specimen__text { color: var(--u-ink2); }

.hero-ticks { position: absolute; z-index: 4; left: 0; top: -2.4rem; display: flex; gap: 1rem; }
.hero-tick { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; color: var(--u-ink2); font-size: .72rem; font-weight: 600; letter-spacing: .08em; transition: color .2s; }
.hero-tick:hover, .hero-tick.active { color: var(--u-ink); }
.hero-tick-bar { position: relative; width: 40px; height: 2px; background: var(--u-line); overflow: hidden; }
.hero-tick-bar::after { content: ""; position: absolute; inset: 0; background: var(--u-blue); transform: scaleX(0); transform-origin: left; }
.hero-tick.active .hero-tick-bar::after { animation: tick 5s linear forwards; }
@keyframes tick { to { transform: scaleX(1); } }

.scroll-cue { position: absolute; left: var(--gutter); bottom: 1.8rem; display: flex; align-items: center; gap: .7rem; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--u-ink2); z-index: 3; }
@media (min-width: 1330px) { .scroll-cue { left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.scroll-cue .chev { color: var(--u-bluetext); animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(6px); } }

/* ---------- Drei Sektoren ---------- */
.acts { position: relative; height: 340vh; }
.acts__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--gutter); align-items: center; }
.acts__art { position: relative; aspect-ratio: 289 / 380; height: min(74vh, 640px); justify-self: center; }
.acts__counter { position: absolute; left: -1rem; bottom: -.5rem; display: flex; gap: .5rem; align-items: baseline; font-family: var(--font-display); font-weight: 600; }
.acts__counter span:first-child { font-size: var(--step-3); color: var(--u-bluetext); min-width: 2.2ch; letter-spacing: -.03em; }
.acts__counter span:last-child { font-size: var(--step-0); color: var(--u-ink2); }
.acts__timer { position: absolute; left: 0; bottom: -1.75rem; display: grid; gap: .15rem; }
.acts__timer-label { font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--u-ink2); }
.acts__timer-value { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--u-ink); transition: color .4s; }
.acts__timer.is-final .acts__timer-value { color: var(--u-bluetext); }
.no-motion .acts__timer { display: none; }
.acts__panels { position: relative; min-height: 29rem; }
.act { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; transform: translateY(2.5rem); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), visibility 0s .7s; }
.act.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--ease-out) .1s, transform 1s var(--ease-out) .1s, visibility 0s; }
.act__no { font-size: var(--step--1); letter-spacing: .24em; text-transform: uppercase; color: var(--u-ink2); margin: 0 0 .8rem; }
.act__title { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.7rem); line-height: .96; margin-bottom: 1.6rem; letter-spacing: -.04em; color: var(--u-ink); }
.act__title::first-letter { color: var(--u-bluetext); }
.act__text { font-size: var(--step-1); line-height: 1.5; color: var(--u-ink2); max-width: 36rem; margin: 0; }
.act__list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 2rem; }
.act__list span { padding: .45rem .9rem; border: 1px solid var(--u-line); border-radius: var(--curve); font-size: var(--step--1); color: var(--u-ink); }

/* ---------- Philosophie (Feature-Block) ---------- */
.philo { padding-block: var(--section) 0; }
.feature { position: relative; display: grid; grid-template-columns: 7fr 5fr; background: var(--u-deep); color: var(--u-ondeep); border-radius: var(--curve-xl); overflow: hidden; isolation: isolate; }
.feature__copy { padding: clamp(2rem, 5vw, 4.5rem); }
.feature__title { font-size: var(--step-4); line-height: 1; letter-spacing: -.035em; margin-bottom: 1.5rem; color: var(--u-ondeep); max-width: 14ch; }
.feature__title em { color: var(--u-blue2); }
.feature__text { color: var(--u-ondeep2); font-size: var(--step-1); line-height: 1.5; max-width: 36rem; margin: 0 0 2rem; }
.feature__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.feature__chips span { padding: .5rem .9rem; font-size: var(--step--1); color: var(--u-ondeep); border: 1px solid color-mix(in srgb, var(--u-ondeep) 20%, transparent); border-radius: var(--curve); }
.feature__visual { position: relative; min-height: 24rem; background: color-mix(in srgb, var(--u-ondeep) 4%, transparent); overflow: hidden; }
.feature__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out); }
.feature:hover .feature__visual img { transform: scale(1); }
.feature .btn-primary::before, .process .btn-primary::before, .kicta .btn-primary::before { background: var(--u-ondeep); }
.feature .btn-primary:hover, .process .btn-primary:hover, .kicta .btn-primary:hover { color: var(--u-deep) !important; }

/* ---------- Angebote ---------- */
.services { padding-block: var(--section); }
.service-list { border-top: 1px solid var(--u-line); }
.service-row { border-bottom: 1px solid var(--u-line); }
.service-row__link {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 9rem 4rem; gap: 1.5rem; align-items: center;
  padding: clamp(1.5rem, 2.4vw, 2.4rem) .75rem; text-decoration: none; color: var(--u-ink);
  transition: color .5s var(--ease-out), padding .6s var(--ease-out);
}
.service-row__no { font-size: var(--step--1); letter-spacing: .2em; color: var(--u-ink2); align-self: start; padding-top: .8rem; transition: color .5s; }
.service-row__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-4); line-height: .97; letter-spacing: -.04em; }
.service-row__text { color: var(--u-ink2); font-size: var(--step-0); line-height: 1.5; transition: color .5s; }
.service-row__text small { display: block; margin-top: .7rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.service-row__img { width: 9rem; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--curve); opacity: 0; transform: translateX(-14px) scale(.92); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.service-row__img img { width: 100%; height: 100%; object-fit: cover; }
.service-row__go { justify-self: end; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border: 1px solid var(--u-line); border-radius: 50%; transition: transform .6s var(--ease-out), border-color .4s, background .4s, color .4s; }
.service-row__go .chev { width: 1.1rem; height: 1.1rem; }
.service-row__bloom { position: absolute; inset: 0; z-index: -1; background: var(--u-deep); clip-path: circle(0% at 0% 50%); transition: clip-path .85s var(--ease-apex); }
[data-theme="dark"] .service-row__bloom, :root:not([data-theme="light"]) .service-row__bloom { background: var(--u-card); }
.service-row__link:hover, .service-row__link:focus-visible { color: var(--u-ondeep); padding-inline: 2rem; }
.service-row__link:hover .service-row__text, .service-row__link:focus-visible .service-row__text,
.service-row__link:hover .service-row__no { color: var(--u-ondeep2); }
.service-row__link:hover .service-row__bloom, .service-row__link:focus-visible .service-row__bloom { clip-path: circle(150% at 0% 50%); }
.service-row__link:hover .service-row__img, .service-row__link:focus-visible .service-row__img { opacity: 1; transform: none; }
.service-row__link:hover .service-row__go { background: var(--u-blue); border-color: var(--u-blue); color: #fff; }
.service-row__link:hover .service-row__go .chev { transform: translateX(3px); }

/* ---------- Erfolge (horizontal) ---------- */
.process { position: relative; background: var(--u-deep); color: var(--u-ondeep); overflow: hidden; }
.process .section-title { color: var(--u-ondeep); }
.process h2 em, .kicta h2 em { color: var(--u-blue2); }
.process__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 6rem 4rem; }
.process__head { margin-bottom: 3.5rem; }
.process__track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; will-change: transform; }
.process__track::-webkit-scrollbar { display: none; }
.js .process__track.is-pinned { overflow: visible; }
.step {
  flex: 0 0 clamp(17rem, 27vw, 23rem); scroll-snap-align: start;
  padding: 2rem 1.8rem; min-height: 23rem; display: flex; flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--u-ondeep) 18%, transparent); border-radius: var(--curve-lg);
  background: color-mix(in srgb, var(--u-ondeep) 3%, transparent);
}
.step:nth-child(even) { margin-top: 3rem; }
.step__no { font-family: var(--font-display); font-weight: 600; font-size: var(--step-4); line-height: 1; letter-spacing: -.04em; color: var(--u-blue2); margin: 0 0 auto; }
.step__title, .step__dur { font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--u-ondeep2); margin: 2rem 0 .6rem; }
.step__dur { margin-top: 1.4rem; }
.step__names { display: grid; gap: .2rem; }
.step__names span { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.15; letter-spacing: -.025em; color: var(--u-ondeep); }
.step__names--vice span { font-weight: 400; font-size: var(--step-0); letter-spacing: 0; color: var(--u-ondeep2); line-height: 1.5; }
.step--end { border: 0; background: none; justify-content: center; align-items: flex-start; }
.process__bar { margin: 3rem auto 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); height: 2px; background: color-mix(in srgb, var(--u-ondeep) 15%, transparent); }
.process__bar span { display: block; height: 100%; width: 100%; background: var(--u-blue2); transform-origin: left; transform: scaleX(0); }

/* ---------- Kennzahlen ---------- */
.figures { padding-block: var(--section); }
.figures__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); }
.figure { border-top: 1.5px solid var(--u-ink); padding-top: 1.2rem; }
.figure--1 { grid-column: 1 / span 5; }
.figure--2 { grid-column: 7 / span 4; margin-top: 5rem; }
.figure--3 { grid-column: 2 / span 4; }
.figure--4 { grid-column: 8 / span 5; margin-top: 3rem; }
.figure__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.5rem, 2rem + 6vw, 8rem); line-height: .9; letter-spacing: -.05em; margin: 0 0 .5rem; font-variant-numeric: tabular-nums; color: var(--u-ink); }
.figure__label { color: var(--u-ink2); font-size: var(--step-0); line-height: 1.45; max-width: 22rem; margin: 0; }

/* ---------- Dein Weg ---------- */
.timeline { padding-block: 0 var(--section); }
.timeline__item { display: grid; grid-template-columns: minmax(6rem, 2fr) 7fr 3fr; gap: var(--gutter); padding: 2.4rem 0; border-top: 1px solid var(--u-line); align-items: start; }
.timeline__item:last-child { border-bottom: 1px solid var(--u-line); }
.timeline__no { font-family: var(--font-display); font-weight: 600; font-size: var(--step-4); line-height: .9; color: var(--u-bluetext); letter-spacing: -.04em; margin: 0; }
.timeline__title { font-size: var(--step-3); margin-bottom: .8rem; color: var(--u-ink); }
.timeline__body p { color: var(--u-ink2); font-size: var(--step-1); max-width: 36rem; margin: 0; }
.timeline__dur { justify-self: end; margin: 0; font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; padding: .5rem .9rem; border: 1px solid var(--u-line); border-radius: var(--curve); color: var(--u-ink); }

/* ---------- Kontakt-Block ---------- */
.kicta { padding-block: 0 var(--section); }
.kicta__inner { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gutter); align-items: center; background: var(--u-deep); color: var(--u-ondeep); border-radius: var(--curve-xl); padding: clamp(2.5rem, 6vw, 6rem); overflow: hidden; }
.kicta .section-title { color: var(--u-ondeep); }
.kicta__copy p { color: var(--u-ondeep2); font-size: var(--step-1); max-width: 30rem; margin: 1.5rem 0 2.2rem; }
.kicta__mask { color: var(--u-blue2); opacity: .9; }
.kicta__mask .circuit { width: 100%; max-width: 21rem; height: auto; margin-inline: auto; }
.kicta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.kicta .link-curve { color: var(--u-ondeep); }
.kicta .link-curve::after { border-color: var(--u-blue2); }

/* ---------- CTA-Banner der Unterseiten ---------- */
.cta-banner {
  background: var(--u-deep); color: var(--u-ondeep);
  margin: 0 var(--gutter) var(--section); padding: clamp(2.5rem, 6vw, 5rem) clamp(.5rem, 3vw, 3rem);
  border-radius: var(--curve-xl); overflow: hidden;
}
@media (min-width: 1330px) { .cta-banner { margin-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.cta-banner::before, .cta-banner::after { display: none; }
.cta-banner .display-md, .cta-banner h2 { color: var(--u-ondeep) !important; }
.cta-banner p,
[data-theme="light"] .cta-banner p, body[data-theme="light"] .cta-banner p,
[data-theme="light"] .cta-banner [style*="color:rgba(255,255,255"] { color: var(--u-ondeep2) !important; }
.cta-banner .btn::before { background: var(--u-ondeep); }
.cta-banner .btn:hover { color: var(--u-deep) !important; }

/* ---------- Seiten-Hero ---------- */
.page-hero--pro { position: relative; isolation: isolate; padding-top: clamp(9rem, 20vh, 13rem); padding-bottom: clamp(4rem, 8vw, 7rem); overflow: clip; background: transparent; border: 0; }
.page-hero--pro::after { display: none; }
.page-hero-inner { position: relative; z-index: 2; }
.pro-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2rem; font-size: var(--step--1); color: var(--u-ink2); }
.pro-crumbs a { text-decoration: none; color: inherit; }
.pro-crumbs a:hover { color: var(--u-bluetext); }
.pro-crumbs span[aria-hidden] { opacity: .5; }
.page-hero-title { font-size: var(--step-5); line-height: .97; letter-spacing: -.04em; max-width: 14ch; color: var(--u-ink); text-transform: none; font-style: normal; font-weight: 600; }
.page-hero-desc { font-size: var(--step-1); line-height: 1.5; color: var(--u-ink2); max-width: 40rem; margin-top: 2rem; }
.page-hero-art { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: 7rem; width: min(24vw, 340px); aspect-ratio: 289 / 380; opacity: .9; pointer-events: none; z-index: 1; }
.page-hero-photo { position: absolute; z-index: 1; right: 0; top: clamp(6rem, 12vh, 8rem); bottom: 0; width: min(40vw, 580px); overflow: hidden; border-radius: 6px 6px 0 clamp(90px, 14vw, 200px); background: var(--u-deep); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--u-bg) 70%, transparent), transparent 55%); }

/* ---------- Unterseiten: Bausteine ---------- */
.section { padding: var(--section) 0; }
.section--dark { background: transparent; border-top: 1px solid var(--u-line); }
.card { border-radius: var(--curve-lg); background: var(--u-card); border: 1px solid var(--u-line); transition: transform .6s var(--ease-out), border-radius .6s var(--ease-out), border-color .4s; }
.card:hover { transform: translateY(-6px); border-radius: 4px 72px 4px 4px; border-color: var(--u-line); box-shadow: none; }
.card::before { display: none; }
.card-icon { border-radius: var(--curve); background: transparent; border-color: var(--u-line); }
.motor-badge { background: transparent; border: 1px solid var(--u-line); border-radius: var(--curve); color: var(--u-bluetext); font-weight: 600; font-size: .72rem; letter-spacing: .14em; transform: none; }
.price-card { border-radius: var(--curve-lg); }
.price-card.featured { border-top: 3px solid var(--u-blue); }
.price-amount, .price-display-amount, .range-value, .stat-number { font-family: var(--font-display); font-weight: 600; letter-spacing: -.04em; font-style: normal; }
.price-label, .stat-label, .price-display-label { font-size: .72rem; font-weight: 500; letter-spacing: .16em; }

.booking-form { border-radius: var(--curve-lg); border: 1px solid var(--u-line); border-top: 3px solid var(--u-blue); background: var(--u-card); }
.form-label { font-size: .72rem; font-weight: 500; letter-spacing: .16em; color: var(--u-ink2); }
.form-control { border-radius: 2px; background: transparent; border-color: var(--u-line); color: var(--u-ink); }
.form-control:focus { border-color: var(--u-blue); background: transparent; }
.kart-option { border-radius: var(--curve); font-weight: 600; letter-spacing: 0; transform: none; }
.kart-option.selected { background: var(--u-blue); border-color: var(--u-blue); color: #fff; border-radius: 2px 22px 2px 2px; }
.payment-option input:checked + label { border-color: var(--u-blue); background: color-mix(in srgb, var(--u-blue) 10%, transparent); }
.price-display { background: transparent; border: 1px solid var(--u-line); border-left: 3px solid var(--u-blue); border-radius: var(--curve); }
input[type="range"] { accent-color: var(--u-blue); }
.form-tab-btn { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .95rem; }
.form-tab-btn.active, .form-tab-btn:hover { border-bottom-color: var(--u-blue); }
.back-to-top { clip-path: none; border-radius: var(--curve); width: 48px; height: 48px; background: var(--u-blue); color: #fff; z-index: 40; }
.back-to-top:hover { background: var(--u-ink); color: var(--u-bg); }

/* ---------- Footer ---------- */
#site-footer { background: var(--u-bg2); border-top: 0; border-radius: 6px 130px 0 0; margin-top: 2rem; overflow: hidden; }
.footer-logo { margin-bottom: 1rem; }
.footer-heading { font-family: var(--font-body); font-size: .7rem; font-weight: 500; letter-spacing: .24em; color: var(--u-ink2); }
.footer-links a { color: var(--u-ink); opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--u-bluetext); }
.footer-ticker { background: transparent; border-color: var(--u-line); }
.footer-ticker .ticker-track span:not(.sep) { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--u-ink2); opacity: 1; }
.footer-ticker .ticker-track .sep { color: var(--u-blue); }
.footer-wordmark { overflow: hidden; margin-top: 2rem; user-select: none; pointer-events: none; height: auto; }
.footer-wordmark span {
  display: block; font-family: var(--font-display); font-style: normal; font-weight: 600; font-stretch: 100%;
  font-size: 15vw; line-height: .9; letter-spacing: -.04em; text-transform: none; white-space: nowrap; text-align: center;
  color: color-mix(in srgb, var(--u-ink) 7%, transparent); -webkit-text-stroke: 0; background: none; margin-bottom: -.06em;
}

/* ---------- Lesbarkeit: Beschreibungstexte grösser (vor allem Desktop) ---------- */
.section p, .section li, .card p, .footer-brand p, .footer-links a, .footer-contact, .footer-links li { font-size: var(--step-0); line-height: 1.6; }
.footer-bottom, .footer-bottom a, .footer-bottom p { font-size: var(--step--1); }
.specimen__text { font-size: inherit; }
/* Texte, die in den Vorlagen fest klein gesetzt sind */
.section [style*="font-size:.9rem"], .section [style*="font-size:0.9rem"], .section [style*="font-size: .9rem"],
.section [style*="font-size:.875rem"], .section [style*="font-size:0.875rem"], .section [style*="font-size: .875rem"],
.section [style*="font-size:.85rem"], .section [style*="font-size:0.85rem"], .section [style*="font-size: .85rem"],
.cta-banner p { font-size: var(--step-0) !important; line-height: 1.6 !important; }
.section [style*="font-size:.8rem"], .section [style*="font-size:0.8rem"],
.section [style*="font-size:.75rem"], .section [style*="font-size:0.75rem"],
.section [style*="font-size:.7rem"], .section [style*="font-size:0.7rem"],
.section [style*="font-size:.65rem"], .section [style*="font-size:0.65rem"],
.section [style*="font-size:.6rem"], .section [style*="font-size:0.6rem"] { font-size: var(--step--1) !important; }
.form-label, .price-label, .stat-label, .price-display-label { font-size: .8rem; }
.form-control, .kart-option { font-size: var(--step-0); }

/* ---------- Reveal & Wort-Animation ---------- */
[data-reveal] { transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .06em .12em; margin: -.16em -.06em -.12em; }
.split-word > span { display: inline-block; will-change: transform; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .service-row__link { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 4rem; }
  .service-row__img { display: none; }
}
@media (max-width: 960px) {
  .uhero { display: block; padding-bottom: 5rem; }
  .uhero__grid { display: block; min-height: 0; }
  .uhero__media { position: relative; top: auto; right: auto; transform: none; width: 100%; aspect-ratio: 4 / 3; max-height: none; margin-top: 3rem; }
  .uhero__frame { border-radius: 4px 4px 90px 4px; }
  .uhero__frame::after { display: none; }
  .uhero__circuit { left: auto; right: -4%; bottom: auto; top: -30%; width: 30%; }
  .specimen { right: auto; left: 1rem; top: auto; bottom: -2rem; }
  .hero-ticks { left: auto; right: 0; top: auto; bottom: -2.6rem; }
  .scroll-cue { display: none; }

  .acts { height: auto; }
  .acts__stage { position: relative; height: auto; grid-template-columns: 1fr; padding-block: var(--section) 0; }
  .acts__art { display: none; }
  .acts__panels { display: grid; gap: 4rem; min-height: 0; }
  .act { position: relative; opacity: 1; visibility: visible; transform: none; }

  .feature { grid-template-columns: 1fr; border-radius: 4px 4px 70px 4px; }
  .feature__visual { min-height: 18rem; order: -1; }
  .service-row__link { grid-template-columns: 1fr 3rem; }
  .service-row__text { grid-column: 1 / 2; }
  .service-row__go { grid-row: 1; grid-column: 2; width: 2.6rem; height: 2.6rem; }
  .process__pin { min-height: 0; padding-block: var(--section); }
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .figure--1, .figure--2, .figure--3, .figure--4 { grid-column: auto; margin-top: 0; }
  .timeline__item { grid-template-columns: 1fr; gap: .8rem; }
  .timeline__dur { justify-self: start; }
  .kicta__inner { grid-template-columns: 1fr; border-radius: 4px 4px 70px 4px; }
  .kicta__mask .circuit { max-width: 11rem; margin: 0; }
  .page-hero-art { width: 52vw; right: -14vw; top: 6rem; opacity: .3; }
  .page-hero-photo { position: relative; top: auto; width: auto; height: 16rem; margin: 2.5rem var(--gutter) 0; border-radius: 4px 4px 70px 4px; }
  .page-hero-photo::after { display: none; }
  #site-footer { border-radius: 4px 70px 0 0; }
  .cta-banner { border-radius: 4px 4px 70px 4px; }
}
@media (max-width: 640px) {
  .uhero__title { font-size: clamp(2.7rem, 12.5vw, 4rem); }
  .figures__grid { grid-template-columns: 1fr; gap: 2rem; }
  .step:nth-child(even) { margin-top: 0; }
  .step { flex-basis: 78vw; min-height: 20rem; }
  .service-row__link { grid-template-columns: 1fr auto; gap: .8rem 1rem; }
  .service-row__no { grid-column: 1 / -1; padding: 0; }
  .service-row__title { grid-column: 1; }
  .service-row__go { grid-row: 1; grid-column: 2; }
  .service-row__text { grid-column: 1 / -1; }
  .service-row__link:hover, .service-row__link:focus-visible { padding-inline: 1rem; }
  .uhero__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .acts { height: auto; }
  .acts__stage { position: relative; height: auto; padding-block: var(--section) 0; }
  .acts__panels { display: grid; gap: 4rem; min-height: 0; }
  .act { position: relative; opacity: 1; visibility: visible; transform: none; }
  .uhero__frame { animation: none; }
}

/* ---------- Druck ---------- */
@media print {
  #site-header, .uhero__media, .scroll-cue, .footer-wordmark, .back-to-top { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
}
html { overflow-x: clip; }

/* Mobile-Menü: der Header mit Logo bleibt darüber sichtbar – das zweite Logo im Panel ausblenden */
.mobile-nav-logo > * { visibility: hidden; }


/* ---------- Rechtliches (Impressum) ---------- */
.legal { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 8rem); }
.legal__wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 6vw, 5rem); }
.legal__block { border-top: 1px solid var(--u-line); padding-top: 1.5rem; }
.legal__block--wide { grid-column: 1 / -1; }
.legal .legal__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: -.01em; text-transform: none; margin: 0 0 .9rem; color: var(--u-ink); }
.legal .legal__block p { font-size: var(--step-0); line-height: 1.65; color: var(--u-ink2); margin: 0 0 1rem; max-width: 60ch; }
.legal__block p:last-child { margin-bottom: 0; }
.legal__block a { color: var(--u-bluetext); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) { .legal__wrap { grid-template-columns: 1fr; } }


/* ---------- Helles Design: hervorgehobene Flächen ebenfalls hell ---------- */
[data-theme="light"] .feature__title em,
[data-theme="light"] .process h2 em, [data-theme="light"] .kicta h2 em,
[data-theme="light"] .step__no, [data-theme="light"] .kicta__mask,
[data-theme="light"] .cta-banner .blue, [data-theme="light"] .cta-banner em { color: var(--u-bluetext) !important; }
[data-theme="light"] .process__bar span { background: var(--u-blue); }
[data-theme="light"] .kicta .link-curve::after { border-color: var(--u-blue); }
[data-theme="light"] .step { background: rgba(255, 255, 255, .55); }
[data-theme="light"] .step--end { background: none; }
[data-theme="light"] .cta-banner { background: var(--u-deep) !important; }
[data-theme="light"] .cta-banner .btn-outline { color: var(--u-ink); border-color: color-mix(in srgb, var(--u-ink) 30%, transparent); }
.legal__stand { grid-column: 1 / -1; margin: 0; font-size: var(--step--1); color: var(--u-ink2); }

/* ---------- Events: Kalender für das Wunschdatum ---------- */
.ucal { position: relative; }
.ucal__btn { width: 100%; text-align: left; cursor: pointer; color: var(--u-ink2); font-family: inherit; }
.ucal__btn.has-value { color: var(--u-ink); }
.ucal__pop { position: absolute; z-index: 30; left: 0; top: calc(100% + .5rem); width: min(21rem, calc(100vw - 2rem)); padding: 1rem; background: var(--u-card); border: 1px solid var(--u-line); border-radius: var(--curve-lg); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.ucal__pop[hidden] { display: none; }
.ucal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.ucal__month { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--u-ink); }
.ucal__nav { width: 2.5rem; height: 2.5rem; border: 1px solid var(--u-line); border-radius: 50%; background: transparent; color: var(--u-ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.ucal__nav:hover:not(:disabled) { border-color: var(--u-blue); color: var(--u-bluetext); }
.ucal__nav:disabled { opacity: .3; cursor: default; }
.ucal__dow, .ucal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2rem; }
.ucal__dow span { text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--u-ink2); padding: .3rem 0; }
.ucal .ucal__day { aspect-ratio: 1; min-height: 2.5rem; border: 1px solid transparent; border-radius: 50%; background: color-mix(in srgb, var(--u-blue) 14%, transparent); color: var(--u-ink); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.ucal .ucal__day:hover:not(:disabled), .ucal .ucal__day:focus-visible { border-color: var(--u-blue); outline: none; }
.ucal .ucal__day:disabled { background: transparent; color: var(--u-ink2); opacity: .35; font-weight: 400; cursor: not-allowed; }
.ucal .ucal__day.is-selected { background: var(--u-blue); color: #fff; }
.ucal .ucal__hint { margin: .7rem 0 0; font-size: .82rem; color: var(--u-ink2); }

/* ---------- Rechtsseiten: Gruppentitel ---------- */
.legal .legal__group { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); letter-spacing: -.02em; text-transform: none; color: var(--u-ink); margin: 0; }
.legal .legal__group:not(:first-child) { margin-top: clamp(1.5rem, 4vw, 3rem); }

/* ---------- Cookie-Meldung «Boxenstopp» ---------- */
.pitstop {
  position: fixed; z-index: 900; left: 50%; bottom: clamp(.75rem, 2vw, 1.5rem); width: min(64rem, calc(100vw - 1.5rem));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem 1.75rem;
  padding: 1.25rem 1.5rem; background: var(--u-card); color: var(--u-ink);
  border: 1px solid var(--u-line); border-radius: var(--curve-lg); box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  transform: translate(-50%, calc(100% + 2rem)); transition: transform .55s var(--ease-out, cubic-bezier(.22, 1, .36, 1));
}
.pitstop[hidden] { display: none; }
.pitstop.is-open { transform: translate(-50%, 0); }
.pitstop__lights { display: grid; grid-template-columns: repeat(5, .8rem); gap: .35rem; padding: .55rem .6rem; background: #05070B; border-radius: 6px; }
.pitstop__lights i { width: .8rem; height: .8rem; border-radius: 50%; background: #2A0D0D; }
.pitstop.is-open .pitstop__lights i { animation: pitstop-light .01s linear forwards; }
.pitstop.is-open .pitstop__lights i:nth-child(1) { animation-delay: .5s; }
.pitstop.is-open .pitstop__lights i:nth-child(2) { animation-delay: .9s; }
.pitstop.is-open .pitstop__lights i:nth-child(3) { animation-delay: 1.3s; }
.pitstop.is-open .pitstop__lights i:nth-child(4) { animation-delay: 1.7s; }
.pitstop.is-open .pitstop__lights i:nth-child(5) { animation-delay: 2.1s; }
@keyframes pitstop-light { to { background: #F0342B; box-shadow: 0 0 10px rgba(240, 52, 43, .8); } }
.pitstop.is-go .pitstop__lights i { animation: none; background: #25C46A; box-shadow: 0 0 10px rgba(37, 196, 106, .8); }
.pitstop .pitstop__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.2; letter-spacing: -.01em; color: var(--u-ink); margin: 0 0 .35rem; }
.pitstop .pitstop__text { font-size: .95rem; line-height: 1.5; color: var(--u-ink2); margin: 0; max-width: 62ch; }
.pitstop .pitstop__text a { color: var(--u-bluetext); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.pitstop__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.pitstop__actions .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .pitstop { grid-template-columns: 1fr; gap: .9rem; padding: 1.1rem; max-height: calc(100svh - 1.5rem); overflow: auto; }
  .pitstop__lights { justify-self: start; }
  .pitstop__actions { justify-content: stretch; }
  .pitstop__actions .btn { flex: 1 1 12rem; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pitstop { transition: none; }
  .pitstop.is-open .pitstop__lights i { animation: none; background: #F0342B; }
}

/* ---------- Kontakt: Karte erst nach Zustimmung ---------- */
.map-gate { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .8rem; padding: 2rem; text-align: center; background: var(--u-card); }
.map-gate[hidden] { display: none; }
.map-gate .map-gate__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); color: var(--u-ink); margin: 0; }
.map-gate .map-gate__text { font-size: var(--step-0); color: var(--u-ink2); max-width: 26rem; margin: 0 0 .4rem; }
.pitstop .pitstop__actions .btn { font-size: .95rem; padding: .8rem 1.15rem; min-height: 2.9rem; }
.pitstop .pitstop__title { font-size: 1.2rem; }

/* ---------- Footer: Rechtslinks sauber umbrechen ---------- */
.footer-bottom > .flex { flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: flex-end; }
.footer-bottom > .flex a { white-space: nowrap; }
@media (max-width: 900px) {
  .footer-bottom { flex-direction: column-reverse; align-items: stretch; text-align: left; gap: 1.4rem; }
  .footer-bottom > .flex { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; justify-content: stretch; }
  .footer-bottom > .flex a { display: flex; align-items: center; min-height: 2.75rem; border-top: 1px solid var(--u-line); font-size: .95rem; }
  .footer-bottom > .flex a:nth-child(-n+2) { border-top: 0; }
  .footer-bottom > div:first-child { font-size: .85rem; }
}
.footer-bottom .footer-credit { white-space: nowrap; margin-left: .35rem; }
.footer-bottom .footer-credit a { text-decoration: underline; text-underline-offset: .2em; }
.footer-bottom .footer-credit a:hover { color: var(--u-bluetext); }
@media (max-width: 900px) { .footer-bottom .footer-credit { display: block; margin: .35rem 0 0; } }

/* ---------- Hell/Dunkel-Schalter: Wippschalter wie im Cockpit ----------
   Dunkles Design: Leuchtfeld leuchtet weiss (rechts gedrückt). Helles Design: Leuchtfeld aus (links gedrückt). */
.theme-toggle.rocker, body[data-theme="light"] .theme-toggle.rocker {
  position: relative; width: 76px; height: 38px; padding: 3px; flex-shrink: 0; cursor: pointer; overflow: visible;
  border: 0; border-radius: 7px; background: #05070A; perspective: 260px;
  box-shadow: 0 0 0 1px rgba(238, 242, 248, .3), 0 6px 14px rgba(0, 0, 0, .35);
  transition: box-shadow .3s;
}
body[data-theme="light"] .theme-toggle.rocker { box-shadow: 0 0 0 1px rgba(10, 19, 34, .25), 0 6px 14px rgba(10, 19, 34, .22); }
.theme-toggle.rocker:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--u-blue); }
.rocker__cap {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #565C69 0%, #3F444F 44%, #2C3038 56%, #1B1E24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .55);
  transform: rotateY(13deg); transform-origin: 50% 50%;
  transition: transform .28s cubic-bezier(.3, 1.6, .5, 1), background .28s;
}
[data-theme="light"] .rocker__cap {
  transform: rotateY(-13deg);
  background: linear-gradient(90deg, #1B1E24 0%, #2C3038 44%, #3F444F 56%, #565C69 100%);
}
.theme-toggle.rocker:active .rocker__cap { transition-duration: .08s; }
/* Griffmulden links */
.rocker__grip { position: absolute; left: 8px; top: 50%; width: 15px; height: 22px; margin-top: -11px;
  background: radial-gradient(circle, rgba(0, 0, 0, .75) 0 1.7px, rgba(255, 255, 255, .07) 1.8px 2.4px, transparent 2.5px) 0 0 / 7.5px 7.4px; }
/* Leuchtfeld mit Blitz rechts — leuchtet im dunklen Design */
.rocker__lamp { position: absolute; right: 7px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 3px;
  display: grid; place-items: center; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 8px 2px rgba(255, 255, 255, .9), 0 0 20px 6px rgba(190, 220, 255, .55);
  transition: background .3s, box-shadow .3s; }
.rocker__lamp svg { width: 19px; height: 19px; fill: none; stroke: #14171D; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.rocker__lamp .rocker__tip { fill: #14171D; stroke-width: 1; }
[data-theme="light"] .rocker__lamp { background: #C9CED6; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 -3px 5px rgba(0, 0, 0, .22); }
.theme-toggle.rocker:hover .rocker__lamp { box-shadow: 0 0 0 1px #fff, 0 0 10px 3px #fff, 0 0 26px 8px rgba(190, 220, 255, .7); }
[data-theme="light"] .theme-toggle.rocker:hover .rocker__lamp { background: #DDE1E7; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 -3px 5px rgba(0, 0, 0, .18); }
@media (prefers-reduced-motion: reduce) { .rocker__cap { transition: none; } }

/* ---------- 404: «Abflug ins Kiesbett» ---------- */
.e404 { padding: clamp(6.5rem, 9vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.e404__wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.e404 .e404__code { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 8vw, 7rem); line-height: .85; letter-spacing: -.05em; margin: 0 0 1rem; color: transparent; -webkit-text-stroke: 1.5px var(--u-line); }
.e404 .e404__code span { display: inline-block; color: var(--u-blue); -webkit-text-stroke: 0; animation: e404-spin 1.6s var(--ease-out) .5s both; }
@keyframes e404-spin { from { transform: rotate(-540deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.e404 .e404__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-5, clamp(2.4rem, 5vw, 4.2rem)); line-height: 1.02; letter-spacing: -.03em; text-transform: none; margin: 0 0 1.25rem; color: var(--u-ink); }
.e404 .e404__title em { font-style: italic; color: var(--u-bluetext); }
.e404 .e404__lead { font-size: var(--step-1); line-height: 1.45; color: var(--u-ink2); max-width: 38ch; margin: 0 0 1.5rem; }
.e404__timing { display: grid; grid-template-columns: auto auto 1fr; gap: 0 2rem; padding: 1rem 0; border-top: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line); margin-bottom: 1.5rem; }
.e404__timing div { display: grid; gap: .2rem; }
.e404__timing span { font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--u-ink2); }
.e404__timing strong { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--u-ink); font-variant-numeric: tabular-nums; }
.e404__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.e404__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: baseline; font-size: var(--step-0); }
.e404__links span { color: var(--u-ink2); flex-basis: 100%; }
.e404__links a { color: var(--u-ink); text-decoration: underline; text-decoration-color: var(--u-blue); text-underline-offset: .25em; padding: .35rem 0; }
.e404__links a:hover { color: var(--u-bluetext); }
/* Szene */
.e404__scene { border-radius: var(--curve-xl); overflow: hidden; background: var(--u-card); border: 1px solid var(--u-line); }
.e404__scene svg { display: block; width: 100%; height: auto; }
.e404__gravel { fill: #C9B48A; opacity: .22; }
.e404__gravel-dots circle, .e404__gravel-dots { color: #B79C68; }
#e404-gravel circle { fill: #B79C68; opacity: .8; }
.e404__asphalt { stroke: var(--u-ink); stroke-opacity: .14; stroke-width: 62; }
.e404__kerb { stroke: var(--u-blue); stroke-width: 7; stroke-dasharray: 14 14; }
.e404__line { stroke: var(--u-ink); stroke-opacity: .35; stroke-width: 2; stroke-dasharray: 10 12; }
.e404__skid { stroke: var(--u-ink); stroke-opacity: .55; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 230; stroke-dashoffset: 230; animation: e404-skid .7s ease-out .55s forwards; }
@keyframes e404-skid { to { stroke-dashoffset: 0; } }
.e404__kart { transform-box: view-box; transform-origin: 0 0; transform: translate(285px, 98px) rotate(-205deg); animation: e404-off 1.5s cubic-bezier(.2, .7, .2, 1) .2s both, e404-wobble 3.5s ease-in-out 2s infinite; }
@keyframes e404-off { 0% { transform: translate(-40px, 151px) rotate(0deg); } 40% { transform: translate(150px, 140px) rotate(-10deg); } 100% { transform: translate(285px, 98px) rotate(-205deg); } }
@keyframes e404-wobble { 0%, 100% { transform: translate(285px, 98px) rotate(-205deg); } 50% { transform: translate(285px, 98px) rotate(-200deg); } }
.e404 .k-tyre { fill: #05070B; }
[data-theme="dark"] .e404 .k-tyre, :root:not([data-theme="light"]) .e404 .k-tyre { fill: #3A465A; }
.e404 .k-body { fill: var(--u-blue); }
.e404 .k-helmet { fill: #F4F7FB; }
.e404__flag line { stroke: var(--u-ink); stroke-width: 3; stroke-linecap: round; }
.e404__flag path { fill: #FFC81E; transform-origin: 0 16px; animation: e404-flag 1.1s ease-in-out infinite alternate; }
@keyframes e404-flag { from { transform: skewY(-7deg) scaleX(1); } to { transform: skewY(7deg) scaleX(.9); } }
@media (max-width: 900px) {
  .e404__wrap { grid-template-columns: 1fr; }
  .e404__scene { order: -1; max-width: 26rem; }
  .e404__timing { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .e404__timing div:last-child { grid-column: 1 / -1; }
  .e404__actions .btn { flex: 1 1 12rem; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .e404 .e404__code span, .e404__flag path { animation: none; }
  .e404__skid { animation: none; stroke-dashoffset: 0; }
  .e404__kart { animation: none; }
}
