/* ==========================================================================
   Nils Feller — Sportfotografie
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0c0e0d;
  --bg-2: #121614;
  --fg: #eeede7;
  --fg-dim: #8c918d;
  --line: rgba(238, 237, 231, 0.12);
  --line-strong: rgba(238, 237, 231, 0.28);
  --accent: #1d4940;
  --accent-hi: #6fb3a0;   /* helle Variante des Akzents für kleine Details auf Dunkel */

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1600px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* clip statt hidden: macht den Body auf iOS nicht zum eigenen Scroll-Container (sonst ruckelt das Scrollen) */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); margin: 0; }
.display {
  font-weight: 850; font-stretch: 68%;
  font-size: clamp(64px, 13vw, 220px);
  line-height: .82; letter-spacing: -.02em; text-transform: uppercase;
  margin: 0;
}
.display sup { font-size: 14px; vertical-align: top; letter-spacing: 0; font-weight: 400; color: var(--fg-dim); position: relative; top: .6em; margin-left: .3em; }
.display-sm { font-weight: 850; font-stretch: 68%; font-size: clamp(56px, 8vw, 120px); line-height: .85; display: block; }
.empty { color: var(--fg-dim); padding: 40px 0; margin: 0; }

/* ---------- Sichtbare Hilfslinien ---------- */
.guides {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.guides i { border-left: 1px solid var(--line); transform-origin: top; animation: guide-in 1.4s var(--ease) both; }
.guides i:last-child { position: absolute; right: var(--gutter); top: 0; bottom: 0; }
.guides i:nth-child(2) { animation-delay: .08s }
.guides i:nth-child(3) { animation-delay: .16s }
.guides i:nth-child(4) { animation-delay: .24s }
.guides i:nth-child(5) { animation-delay: .32s }
@keyframes guide-in { from { transform: scaleY(0); } }
/* Linien liegen über den Hero-Bildern, alle anderen Bilder liegen über den Linien */
.hl-card__media, .gallery__item, .a-thumb { position: relative; z-index: 2; }
@media (max-width: 700px) { .guides { grid-template-columns: repeat(2, 1fr); } .guides i:nth-child(3), .guides i:nth-child(4) { display: none; } }

/* Kreuzmarken an Abschnittskanten */
.section, .stats, .m-meta, .site-footer { position: relative; }
.section::before, .stats::before, .site-footer::before {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--line);
  /* nur zwischen den äusseren Hilfslinien */
  left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.cross { position: absolute; width: 11px; height: 11px; transform: translate(-50%, -50%); pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--fg); }
