/* Kante. Seitenstil. Engine-Klassen (.sc-*, [data-sc-*]) bleiben unangetastet. */
:root {
  --sc-canvas:     #0F1214;
  --sc-surface:    #181C1F;
  --sc-ink:        #E9ECEB;
  --sc-ink-soft:   #A3ACAE;
  --sc-accent:     #F2641C;
  --sc-accent-ink: #160B05;
  --sc-font-display: "Big Shoulders Display", system-ui, sans-serif;
  --sc-font-text:    "Familjen Grotesk", system-ui, sans-serif;
  --sc-font-mono:    "Familjen Grotesk", system-ui, sans-serif;
  --sc-shadow-color: 200 20% 3%;
  --papier: #ECE8DE;
  --papier-tinte: #16191B;
  --papier-leise: #5C6264;
  color-scheme: dark;
}
html { background: var(--sc-canvas); scrollbar-color: #3B4244 var(--sc-canvas); }
body { font-family: var(--sc-font-text); background: var(--sc-canvas); color: var(--sc-ink); }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 3px; }
input, select { caret-color: var(--sc-accent); }

/* Hohe, schmale Anzeige-Schrift: passt zur Senkrechten der Seite. */
.sc-display {
  font-family: var(--sc-font-display);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: .005em; line-height: .92;
}
.sc-display--xl { font-size: clamp(3.4rem, 1.6rem + 7.4vw, 9rem); }
.sc-display--lg { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.8rem); line-height: .95; }
.sc-body { color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.6; letter-spacing: .005em; }
.sc-body b { color: var(--sc-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .sc-display--xl { font-size: clamp(3rem, 1.6rem + 9vw, 4.4rem); }
  .sc-display--lg { font-size: clamp(2.1rem, 1.3rem + 4.4vw, 3rem); }
  .sc-body { font-size: 1.06rem; }
}

/* ---------- Kopf ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--sc-gutter);
  background: linear-gradient(color-mix(in oklab, var(--sc-canvas) 78%, transparent), transparent);
  pointer-events: none;
}
.kopf a { pointer-events: auto; }
.wortmarke { font: 900 26px/1 var(--sc-font-display); letter-spacing: .06em; color: var(--sc-ink); text-decoration: none; }
.wortmarke span, .fuss b { color: var(--sc-accent); }
.kopf__link {
  color: var(--sc-ink); font-weight: 600; font-size: var(--sc-t-sm);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in oklab, var(--sc-accent) 70%, transparent);
  transition: text-decoration-color 160ms var(--sc-ease-out);
}
.kopf__link:hover { text-decoration-color: var(--sc-accent); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 700 1rem/1 var(--sc-font-text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  color: var(--sc-accent-ink); background: var(--sc-accent); border: 0;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
  cursor: pointer;
}
.knopf:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: #FF7633; } }
/* Feines Raster im Knopf, über das alle paar Sekunden ein Lichtstreif läuft. */
.knopf--voll { position: relative; overflow: hidden; isolation: isolate; }
.knopf--voll::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .34) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat,
    radial-gradient(rgb(0 0 0 / .1) 1px, transparent 1.3px) 0 0 / 6px 6px;
  animation: streif 4.8s var(--sc-ease-in-out) infinite;
}
@keyframes streif { 0%, 55% { background-position: -200% 0, 0 0; } 100% { background-position: 200% 0, 0 0; } }

