/* OBK Performance – BMW ISTA+ Download
   Layoutsprache übernommen von obk-performance.de (Stream & Glass). */

:root {
  --bg: #000000;
  --card: #070707;
  --surface-hover: rgba(255, 255, 255, 0.028);
  --fg: #F0F7FF;
  --muted: #8b9299;
  --faint: rgba(139, 146, 153, 0.55);
  --primary: #ff5500;
  --primary-soft: rgba(114, 205, 255, 0.07);
  --primary-line: rgba(114, 205, 255, 0.34);
  --border: rgba(240, 247, 255, 0.09);
  --border-soft: rgba(240, 247, 255, 0.05);
  --display: "Archivo", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1440px;
  --pad: 20px;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  letter-spacing: -0.006em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(114, 205, 255, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 2px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 12px;
}

.label-mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

@media (min-width: 768px) {
  :root {
    --pad: 40px;
  }
}

/* ---------- Hintergrund ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.backdrop__aura {
  position: absolute;
  inset: -35%;
  opacity: 0.025;
  background: conic-gradient(
    from 210deg at 50% 45%,
    transparent 0deg,
    transparent 210deg,
    rgba(114, 205, 255, 0.06) 250deg,
    transparent 300deg,
    transparent 360deg
  );
  filter: blur(50px);
  animation: aura 46s linear infinite;
}

.backdrop__streak {
  display: none;
  position: absolute;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 205, 255, 0.18), transparent);
  filter: blur(0.6px);
  opacity: 0.09;
}

.backdrop__streak--a {
  top: 22%;
  transform: rotate(-8deg);
}

.backdrop__streak--b {
  top: 58%;
  transform: rotate(-11deg);
  opacity: 0.18;
}

.backdrop__streak--c {
  top: 82%;
  transform: rotate(-6deg);
  opacity: 0.14;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@keyframes aura {
  to {
    transform: rotate(360deg);
  }
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
  transition: height 0.5s var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: 56px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand__word {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__word i {
  color: var(--primary);
  font-style: normal;
}

.brand__tag {
  display: none;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.site-nav {
  display: none;
  align-items: center;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link__num {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(139, 146, 153, 0.45);
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--fg);
}

.nav-link:hover .nav-link__num,
.nav-link.is-active .nav-link__num {
  color: var(--primary);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 1px;
  background: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language {
  position: relative;
}

.language-select {
  appearance: none;
  -webkit-appearance: none;
  height: 38px;
  max-width: 100%;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.language-select:hover {
  border-color: var(--primary-line);
  color: var(--fg);
}

.language-select option {
  background: #0a0a0a;
  color: var(--fg);
}

.language::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.menu-toggle:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.header-progress {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(240, 247, 255, 0.05);
}

.header-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(114, 205, 255, 0.25), var(--primary));
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .brand__tag {
    display: block;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-right .language {
    display: none;
  }
}

/* ---------- Mobile Navigation ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--border);
}

.mobile-menu__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 20px var(--pad);
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__link .num {
  width: 28px;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  color: rgba(139, 146, 153, 0.45);
}

.mobile-menu__link .txt {
  flex: 1;
  font-family: var(--display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.2s ease;
}

.mobile-menu__link:hover .txt {
  color: var(--primary);
}

.mobile-menu__foot {
  flex: 0 0 auto;
  padding: 20px var(--pad);
  border-top: 1px solid var(--border);
}

.mobile-menu__foot .language,
.mobile-menu__foot .language-select {
  width: 100%;
}

.mobile-menu__foot .language-select {
  height: 44px;
}

.mobile-menu__foot .btn {
  width: 100%;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Buttons ---------- */
/* Eigenes System: rechteckig, Label + Icon-Zelle, Kontur zeichnet sich von zwei Ecken ein,
   Lichtreflex folgt dem Zeiger (--bx/--by), Icon fährt durch die Zelle. */

.btn {
  --btn-h: 46px;
  --bx: 50%;
  --by: 50%;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: var(--btn-h);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: rgba(240, 247, 255, 0.025);
  background-image:
    linear-gradient(rgba(114, 205, 255, 0.85), rgba(114, 205, 255, 0.85)),
    linear-gradient(rgba(114, 205, 255, 0.85), rgba(114, 205, 255, 0.85)),
    linear-gradient(rgba(114, 205, 255, 0.85), rgba(114, 205, 255, 0.85)),
    linear-gradient(rgba(114, 205, 255, 0.85), rgba(114, 205, 255, 0.85));
  background-position: 0 0, 0 0, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-size: 0 1px, 1px 0, 0 1px, 1px 0;
  box-shadow: inset 0 0 0 1px rgba(240, 247, 255, 0.16);
  color: var(--fg);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-size 0.5s var(--ease),
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s ease-out;
}

.btn--lg {
  --btn-h: 50px;
}

/* Label mit Index-Strich an der linken Kante. */
.btn > span {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 22px;
  transition: transform 0.25s var(--ease);
}

.btn > span::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--primary);
  transform: scaleY(0.28);
  transform-origin: center;
  transition: transform 0.5s var(--ease);
}