.cross::before { left: 5px; top: 0; width: 1px; height: 11px; }
.cross::after { top: 5px; left: 0; height: 1px; width: 11px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-stretch: 85%; font-size: 15px;
  border-radius: 999px; transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #fff; color: var(--accent); }
.btn--pill { background: var(--fg); color: var(--bg); padding: 6px 6px 6px 22px; }
.btn__icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 18px; transition: transform .4s var(--ease);
}
.btn--pill:hover .btn__icon { transform: rotate(45deg); }
.i-arrow { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  transition: background .4s, backdrop-filter .4s;
}
.site-header.is-scrolled { background: rgba(12, 14, 13, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (hover: none), (max-width: 760px) { .site-header.is-scrolled { background: rgba(12, 14, 13, .94); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.logo { display: flex; flex-direction: column; font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 21px; line-height: .86; letter-spacing: -.01em; justify-self: start; }
.nav { display: flex; gap: 34px; font-size: 15px; font-stretch: 90%; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header .btn { justify-self: end; }
@media (max-width: 760px) {
  .site-header__inner { grid-template-columns: 1fr auto; height: 64px; }
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: var(--screen-h, 100svh); display: flex; flex-direction: column; overflow: hidden; }
.hero__media { position: absolute; inset: 0; margin: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 2.4s var(--ease) both; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,14,13,.55) 0%, rgba(12,14,13,.1) 35%, rgba(12,14,13,.25) 60%, rgba(12,14,13,.92) 100%);
}
/* nur transform + opacity: läuft auf der Grafikkarte und blockiert das Scrollen nicht */
@keyframes hero-zoom { from { transform: scale(1.12); opacity: .35; } }


.hero__inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 40px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b2f; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  margin: 0; font-weight: 900; font-stretch: 64%;
  font-size: clamp(76px, 17.5vw, 300px); line-height: .8; letter-spacing: -.025em; text-transform: uppercase;
}
/* Platz oben, damit Umlaut-Punkte und Akzente nicht abgeschnitten werden */
.line { display: block; overflow: hidden; padding: .16em 0 .02em; margin-top: -.16em; }
.line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.line + .line > span { animation-delay: .1s; }
.line + .line + .line > span { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero__title .line:nth-child(2) { text-align: right; }

.hero__cta { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; animation: fade 1s .6s both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

.hero__bar { position: relative; z-index: 2; border-top: 1px solid var(--line-strong); }
.hero__bar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.hero__bar-inner > :last-child { justify-self: end; }
.hero__bar strong { font-weight: 700; }
.scroll-cue { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.scroll-cue i { width: 22px; height: 34px; border: 1.5px solid var(--fg); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--fg); border-radius: 2px; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 700px) {
  .hero__bar-inner { grid-template-columns: 1fr auto 1fr; font-size: 11px; }
}

/* ---------- Marquee ---------- */
.strip { border-block: 1px solid var(--line); overflow: hidden; padding: 12px 0; position: relative; z-index: 2; background: var(--bg); }
.strip__track { display: flex; width: max-content; animation: strip 90s linear infinite; will-change: transform; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  position: relative; flex: none; height: clamp(150px, 17vw, 240px); aspect-ratio: var(--r);
  margin-right: 12px; overflow: hidden; background: var(--bg-2);
}
.strip__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.75); transition: filter .5s, transform .8s var(--ease); }
.strip__item:hover img { filter: none; transform: scale(1.04); }
.strip__cap {
  position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.strip__item:hover .strip__cap { opacity: 1; transform: none; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (hover: none) { .strip__item img { filter: none; } }
@media (max-width: 600px) { .strip__item { height: 130px; margin-right: 8px; } .strip__track { animation-duration: 60s; } }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 6vw, 80px); }

/* ---------- Highlights ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) var(--gutter); }
.hl-card { display: block; }
.hl-card--lead { grid-column: 1 / -1; }
.hl-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.hl-card--lead .hl-card__media { aspect-ratio: 21 / 9; }
.hl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.hl-card:hover .hl-card__media img { transform: scale(1.04); filter: saturate(1.1); }
.hl-card__arrow {
  position: absolute; right: 16px; top: 16px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 22px;
  transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease);
}
.hl-card:hover .hl-card__arrow { transform: scale(1) rotate(0); }
.hl-card__meta { display: flex; justify-content: space-between; padding: 14px 0 10px; border-bottom: 1px solid var(--line); color: var(--fg-dim); }
.hl-card__title {
  margin: 14px 0 6px; font-weight: 850; font-stretch: 68%; text-transform: uppercase;
  font-size: clamp(32px, 3.6vw, 56px); line-height: .9; letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; gap: 0 .3em; align-items: baseline;
}
.hl-card--lead .hl-card__title { font-size: clamp(40px, 6vw, 96px); }
.hl-card__title em { font-style: normal; color: var(--accent-hi); }
.hl-card__venue { color: var(--fg-dim); margin: 0; }
@media (max-width: 760px) {
  .hl-grid { grid-template-columns: 1fr; }
  .hl-card--lead .hl-card__media { aspect-ratio: 4 / 3; }
  .hl-card__arrow { transform: none; width: 42px; height: 42px; }
}

/* ---------- Archiv ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px;
  transition: background .25s, border-color .25s, color .25s;
}
.chip:hover { border-color: var(--fg); }
.chip.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.archive { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.archive__head, .archive__row a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 160px 220px 24px; gap: 20px; align-items: center;
}
.archive__head { padding: 12px 0; color: var(--fg-dim); font-size: 10px; border-bottom: 1px solid var(--line); }
.archive__head span:last-child { text-align: right; }
.archive__row { border-bottom: 1px solid var(--line); }
.archive__row[hidden] { display: none; }
.archive__row a { padding: 22px 0; position: relative; transition: padding .4s var(--ease), color .3s; }
.archive__row a::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1;
}
.archive__row a:hover::before { transform: scaleY(1); }
.archive__row a:hover { padding-left: 14px; padding-right: 14px; }
.a-match { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 38px); line-height: 1; }
.a-match em { font-style: normal; color: var(--accent-hi); }
.archive__row a:hover .a-match em { color: #fff; }
.a-thumb { display: none; }
.a-date, .a-sport, .a-venue { color: var(--fg-dim); }
.a-sport small { display: block; font-size: 10px; margin-top: 4px; opacity: .7; }
.archive__row a:hover .mono { color: var(--fg); }
.a-count { text-align: right; }
.a-count i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.archive__row a:hover .a-count i { transform: translateX(4px); }
.section--archive { overflow: clip; }
.archive { position: relative; z-index: 0; }

.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 300px; aspect-ratio: 3 / 2; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.8);
  transition: opacity .25s, scale .35s var(--ease);
}
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }
.cursor-preview.is-visible { opacity: 1; scale: 1.25; }

@media (max-width: 900px) {
  .archive__head { display: none; }
  .archive__row a { grid-template-columns: 1fr auto; grid-template-areas: "date count" "match match" "sport venue"; gap: 8px 16px; }
  .a-date { grid-area: date; } .a-count { grid-area: count; } .a-match { grid-area: match; }
  .a-sport { grid-area: sport; } .a-venue { grid-area: venue; text-align: right; }
  .a-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; flex-basis: 100%; }
  .cursor-preview { display: none; }
}

/* ---------- Zahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 48px; padding-bottom: 120px; }
.stats > div { display: grid; gap: 10px; padding-top: 8px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; gap: 32px 0; } }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 28px; background: var(--bg-2); }
.footer-top { display: grid; gap: 12px; margin-bottom: 64px; }
.footer-mail { font-weight: 800; font-stretch: 70%; font-size: clamp(34px, 6vw, 96px); line-height: .9; text-transform: uppercase; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); word-break: break-word; }
.footer-mail:hover { background-size: 100% 2px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gutter); padding-bottom: 48px; }
.footer-grid p { margin: 6px 0 0; }
.footer-grid .label { margin: 0 0 10px; }
.link-line { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); line-height: 2; }
.link-line:hover { background-size: 0 1px; background-position: 100% 100%; }
.insta { display: inline-flex; align-items: center; gap: 12px; line-height: 2; }
.insta svg { width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.6; transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease); }
.insta svg .dot { fill: currentColor; stroke: none; }
.insta:hover svg { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: rotate(-8deg); }
.footer-word {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .78; letter-spacing: -.03em;
  font-size: 22.5vw; white-space: nowrap; color: var(--accent); margin: 0 0 20px;
  max-width: 100%;
}
@media (min-width: 1600px) { .footer-word { font-size: 360px; } }
.footer-bottom { display: flex; justify-content: space-between; color: var(--fg-dim); border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Spielseite ---------- */
.m-hero { position: relative; min-height: calc(var(--screen-h, 100svh) * .88); display: flex; overflow: hidden; }
.m-hero__media { position: absolute; inset: 0; margin: 0; }
.m-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 2s var(--ease) both; }
.m-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,13,.5), rgba(12,14,13,.05) 40%, rgba(12,14,13,.95)); }
.m-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 110px; padding-bottom: 36px; min-height: inherit; }
.back { width: fit-content; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; background: rgba(12,14,13,.4); transition: background .3s; }
.back:hover { background: var(--fg); color: var(--bg); }
.m-title { margin: 0; font-weight: 900; font-stretch: 64%; text-transform: uppercase; font-size: clamp(56px, 11vw, 190px); line-height: .84; letter-spacing: -.02em; overflow-wrap: anywhere; }
.m-title__score { color: var(--accent-hi); }
.m-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.m-title .line:nth-child(3) { text-align: right; }

