/* ==========================================================================
   HRT PERFORMANCE — Chiptuning Ulm
   Design system: "Leiterbahn" — cinematic dark, technical grotesk,
   circuit rail connecting numbered chapters.
   ========================================================================== */

:root {
  --bg: #060607;
  --bg-soft: #0b0b0d;
  --surface: #101012;
  --surface-2: #17171b;
  --line: #1e1e22;
  --line-strong: #2d2d33;

  --text: #f2f2f0;
  --text-dim: #9b9ba3;
  --text-faint: #5e5e67;

  --brand: #ff6a1f;
  --brand-soft: #ff8c4d;
  --brand-dim: rgba(255, 106, 31, 0.16);
  --brand-glow: rgba(255, 106, 31, 0.45);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: 1.25rem;
  --rail-offset: 2rem;
  --maxw: 1440px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t: 420ms;
  --t-slow: 900ms;

  --radius: 4px;
  --radius-lg: 10px;
}

@media (min-width: 768px) { :root { --gutter: 2.5rem; --rail-offset: 3.5rem; } }
@media (min-width: 1200px) { :root { --gutter: 4rem; --rail-offset: 5rem; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fine grain + vignette over the whole canvas */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
button, a, [role="button"], summary { cursor: pointer; }

svg.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brand); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 300;
  background: var(--brand); color: #fff;
  padding: 0.75em 1.25em; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.8rem;
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mono--brand { color: var(--brand); }
.mono--dim { color: var(--text-dim); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
}

.display {
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display b, .display strong { font-weight: 600; }
.display em { font-style: normal; color: var(--brand); }
.d1 { font-size: clamp(3rem, 9.5vw, 8.5rem); }
.d2 { font-size: clamp(2.25rem, 5.6vw, 4.75rem); }
.d3 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -0.025em; }
.d4 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; font-weight: 500; line-height: 1.15; }

.lede {
  font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.2rem);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 58ch;
  font-weight: 300;
}

.body-dim { color: var(--text-dim); font-weight: 300; }
.small { font-size: 0.9rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* ghost outline headline used as a section watermark */
.ghost {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 48px;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease),
              color var(--t) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease);
}
.btn .ico { font-size: 1.1em; transition: transform var(--t) var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(0.985); }

.btn--brand {
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 0 var(--brand-glow);
}
.btn--brand:hover { background: var(--brand-soft); box-shadow: 0 8px 30px -8px var(--brand-glow); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }

.btn--bare { padding-inline: 0; border-radius: 0; color: var(--text); }
.btn--bare:hover { color: var(--brand); }

.btn--full { width: 100%; }

/* circular icon button (reference-style) */
.circ {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.circ:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-dim); }
.circ .ico { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Boot / intro overlay
   -------------------------------------------------------------------------- */

.boot { display: none; }

html.is-booting { overflow: hidden; }
html.is-booting .boot {
  display: flex;
  position: fixed; inset: 0; z-index: 500;
  flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem;
  background: var(--bg);
  transition: opacity 600ms var(--ease), visibility 600ms;
}
html.boot-done .boot { opacity: 0; visibility: hidden; }

.boot-logo { height: 30px; width: auto; opacity: 0.9; }
.boot-bar {
  width: min(280px, 60vw); height: 1px; background: var(--line-strong);
  position: relative; overflow: hidden;
}
.boot-bar span {
  position: absolute; inset: 0 100% 0 0;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
  transition: right 120ms linear;
}
.boot-meta {
  display: flex; gap: 1.25rem; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint);
}
.boot-pct { color: var(--brand); font-variant-numeric: tabular-nums; }
.boot-skip {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.boot-skip:hover { color: var(--text); border-color: var(--text); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  padding-block: 1.1rem;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), padding var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,6,7,0.92), rgba(6,6,7,0));
  opacity: 1; transition: opacity var(--t) var(--ease);
}
.nav.is-stuck {
  background: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
  padding-block: 0.7rem;
}
.nav.is-stuck::before { opacity: 0; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.nav-links { display: none; }
@media (min-width: 1000px) {
  .nav-links { display: flex; align-items: center; gap: 2rem; }
  .nav-link {
    position: relative;
    font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-dim);
    padding-block: 0.35em;
    transition: color var(--t) var(--ease);
  }
  .nav-link::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--brand); transition: width var(--t) var(--ease);
  }
  .nav-link:hover { color: var(--text); }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
  .nav-link[aria-current="page"] { color: var(--text); }
}

