/* =========================================================
   benroits.media – Offline-Seite „Im Schnitt" (10/2026)
   Design: Cinematic Dark (siehe DESIGN-b2b.md). Tokens und Schriften wie B2B/2026/style.css.
   Bewegung: nur transform/opacity/clip-path; eine Eröffnungs-Sequenz; bei „Bewegung reduzieren" sofort im Endzustand.
   ========================================================= */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --surface: #17171a;
  --surface-2: #1f1f22;
  --text-primary: #f2f1ec;
  --text-muted: #8b8b85;
  --accent: #ff8000;
  --line: rgb(242 241 236 / 0.12);
  --font-display: "Archivo", "Helvetica Neue", system-ui, Arial, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-scroll: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --maxw: 1180px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text-primary); font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a, button { -webkit-tap-highlight-color: transparent; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--accent); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* --- Buttons: Pille, Pfeil im eigenen Kreis --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 52px; padding: 0 1.5rem;
  border-radius: 999px; font: 600 1rem/1 var(--font-body); white-space: nowrap; user-select: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--primaer { background: var(--accent); color: var(--bg); padding-right: 0.5rem; }
.btn-pfeil { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(11 11 12 / 0.14);
  transition: transform 200ms var(--ease-out); }
.btn--ghost { border: 1px solid rgb(242 241 236 / 0.42); }
.btn--klein { min-height: 46px; font-size: 0.92rem; padding-left: 1.1rem; }
.btn--klein .btn-pfeil { width: 34px; height: 34px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primaer:hover { background: #ff8f1f; }
  .btn--primaer:hover .btn-pfeil { transform: translate(2px, -2px) scale(1.06); }
  .btn--ghost:hover { border-color: var(--text-primary); background: rgb(242 241 236 / 0.06); }
}

/* --- Kopfzeile --- */
.kopf { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(0.9rem, 2vw, 1.4rem) var(--gutter); }
.kopf-logo img { width: auto; height: clamp(40px, 5vw, 54px); }
.kopf-logo { display: inline-flex; min-height: 44px; align-items: center; }

/* =========================================================
   Hero: Headline ragt ins Kinoband, darunter Schnitt-Timeline
   ========================================================= */
.hero { padding-top: clamp(6.5rem, 11vw, 8rem); display: grid; }
.hero-titel { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); margin-bottom: -0.42em;
  font: 800 clamp(2.1rem, 8.4vw, 6.4rem)/0.98 var(--font-display); font-stretch: 125%; letter-spacing: -0.035em; text-wrap: balance; }
.hero-titel .zeile { display: block; overflow: clip; padding-bottom: 0.06em; }
.hero-titel .zeile > span { display: inline-block; }

.band-rahmen { position: relative; }
.band { position: relative; z-index: 1; width: 100%; aspect-ratio: 2.39 / 1; overflow: hidden;
  max-height: max(320px, min(66vh, calc(100svh - 26rem))); /* Band + Timeline passen ins erste Bild */ background: #000; }
.band-media, .band-media img, .band-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-media img, .band-media video { object-fit: cover; }
.band-media video { opacity: 0; transition: opacity 600ms var(--ease-out); }
.band-media video.is-playing { opacity: 1; }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(11 11 12 / 0.5), transparent 32%, transparent 72%, rgb(11 11 12 / 0.38)),
              linear-gradient(0deg, rgb(11 11 12 / 0.72), transparent 45%),
              linear-gradient(180deg, rgb(11 11 12 / 0.35), transparent 22%); }
/* Schlitz: dünne orange Linie, aus der sich die Blende öffnet */
.schlitz { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--accent);
  opacity: 0; pointer-events: none; }

.band-tc { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem; top: clamp(0.9rem, 2vw, 1.4rem);
  font: 400 0.78rem/1 var(--font-mono); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.band-tc--links { left: var(--gutter); }
.band-tc--rechts { right: var(--gutter); }
.rec-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(255 128 0 / 0.2); }

/* Bauchbinde: wechselt mit dem Clip (offline.js) */
.bauchbinde { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(2.6rem, 6vw, 4.2rem); display: grid; gap: 0.35rem;
  justify-items: start; max-width: calc(100% - 2 * var(--gutter)); }
.bb-linie { width: 48px; height: 3px; background: var(--accent); margin-bottom: 0.4rem; transform-origin: left center; }
.bb-gross { font: 800 clamp(1.15rem, 2.6vw, 2rem)/1.05 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; }
.bb-klein { font: 500 clamp(0.85rem, 1.3vw, 1rem)/1.3 var(--font-body); color: rgb(242 241 236 / 0.82); }

/* --- Kapitel-Leiste im Video (nur mit JavaScript sichtbar): ein Segment je Clip, wie Story- bzw. Kapitel-Anzeigen.
   Erledigt = hell, laufend = füllt sich orange, kommend = transparent. Kein Kasten, liegt auf dem dunklen Verlauf. --- */
.kapitel { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(0.7rem, 1.6vw, 1.2rem);
  display: flex; align-items: flex-end; gap: clamp(0.7rem, 1.5vw, 1.2rem); }