.m-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; }
.m-meta > div { padding: 22px 0 22px; padding-right: 16px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.m-meta dd { margin: 8px 0 0; font-size: clamp(18px, 2vw, 26px); font-weight: 700; font-stretch: 80%; text-transform: uppercase; line-height: 1.05; }
@media (max-width: 700px) { .m-meta { grid-template-columns: 1fr 1fr; } }

/* Galerie im Blocksatz: Reihenfolge bleibt erhalten, Höhe pro Zeile einheitlich */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; --row: clamp(200px, 26vw, 420px); }
.gallery__item { position: relative; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row)); aspect-ratio: var(--r); overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__no { position: absolute; left: 10px; bottom: 8px; font-size: 10px; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.gallery__item:hover .gallery__no { opacity: 1; }
.gallery__fill { flex-grow: 1000; flex-basis: 0; }
@media (max-width: 600px) { .gallery { --row: 160px; gap: 6px; } }
/* Mit JS: Reihen exakt auf volle Breite, unvollständige letzte Reihe zentriert */
.gallery.is-justified { justify-content: center; }
.gallery.is-justified .gallery__item { flex: none; aspect-ratio: auto; }
.gallery.is-justified .gallery__fill { display: none; }

.m-cta { margin-bottom: clamp(64px, 9vw, 120px); }
.m-cta__inner {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label btn" "title btn";
  gap: 10px 32px; align-items: center; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); border-block: 1px solid var(--line-strong); isolation: isolate;
}
.m-cta__inner::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.m-cta__inner:hover::before { transform: scaleY(1); }
.m-cta .label { grid-area: label; transition: color .4s; }
.m-cta__title { grid-area: title; font-weight: 850; font-stretch: 68%; text-transform: uppercase; font-size: clamp(36px, 5.4vw, 84px); line-height: .9; letter-spacing: -.01em; }
.m-cta__inner:hover .label { color: var(--fg); }
.m-cta__btn {
  grid-area: btn; width: clamp(56px, 7vw, 88px); aspect-ratio: 1; border-radius: 50%; background: var(--fg); color: var(--bg);
  display: grid; place-items: center; font-size: clamp(20px, 2.4vw, 30px); transition: transform .6s var(--ease);
}
.m-cta__inner:hover .m-cta__btn { transform: rotate(45deg) scale(1.06); }