/* ---------- Hero ---------- */
.held h1 { max-width: 12ch; font-size: clamp(3rem, 1.6rem + 5.4vw, 7.4rem); }
.held__sub { margin-top: var(--sc-5); max-width: 36ch; color: #C5CCCD; }
.held .knopf { margin-top: var(--sc-6); }

/* ---------- Ausrüstung ---------- */
.ausruestung__raster {
  display: grid; gap: clamp(1.25rem, 2.6vw, 2.5rem);
  grid-template-columns: 1.15fr .8fr .8fr;
  grid-template-areas: "text a b" "text a c";
  align-items: start;
}
.ausruestung figure { margin: 0; }
.ausruestung figure img { display: block; width: 100%; height: auto; border-radius: 3px; }
.ausruestung figcaption { margin-top: var(--sc-3); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.5; max-width: 32ch; }
.ausruestung__text { grid-area: text; position: sticky; top: 14vh; padding-right: clamp(0rem, 2vw, 2rem); }
.ausruestung__text .sc-body { margin-top: var(--sc-5); max-width: 40ch; }
.ausruestung__bild--a { grid-area: a; margin-top: clamp(3rem, 10vw, 9rem) !important; }
.ausruestung__bild--b { grid-area: b; }
.ausruestung__bild--c { grid-area: c; }
.ablauf { list-style: none; margin: var(--sc-7) 0 0; padding: 0; border-top: 1px solid var(--sc-hairline); }
.ablauf li { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--sc-4); padding: 14px 0; border-bottom: 1px solid var(--sc-hairline); }
.ablauf b { font: 800 1.35rem/1.1 var(--sc-font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--sc-accent); }
.ablauf span { color: var(--sc-ink); line-height: 1.5; }
@media (max-width: 960px) {
  .ausruestung__raster { grid-template-columns: 1fr 1fr; grid-template-areas: "text text" "a b" "a c"; }
  .ausruestung__text { position: static; }
}
@media (max-width: 560px) {
  .ausruestung__raster { grid-template-columns: 1fr; grid-template-areas: "text" "a" "b" "c"; }
  .ausruestung__bild--a { margin-top: 0 !important; }
  .ablauf li { grid-template-columns: 5.5rem 1fr; }
}