/* Lichtreflex, folgt dem Zeiger. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130px circle at var(--bx) var(--by), rgba(114, 205, 255, 0.17), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

/* Einmaliger Lichtstreifen beim Hover. */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(240, 247, 255, 0.1), transparent);
  opacity: 0;
  transform: translateX(-120%) skewX(-18deg);
}

/* Icon-Zelle. */
.btn svg {
  box-sizing: content-box;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  padding: calc((var(--btn-h) - 14px) / 2);
  border-left: 1px solid rgba(240, 247, 255, 0.12);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.3s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
  background-color: rgba(114, 205, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(240, 247, 255, 0.09);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover::after {
  animation: btn-sweep 0.95s var(--ease) both;
}

.btn:hover > span::before,
.btn:focus-visible > span::before {
  transform: scaleY(1);
}

.btn:hover svg,
.btn:focus-visible svg {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #000000;
}

.btn:hover svg path {
  animation: btn-arrow-x 0.6s var(--ease) both;
}

.btn:hover svg:has(path[d^="M12 3v12"]) path {
  animation-name: btn-arrow-y;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.btn:active {
  background-color: rgba(114, 205, 255, 0.09);
  box-shadow:
    inset 0 0 0 1px var(--primary),
    inset 0 0 26px rgba(114, 205, 255, 0.1);
}

.btn:active > span {
  transform: translateY(1px);
}

.btn:active svg {
  background-color: #4fb4e8;
}

.btn--primary {
  box-shadow: inset 0 0 0 1px var(--primary-line);
  background-color: rgba(114, 205, 255, 0.045);
}

.btn--primary > span::before {
  transform: scaleY(0.4);
}

.btn--primary svg {
  border-left-color: var(--primary-line);
}

/* Sekundär: reine Textaktion mit gezogener Linie und Pfeil. */
.btn--secondary {
  --btn-h: 30px;
  min-height: 0;
  gap: 10px;
  padding: 6px 0;
  background-color: transparent;
  background-image: linear-gradient(var(--primary), var(--primary)), linear-gradient(rgba(240, 247, 255, 0.18), rgba(240, 247, 255, 0.18));
  background-position: 0 100%, 0 100%;
  background-size: 0 1px, 100% 1px;
  box-shadow: none;
  color: var(--muted);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: transparent;
  background-size: 100% 1px, 100% 1px;
  box-shadow: none;
  color: var(--fg);
}

.btn--secondary::before,
.btn--secondary::after,
.btn--secondary > span::before {
  display: none;
}

.btn--secondary > span {
  padding: 0;
}

.btn--secondary svg {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.btn--secondary:hover svg,
.btn--secondary:focus-visible svg {
  background: transparent;
  color: var(--primary);
}

@keyframes btn-sweep {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-18deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(520%) skewX(-18deg);
  }
}

@keyframes btn-arrow-x {
  0% {
    transform: none;
  }
  49% {
    transform: translateX(34px);
  }
  50% {
    transform: translateX(-34px);
  }
  100% {
    transform: none;
  }
}

@keyframes btn-arrow-y {
  0% {
    transform: none;
  }
  40% {
    transform: translateY(4px);
  }
  70% {
    transform: translateY(-1px);
  }
  100% {
    transform: none;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(240, 247, 255, 0.72);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip--accent {
  border-color: var(--primary-line);
  background: rgba(114, 205, 255, 0.05);
  color: var(--primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(114, 205, 255, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Abschnitte ---------- */

main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  z-index: 1;
}

.hero + .section {
  border-top-color: transparent;
}

/* Der Hero-Foto-Rand läuft schwarz aus – hier weich in die Seitenfarbe überführen. */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(var(--sp, 0) * 130% - 30%), rgba(114, 205, 255, 0.95) calc(var(--sp, 0) * 130% - 15%), transparent calc(var(--sp, 0) * 130%)),
    linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.hero + .section::before {
  display: none;
}

.section .eyebrow__idx {
  transition: color 0.5s var(--ease);
}

.section.is-active .eyebrow__idx {
  color: var(--primary);
}

.section-glow {
  background-image: none;
}

.section__inner {
  padding-top: clamp(40px, 4.6vw, 64px);
  padding-bottom: clamp(40px, 4.6vw, 64px);
}

.section[id] {
  scroll-margin-top: 72px;
}

.section-head {
  max-width: 56rem;
}

/* Kurze Eis-Linie, die sich beim Einblenden aufzieht. */
.section-head::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--primary-line), var(--border) 38%, transparent 82%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease) 0.1s;
}

.section-head.is-in::before {
  transform: scaleX(1);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__idx {
  color: var(--faint);
}

.display-md {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.heading-sm {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-desc {
  max-width: 40rem;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.reveal {
  opacity: 0;
}

/* Gestaffelt (--i je Geschwister, vom Skript gesetzt); Endzustand bleibt statisch,
   damit Hover- und Kipp-Transforms danach nicht blockiert werden. */
.reveal.is-in {
  opacity: 1;
  animation: reveal-in 1200ms var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 120ms);
}

.panel.reveal.is-in,
.video-frame.reveal.is-in {
  animation-name: reveal-mask;
  animation-duration: 1300ms;
}

.section-head.reveal.is-in {
  animation-name: reveal-fade;
  animation-delay: 0s;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translate3d(0, 3.6rem, 0) scale(0.965);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* Maske fährt von oben nach unten auf (beide Enden sind clip-path-Werte, damit es wirklich interpoliert). */
@keyframes reveal-mask {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0 round 14px);
    transform: translate3d(0, 2.6rem, 0) scale(0.98);
  }
  30% {
    opacity: 1;
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 14px);
    transform: none;
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
    transform: translate3d(0, 1.6rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal-soft {
  from {
    opacity: 0;
  }
}

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

.hero {
  position: relative;
  display: flex;
  min-height: min(100svh, 940px);
  align-items: flex-end;
  overflow: hidden;
  padding-top: 96px;
  background: #000000;
}

/* Weicher Auslauf: Foto -> tiefes Schwarz, ohne Kante. Links Lesbarkeit, unten nahtloser Übergang. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.3) 34%, transparent 66%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 20%);
}

.hero::after {
  top: auto;
  height: 46%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 28%,
    rgba(0, 0, 0, 0.72) 58%,
    rgba(0, 0, 0, 0.94) 80%,
    rgba(0, 0, 0, 0.985) 90%,
    #000000 100%
  );
}

/* Bildhöhe folgt der Fensterbreite (Seitenverhältnis 1920:1088): das ganze Foto skaliert mit. */
.hero__img {
  --img-h: 50.7vw;
  position: absolute;
  top: calc(var(--img-h) * -0.12);
  left: 0;
  width: 100%;
  height: var(--img-h);
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  object-position: 55% 50%;
  filter: saturate(1.08) contrast(1.1) brightness(1.04);
  opacity: 1;
  transform: scale(1.06);
  animation: hero-in 2200ms var(--ease) both;
}

/* Handy: ganzes Foto direkt unter der Kopfzeile. */
@media (max-width: 640px) {
  .hero__img {
    top: 64px;
  }
}

/* Einstieg: Foto fährt aus dem Dunkel heran. Das Ende ergibt sich aus dem Skript-Transform. */
@keyframes hero-in {
  from {
    transform: scale(1.24) translate3d(0, 3%, 0);
    filter: saturate(0.8) contrast(1.1) brightness(0.25);
  }
}

/* Einmaliger Lichtstreif über dem Fahrzeug. */
@keyframes hero-sweep {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 40px;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}

/* Lichtreflex-Ebene: wandert mit Zeiger (--hx/--hy) und Scroll (--hero-p). */
.hero__light {
  position: absolute;
  inset: -8% -4%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at calc(66% + var(--hx, 0) * 14%) calc(40% + var(--hy, 0) * 12%), rgba(114, 205, 255, 0.2), transparent 70%),
    linear-gradient(104deg, transparent calc(44% + var(--hero-p, 0) * 40%), rgba(240, 247, 255, 0.11) calc(50% + var(--hero-p, 0) * 40%), transparent calc(56% + var(--hero-p, 0) * 40%));
  mix-blend-mode: screen;
  opacity: calc(1 - var(--hero-p, 0) * 1.3);
  overflow: hidden;
}

.hero__light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, transparent 38%, rgba(240, 247, 255, 0.2) 49%, rgba(114, 205, 255, 0.16) 52%, transparent 62%);
  transform: translateX(-130%);
  animation: hero-sweep 2600ms var(--ease) 700ms forwards;
}

@media (max-width: 640px) {
  .hero__top {
    padding-top: 30px;
  }
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* OBK PERFORMANCE: klein, oben rechts. */
.hero__brand {
  position: absolute;
  top: 100px;
  right: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--fg);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__brand::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
  transform-origin: right;
  animation: line-draw 1.4s var(--ease) 0.5s both;
}

.hero__brand span {
  color: var(--primary);
}

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: 46px;
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 14px;
  height: 14px;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.hero__title {
  margin: clamp(28px, 6vh, 64px) 0 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.6vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.06em 0.08em 0;
}

.hero__title .line span {
  display: block;
  animation: line-up 1200ms var(--ease) both;
}

.hero__title .line--sub {
  margin-top: 0.1em;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.hero__title .line--sub span {
  color: rgba(240, 247, 255, 0.9);
}

@media (max-width: 640px) {
  .hero__title .line--sub {
    font-size: 0.55em;
  }
}

.hero__title em {
  color: var(--primary);
  font-style: normal;
}

@keyframes line-up {
  from {
    transform: translateY(112%) skewY(5deg);
    filter: blur(10px);
  }
  to {
    transform: none;
    filter: none;
  }
}

@keyframes line-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero__body {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.hero__desc {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__note {
  margin: 16px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .scroll-cue {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .hero__body {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 36px;
    margin-top: 32px;
  }

  /* Textblock sitzt hoch im Bild; der Hero endet kurz danach, damit der Ablauf direkt anschließt. */
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding-top: clamp(150px, 35vh, 350px);
  }

  .hero__inner {
    padding-bottom: clamp(32px, 5vh, 56px);
  }

  /* Kürzerer Hero: Auslauf nach Schwarz nur im unteren Drittel, damit das Auto hell bleibt. */
  .hero::after {
    height: 34%;
  }
}

/* ---------- Oberflächen ---------- */

.surface {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 20px 50px -40px rgba(0, 0, 0, 0.85);
  transition:
    transform 450ms var(--ease),
    opacity 650ms var(--ease),
    filter 650ms var(--ease),
    border-color 450ms var(--ease),
    background-color 450ms var(--ease),
    box-shadow 450ms var(--ease);
}

.surface:hover {
  transform: translateY(-2px);
  border-color: var(--primary-line);
  background: #0c0c0c;
  box-shadow: 0 30px 60px -45px rgba(0, 0, 0, 0.95);
}

/* ---------- Ablauf ---------- */

.steps-grid {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
}

/* Fortschrittsschiene über dem Raster: Spur + Füllung (--steps-fill 0..1, per Scroll gesetzt). */
.steps-grid::before,
.steps-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 1px;
  pointer-events: none;
}

.steps-grid::before {
  background: var(--border);
}

.steps-grid::after {
  height: 2px;
  top: -18.5px;
  background: linear-gradient(90deg, rgba(114, 205, 255, 0.35), var(--primary));
  box-shadow: 0 0 14px rgba(114, 205, 255, 0.5);
  transform: scaleX(var(--steps-fill, 0));
  transform-origin: left;
  transition: transform 160ms linear;
}

.step {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 22px 20px;
  overflow: hidden;
  outline: none;
}

/* Untere Kante füllt sich, sobald der Schritt erreicht ist. */
.step::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(114, 205, 255, 0.15));
  opacity: 0.4;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    transform 800ms var(--ease),
    opacity 450ms var(--ease);
}

.step.is-done::before {
  transform: scaleX(1);
}

.step.is-current::before,
.step.is-pinned::before {
  transform: scaleX(1);
  opacity: 1;
}

.step.is-current,
.step.is-pinned {
  --tick: 44px;
  border-color: var(--primary-line);
}

.step:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Große Konturnummer oben rechts; füllt sich mit Eisblau, wenn der Schritt aktiv ist. */
.step__num {
  position: absolute;
  top: 12px;
  right: 18px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 247, 255, 0.2);
  font-family: var(--display);
  font-size: clamp(3.6rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  transition:
    -webkit-text-stroke-color 450ms var(--ease),
    color 450ms var(--ease),
    transform 700ms var(--ease);
}

.step.is-done .step__num {
  -webkit-text-stroke-color: rgba(114, 205, 255, 0.5);
}

.step:hover .step__num,
.step:focus-visible .step__num,
.step.is-current .step__num,
.step.is-pinned .step__num {
  color: rgba(114, 205, 255, 0.14);
  -webkit-text-stroke-color: var(--primary);
  transform: translate3d(0, 4px, 0) scale(1.04);
}

.step h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.step p {
  max-width: 24rem;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step {
    min-height: 176px;
  }
}

@media (min-width: 1000px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- Download-Panel ---------- */

.download-panel {
  overflow: hidden;
}

.download-watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.2em;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 247, 255, 0.07);
  font-family: var(--display);
  font-size: clamp(7rem, 22vw, 20rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.7;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.download-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.download-lead {
  max-width: 38rem;
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.32;
  text-wrap: balance;
}

.note-line {
  display: flex;
  max-width: 34rem;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.note-line svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--primary);
}

.download-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 900px) {
  .download-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* ---------- Video ---------- */

.video-frame {
  overflow: hidden;
}

.video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(240, 247, 255, 0.025);
}

.video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

/* ---------- Entpacken ---------- */

.tools-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.tool-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 18px;
  align-items: center;
  padding: 22px;
}

.tool-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--primary-line);
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition:
    transform 600ms var(--ease),
    background-color 500ms var(--ease);
}

