/* Hyphenhaus. Seitenstil. Engine-Klassen (.sc-*, [data-sc-*]) bleiben unangetastet;
   hier stehen nur Marke, Bühnen, Netzplan und Banderole.
   Regel des Geflechts: kein Abschnitt hat eine eigene Fläche. Alles ist durchsichtig,
   damit das Netz auf der Leinwand hinter allem durchläuft. */
:root {
  --sc-canvas:     #13110D;
  --sc-surface:    #1C1913;
  --sc-ink:        #ECE7DA;
  --sc-ink-soft:   #ADB09C;
  --sc-accent:     #EEEADF;   /* das Myzel-Weiß, einziger Leuchtton */
  --sc-accent-ink: #15130E;
  --sc-font-display: "Parkinsans", system-ui, sans-serif;
  --sc-font-text:    "Ysabeau Office", system-ui, sans-serif;
  --sc-font-mono:    "Ysabeau Office", system-ui, sans-serif;
  --sc-shadow-color: 40 30% 3%;
  --moos: #6F7A55;
  --papier: #E9E2D0;
  --papier-ink: #2A251B;
  --papier-soft: #5E5644;
  color-scheme: dark;
}
/* Nur html trägt den Grund. body bleibt durchsichtig, sonst läge sein Hintergrund
   über der Leinwand (z-index -1). */
html { background: var(--sc-canvas); scrollbar-color: #4a4537 var(--sc-canvas); }
body { background: transparent; font-family: var(--sc-font-text); 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: 4px; }
input, select, button { caret-color: var(--sc-accent); }

.geflecht {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: -1; pointer-events: none;
}

/* Heller Text auf Dunkel: eine Stufe mehr Gewicht, etwas mehr Laufweite und Zeilenabstand. */
.sc-display { font-family: var(--sc-font-display); font-weight: 700; letter-spacing: -0.028em; line-height: 1.02; }
.sc-display--xl { font-size: clamp(2.7rem, 1.4rem + 4.6vw, 6rem); line-height: .98; }
.sc-display--lg { font-size: clamp(2rem, 1.2rem + 2.7vw, 3.9rem); }
.sc-display--md { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.3rem); }
.sc-body { color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.62; letter-spacing: .006em; font-weight: 450; }
@media (max-width: 700px) {
  .sc-display--xl { font-size: clamp(2.2rem, 1.3rem + 5.4vw, 3.2rem); }
  .sc-display--lg { font-size: clamp(1.75rem, 1.1rem + 3.4vw, 2.4rem); }
  .sc-display--md { font-size: clamp(1.6rem, 1rem + 3.2vw, 2.2rem); }
  .sc-body { font-size: 1.04rem; }
}

.vorzeile {
  font: 600 var(--sc-t-sm)/1.2 var(--sc-font-text); letter-spacing: .12em; text-transform: uppercase;
  color: var(--moos); color: color-mix(in oklab, var(--moos) 60%, var(--sc-ink));
}

/* ---------- Kopf: Wortmarke, daneben der Wurzelknoten ---------- */
.kopf {
  position: fixed; top: 0; left: 0; z-index: var(--sc-z-chrome);
  display: flex; align-items: center; gap: 14px;
  padding: 18px var(--sc-gutter);
  pointer-events: none;
}
.kopf > * { pointer-events: auto; }
/* weicher Schatten hinter dem Kopf, damit vorbeiziehender Text die Wortmarke nicht kreuzt */
.kopf::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 92px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--sc-canvas) 30%, color-mix(in oklab, var(--sc-canvas) 70%, transparent) 62%, transparent);
}
.wortmarke {
  font: 700 21px/1 var(--sc-font-display); letter-spacing: -0.03em;
  color: var(--sc-ink); text-decoration: none;
}
.wurzel {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px 0 6px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--sc-ink-soft); font: 600 var(--sc-t-sm)/1 var(--sc-font-text); letter-spacing: .02em;
  transition: color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.wurzel__knoten {
  position: relative; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sc-accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--sc-accent) 16%, transparent);
}
.wurzel__knoten::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--sc-accent) 45%, transparent);
  animation: atmen 4.8s var(--sc-ease-in-out) infinite;
}
@keyframes atmen { 0%, 100% { transform: scale(.82); opacity: .2; } 50% { transform: scale(1); opacity: .8; } }
.wurzel:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .wurzel:hover { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-ink) 7%, transparent); }
}