.m-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding-bottom: 120px; }
.m-nav a { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-strong); transition: border-color .3s; }
.m-nav a:hover { border-color: var(--accent-hi); }
.m-nav strong { font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(24px, 3vw, 44px); line-height: .95; }
.m-nav__next { text-align: right; grid-column: 2; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 9, 9, .97); display: grid; grid-template-rows: auto 1fr; }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.lightbox__bar button { justify-self: end; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
.lightbox__title { color: var(--fg-dim); }
.lightbox__stage { margin: 0; display: grid; place-items: center; padding: 24px var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100svh - 110px); object-fit: contain; }
.lightbox__stage img.is-shown { animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.985); } }
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(12,14,13,.6); font-size: 20px; transition: background .25s, color .25s;
}
.lightbox__prev:hover, .lightbox__next:hover { background: var(--fg); color: var(--bg); }
.lightbox__prev { left: var(--gutter); } .lightbox__next { right: var(--gutter); }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { display: none; } .lightbox__title { display: none; } .lightbox__bar { grid-template-columns: 1fr 1fr; } }

/* ---------- Text-Seiten / 404 ---------- */
.page-text { padding-top: 160px; padding-bottom: 120px; }
.page-text .prose { max-width: 68ch; margin-top: 48px; color: #cfcfc8; }
.page-text .prose h2 { font-stretch: 80%; text-transform: uppercase; font-size: 22px; margin: 40px 0 8px; color: var(--fg); }
.page-text .prose a { text-decoration: underline; }
/* ---------- 404 ---------- */
.nf { padding-top: 120px; padding-bottom: 120px; }
.nf-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px var(--gutter); align-items: end; padding-bottom: clamp(48px, 7vw, 96px); }
.nf-var { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; margin: 0; width: fit-content; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.nf-var__dot { width: 8px; height: 8px; border-radius: 50%; background: #f5c542; animation: blink 1s steps(1) infinite; }
.nf-var.is-decided { border-color: #ff3b2f; }
.nf-var.is-decided .nf-var__dot { background: #ff3b2f; animation: none; }
.nf-code { margin: 0; font-weight: 900; font-stretch: 62%; font-size: clamp(170px, 36vw, 520px); line-height: .78; letter-spacing: -.04em; }
.nf-code em { font-style: normal; color: var(--accent-hi); }
.nf-body { display: grid; gap: 18px; padding-bottom: .6em; }
.nf-title { margin: 0; font-weight: 850; font-stretch: 68%; text-transform: uppercase; font-size: clamp(48px, 6vw, 96px); line-height: .88; }
.nf-text { margin: 0; color: #cfcfc8; max-width: 38ch; font-size: clamp(16px, 1.4vw, 19px); }
.nf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 10px; }
.nf-link { color: var(--fg-dim); transition: color .3s; }
.nf-link:hover { color: var(--fg); }
.nf-recent { display: grid; gap: 18px; }
.nf-recent .archive__head { display: none; }
@media (max-width: 760px) { .nf-hero { grid-template-columns: 1fr; } .nf-body { padding-bottom: 0; } }

/* ---------- Match-Anfrage ---------- */
.rq { padding-top: 140px; padding-bottom: 140px; overflow-x: clip; }
.rq-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 6vw, 72px); }
.rq-steps { list-style: none; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; color: var(--fg-dim); }
.rq-steps li { display: flex; gap: 10px; align-items: baseline; transition: color .4s; }
.rq-steps li span { color: var(--line-strong); transition: color .4s; }
.rq-steps li.is-active, .rq-steps li.is-done { color: var(--fg); }
.rq-steps li.is-active span, .rq-steps li.is-done span { color: var(--accent-hi); }
.rq-steps__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); }
.rq-steps__bar b { position: absolute; inset: -1px 0; background: var(--accent-hi); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
@media (max-width: 600px) { .rq-steps li { font-size: 0; gap: 0; } .rq-steps li span { font-size: 12px; } }

.rq-form { max-width: 960px; }
.rq-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .rq-panel:not(.is-active) { display: none; }
.rq-panel.is-active { animation: rq-in .7s var(--ease) both; }
@keyframes rq-in { from { opacity: 0; transform: translateX(28px); } }
.rq-legend { padding: 0; margin: 0 0 36px; display: flex; flex-direction: column; gap: 10px; font-weight: 850; font-stretch: 70%; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 64px); line-height: .9; }
.rq-legend .mono { color: var(--accent-hi); font-weight: 400; }
html:not(.js) .rq-panel + .rq-panel { margin-top: 80px; }
html:not(.js) [data-next], html:not(.js) [data-prev] { display: none; }