/* ---------- Der Sprung (Höhepunkt) ---------- */
.schlucht { background: linear-gradient(#C9CED0, #9AA3A6 30%, #2A3438 70%, #13201F); }
.schlucht__fern {
  position: absolute; left: 50%; top: 0; translate: -50% 0;
  width: var(--fern-b, 100vw); will-change: transform;
}
.schlucht__fern img { display: block; width: 100%; height: auto; max-width: none; }
.schlucht__wand {
  position: absolute; top: 0; bottom: 0; width: clamp(80px, 17vw, 300px);
  background-repeat: repeat-y; background-size: 100% auto;
  will-change: background-position; z-index: 3;
  filter: brightness(.82) contrast(1.05);
}
.schlucht__wand--l { left: 0; background-image: url("assets/wand-l.webp"); }
.schlucht__wand--r { right: 0; background-image: url("assets/wand-r.webp"); }
.schlucht__wind { /* Gischt und Luftschlieren, nur bei Tempo sichtbar */
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: var(--wind, 0);
  background:
    repeating-linear-gradient(180deg, transparent 0 220px, rgb(233 236 235 / .28) 220px 420px, transparent 420px 900px) 22% 0 / 2px 1800px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 500px, rgb(233 236 235 / .2) 500px 640px, transparent 640px 1300px) 71% 0 / 2px 2600px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 120px, rgb(233 236 235 / .14) 120px 300px, transparent 300px 760px) 38% 0 / 1px 1520px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 340px, rgb(233 236 235 / .18) 340px 470px, transparent 470px 1100px) 86% 0 / 1px 2200px repeat-y;
  filter: blur(.6px);
}
.schlucht__seil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none; }
.schlucht__seil path { fill: none; stroke: var(--sc-accent); stroke-linecap: round; stroke-width: var(--seil-b, 4px); filter: drop-shadow(0 2px 3px rgb(0 0 0 / .35)); }
.springer {
  position: absolute; left: 50%; top: 0; z-index: 2;
  height: clamp(170px, 30svh, 330px); width: auto; max-width: none;
  translate: -49.39% 0; transform-origin: 49.39% 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 18px 24px rgb(5 10 12 / .35));
}
.zaehlen { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.zaehlen__grund {
  grid-area: 1 / 1; width: min(70vw, 760px); aspect-ratio: 1; border-radius: 50%; opacity: var(--zaehl, 0);
  background: radial-gradient(closest-side, rgb(12 16 18 / .82), rgb(12 16 18 / .5) 55%, transparent);
}
.zaehlen > :not(.zaehlen__grund) {
  grid-area: 1 / 1;
  font: 900 clamp(12rem, 8rem + 22vw, 30rem)/.8 var(--sc-font-display);
  color: var(--sc-ink); text-shadow: 0 6px 40px rgb(10 14 16 / .55);
  font-variant-numeric: tabular-nums;
}
.zaehlen .zaehlen__wort { color: var(--sc-accent); font-size: clamp(6rem, 3rem + 14vw, 17rem); text-transform: uppercase; }
.sprung__text {
  position: absolute; z-index: 6;
  left: calc(clamp(80px, 17vw, 300px) + 1.5rem); bottom: clamp(4.5rem, 10vh, 7rem);
  width: min(34rem, 36vw); display: grid;
}
.sprung__text > * { grid-area: 1 / 1; align-self: end; }
.sprung__text .sc-body { margin-top: var(--sc-4); }
/* Abschirmung nur unten links, wo die Zeilen stehen, als Geschwister des Texts */
.sprung__scrim {
  position: absolute; z-index: 5; left: 0; bottom: 0; width: min(66rem, 72vw); height: 64%; pointer-events: none;
  background: linear-gradient(to top, rgb(12 16 18 / .92) 0%, rgb(12 16 18 / .84) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 100%); mask-image: linear-gradient(to right, #000 58%, transparent 100%);
}
@media (max-width: 860px) {
  .schlucht__wand { width: 16vw; }
  .sprung__text { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; bottom: 5.6rem; }
  .sprung__scrim { width: 100%; height: 52%; -webkit-mask-image: none; mask-image: none; }
  .springer { height: 26svh; }
}

/* ---------- Hängen ---------- */
.haengen__sub { margin-top: var(--sc-5); margin-left: auto; max-width: 36ch; }
@media (max-width: 860px) { .haengen__sub { margin-left: 0; } }

/* ---------- Sprungschein ---------- */
.buehne--schein { background: var(--sc-canvas); }
.schein__grund {
  position: absolute; inset: 0;
  background: url("assets/schlucht.webp") 50% 92% / cover no-repeat;
  filter: saturate(.7) brightness(.32) blur(2px);
  transform: scale(1.04);
}
.schein__haenger {
  position: absolute; z-index: 2; top: 0; right: clamp(12%, 17vw, 20%);
  height: 70svh; width: 2px; transform-origin: 50% 0; will-change: transform;
}
.schein__seil { position: absolute; left: 0; top: 0; width: 3px; height: calc(100% - 4px); background: var(--sc-accent); border-radius: 2px; }
.schein__haenger img { position: absolute; top: calc(100% - 6px); left: 1px; height: clamp(150px, 24svh, 260px); width: auto; max-width: none; translate: -49.39% 0; }
.schein__inhalt {
  position: absolute; z-index: var(--sc-z-copy);
  inset: clamp(5rem, 12vh, 8rem) var(--sc-gutter) auto var(--sc-gutter);
  display: grid; gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 62rem;
}
.schein__kopf .sc-body { margin-top: var(--sc-4); max-width: 44ch; }
/* Der Sprungschein ist ein Papier-Objekt: helles Papier, Abriss mit Lochung. */
.schein {
  display: grid; grid-template-columns: 1fr 15.5rem;
  background: var(--papier); color: var(--papier-tinte);
  border-radius: 4px; transform: rotate(-1.2deg);
  box-shadow: 0 2px 3px rgb(0 0 0 / .3), 0 22px 50px -12px rgb(0 0 0 / .55);
  position: relative; isolation: isolate;
}
.schein::before { /* Papierfaser */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.33  0 0 0 0 0.3  0 0 0 0.16 0'/></filter><rect width='160' height='160' filter='url(%23p)'/></svg>");
}
.schein__haupt { padding: clamp(1.1rem, 2.4vw, 1.8rem); }
.schein__titel { margin: 0 0 14px; font: 800 1.05rem/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--papier-leise); }
.feld { display: grid; gap: 6px; margin-bottom: 12px; }
.feld--zwei { grid-template-columns: 8.5rem 1fr; gap: 12px; }
.feld--zwei > div { display: grid; gap: 6px; }
.feld label { font-size: var(--sc-t-sm); font-weight: 600; color: var(--papier-tinte); }
.feld input, .feld select {
  height: 44px; padding: 0 12px; border-radius: 3px; width: 100%;
  font: 500 1rem var(--sc-font-text); color: var(--papier-tinte);
  background: #FAF8F3; border: 1px solid #A9A69C; caret-color: var(--sc-accent);
  transition: border-color 160ms var(--sc-ease-out);
}
.feld input:focus, .feld select:focus { border-color: #B8460F; outline: none; box-shadow: 0 0 0 3px rgb(242 100 28 / .28); }
.feld__fehler { display: block; margin: -4px 0 10px; color: #A3360B; font-size: var(--sc-t-xs); font-weight: 600; }
.schein .knopf { width: 100%; margin-top: 4px; }
.schein__hinweis { margin: 10px 0 0; font-size: var(--sc-t-xs); color: var(--papier-leise); }
.schein.ist-gebucht .schein__hinweis { color: #A3360B; font-weight: 600; }
.schein__abriss {
  position: relative; padding: clamp(1.1rem, 2.4vw, 1.8rem) 1.2rem;
  border-left: 2px dashed #B9B5AA;
  background: linear-gradient(#E4DFD3, #E4DFD3);
  border-radius: 0 4px 4px 0;
}
.schein__abriss::before, .schein__abriss::after { /* Lochung am Abriss */
  content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: #0D1112;
}
.schein__abriss::before { top: -9px; } .schein__abriss::after { bottom: -9px; }
.schein__abriss-titel { margin: 0 0 10px; font: 800 1.05rem/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: .08em; color: #B8460F; }
.schein__abriss dl { margin: 0; }
.schein__abriss dl > div { padding: 8px 0; border-bottom: 1px solid #CFCABE; }
.schein__abriss dt { font-size: var(--sc-t-xs); color: var(--papier-leise); }
.schein__abriss dd { margin: 2px 0 0; font-size: .98rem; }
.schein__abriss dd b { font: 900 1.5rem/1 var(--sc-font-display); font-variant-numeric: tabular-nums; }
.fuss {
  position: absolute; z-index: var(--sc-z-copy); inset: auto var(--sc-gutter) 14px var(--sc-gutter);
  display: flex; justify-content: space-between; gap: 1rem; font-size: var(--sc-t-xs); color: var(--sc-ink-soft);
}
.fuss span:first-child { font: 900 16px/1 var(--sc-font-display); letter-spacing: .06em; color: var(--sc-ink); }
@media (max-width: 860px) {
  .schein__inhalt { inset: 4.4rem var(--sc-gutter) auto var(--sc-gutter); gap: .9rem; }
  .schein__kopf .sc-body { display: none; }
  .schein { grid-template-columns: 1fr; transform: rotate(-.6deg); }
  .schein__abriss { border-left: 0; border-top: 2px dashed #B9B5AA; border-radius: 0 0 4px 4px; padding: .7rem 1rem; }
  .schein__abriss::before, .schein__abriss::after { top: -10px; bottom: auto; }
  .schein__abriss::before { left: -9px; } .schein__abriss::after { left: auto; right: -9px; }
  .schein__abriss dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .schein__abriss dl > div { padding: 4px 0; }
  .schein__abriss dd b { font-size: 1.15rem; }
  .schein__abriss-titel { margin-bottom: 4px; }
  .schein__haupt { padding: .9rem 1rem; }
  .feld { margin-bottom: 8px; } .feld input, .feld select { height: 40px; }
  .schein__haenger { right: 6%; height: 30svh; opacity: .5; }
  .fuss { display: none; }
}

/* ---------- Höhenmesser ---------- */
.hoehe {
  position: fixed; z-index: var(--sc-z-chrome); right: 14px; top: 50%; translate: 10px -50%;
  display: grid; justify-items: end; gap: 12px;
  opacity: 0; transition: opacity 300ms var(--sc-ease-out), translate 300ms var(--sc-ease-out);
  pointer-events: none;
}
.hoehe.ist-an { opacity: 1; translate: 0 -50%; pointer-events: auto; }
.hoehe.ist-weg { opacity: 0; pointer-events: none; }
.hoehe__werte {
  display: grid; justify-items: end; gap: 2px; padding: 10px 12px; border-radius: 4px;
  background: color-mix(in oklab, #0D1112 80%, transparent); border: 1px solid var(--sc-hairline);
  box-shadow: inset 0 1px 0 rgb(233 236 235 / .06), var(--sc-e2); backdrop-filter: blur(8px);
  min-width: 7.6rem;
}
.hoehe__m { display: flex; align-items: baseline; gap: 4px; }
.hoehe__m b { font: 900 2.4rem/1 var(--sc-font-display); font-variant-numeric: tabular-nums; }
.hoehe__m small { font-size: 12px; color: var(--sc-ink-soft); }
.hoehe__klein { font-size: 12px; color: var(--sc-ink-soft); }
.hoehe__klein b { font: 800 1rem/1 var(--sc-font-display); color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.hoehe__skala {
  position: relative; width: 3px; height: 26vh; margin-right: 8px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, rgb(233 236 235 / .35) 0 1px, transparent 1px 10px);
}
.hoehe__skala::before { content: ""; position: absolute; left: -4px; right: -4px; top: 0; height: 2px; background: var(--sc-ink); }
.hoehe__skala::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 2px; background: #3FB8A0; }
.hoehe__skala i {
  position: absolute; left: 50%; top: calc((1 - var(--h, 1)) * 100%); width: 14px; height: 14px; translate: -50% -50%;
  border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 3px rgb(15 18 20 / .8);
}
.hoehe__akte { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; justify-items: end; }
.hoehe__akte a { position: relative; display: block; width: 30px; height: 18px; }
.hoehe__akte a::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 2px; translate: 0 -50%;
  background: rgb(233 236 235 / .35); transform-origin: 100% 50%; transition: background-color 160ms var(--sc-ease-out), scale 160ms var(--sc-ease-out);
}
.hoehe__akte a.ist-hier::before { background: var(--sc-accent); scale: 1.7 1; }
.hoehe__akte span {
  position: absolute; right: calc(100% + 6px); top: 50%; translate: 4px -50%;
  padding: 5px 8px; border-radius: 3px; background: #1A1F21; border: 1px solid var(--sc-hairline);
  font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--sc-ink);
  opacity: 0; pointer-events: none; transition: opacity 140ms var(--sc-ease-out), translate 140ms var(--sc-ease-out);
}
.hoehe__akte a:focus-visible span { opacity: 1; translate: 0 -50%; }
@media (hover: hover) and (pointer: fine) { .hoehe__akte a:hover span { opacity: 1; translate: 0 -50%; } }
@media (max-width: 860px) {
  .hoehe { top: auto; bottom: 12px; right: 10px; translate: 0 10px; grid-auto-flow: column; align-items: end; gap: 8px; }
  .hoehe.ist-an { translate: 0 0; }
  .hoehe__skala, .hoehe__akte { display: none; }
  .hoehe__werte { grid-auto-flow: column; align-items: baseline; gap: 10px; min-width: 0; padding: 7px 10px; }
  .hoehe__m b { font-size: 1.6rem; }
}

/* ---------- Handy-Hero ---------- */
@media (max-width: 860px) {
  .held h1 { max-width: none; }
  #kante .sc-scrim {
    background: linear-gradient(to top,
      color-mix(in oklab, var(--sc-canvas) 97%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 86%, transparent) 36%,
      color-mix(in oklab, var(--sc-canvas) 40%, transparent) 58%,
      transparent 74%);
  }
  .sc-copy--lead { bottom: clamp(5rem, 11vh, 7rem); }
}

@media (prefers-reduced-motion: reduce) {
  .knopf--voll::before { animation: none; }
  .schlucht__wind { display: none; }
}

/* Hero: dunkle Ecke unten links, dort wo die Zeilen stehen (Himmel und Kante sind hell) */
#kante .sc-scrim--lead {
  background: linear-gradient(to top right,
    color-mix(in oklab, var(--sc-canvas) 96%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 84%, transparent) 34%,
    color-mix(in oklab, var(--sc-canvas) 40%, transparent) 58%,
    transparent 76%);
}
#haengen .sc-scrim--trail {
  background: linear-gradient(to top left,
    color-mix(in oklab, var(--sc-canvas) 96%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 82%, transparent) 34%,
    color-mix(in oklab, var(--sc-canvas) 36%, transparent) 58%,
    transparent 76%);
}
@media (max-width: 860px) {
  #haengen .sc-scrim--trail {
    background: linear-gradient(to top,
      color-mix(in oklab, var(--sc-canvas) 97%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 88%, transparent) 36%,
      color-mix(in oklab, var(--sc-canvas) 40%, transparent) 58%,
      transparent 74%);
  }
}
[hidden] { display: none !important; }
@media (max-width: 560px) { .feld--zwei { grid-template-columns: 5.5rem 1fr; } }