.nav-cta { display: none; }
@media (min-width: 1000px) { .nav-cta { display: inline-flex; } }

.burger {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.burger:hover { border-color: var(--brand); color: var(--brand); }
.burger .ico { font-size: 1.15rem; }
.burger .ico-close { display: none; }
@media (min-width: 1000px) { .burger { display: none; } }

.drawer {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
body.drawer-open { overflow: hidden; }
body.drawer-open .burger .ico-menu { display: none; }
body.drawer-open .burger .ico-close { display: block; }

.drawer-list { display: flex; flex-direction: column; gap: 0.35rem; }
.drawer-link {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: 0.4rem;
  font-size: clamp(2rem, 9vw, 3.25rem); font-weight: 300; letter-spacing: -0.03em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.drawer-link .n { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-faint); }
.drawer-link[aria-current="page"] { color: var(--brand); }
.drawer-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: 7rem; padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: -8% 0 0 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,6,7,0.72) 0%, rgba(6,6,7,0.25) 30%, rgba(6,6,7,0.8) 72%, var(--bg) 100%),
    linear-gradient(95deg, rgba(6,6,7,0.9) 0%, rgba(6,6,7,0.35) 45%, rgba(6,6,7,0.05) 75%);
}
.hero-inner { width: 100%; }
.hero .display { max-width: 12ch; margin-top: 1rem; }
.hero .lede { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero-scroll {
  display: none;
  position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
  flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint);
}
@media (min-width: 768px) { .hero-scroll { display: flex; } }
.hero-scroll .line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--brand), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content: ""; position: absolute; inset-inline: 0; height: 12px;
  background: var(--brand); box-shadow: 0 0 10px var(--brand-glow);
  animation: scrollcue 2.4s var(--ease-io) infinite;
}
@keyframes scrollcue {
  0% { top: -14px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 46px; opacity: 0; }
}

/* metric strip under hero */
.metrics {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 900px) { .metric { border-bottom: 0; } .metric:last-child { border-right: 0; } }
.metric:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) { .metric:nth-child(2n) { border-right: 1px solid var(--line); } .metric:last-child { border-right: 0; } }
.metric-k { display: block; margin-bottom: 0.55rem; }
.metric-v { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.metric-v span { color: var(--brand); }

/* --------------------------------------------------------------------------
   Chapters + circuit rail
   -------------------------------------------------------------------------- */

.chapters { position: relative; padding-left: var(--rail-offset); }

.rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--line);
}
.rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, rgba(255,106,31,0.15), var(--brand));
  box-shadow: 0 0 14px var(--brand-glow);
  will-change: height;
}

.chapter { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }
.chapter + .chapter { border-top: 1px solid var(--line); }

.chapter-head { position: relative; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.chapter-node {
  position: absolute;
  left: calc(-1 * var(--rail-offset) - 5px); top: 0.55em;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--bg);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.chapter-node::before {
  content: ""; position: absolute; left: 100%; top: 50%;
  width: calc(var(--rail-offset) - 16px); height: 1px;
  background: var(--line);
  transition: background-color var(--t) var(--ease);
}
.chapter.is-active .chapter-node {
  border-color: var(--brand); background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-dim), 0 0 16px var(--brand-glow);
}
.chapter.is-active .chapter-node::before { background: var(--brand); }

.chapter-num { display: block; margin-bottom: 0.75rem; }
.chapter-title { max-width: 20ch; }
.chapter-intro { margin-top: 1.25rem; }

@media (min-width: 1000px) {
  .chapter-head--split {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem; align-items: end;
  }
  .chapter-head--split .chapter-intro { margin-top: 0; padding-bottom: 0.35rem; }
}

