/* TopDownLaw (/topdownlaw) im Clausl-Design (clausl.css + werbung.css): weiß, Verlauf als Hervorhebung, Kopfleiste und
   Knöpfe wie die anderen Seiten. Eigene Schrift: Geist (Wortmarke, Überschriften) und Geist Mono (Etiketten).
   Von oben nach unten gebaut: Kopf, dann der Film als Scroll-Strecke (die Bühne klebt, js/topdownlaw-film.js), dann
   Mitbauen. Der Streifen mit den fünf Kapiteln klebt unter der Kopfleiste. Ohne JavaScript läuft der Film als Video. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF; }
.tdl { --tdl-display: "Geist", "Inter", system-ui, sans-serif; --tdl-mono: "Geist Mono", ui-monospace, monospace; }
.tdl .riesig, .tdl-claim { font-family: var(--tdl-display); font-weight: 650; letter-spacing: -.05em; }
.tdl .pill .tag { font-family: var(--tdl-mono); }
.tdl nav .kn { white-space: nowrap; }
.tdl-unsichtbar { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Der Streifen: klebt unter der Kopfleiste; das aktuelle Kapitel fährt in Stufen aus, trägt den Titel und zeigt mit
   der dunklen Linie, wie weit man darin ist */
.tdl-streifen { position: sticky; top: var(--tdl-nav, 62px); z-index: 50; display: flex; align-items: flex-start; height: 44px; background: var(--bg); }
.tdl-streifen a { position: relative; flex: 1 1 0; height: 8px; padding: 0 16px; background: var(--f); overflow: hidden; text-decoration: none;
  display: flex; align-items: center; transition: height .28s steps(4, end), flex-grow .28s steps(4, end); }
.tdl-streifen a span { font: 600 11px/1 var(--tdl-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  opacity: 0; transition: opacity .2s; }
.tdl-streifen a i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 0%); background: rgba(17, 17, 16, .55); opacity: 0; }
.tdl-streifen a:hover { height: 18px; }
.tdl-streifen a.an { height: 44px; flex-grow: 1.6; }
.tdl-streifen a.an span, .tdl-streifen a:focus-visible span { opacity: 1; }
.tdl-streifen a.an i { opacity: 1; }
.tdl-streifen a:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; height: 44px; }

/* Kopf: nur die Wortmarke und „Unser Recht als Matrix.“ — darunter fällt ein Pixel eine Haarlinie hinab: Hier geht es
   nach unten weiter. Derselbe Pixel erscheint im Film, wenn man an einer fertigen Folie steht (.tdl-tipp). */
.tdl-held { position: relative; min-height: calc(100vh - var(--tdl-kopf, 106px)); min-height: calc(100svh - var(--tdl-kopf, 106px));
  display: flex; align-items: center; text-align: center; padding: 48px 0 96px; }
.tdl-held .wrap { max-width: 980px; }
/* Hintergrund: Wien von oben — grau, hell, weich; zur Mitte (Schrift) und nach unten (Film) läuft es in Weiß aus */
.tdl-held { overflow: hidden; isolation: isolate; }
.tdl-hg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.tdl-hg video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.tdl-hg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(255, 255, 255, .82), rgba(255, 255, 255, .4) 75%, rgba(255, 255, 255, .15)),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 62%, var(--bg)); }
.tdl-held .riesig { font-size: clamp(56px, 10vw, 140px); }
.tdl-claim { margin: 14px 0 0; font-size: clamp(28px, 4.2vw, 56px); line-height: 1.1; }
.tdl-weiter { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 64px; margin-left: -22px; display: grid; place-items: center; }
.tdl-weiter span, .tdl-tipp span { position: relative; display: block; width: 1px; height: 44px; background: var(--line-2); }
.tdl-weiter span::after, .tdl-tipp span::after { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; background: var(--g2);
  animation: tdl-fallen 2.4s steps(8, end) infinite; }
@keyframes tdl-fallen { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 70% { transform: translateY(39px); opacity: 1; }
  100% { transform: translateY(39px); opacity: 0; } }
.tdl-tipp { position: absolute; left: 50%; bottom: 14px; margin-left: -1px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.tdl-tipp.zeigen { opacity: 1; }

/* Der Film: die Strecke ist so lang wie die Scroll-Abschnitte, die Bühne klebt unter Kopfleiste und Streifen */
.tdl-strecke { position: relative; }
.tdl-buehne { display: grid; place-items: center; padding: 24px var(--rand); }
.tdl-buehne video { width: min(100%, 1040px); border-radius: 22px; }
.js .tdl-buehne { position: sticky; top: var(--tdl-kopf, 106px); height: calc(100vh - var(--tdl-kopf, 106px));
  height: calc(100svh - var(--tdl-kopf, 106px)); padding: 0; overflow: hidden; }

/* Mitbauen */
.tdl-schluss { padding: clamp(80px, 14vh, 140px) 0 48px; text-align: center; }
.tdl-schluss .wrap { max-width: 980px; }
.tdl .knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 34px; }
.tdl-klein { margin: 26px 0 0; font-size: 14.5px; color: var(--muted); }
.tdl-klein a, .tdl-recht a { color: inherit; text-underline-offset: 3px; }
.tdl-recht { margin: clamp(56px, 10vh, 96px) 0 0; font-size: 13px; color: var(--faint); }

@media (max-width: 760px) {
  .tdl-lang { display: none; }
  .tdl-streifen { height: 36px; }
  .tdl-streifen a { padding: 0 10px; }
  .tdl-streifen a.an { height: 36px; flex-grow: 4; }
  .tdl-streifen a:hover { height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tdl-streifen a { transition: none; }
  .tdl-weiter span::after, .tdl-tipp span::after { animation: none; transform: translateY(20px); opacity: 1; }
}