.kapitel[hidden] { display: none; }
.band:has(.kapitel:not([hidden])) .bauchbinde { bottom: calc(clamp(0.7rem, 1.6vw, 1.2rem) + 44px + clamp(1.4rem, 3vw, 2.4rem)); }
.transport { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(242 241 236 / 0.42); background: rgb(11 11 12 / 0.28); color: var(--text-primary);
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out); }
.transport:active { transform: scale(0.94); }
.transport .ic-play { display: none; }
.transport[aria-pressed="true"] .ic-play { display: block; }
.transport[aria-pressed="true"] .ic-pause { display: none; }
@media (hover: hover) and (pointer: fine) { .transport:hover { border-color: var(--text-primary); background: rgb(11 11 12 / 0.5); } }

.spur { flex: 1; min-width: 0; display: flex; gap: clamp(4px, 0.6vw, 8px); list-style: none; }
.spur li { flex: 1 1 0; min-width: 28px; } /* Tippfläche ≥ 24 px auch für kurze Clips */
.clip { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; width: 100%; min-height: 44px; text-align: left;
  font: 500 0.8rem/1 var(--font-body); color: rgb(242 241 236 / 0.62); transition: color 200ms ease; }
.clip-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-nr { font: 700 0.72rem/1 var(--font-display); font-stretch: 112%; font-variant-numeric: tabular-nums; color: rgb(242 241 236 / 0.45);
  margin-right: 0.3em; transition: color 200ms ease; }
.clip-spur { position: relative; display: block; height: 3px; border-radius: 3px; overflow: hidden; background: rgb(242 241 236 / 0.26);
  transform-origin: center bottom; transition: transform 200ms var(--ease-out); }
.clip-fuellung { position: absolute; inset: 0; border-radius: inherit; background: rgb(242 241 236 / 0.9);
  transform: scaleX(0); transform-origin: left center; }
.spur li.is-aktiv .clip { color: var(--text-primary); }
.spur li.is-aktiv .clip-nr { color: var(--accent); }
.spur li.is-aktiv .clip-fuellung { background: var(--accent); }
.clip:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .clip:hover { color: var(--text-primary); }
  .clip:hover .clip-spur { transform: scaleY(1.67); }
}

.hero-fuss { display: grid; justify-items: center; gap: 1.6rem; text-align: center;
  padding: clamp(2rem, 4vw, 2.8rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem); }
.lead { max-width: 54ch; color: var(--text-muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); text-wrap: pretty; }
.lead strong { color: var(--text-primary); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }

/* =========================================================
   Laufband: Leistungen (pausiert beim Überfahren/Fokus)
   ========================================================= */
.laufband { display: flex; overflow: clip; border-block: 1px solid var(--line); background: var(--bg-2);
  padding-block: clamp(1.1rem, 2.6vw, 1.8rem); }
.laufband-spur { flex: none; display: flex; list-style: none; }
.laufband-spur li { display: flex; align-items: center; white-space: nowrap;
  font: 800 clamp(1.8rem, 5vw, 4rem)/1 var(--font-display); font-stretch: 125%; letter-spacing: -0.03em; }
.laufband-spur li:nth-child(even) { color: var(--text-muted); }
.laufband-spur li::after { content: ""; width: 0.28em; height: 0.28em; margin-inline: 0.7em; background: var(--accent); }

/* =========================================================
   Kontakt
   ========================================================= */
.kontakt { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.kontakt h2 { font: 800 clamp(2.4rem, 6vw, 4.6rem)/0.98 var(--font-display); font-stretch: 125%; letter-spacing: -0.035em;
  margin-bottom: 1.6rem; text-wrap: balance; }
.kontakt-text p { color: var(--text-muted); max-width: 44ch; text-wrap: pretty; }
.kontakt-text p + p { margin-top: 1rem; }

.zeilen { list-style: none; border-bottom: 1px solid var(--line); }
.zeile-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pfeil" "wert pfeil" "info pfeil";
  column-gap: 1rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--line); min-height: 44px; }
.zeile-name { grid-area: name; font: 800 clamp(1.35rem, 2.6vw, 1.9rem)/1.1 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em;
  transition: color 200ms ease; }