.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px var(--gutter); }
.f { display: grid; gap: 8px; align-content: start; }
.f--full { grid-column: 1 / -1; }
.f-label em { font-style: normal; opacity: .6; }
.f-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); }
.f input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  color: var(--fg); font: 600 clamp(20px, 2.2vw, 28px)/1.2 var(--f-display); font-stretch: 85%;
  padding: 8px 0 12px; outline: none; color-scheme: dark; transition: border-color .3s;
  -webkit-appearance: none; appearance: none; min-height: 52px;
}
.f input::placeholder { color: rgba(238,237,231,.22); }
.f input:focus { border-color: var(--accent-hi); }
.f.has-error input { border-color: #ff6b5e; }
.f-err { font-family: var(--f-mono); font-size: 11px; color: #ff8a7f; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) { .f-grid { grid-template-columns: 1fr; } }

.f-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 20px; font-weight: 600; font-stretch: 85%; transition: background .25s, border-color .25s, color .25s; }
.choice span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; transition: background .25s; }
.choice:hover span { border-color: var(--fg); }
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.rq-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.rq-back { color: var(--fg-dim); transition: color .3s; }
.rq-back:hover { color: var(--fg); }
.btn--pill:disabled { opacity: .6; cursor: progress; }
.btn.is-busy .btn__icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.price { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px var(--gutter); align-items: end; }
.price__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.price__big .label { flex-basis: 100%; margin-bottom: 8px; }
.price__big strong { font-weight: 900; font-stretch: 62%; font-size: clamp(120px, 16vw, 230px); line-height: .78; letter-spacing: -.03em; }
.price__cur { font-size: 14px; color: var(--accent-hi); }
.price__list { margin: 0; border-top: 1px solid var(--line-strong); }
.price__list div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price__list dt { color: #cfcfc8; }
.price__list dd { margin: 0; font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }
.price__extra dd { color: var(--accent-hi); }
.price__note { grid-column: 1 / -1; color: var(--fg-dim); margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }

.f-accept { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; cursor: pointer; max-width: 60ch; }
.f-accept input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 4px; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.f-accept input:checked { background: var(--accent); border-color: var(--accent-hi); }
.f-accept input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.f-accept input:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.f-accept.has-error input { border-color: #ff6b5e; }
.f-accept + .f-err { display: block; margin-top: 10px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-alert { border: 1px solid #ff6b5e; color: #ff8a7f; padding: 14px 18px; margin: 0 0 32px; max-width: 960px; }

.rq-done { max-width: 820px; }
.rq-check { width: 72px; height: 72px; margin-bottom: 32px; }
.rq-check svg { width: 100%; height: 100%; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rq-check circle { stroke: var(--accent-hi); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .9s var(--ease) .1s forwards; }
.rq-check path { stroke: var(--fg); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rq-done__title { margin: 0 0 24px; font-weight: 900; font-stretch: 64%; text-transform: uppercase; font-size: clamp(56px, 9vw, 140px); line-height: .84; letter-spacing: -.02em; }
.rq-done__lead { font-size: clamp(18px, 1.8vw, 24px); font-stretch: 90%; color: #cfcfc8; margin: 0 0 40px; max-width: 46ch; }
.rq-done__lead strong { color: var(--fg); }

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hl-card.reveal .hl-card__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease) .1s; }
.js .hl-card.reveal.is-in .hl-card__media { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hl-card.reveal .hl-card__media { clip-path: none; }
}