.tool-row:hover .tool-mark {
  background: rgba(114, 205, 255, 0.16);
  transform: rotate(-6deg) scale(1.06);
}

.tool-info h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tool-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-row:first-child .tool-tag {
  border-color: var(--primary-line);
  color: var(--primary);
}

.tool-row .btn {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 16px;
}

.footnote-line {
  display: flex;
  max-width: 46rem;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footnote-line svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--primary);
}

@media (min-width: 720px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- PSdZ ---------- */

.psdz-panel {
  overflow: hidden;
}

.psdz-watermark {
  position: absolute;
  right: -8px;
  bottom: -24px;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 247, 255, 0.07);
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

.psdz-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.psdz-lead {
  max-width: 38rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.psdz-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

@media (min-width: 900px) {
  .psdz-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* ---------- Browser ---------- */

.browser-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.browser-copy .section-desc {
  margin-top: 12px;
}

@media (min-width: 768px) {
  .browser-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .browser-copy {
    max-width: 52rem;
  }
}

/* ---------- Support ---------- */

.support-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.support-text {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.support-foot a {
  max-width: 100%;
  align-self: flex-start;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.support-foot a:hover {
  background-size: 100% 1px;
}

.support-foot p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .support-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 640px) {
  .support-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Karten-System ---------- */
/* Ein Look für alle Karten: gleiche Rundung, Kante, Eck-Marken, Zeiger-Licht und Hover. */

.panel,
.step,
.tool-row {
  --tick: 18px;
  --tick-c: rgba(114, 205, 255, 0.85);
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(var(--tick-c), var(--tick-c)) left top / var(--tick) 1px no-repeat,
    linear-gradient(var(--tick-c), var(--tick-c)) left top / 1px var(--tick) no-repeat,
    linear-gradient(var(--tick-c), var(--tick-c)) right bottom / var(--tick) 1px no-repeat,
    linear-gradient(var(--tick-c), var(--tick-c)) right bottom / 1px var(--tick) no-repeat,
    radial-gradient(70% 90% at 100% 0%, rgba(114, 205, 255, 0.075), transparent 62%),
    linear-gradient(155deg, rgba(240, 247, 255, 0.062), rgba(240, 247, 255, 0.012) 55%, rgba(240, 247, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(240, 247, 255, 0.08),
    0 30px 60px -44px #000;
  transform: translate3d(0, var(--lift, 0px), 0);
  transition:
    transform 700ms var(--ease),
    border-color 500ms var(--ease),
    box-shadow 700ms var(--ease),
    background-size 700ms var(--ease);
}

.panel:hover,
.step:hover,
.tool-row:hover {
  --tick: 56px;
  border-color: var(--primary-line);
  box-shadow:
    inset 0 1px 0 rgba(240, 247, 255, 0.12),
    0 40px 70px -40px #000,
    0 0 0 1px rgba(114, 205, 255, 0.05);
}

.step:hover,
.tool-row:hover,
.download-panel:hover,
.psdz-panel:hover {
  --lift: -5px;
}

/* Lichtreflex folgt dem Zeiger (Variablen setzt download.js); liegt unter dem Inhalt. */
.panel::after,
.step::after,
.tool-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(114, 205, 255, 0.17), transparent 62%);
  opacity: var(--lit, 0);
  transition: opacity 450ms var(--ease);
}

.download-panel,
.psdz-panel,
.support-panel {
  padding: clamp(24px, 3vw, 40px);
}

.browser-panel {
  padding: clamp(22px, 2.6vw, 32px) clamp(24px, 3vw, 40px);
}

/* Gleicher Abstand zwischen Abschnittskopf und Karten. */
.section-head + .steps-grid,
.section-head + .tools-grid,
.section-head + .panel {
  margin-top: 36px;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #060606, var(--bg));
}

.footer-grid {
  display: grid;
  gap: 24px;
  padding: 32px 0 28px;
}

.footer-wordmark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer-blurb {
  max-width: 20rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-mail {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.footer-mail:hover {
  background-size: 100% 1px;
}

.footer-mail svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.footer-col h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-block;
  padding: 2px 0;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.icon-link {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  transition:
    color 0.25s ease,
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

.icon-link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.45s var(--ease);
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: var(--primary-line);
  background: rgba(114, 205, 255, 0.05);
  color: var(--primary);
}

.icon-link:hover::before,
.icon-link:focus-visible::before {
  transform: scaleY(1);
}

.icon-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.icon-link svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Handy-Optimierung ---------- */

/* Kleine Tablets: gleiches Prinzip, Foto beginnt hier am oberen Rand. */
@media (min-width: 641px) and (max-width: 767px) {
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding-top: calc(50.7vw * 0.86);
  }
  .hero__inner {
    padding-bottom: 20px;
  }
  .hero + .section .section__inner {
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  /* Hero: Text direkt unter dem Foto statt am Bildschirmende – keine schwarze Lücke. */
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding-top: calc(64px + 50.7vw * 0.92);
  }

  .hero__top {
    padding-top: 0;
  }

  .hero__inner {
    padding-bottom: 16px;
  }
  /* Ablauf schließt direkt an den Hero an – kein leerer Block dazwischen. */
  .hero + .section .section__inner {
    padding-top: 20px;
  }

  /* Doppelt zum Logo in der Kopfzeile und liegt auf dem Fahrzeug. */
  .hero__brand {
    display: none;
  }

  .hero__body {
    margin-top: 24px;
  }

  /* Größere Tippfläche für Text-Buttons. */
  .btn--secondary {
    padding: 12px 0;
  }

  /* Ablauf: kompakte Zeilen statt hoher Kacheln. */
  .steps-grid {
    gap: 10px;
  }

  .step {
    min-height: 0;
    justify-content: center;
    padding: 18px 84px 18px 20px;
  }

  .step__num {
    top: 50%;
    right: 16px;
    margin-top: -0.5em;
    font-size: 2.8rem;
  }

  .step h3 {
    font-size: 1.08rem;
  }

  .step p {
    margin-top: 4px;
  }

  /* Footer: Linkspalten nebeneinander. */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Kleinere Viewports ---------- */

@media (max-width: 520px) {
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero__actions .btn,
  .download-action,
  .download-action .btn,
  .support-actions,
  .support-actions .btn {
    width: 100%;
  }

  .support-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-action {
    align-items: stretch;
  }
}

/* ---------- Bewegung & Effekte ---------- */

main {
  animation: page-in 650ms var(--ease) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.page-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.16;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  display: none;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(114, 205, 255, 0.12), transparent 62%);
  filter: blur(60px);
  mix-blend-mode: screen;
  transition: opacity 700ms var(--ease);
  will-change: transform;
}

@media (pointer: fine) {
  .cursor-glow {
    display: block;
  }
}

.hero__img,
.hero__inner,
.hero__title {
  will-change: transform, opacity;
}

/* 3D-Kippen des Videorahmens beim Scrollen. */
[data-scroll-tilt] {
  transform-origin: 50% 0;
  will-change: transform;
}

/* Wörter steigen aus einer Maske auf. */
.word {
  display: inline-flex;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
}

.word__inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(115%) skewY(6deg);
  will-change: transform;
}

.reveal.is-in .word__inner {
  animation: word-up 800ms var(--ease) both;
  animation-delay: calc(var(--wi, var(--i, 0)) * 60ms + 120ms);
}

.scroll-word {
  opacity: var(--scroll-opacity, 0.16);
  transition: opacity 120ms linear;
}

.reveal.is-in .scroll-word .word__inner {
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes word-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Magnetische Haupt-CTAs: Transform-Übergang kommt aus .btn. */
.is-magnetic {
  will-change: transform;
}

/* Karten kippen zum Zeiger und bekommen einen Lichtreflex. */
.is-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition:
    transform 500ms var(--ease),
    opacity 650ms var(--ease),
    filter 650ms var(--ease),
    border-color 500ms var(--ease),
    box-shadow 500ms var(--ease),
    background-color 500ms var(--ease);
}

.is-tilt:hover {
  --lift: -3px;
  border-color: var(--primary-line);
  box-shadow:
    inset 0 1px 0 rgba(240, 247, 255, 0.08),
    0 34px 70px -40px rgba(0, 0, 0, 0.95);
}

.is-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(240, 247, 255, 0.06),
    transparent 60%
  );
  opacity: var(--go, 0);
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}

/* Reduzierte Bewegung: Wegfahren, Parallaxe, Kippen und Masken entfallen –
   Einblenden, gezogene Linien, Farben und Lichtreflexe bleiben sichtbar. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main {
    animation: none !important;
  }

  .reveal.is-in,
  .panel.reveal.is-in,
  .video-frame.reveal.is-in,
  .section-head.reveal.is-in {
    animation: reveal-soft 800ms ease backwards !important;
    animation-delay: calc(var(--i, 0) * 90ms) !important;
  }

  .hero__title .line span,
  .hero__img {
    animation: reveal-soft 1100ms ease both !important;
  }

  .word__inner {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .scroll-word {
    opacity: 1;
  }

  .panel,
  .step,
  .tool-row,
  .step__num,
  .tool-mark,
  [data-scroll-tilt],
  [data-parallax],
  .is-tilt,
  .is-magnetic {
    transform: none !important;
  }

  .scroll-cue svg,
  .btn:hover svg path {
    animation: none !important;
  }

  .hero__light::before,
  .btn::after,
  .cursor-glow,
  .page-flow {
    display: none !important;
  }
}