/* --------------------------------------------------------------------------
   Service accordion
   -------------------------------------------------------------------------- */

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1rem;
  padding-block: clamp(1.1rem, 2.5vw, 1.6rem);
  transition: color var(--t) var(--ease);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--brand); }
.acc-ico {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1.15rem;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.acc-item[open] .acc-ico { border-color: var(--brand); background: var(--brand-dim); }
.acc-name { font-size: clamp(1.15rem, 2.2vw, 1.75rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; }
.acc-tag { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); display: none; }
@media (min-width: 720px) { .acc-tag { display: block; } }
.acc-toggle { color: var(--text-faint); font-size: 1.1rem; transition: transform var(--t) var(--ease), color var(--t) var(--ease); }
.acc-item[open] .acc-toggle { transform: rotate(180deg); color: var(--brand); }
.acc-body {
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.25rem;
}
/* FAQ-Variante: nur Frage + Chevron, Antwort über die volle Breite */
.acc--faq .acc-item summary { grid-template-columns: 1fr auto; }
.acc--faq .acc-name { font-size: clamp(1.02rem, 1.5vw, 1.3rem); }
@media (min-width: 900px) {
  .acc--faq .acc-body { grid-template-columns: 1fr; padding-left: 0; max-width: 80ch; }
}

.acc-item[open] .acc-body { animation: acc-reveal 420ms var(--ease) both; }
@keyframes acc-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  .acc-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-left: 60px; }
}
.acc-body p { color: var(--text-dim); font-weight: 300; max-width: 60ch; }
.acc-list { display: grid; gap: 0.6rem; align-content: start; }
.acc-list li { display: flex; gap: 0.7rem; color: var(--text-dim); font-size: 0.95rem; font-weight: 300; }
.acc-list .ico { color: var(--brand); margin-top: 0.35em; font-size: 0.9rem; }

/* --- animated service icons (inline SVG so single parts can be addressed) --- */

/* Getriebe: cog turns */
.ico-cog { animation: cog-turn 10s linear infinite; }
@keyframes cog-turn { to { transform: rotate(360deg); } }

/* Motor Software: control unit pulses */
.ico-ecu .ecu-core,
.ico-ecu .ecu-halo { transform-box: fill-box; transform-origin: center; }
.ico-ecu .ecu-core { animation: ecu-core 2.4s var(--ease-io) infinite; }
.ico-ecu .ecu-halo { animation: ecu-halo 2.4s var(--ease-io) infinite; }
@keyframes ecu-core {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes ecu-halo {
  0% { opacity: 0.55; transform: scale(0.72); }
  70%, 100% { opacity: 0; transform: scale(1.3); }
}

/* Pops and Bangs: flame flickers */
.ico-flame .flame-outer,
.ico-flame .flame-inner { transform-box: fill-box; transform-origin: 50% 100%; }
.ico-flame .flame-outer { animation: flame-out 1.7s ease-in-out infinite; }
.ico-flame .flame-inner { opacity: 0.7; animation: flame-in 1.15s ease-in-out infinite; }
@keyframes flame-out {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(0.93, 1.07); }
  65% { transform: scale(1.06, 0.95); }
}
@keyframes flame-in {
  0%, 100% { opacity: 0.7; transform: scale(1, 1); }
  35% { opacity: 1; transform: scale(1.1, 0.88); }
  70% { opacity: 0.55; transform: scale(0.88, 1.12); }
}

/* ECU-Unlock: shackle opens and closes */
.ico-lock .lock-shackle { transform-box: fill-box; transform-origin: 100% 100%; animation: lock-open 3.6s var(--ease-io) infinite; }
.ico-lock .lock-pin { animation: lock-pin 3.6s var(--ease-io) infinite; }
@keyframes lock-open {
  0%, 26% { transform: rotate(0deg); }
  46%, 74% { transform: rotate(-32deg); }
  92%, 100% { transform: rotate(0deg); }
}
@keyframes lock-pin {
  0%, 26% { opacity: 1; }
  46%, 74% { opacity: 0.35; }
  92%, 100% { opacity: 1; }
}