.zeile-wert { grid-area: wert; margin-top: 0.35rem; font-weight: 500; overflow-wrap: anywhere; }
.zeile-info { grid-area: info; font-size: 0.88rem; color: var(--text-muted); }
.zeile-pfeil { grid-area: pfeil; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgb(242 241 236 / 0.42); color: var(--text-primary);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out); }
.zeile-link--haupt .zeile-pfeil { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.zeile-link:focus-visible { outline-offset: 0; }
.zeile-link:active .zeile-pfeil { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .zeile-link:hover .zeile-name { color: var(--accent); }
  .zeile-link:hover .zeile-pfeil { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: translate(3px, -3px); }
}

/* --- Fußzeile --- */
.fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 1.6rem var(--gutter) calc(1.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--text-muted); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.fuss nav a { display: inline-flex; align-items: center; min-height: 44px; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .fuss nav a:hover { color: var(--text-primary); } }

/* --- Rechtstexte --- */
.recht { max-width: 760px; margin: 0 auto; padding: clamp(7.5rem, 14vw, 9.5rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.recht h1 { font: 800 clamp(1.7rem, 6.4vw, 2.8rem)/1 var(--font-display); font-stretch: 125%; letter-spacing: -0.035em;
  margin-bottom: 2.2rem; hyphens: auto; overflow-wrap: anywhere; }
.recht h2 { font: 700 clamp(1.1rem, 2.4vw, 1.35rem)/1.25 var(--font-display); font-stretch: 112%; margin: 2.2rem 0 0.7rem;
  hyphens: auto; overflow-wrap: anywhere; }
.recht p, .recht li { color: rgb(242 241 236 / 0.82); overflow-wrap: anywhere; }
.recht p + p { margin-top: 0.8rem; }
.recht ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.recht a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.recht .js-mail, .recht .js-tel { color: var(--text-primary); }

/* =========================================================
   Handy
   ========================================================= */
@media (max-width: 720px) {
  .band { aspect-ratio: 16 / 10; max-height: none; }
  .band-tc--rechts { display: none; }
  .band-tc--links { top: 0.8rem; }
  .hero-titel { margin-bottom: -0.36em; }
  .bauchbinde { bottom: 1rem; }
  .clip-name { display: none; } /* zu schmal für Namen – die Bauchbinde zeigt das laufende Kapitel */
  .clip { gap: 0.5rem; }
  .kontakt { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-actions .btn { width: 100%; }
  .kopf .btn--klein { padding-left: 0.9rem; font-size: 0.86rem; }
}
@media (max-width: 360px) {
  .kopf .btn--klein { font-size: 0; gap: 0; padding: 0 0.3rem; } /* nur der Pfeil-Kreis */
  .kopf .btn--klein .btn-pfeil { width: 38px; height: 38px; }
}

/* =========================================================
   Bewegung
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Eröffnung: Schlitz zieht auf → Blende öffnet sich → Bild setzt sich → Headline steigt auf → Rest folgt */
  .schlitz { animation: schlitz 1.25s var(--ease-out) 0.1s both; }
  .band { animation: blende 1.3s var(--ease-out) 0.55s both; }
  .band-media img, .band-media video { animation: setzen 2.4s var(--ease-out) 0.55s both; }
  .hero-titel .zeile > span { animation: aufsteigen 1.1s var(--ease-out) both; }
  .hero-titel .zeile:nth-child(1) > span { animation-delay: 0.8s; }
  .hero-titel .zeile:nth-child(2) > span { animation-delay: 0.95s; }
  .startseite .kopf, .band-tc { animation: einblenden 0.8s var(--ease-out) 1.4s both; }
  .bb-linie { animation: strich 0.7s var(--ease-out) 1.6s both; }
  .bb-gross, .bb-klein { animation: hoch 0.8s var(--ease-out) 1.7s both; }
  .bb-klein { animation-delay: 1.8s; }
  .kapitel { animation: hoch 0.8s var(--ease-out) 1.6s both; }
  .hero-fuss > * { animation: hoch 0.9s var(--ease-out) both; }
  .hero-fuss > :nth-child(1) { animation-delay: 1.7s; }
  .hero-fuss > :nth-child(2) { animation-delay: 1.8s; }
  .rec-punkt { animation: rec 1.6s ease-in-out infinite; }

  .laufband-spur { animation: laufen 42s linear infinite; }
  .laufband:focus-within .laufband-spur { animation-play-state: paused; }
  @media (hover: hover) and (pointer: fine) { .laufband:hover .laufband-spur { animation-play-state: paused; } }

  @keyframes schlitz { 0% { opacity: 1; transform: scaleX(0); } 40% { opacity: 1; transform: scaleX(1); } 70%, 100% { opacity: 0; transform: scaleX(1); } }
  @keyframes blende { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes setzen { from { transform: scale(1.12); } to { transform: scale(1); } }
  @keyframes aufsteigen { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
  @keyframes hoch { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes strich { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
  @keyframes laufen { from { transform: translateX(0); } to { transform: translateX(-100%); } }

  /* Kontakt: an die Scrollposition gekoppelt (Chrome, Edge, Safari 26); sonst sofort sichtbar */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .einblenden { animation: hoch linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .zeilen .einblenden:nth-child(2) { animation-range: entry 10% entry 95%; }
    .zeilen .einblenden:nth-child(3) { animation-range: entry 20% entry 100%; }
    .zeilen .einblenden:nth-child(4) { animation-range: entry 30% entry 100%; }
  }
}
/* Bewegung reduziert: Laufband steht und bricht um, statt zu laufen */
@media (prefers-reduced-motion: reduce) {
  .laufband { padding-inline: var(--gutter); }
  .laufband-spur { flex-wrap: wrap; flex: 1; justify-content: center; row-gap: 0.4rem; }
  .laufband-spur[aria-hidden="true"] { display: none; }
  .laufband-spur li { font-size: clamp(1.2rem, 3vw, 2rem); }
}