/* ---------- Knopf ---------- */
.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; cursor: pointer;
  box-shadow: var(--sc-e2), inset 0 1px 0 rgba(255,255,255,.6);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
/* Feines Fadenmuster im Knopf, über das alle paar Sekunden ein Lichtstreif zieht. */
.knopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(40,34,24,.16) 1px, transparent 1.2px);
  background-size: 6px 6px;
}
.knopf::after {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-120%); animation: streif 5s var(--sc-ease-in-out) infinite;
}
@keyframes streif { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.knopf:active { transform: translateY(1px) scale(.98); }
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: #FFFDF6; } }

/* ---------- Bühnen: alle durchsichtig ---------- */
.buehne { background: transparent; }

/* 1 · Anstich */
.anstich__bild {
  position: absolute; margin: 0; right: 0; top: 0; bottom: 0; width: min(52vw, 820px);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 58% 52%, #000 48%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 62% at 58% 52%, #000 48%, transparent 78%);
}
.anstich__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.anstich__text { max-width: min(44rem, 54vw); }
.anstich__scrim { display: none; }
.anstich__text h1 { max-width: 11ch; }
.anstich__sub { margin: 22px 0 30px; max-width: 34ch; }
@media (max-width: 860px) {
  .anstich__bild { width: 100%; left: 0; height: 64%; bottom: auto; top: 6%;
    -webkit-mask-image: radial-gradient(ellipse 62% 56% at 58% 50%, #000 40%, transparent 76%);
            mask-image: radial-gradient(ellipse 62% 56% at 58% 50%, #000 40%, transparent 76%); }
  .anstich__text { max-width: none; bottom: clamp(1.6rem, 6vh, 3rem); }
  .anstich__sub { margin: 14px 0 22px; }
  .anstich__scrim { display: block; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .anstich__bild { height: 52%; top: 4%; }
  .anstich__sub { font-size: .95rem; margin: 10px 0 16px; }
}

/* Fluss-Abschnitte: keine Fläche, nur Abstand */
.feld-fluss { position: relative; background: transparent; }

/* 2 · Das Weiße */
.weiss { padding-top: clamp(3rem, 6vw, 6rem); }
.weiss__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.weiss__text { max-width: 34rem; }
.weiss__text h2 { margin-top: 14px; }
.weiss__bild { margin: 0; transform: translateY(8%); }
.weiss__rahmen { border-radius: 14px; overflow: hidden; box-shadow: var(--sc-e3); }
.weiss__rahmen img { width: 100%; height: auto; aspect-ratio: 1600 / 1062; object-fit: cover; }
.weiss__bild figcaption { margin-top: 14px; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
@media (max-width: 860px) {
  .weiss__raster { grid-template-columns: 1fr; }
  .weiss__bild { transform: none; }
}

/* 3 · Drei Sorten (Schiene) */
.buehne--sorten { display: flex; align-items: center; }
.schiene {
  gap: clamp(2.5rem, 6vw, 7rem); padding: 0 var(--sc-gutter); align-items: center;
  min-height: 70%;
}
.schiene > * { flex: none; }
.schiene__kopf { width: min(26rem, 78vw); }
.schiene__kopf p { margin-top: 18px; }
.sorte { width: clamp(15rem, 25vw, 22rem); display: flex; flex-direction: column; gap: 18px; }
.sorte:nth-of-type(2) { margin-top: 14vh; }
.sorte:nth-of-type(3) { margin-top: -10vh; }
.sorte img { width: 100%; height: auto; aspect-ratio: 900 / 1002; object-fit: cover; border-radius: 14px; box-shadow: var(--sc-e3); }
.sorte h3 { margin: 0; font: 700 clamp(1.3rem, 1rem + .9vw, 1.7rem)/1.1 var(--sc-font-display); letter-spacing: -0.02em; }
.sorte p { margin: 8px 0 0; color: var(--sc-ink-soft); line-height: 1.55; }
.sorte__daten { font-size: var(--sc-t-sm); color: color-mix(in oklab, var(--moos) 45%, var(--sc-ink)) !important; }
.schiene__notiz { width: min(20rem, 72vw); color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.5; margin: 0; }
@media (max-width: 860px) {
  .sorte { width: min(72vw, 18rem); }
  .sorte:nth-of-type(2), .sorte:nth-of-type(3) { margin-top: 0; }
  .sorte img { aspect-ratio: 1 / 1; }
}
@media (max-height: 700px) and (max-width: 860px) {
  .sorte img { width: 72%; }
}

/* 4 · Zehn Tage: fast leer */
.zehn { padding-block: clamp(6rem, 22vh, 14rem); }
.zehn__text { width: auto; max-width: 46rem; margin-left: max(var(--sc-gutter), 12vw); margin-right: var(--sc-gutter); padding: 0; }
.zehn__text p { margin-top: 22px; max-width: 36ch; }

/* 5 · Flush */
.flush__text { position: absolute; left: var(--sc-gutter); bottom: clamp(2.5rem, 9vh, 6rem); width: min(30rem, 36vw); z-index: var(--sc-z-copy); }
.flush__text > div { position: absolute; left: 0; bottom: 0; width: 100%; }
.flush__text p { margin-top: 14px; }
@media (max-width: 860px) {
  .flush__text { width: auto; right: var(--sc-gutter); bottom: clamp(1.5rem, 5vh, 3rem); }
}

/* 6 · Pfanne */
.pfanne { padding-top: clamp(2rem, 5vw, 5rem); }
.pfanne__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.pfanne__bild { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--sc-e3); }
.pfanne__bild img { width: 100%; height: auto; aspect-ratio: 1600 / 1062; object-fit: cover; }
.pfanne__text { max-width: 30rem; padding-top: 4vh; }
.handgriffe { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.handgriffe li { color: var(--sc-ink-soft); line-height: 1.5; }
.handgriffe b { display: block; color: var(--sc-ink); font: 700 1.1rem/1.2 var(--sc-font-display); letter-spacing: -0.01em; margin-bottom: 2px; }
.inhalt { margin: 30px 0 0; display: grid; gap: 10px; }
.inhalt div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; }
.inhalt dt { color: color-mix(in oklab, var(--moos) 45%, var(--sc-ink)); font-weight: 700; font-size: var(--sc-t-sm); letter-spacing: .04em; padding-top: 2px; }
.inhalt dd { margin: 0; color: var(--sc-ink); }
@media (max-width: 860px) { .pfanne__raster { grid-template-columns: 1fr; } .pfanne__text { padding-top: 0; } }

/* 7 · Block */
.buehne--block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(1.5rem, 5vw, 6rem); padding: 84px var(--sc-gutter) 56px; }
.block__text { max-width: 30rem; }
.block__lead { margin-top: 16px; }
.wahl { border: 0; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wahl legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: var(--sc-t-sm); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in oklab, var(--moos) 50%, var(--sc-ink)); }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid color-mix(in oklab, var(--sc-ink) 30%, transparent); color: var(--sc-ink);
  font-weight: 600; hyphens: manual;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.wahl input:checked + span { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
.wahl input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .wahl label:hover span { border-color: var(--sc-accent); } }

.block__klotz { position: relative; height: min(74svh, 640px); display: flex; align-items: center; justify-content: center; }
.band {
  position: relative; width: min(100%, 25rem); padding: 22px 24px 20px;
  background: var(--papier); color: var(--papier-ink); border-radius: 3px;
  box-shadow: 0 2px 3px rgba(10,8,4,.35), 0 18px 40px -10px rgba(10,8,4,.6);
  transform: rotate(-1.2deg);
}
/* Papierfaser im Band */
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; 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='f'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .18 0'/></filter><rect width='160' height='160' filter='url(%23f)'/></svg>");
}
.band > * { position: relative; }
.band__marke { margin: 0; font: 700 .95rem/1 var(--sc-font-display); letter-spacing: -0.01em; }
.band__marke span { font-weight: 500; color: var(--papier-soft); margin-left: 6px; }
.band__sorte { margin: 14px 0 12px; font: 700 clamp(1.5rem, 1.1rem + 1.2vw, 2rem)/1.05 var(--sc-font-display); letter-spacing: -0.025em; }
.band__daten { margin: 0; display: grid; gap: 6px; border-top: 1px dashed rgba(42,37,27,.35); padding-top: 12px; }
.band__daten div { display: flex; justify-content: space-between; gap: 12px; }
.band__daten dt { color: var(--papier-soft); font-size: .92rem; }
.band__daten dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.band__fenster dd { font-size: 1.08rem; }
.band__tage { margin: 10px 0 16px; color: var(--papier-soft); font-size: .92rem; line-height: 1.45; }
.band .knopf { width: 100%; background: var(--papier-ink); color: var(--papier); box-shadow: none; }
.band .knopf::before { opacity: .3; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px); background-size: 6px 6px; }
.band .knopf::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); }
@media (hover: hover) and (pointer: fine) { .band .knopf:hover { background: #1a160f; } }
.band__hinweis { margin: 10px 0 0; font-size: .85rem; color: var(--papier-soft); line-height: 1.4; }
.band.ist-vorgemerkt .band__hinweis { color: var(--papier-ink); font-weight: 700; }

.fuss { position: absolute; left: var(--sc-gutter); right: var(--sc-gutter); bottom: 16px; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); }

@media (max-width: 860px) {
  .buehne--block { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 10px; padding: 72px var(--sc-gutter) 40px; }
  .block__lead { display: none; }
  .wahl { margin-top: 14px; gap: 6px; }
  .wahl legend { display: none; }
  .wahl span { padding: 0 12px; min-height: 40px; font-size: .9rem; }
  .block__klotz { height: 100%; min-height: 0; align-items: flex-end; padding-bottom: 14px; }
  .band { padding: 16px 18px 14px; }
  .band__sorte { margin: 8px 0 8px; }
  .band__tage { margin: 6px 0 10px; }
  .band .knopf { min-height: 46px; }
  .fuss { bottom: 10px; font-size: .72rem; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .block__text h2 { font-size: 1.5rem; }
  .band__tage { display: none; }
  .band__marke { display: none; }
}

/* ---------- Netzplan ---------- */
.netzplan {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: color-mix(in oklab, var(--sc-canvas) 96%, black); color: var(--sc-ink);
}
.netzplan::backdrop { background: rgba(8,7,5,.6); }
.netzplan[open] { animation: auf 260ms var(--sc-ease-out); }
@keyframes auf { from { opacity: 0; } to { opacity: 1; } }
.netzplan__innen { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--sc-gutter) 22px; gap: 14px; }
.netzplan__kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.netzplan__titel { margin: 0; font: 700 var(--sc-t-xl)/1.1 var(--sc-font-display); letter-spacing: -0.02em; }
.netzplan__zu {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-weight: 700;
  background: transparent; color: var(--sc-ink); border: 1.5px solid color-mix(in oklab, var(--sc-ink) 35%, transparent);
}
@media (hover: hover) and (pointer: fine) { .netzplan__zu:hover { border-color: var(--sc-accent); } }
.netzplan__flaeche { position: relative; min-height: 0; }
.netzplan__flaeche canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.netzplan__knoten { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.netzplan__knoten li { position: absolute; left: 0; transform: translateY(-50%); pointer-events: auto; }
.netzplan__knoten button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 0;
  border: 0; background: transparent; color: var(--sc-ink-soft); cursor: pointer; font: 600 var(--sc-t-base)/1 var(--sc-font-text);
}
.netzplan__knoten button i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; }
.netzplan__knoten button.ist-durch { color: var(--sc-ink); }
.netzplan__knoten button.ist-durch i { background: var(--sc-accent); border-color: var(--sc-accent); }
.netzplan__knoten button.ist-hier { text-decoration: underline; text-underline-offset: 5px; }
.netzplan__knoten small { color: var(--sc-ink-soft); font-weight: 400; font-size: var(--sc-t-xs); }
@media (hover: hover) and (pointer: fine) { .netzplan__knoten button:hover { color: var(--sc-ink); } }
.netzplan__fuss { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }

@media (prefers-reduced-motion: reduce) {
  .wurzel__knoten::after, .knopf::after { animation: none; }
  .netzplan[open] { animation: none; }
}