.notice {
  display: flex; gap: 0.85rem; align-items: flex-start;
  margin-top: 1rem; padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255,106,31,0.28);
  background: rgba(255,106,31,0.06);
  border-radius: var(--radius);
  font-size: 0.85rem; color: var(--text-dim); font-weight: 300;
}
.notice .ico { color: var(--brand); font-size: 1rem; margin-top: 0.15em; }
.notice b { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 0.7rem; align-content: start; position: relative; }
.step-n { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--brand); }
.step-t { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.step-d { color: var(--text-dim); font-size: 0.92rem; font-weight: 300; }
a.step { transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
a.step:hover { background: var(--surface-2); }
a.step:hover .step-t { color: var(--brand); }

/* --------------------------------------------------------------------------
   Reference shots (portrait story cards — the originals carry baked-in specs)
   -------------------------------------------------------------------------- */

.shots { display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); grid-template-columns: 1fr; }
@media (min-width: 620px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .shots { grid-template-columns: repeat(3, 1fr); } }

.shot {
  display: block;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.shot:hover { border-color: var(--brand); transform: translateY(-4px); }
/* the originals are story graphics with baked-in specs -> never crop them */
.shot-img {
  position: relative; aspect-ratio: 4 / 5;
  background: #0d0d0f;
  display: grid; place-items: center;
}
.shot-img img { width: 100%; height: 100%; object-fit: contain; }
.shot-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}
.shot-cap .n { font-size: 0.95rem; font-weight: 400; letter-spacing: -0.01em; }
.shot-cap .g {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* image collage */
.collage { display: grid; gap: clamp(0.6rem, 1.2vw, 0.9rem); grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.collage .frame:first-child { grid-row: span 2; }
@media (max-width: 620px) { .collage { grid-template-columns: 1fr; } .collage .frame:first-child { grid-row: auto; } }

/* --------------------------------------------------------------------------
   Brand orbit
   -------------------------------------------------------------------------- */

.orbit-wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .orbit-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }

.orbit {
  --size: min(420px, 78vw);
  --r: calc(var(--size) / 2 - 30px);
  position: relative;
  width: var(--size); aspect-ratio: 1;
  margin-inline: auto;
  display: grid; place-items: center;
}
.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line);
}
.orbit-ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 250deg, var(--brand) 330deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin 9s linear infinite;
}
.orbit-ring--inner { inset: 17%; opacity: 0.6; }
.orbit-ring--inner::after { animation-duration: 14s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the track carries the rotation, each label counter-rotates to stay upright */
.orbit-track {
  position: absolute; inset: 0;
  animation: orbit-spin 45s linear infinite;
}
.orbit-item {
  position: absolute; top: 50%; left: 50%;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 45deg))
    translateY(calc(-1 * var(--r)))
    rotate(calc(var(--i) * -45deg));
  transition: color var(--t) var(--ease);
}
.orbit-label {
  display: block;
  animation: orbit-spin 45s linear infinite reverse;
}
.orbit-item--lead { color: var(--brand); font-size: 0.85rem; font-weight: 500; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit-core { position: relative; z-index: 1; text-align: center; display: grid; gap: 0.35rem; }
.orbit-core .n { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.orbit-core .n span { color: var(--brand); }

.brand-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.brand-row {
  background: var(--bg); display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.95rem 0.25rem;
  transition: background-color var(--t) var(--ease), padding-inline var(--t) var(--ease);
}
.brand-row:hover { background: var(--surface); padding-inline: 0.75rem; }
.brand-row .n { font-size: 1rem; font-weight: 400; }
.brand-row .m { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.brand-row--lead .n { color: var(--brand); font-weight: 500; }

/* --------------------------------------------------------------------------
   Split photo feature
   -------------------------------------------------------------------------- */

.feature { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.feature--flip > :first-child { order: 2; }
@media (max-width: 899px) { .feature--flip > :first-child { order: 0; } }

.frame {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
}
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.frame--tall img { aspect-ratio: 3 / 4; }
.frame--square img { aspect-ratio: 1 / 1; }
.frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,6,7,0.7));
  pointer-events: none;
}
.frame-cap {
  position: absolute; left: 1rem; bottom: 0.9rem; z-index: 1;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
}

.factlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 1rem 1.15rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.fact .k { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-faint); }
.fact .v { font-size: 0.98rem; font-weight: 400; text-align: right; }
.fact .v em { font-style: normal; color: var(--brand); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-cards { display: grid; gap: 1rem; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.ccard {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 0.9rem; align-content: start;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.ccard:hover { border-color: var(--brand); transform: translateY(-3px); background: var(--surface-2); }
.ccard .ico-lg { font-size: 1.5rem; color: var(--brand); }
.ccard .t { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.02em; }
.ccard .d { color: var(--text-dim); font-size: 0.92rem; font-weight: 300; }
.ccard .go { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { display: grid; gap: 0.45rem; margin-bottom: 1.15rem; }
.field label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-dim); }
.field label .req { color: var(--brand); }
.input, .textarea, select.input {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.85em 1em; min-height: 48px; color: var(--text);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus { outline: none; border-color: var(--brand); background: var(--surface-2); }
.textarea { min-height: 150px; resize: vertical; }
.field-err { font-size: 0.8rem; color: var(--brand-soft); display: none; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--brand-soft); }
.field.has-error .field-err { display: block; }

.check { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 1.25rem; }
.check input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--brand); flex: none; }
.check label { font-size: 0.85rem; color: var(--text-dim); font-weight: 300; }
.check a { color: var(--brand); text-decoration: underline; }

/* honeypot: off-screen, nie sichtbar, nicht fokussierbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.9rem; display: none; margin-top: 1rem; }
.form-note.ok { display: block; background: rgba(52,199,123,0.1); border: 1px solid rgba(52,199,123,0.35); color: #8fe3b4; }
.form-note.err { display: block; background: rgba(255,106,31,0.1); border: 1px solid rgba(255,106,31,0.35); color: #ffc6a3; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; background: var(--bg-soft); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer p.d { color: var(--text-dim); font-size: 0.92rem; font-weight: 300; max-width: 34ch; margin-top: 1rem; }
.footer h3 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 400; margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.7rem; }
.footer-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 300; transition: color var(--t) var(--ease); }
.footer-links a:hover { color: var(--brand); }
.fcontact { display: grid; gap: 0.8rem; }
.fcontact a, .fcontact span { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-dim); font-size: 0.95rem; font-weight: 300; }
.fcontact .ico { color: var(--brand); margin-top: 0.25em; }
.fsocial { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.fsocial a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-dim); transition: all var(--t) var(--ease); }
.fsocial a:hover { color: #fff; border-color: var(--brand); background: var(--brand); }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
}
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
/* Klickfläche auf min. 24px bringen (WCAG 2.2, 2.5.8) */
.footer-bottom nav a { display: inline-block; padding: 5px 3px; min-width: 24px; }
.footer-bottom a:hover { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Page header (subpages)
   -------------------------------------------------------------------------- */

.phead { position: relative; padding-top: clamp(8rem, 16vw, 12rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.phead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 82% 0%, rgba(255,106,31,0.13), transparent 62%);
}
.crumb { display: flex; gap: 0.5rem; align-items: center; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.25rem; }
.crumb a { display: inline-block; padding-block: 5px; }
.crumb a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 110%, rgba(255,106,31,0.2), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; justify-items: center; gap: 1.5rem; }
.cta .lede { text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* --------------------------------------------------------------------------
   Prose (legal pages)
   -------------------------------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-dim); font-weight: 300; margin-bottom: 0.9rem; }
.prose ul { margin-bottom: 1.25rem; }
.prose li { display: flex; gap: 0.6rem; }
.prose li::before { content: "—"; color: var(--brand); flex: none; }
.prose a { color: var(--brand); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

/* only hide when JS is available to reveal it again */
html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; transform: none; } }

/* utilities */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.center { text-align: center; }
.stack { display: grid; gap: 1.25rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
