/* Paket C „Stark" – Karate Chemnitz (Sotchoku Kan Chemnitz III e.V.), Entwurf von Museigen.
   Richtung „Nacht-Dojo": Schwarz, Knochenweiß, ein Gold aus der Gürtelstickerei.
   Titel in Shippori Mincho B1 (japanische Antiqua), Text in Geist, Zahlen in Geist Mono.
   Die Bühne ist ein Echtzeit-Gürtel (WebGL), der Text ordnet sich ihm unter. */

@font-face { font-family: "Shippori Mincho B1"; src: url("../schriften/shippori-mincho-b1-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Shippori Mincho B1"; src: url("../schriften/shippori-mincho-b1-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Shippori Mincho B1 Kanji"; src: url("../schriften/shippori-mincho-b1-800-kanji.woff2") format("woff2"); font-weight: 800; font-display: block; }
@font-face { font-family: "Geist"; src: url("../schriften/geist-variabel-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url("../schriften/geist-variabel-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Geist Mono"; src: url("../schriften/geist-mono-variabel-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --nacht: #0a0a0b;
  --nacht-2: #131315;
  --nacht-3: #1c1c1f;
  --knochen: #ece6da;
  --knochen-2: #b8b1a4;
  --knochen-3: #8d877c;
  --gold: #cda864;
  --gold-hell: #e6c98f;
  --linie: rgba(236, 230, 218, 0.14);
  --linie-stark: rgba(236, 230, 218, 0.32);
  --pruefen-grund: #f3e3b0;

  --titel: "Shippori Mincho B1", "Hiragino Mincho ProN", "Times New Roman", serif;
  --kanji: "Shippori Mincho B1 Kanji", "Hiragino Mincho ProN", serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --rand: 20px;
  --breite: 1320px;
  --abschnitt: 96px;
  --kopf: 64px;
  --aus: cubic-bezier(0.16, 1, 0.3, 1);
  --aus-4: cubic-bezier(0.25, 1, 0.5, 1);
  --inout: cubic-bezier(0.76, 0, 0.24, 1);
}
@media (min-width: 760px) { :root { --rand: 36px; --kopf: 72px; } }
@media (min-width: 1100px) { :root { --rand: 56px; --abschnitt: 144px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--nacht); color-scheme: dark; scroll-padding-top: calc(var(--kopf) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--nacht); color: var(--knochen);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; letter-spacing: -0.005em;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--nacht); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 16px; top: -120px; z-index: 90; background: var(--knochen); color: var(--nacht); padding: 10px 14px; }
.sprung:focus { top: 12px; }

/* ---------- Typo ---------- */
.titel, h1, h2 { font-family: var(--titel); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.5rem); }
h2 { font-size: clamp(1.95rem, 1.2rem + 3.8vw, 4.8rem); }
.gruppen-kopf h2 { min-width: 0; flex: 1 1 14ch; }
h3 { font-family: var(--titel); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.12; letter-spacing: -0.01em; }
p { max-width: 62ch; text-wrap: pretty; }
.leise { color: var(--knochen-2); }
.mono, .marke-klein { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.marke-klein { color: var(--gold); display: inline-flex; gap: 10px; align-items: center; }
.marke-klein::before { content: ""; width: 28px; height: 1px; background: currentColor; }
/* Handy: die Zeile „… seit 1991“ bleibt einzeilig statt mit Strich und losem „1991“ umzubrechen */
@media (max-width: 480px) { .held .marke-klein { font-size: 0.64rem; letter-spacing: 0.03em; gap: 8px; white-space: nowrap; } .held .marke-klein::before { width: 16px; } }
.gross { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.5; color: var(--knochen-2); }

/* ---------- Markierungen ---------- */
mark.pruefen {
  background: var(--pruefen-grund); color: #1a1712; padding: 0.02em 0.3em; border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; cursor: help;
}
.bsp { position: relative; outline: 1.5px dashed rgba(205, 168, 100, 0.75); outline-offset: 6px; border-radius: 4px; }
.bsp::after {
  content: "Beispielinhalt"; position: absolute; top: -18px; right: 0; transform: translateY(-50%);
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--nacht); color: var(--gold); border: 1px dashed rgba(205, 168, 100, 0.75); padding: 2px 7px; border-radius: 99px;
  pointer-events: none; z-index: 2;
}
span.bsp, em.bsp { outline: 0; border-bottom: 1.5px dashed var(--gold); border-radius: 0; font-style: normal; }
span.bsp::after, em.bsp::after { display: none; }

/* ---------- Hinweisbalken ---------- */
.hinweis { position: relative; z-index: 60; background: var(--knochen); color: #16140f; font-size: 0.84rem; line-height: 1.45; padding-block: 10px; }
.hinweis .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.hinweis p { max-width: none; }
.hinweis mark { background: var(--pruefen-grund); padding: 0 0.3em; border-radius: 3px; color: #16140f; }
.hinweis .bsp-inline { border: 1.5px dashed #8a6a2a; padding: 0 0.35em; border-radius: 3px; }
.hinweis a { font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .hinweis .lang { display: none; } .hinweis { font-size: 0.78rem; padding-block: 8px; } }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; height: var(--kopf); transition: background-color 0.5s var(--aus), backdrop-filter 0.5s; }
.kopf.fest { background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.kopf::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--linie); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--aus); }
.kopf.fest::after { transform: scaleX(1); }
.kopf .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marke-zeichen { font-family: var(--kanji); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--gold); writing-mode: vertical-rl; letter-spacing: 0.02em; height: 3.2em; display: none; }
.marke-schrift { display: grid; line-height: 1.1; }
.marke-schrift b { font-family: var(--titel); font-size: 1.05rem; letter-spacing: 0; }
.marke-schrift span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--knochen-2); }
.marke-kanji { font-family: var(--kanji); font-weight: 800; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.menue { display: none; }
.menue ul { display: flex; gap: 26px; align-items: center; }
.menue a { text-decoration: none; font-size: 0.92rem; color: var(--knochen-2); position: relative; padding-block: 6px; transition: color 0.3s; }
.menue a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--aus); }
.menue a[aria-current="page"] { color: var(--knochen); }
@media (hover: hover) { .menue a:hover { color: var(--knochen); } }
.menue a.knopf { color: var(--nacht); padding-block: 0; }
.menue a.knopf::after { display: none; }
.menue a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .menue a:hover::after { transform: scaleX(1); transform-origin: left; } }
.menue-knopf { background: none; border: 1px solid var(--linie-stark); border-radius: 99px; padding: 8px 16px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; min-height: 40px; }
@media (min-width: 900px) and (orientation: landscape), (min-width: 1101px) { .menue { display: block; } .menue-knopf { display: none; } }

/* Knopf */
.knopf {
  --k-grund: var(--knochen); --k-text: var(--nacht);
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px;
  background: var(--k-grund); color: var(--k-text); border: 1px solid var(--k-grund); border-radius: 99px;
  font-family: var(--text); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform 0.2s var(--aus), color 0.35s var(--aus);
}
.knopf::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform 0.5s var(--aus); z-index: -1; border-radius: inherit; }
@media (hover: hover) { .knopf:hover::before { transform: translateY(0); } }
.knopf:active { transform: scale(0.97); }
.knopf .pfeil { width: 16px; height: 16px; transition: transform 0.45s var(--aus); }
@media (hover: hover) { .knopf:hover .pfeil { transform: translateX(3px); } }
.knopf.hohl { --k-grund: transparent; --k-text: var(--knochen); border-color: var(--linie-stark); }
@media (hover: hover) { .knopf.hohl:hover { color: var(--nacht); } }
.knopf.klein { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }

/* Handy-Menü */
.menue-schicht { position: fixed; inset: 0; z-index: 70; background: var(--nacht); display: grid; align-content: center; padding: 96px var(--rand) 40px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.7s var(--inout), visibility 0s 0.7s; }
.menue-schicht.offen { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--inout), visibility 0s; }
.menue-schicht ul { display: grid; gap: 4px; }
.menue-schicht a { display: block; font-family: var(--titel); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem); text-decoration: none; padding: 6px 0; transform: translateY(40px); opacity: 0; transition: transform 0.7s var(--aus), opacity 0.7s var(--aus); }
.menue-schicht.offen a { transform: none; opacity: 1; }
.menue-schicht .schliessen { position: absolute; top: 14px; right: var(--rand); }
.menue-schicht .unten { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Bühne (Echtzeit-Gürtel) ---------- */
.buehne { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.buehne canvas { position: relative; width: 100%; height: 100%; display: block; }
.buehne::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 70% 40%, #1f1c18 0%, #0e0d0d 55%, var(--nacht) 100%); opacity: var(--buehne-licht, 1); transition: opacity 0.6s; }
main, .fuss { position: relative; z-index: 1; }

/* ---------- Startseite ---------- */
.held { position: relative; height: 170vh; }
.held-innen { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: end; padding-bottom: calc(clamp(20px, 4vh, 48px) + var(--kopf) + 60px); } /* Hinweisbalken und Kopf stehen beim Laden über dem Held */
.held-text { max-width: 900px; display: grid; gap: 14px; }
.held .reihe { margin-top: 6px; }
[data-zeilen] .zeile, .held h1 .zeile { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
[data-zeilen] .zeile > span, .held h1 .zeile > span { display: inline-block; }
.held h1 em { font-style: normal; color: var(--gold); }
.held .unter { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); color: var(--knochen-2); max-width: 44ch; }
.held .reihe { display: flex; flex-wrap: wrap; gap: 12px; }
.fakten { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--knochen-2); text-transform: uppercase; }
.fakten li { display: flex; gap: 8px; align-items: center; }
.fakten li::before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.fakten mark.pruefen { text-transform: none; letter-spacing: 0; font-family: var(--text); font-size: 0.86rem; }
.rollen { position: absolute; right: var(--rand); bottom: clamp(40px, 9vh, 110px); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--knochen-3); display: none; align-items: center; gap: 12px; }
.rollen i { display: block; width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); animation: rollen 2.2s var(--inout) infinite; transform-origin: top; }
@keyframes rollen { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 900px) and (orientation: landscape), (min-width: 1101px) { .rollen { display: flex; } }
.stickerei-hinweis { position: absolute; right: var(--rand); bottom: calc(clamp(40px, 9vh, 110px) + 80px); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--knochen-3); max-width: 240px; text-align: right; display: none; }
/* Stufe 1d (2026-10-05): erst ab 1024 px Breite in der Rechner-Fassung – bei 900 stieß er an die Faktenzeile, ab 1024 bleiben ≥ 100 px Abstand */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1101px) { .stickerei-hinweis { display: block; } }

/* Der Weg: Gürtel wechselt die Farbe, Grade laufen durch */
.weg { position: relative; height: 520vh; }
.weg-innen { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-block: calc(var(--kopf) + 24px) 48px; }
.weg-kopf { display: grid; gap: 14px; max-width: 980px; }
.weg-grad { align-self: center; display: grid; grid-template-columns: 1fr; gap: 6px; justify-items: start; }
.weg-grad .zahl { font-family: var(--titel); font-weight: 800; font-size: clamp(4.5rem, 2rem + 12vw, 13rem); line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.weg-grad .wort { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--knochen-2); }
.weg-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.grad-leiste { display: flex; gap: 6px; }
.grad-leiste span { width: 26px; height: 6px; border-radius: 2px; background: var(--c); opacity: 0.25; transform: scaleY(0.6); transition: opacity 0.4s, transform 0.4s var(--aus); }
.grad-leiste span.an { opacity: 1; transform: none; }
.weg-satz { max-width: 420px; }
.weg-satz p + p { margin-top: 10px; }
.weg-deckel { position: absolute; inset: 0; background: var(--nacht); opacity: 0; pointer-events: none; }

/* Kino-Übergang: Zoom durch das Gewebe in die Gruppen */
.gruppen { position: relative; height: 420vh; }
.gruppen-innen { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: calc(var(--kopf) + 20px); }
.gruppen-kopf { display: grid; gap: 12px; }
.gruppen-kopf p { max-width: 64ch; }
.gruppen-innen .gruppen-bahn { margin-top: clamp(20px, 4vh, 48px); }
.gruppen-bahn { display: flex; gap: clamp(16px, 2.5vw, 40px); align-items: center; padding-inline: var(--rand); will-change: transform; }
.gruppe-karte { position: relative; flex: 0 0 auto; width: min(76vw, 420px, (100svh - 360px) * 0.8); display: grid; gap: 16px; text-decoration: none; }
.gruppe-karte figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--nacht-3); }
.gruppe-karte img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.4s var(--aus), filter 0.8s; filter: grayscale(0.25) contrast(1.05); }
@media (hover: hover) { .gruppe-karte:hover img { transform: scale(1.1); filter: none; } }
.gruppe-karte .nr { position: absolute; top: 14px; left: 16px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--knochen); mix-blend-mode: difference; }
.gruppe-karte .zeit { font-family: var(--mono); font-size: 0.8rem; color: var(--knochen-2); }
.gruppe-karte .weiter { font-size: 0.9rem; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; }
.gruppe-karte .weiter svg { transition: transform 0.45s var(--aus); }
@media (hover: hover) { .gruppe-karte:hover .weiter svg { transform: translateX(4px); } }
.beispielfoto { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(10, 10, 11, 0.72); color: var(--knochen-2); padding: 3px 7px; border-radius: 99px; border: 1px dashed rgba(205, 168, 100, 0.6); }
.zoom-schleier { position: absolute; inset: 0; background: var(--nacht); pointer-events: none; z-index: 3; }

/* Heute im Dojo */
.heute { position: relative; background: var(--nacht); padding-block: var(--abschnitt); border-top: 1px solid var(--linie); }
.heute-raster { display: grid; gap: 40px; }
@media (min-width: 1000px) { .heute-raster { grid-template-columns: 5fr 7fr; gap: 80px; } }
.puls { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.puls i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); position: relative; }
.puls i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: puls 1.8s var(--aus) infinite; }
.puls.ruhig i::after { animation: none; }
.puls.ruhig { color: var(--knochen-3); } .puls.ruhig i { background: var(--knochen-3); }
@keyframes puls { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3.2); opacity: 0; } }
.woche { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.woche-tag { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--linie); }
.woche-tag > b { font-family: var(--titel); font-size: 1.3rem; }
.woche-tag.heute-tag > b { color: var(--gold); }
.woche-tag ul { display: grid; gap: 8px; }
.woche-tag li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; align-items: baseline; }
.woche-tag li .z { font-family: var(--mono); font-size: 0.85rem; color: var(--knochen-2); }
.woche-tag li.laeuft { color: var(--gold); }
.woche-tag li.laeuft .z::after { content: " · läuft"; color: var(--gold); }
@media (max-width: 560px) { .woche-tag { grid-template-columns: 1fr; gap: 8px; } .woche-tag li { grid-template-columns: 7.5rem 1fr; } }

/* Kino-Übergang 2: in das Zeichen 館 hinein ins Helle */
.zeichen { position: relative; height: 240vh; background: var(--nacht); }
.zeichen-innen { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.zeichen-kanji { font-family: var(--kanji); font-weight: 800; font-size: min(46vh, 29vw); line-height: 1; color: var(--knochen); display: flex; gap: 0.08em; white-space: nowrap; } /* kein will-change: sonst skaliert Chrome ein Rasterbild und die Kante wird treppig */
.zeichen-kanji span { display: inline-block; }
.zeichen-text { position: absolute; left: var(--rand); right: var(--rand); bottom: 8vh; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: end; }
.zeichen-text p { max-width: 36ch; }
.zeichen-licht { position: absolute; inset: 0; background: var(--knochen); opacity: 0; pointer-events: none; }

/* Heller Teil: Verein */
.hell { position: relative; background: var(--knochen); color: #17150f; }
.hell .leise { color: #5d574c; }
.hell .marke-klein { color: #6f5420; }
.hell :focus-visible { outline-color: #17150f; }
.hell mark.pruefen { background: #f0d98e; }
.hell .bsp { outline-color: #8a6a2a; }
.hell .bsp::after { background: var(--knochen); color: #7a5b1f; border-color: #8a6a2a; }
.verein { padding-block: var(--abschnitt); }
.verein-raster { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 1000px) { .verein-raster { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; } }
.zeitleiste { display: grid; gap: 0; border-top: 1px solid rgba(23, 21, 15, 0.18); }
.zeitleiste li { display: grid; grid-template-columns: 6rem 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid rgba(23, 21, 15, 0.18); }
.zeitleiste .jahr { font-family: var(--titel); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.trainer-liste { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid rgba(23, 21, 15, 0.18); }
.trainer-liste li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-block: 16px; border-bottom: 1px solid rgba(23, 21, 15, 0.18); align-items: baseline; }
.trainer-liste b { font-family: var(--titel); font-size: 1.3rem; }
.verein-bild { position: relative; overflow: hidden; border-radius: 4px; }
.verein-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.leben { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.leben li { border: 1px solid rgba(23, 21, 15, 0.25); border-radius: 99px; padding: 6px 14px; font-size: 0.9rem; }

/* Galerie-Streifen */
.streifen { position: relative; background: var(--knochen); padding-bottom: calc(var(--abschnitt) * 1.9); overflow: hidden; color: #17150f; }
/* Weicher Übergang vom hellen Vereinsteil ins Dunkel des Finales statt einer harten Kante */
.streifen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--abschnitt) * 1.6); background: linear-gradient(to bottom, rgba(236, 230, 218, 0) 0%, rgba(120, 116, 108, 0.55) 45%, var(--nacht) 100%); pointer-events: none; }
.streifen-bahn { display: flex; gap: 14px; will-change: transform; padding-left: var(--rand); margin-top: 40px; }
.streifen-bahn figure { flex: 0 0 auto; height: clamp(220px, 34vw, 420px); position: relative; overflow: hidden; border-radius: 3px; transform: skewX(var(--schief, 0deg)); transition: transform 0.2s linear; }
.streifen-bahn img { height: 100%; width: auto; object-fit: cover; }

/* Finale: der Gürtel bindet sich */
.finale { position: relative; height: 280vh; }
.finale-innen { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; }
.finale-text { max-width: 540px; display: grid; gap: 22px; }
.finale h2 .zeile { display: block; }
.kontakt { position: relative; background: var(--nacht); padding-block: var(--abschnitt); border-top: 1px solid var(--linie); }
.kontakt-raster { display: grid; gap: 48px; }
@media (min-width: 1000px) { .kontakt-raster { grid-template-columns: 5fr 6fr; gap: 96px; } }
.kontakt-wege { display: grid; margin-top: 28px; border-top: 1px solid var(--linie); }
.kontakt-wege a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--linie); text-decoration: none; font-family: var(--titel); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); position: relative; }
.kontakt-wege a svg { width: 22px; height: 22px; flex: none; color: var(--gold); transition: transform 0.45s var(--aus); }
@media (hover: hover) { .kontakt-wege a:hover svg { transform: translateX(4px); } }
.kontakt-wege a small { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--knochen-3); }
.kontakt-wege a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--aus); }
@media (hover: hover) { .kontakt-wege a:hover::after { transform: scaleX(1); } }
.formular { display: grid; gap: 22px; }
.feld { position: relative; }
.feld input, .feld textarea, .feld select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--linie-stark); color: var(--knochen); font: inherit; padding: 26px 0 10px; border-radius: 0; outline: none; }
.feld textarea { min-height: 110px; resize: vertical; }
.feld label { position: absolute; left: 0; top: 26px; color: var(--knochen-3); pointer-events: none; transition: transform 0.35s var(--aus), color 0.35s; transform-origin: left top; }
.feld input:focus + label, .feld input:not(:placeholder-shown) + label, .feld textarea:focus + label, .feld textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(0.78); color: var(--gold); }
.feld::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--aus); }
.feld:focus-within::after { transform: scaleX(1); }
.form-notiz { font-size: 0.85rem; color: var(--knochen-3); }
.gesendet .knopf { pointer-events: none; }

/* ---------- Unterseiten ---------- */
.seitenkopf { position: relative; padding-top: clamp(80px, 16vh, 180px); padding-bottom: clamp(48px, 8vh, 96px); border-bottom: 1px solid var(--linie); overflow: hidden; }
.seitenkopf h1 { font-size: clamp(2.8rem, 1.4rem + 6vw, 6.6rem); margin-top: 18px; }
.seitenkopf h1 .zeile { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.seitenkopf h1 .zeile > span { display: inline-block; }
.seitenkopf .gross { margin-top: 24px; }
.seitenkopf .schatten-kanji { position: absolute; right: -0.04em; top: 50%; transform: translateY(-50%); font-family: var(--kanji); font-weight: 800; font-size: min(40vw, 380px); line-height: 1; color: rgba(236, 230, 218, 0.045); pointer-events: none; }
.abschnitt { padding-block: var(--abschnitt); }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.zwei { display: grid; gap: 40px; }
@media (min-width: 1000px) { .zwei { grid-template-columns: 5fr 7fr; gap: 96px; } }
.liste-linien { display: grid; border-top: 1px solid var(--linie); }
.liste-linien > li { display: grid; gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--linie); }
@media (min-width: 760px) { .liste-linien > li { grid-template-columns: 14rem 1fr; gap: 24px; } }
.liste-linien b { font-family: var(--titel); font-size: 1.2rem; }
.bild-gross { position: relative; overflow: hidden; border-radius: 4px; }
.bild-gross img { width: 100%; object-fit: cover; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.tabelle th, .tabelle td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--knochen-3); font-weight: 500; }
.tabelle td:first-child { font-family: var(--titel); font-size: 1.1rem; }
.gruppen-nav { display: grid; gap: 1px; background: var(--linie); border: 1px solid var(--linie); margin-top: 48px; }
@media (min-width: 760px) { .gruppen-nav { grid-template-columns: repeat(4, 1fr); } }
.gruppen-nav a { background: var(--nacht); padding: 22px; text-decoration: none; display: grid; gap: 6px; transition: background-color 0.4s; }
@media (hover: hover) { .gruppen-nav a:hover { background: var(--nacht-2); } }
.gruppen-nav a[aria-current="page"] { background: var(--nacht-3); }
.gruppen-nav small { font-family: var(--mono); font-size: 0.72rem; color: var(--knochen-3); letter-spacing: 0.08em; }
.gruppen-nav b { font-family: var(--titel); font-size: 1.3rem; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--titel); font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat; transition: transform 0.45s var(--aus); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .antwort { overflow: hidden; }
.faq .antwort > div { padding-bottom: 20px; color: var(--knochen-2); }
.termine-liste { display: grid; border-top: 1px solid var(--linie); }
.termine-liste li { display: grid; grid-template-columns: 6rem 1fr auto; gap: 18px; align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--linie); }
.termine-liste .datum { font-family: var(--mono); font-size: 0.85rem; color: var(--gold); }
.termine-liste b { font-family: var(--titel); font-size: 1.25rem; }
.termine-liste .art { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--knochen-3); border: 1px solid var(--linie-stark); padding: 3px 9px; border-radius: 99px; }
@media (max-width: 560px) { .termine-liste li { grid-template-columns: 1fr; gap: 6px; } }

/* Galerie */
.galerie-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.galerie-filter button { background: none; border: 1px solid var(--linie-stark); border-radius: 99px; padding: 8px 16px; cursor: pointer; font-size: 0.88rem; min-height: 40px; transition: background-color 0.35s, color 0.35s, border-color 0.35s; }
.galerie-filter button[aria-pressed="true"] { background: var(--knochen); color: var(--nacht); border-color: var(--knochen); }
.galerie-raster { columns: 1; column-gap: 14px; margin-top: 32px; }
@media (min-width: 640px) { .galerie-raster { columns: 2; } }
@media (min-width: 1100px) { .galerie-raster { columns: 3; } }
.galerie-raster figure { break-inside: avoid; margin-bottom: 14px; position: relative; overflow: hidden; border-radius: 3px; cursor: zoom-in; transition: opacity 0.5s var(--aus), transform 0.5s var(--aus); }
.galerie-raster figure.weg { display: none; }
.galerie-raster img { width: 100%; transition: transform 1.2s var(--aus); }
@media (hover: hover) { .galerie-raster figure:hover img { transform: scale(1.04); } }
.galerie-raster figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.leuchtkasten { position: fixed; inset: 0; z-index: 80; background: rgba(6, 6, 7, 0.94); display: grid; place-items: center; padding: 56px 16px; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--aus), visibility 0s 0.45s; }
.leuchtkasten.offen { opacity: 1; visibility: visible; transition: opacity 0.45s var(--aus), visibility 0s; }
.leuchtkasten img { max-height: 84vh; width: auto; max-width: 100%; border-radius: 3px; }
.leuchtkasten .zu { position: absolute; top: 14px; right: 16px; }
.leuchtkasten .vor, .leuchtkasten .zurueck { position: absolute; top: 50%; transform: translateY(-50%); }
.leuchtkasten .vor { right: 12px; } .leuchtkasten .zurueck { left: 12px; }

/* Aufdecken beim Scrollen */
.js .auf { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--aus), transform 1.1s var(--aus); }
.js .auf.da { opacity: 1; transform: none; }
.js .bild-auf { clip-path: inset(14% 0 14% 0); transition: clip-path 1.4s var(--aus); }
.js .bild-auf img { transform: scale(1.2); transition: transform 1.8s var(--aus); }
.js .bild-auf.da { clip-path: inset(0 0 0 0); }
.js .bild-auf.da img { transform: scale(1); }
.js .zeile > span { transform: translateY(105%); transition: transform 1.1s var(--aus); }
.js .zeilen-da .zeile > span { transform: none; }
.js .zeilen-da .zeile:nth-child(2) > span { transition-delay: 0.1s; }
.js .zeilen-da .zeile:nth-child(3) > span { transition-delay: 0.2s; }

/* ---------- Fuß ---------- */
.fuss { background: var(--nacht); border-top: 1px solid var(--linie); padding-block: 64px 40px; font-size: 0.92rem; color: var(--knochen-2); }
.fuss-raster { display: grid; gap: 32px; }
@media (min-width: 900px) { .fuss-raster { grid-template-columns: 2fr 1fr 1fr; } }
.fuss b { color: var(--knochen); font-family: var(--titel); font-size: 1.1rem; }
.fuss ul { display: grid; gap: 8px; }
.fuss a { text-decoration: none; }
@media (hover: hover) { .fuss a:hover { color: var(--knochen); } }
.fuss .klein { font-size: 0.78rem; color: var(--knochen-3); margin-top: 24px; }
.fuss-kanji { font-family: var(--kanji); font-weight: 800; font-size: clamp(4rem, 14vw, 12rem); line-height: 0.9; color: rgba(236, 230, 218, 0.06); margin-top: 48px; letter-spacing: 0.04em; white-space: nowrap; }
/* 2026-10-05: Zeilenhöhe 0.9 mit overflow hidden schnitt die Zeichen unten ab – die Schrift braucht mehr als 1 em Höhe */
.fuss-kanji { line-height: 1.3; margin-top: 30px; max-width: 100%; }


/* ---------- Seitenwechsel: der Gürtel wischt die Seite weg ---------- */
.wisch { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.wisch canvas { width: 100%; height: 100%; display: block; }
.wisch-deckel { position: fixed; inset: 0; z-index: 99; background: #d9d4c9; pointer-events: none; opacity: 0; }
html.kommt .wisch-deckel { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .auf, .js .bild-auf, .js .bild-auf img, .js .zeile > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .held, .weg, .gruppen, .zeichen, .finale { height: auto; }
  .held-innen, .weg-innen, .gruppen-innen, .zeichen-innen, .finale-innen { position: relative; height: auto; min-height: 100vh; }
  .gruppen-bahn { flex-wrap: wrap; transform: none !important; }
}

/* Nachbesserung nach Abnahme 1 */
.zeichen + .hell { padding-top: clamp(40px, 7vh, 80px); }
.trainer-foto { width: 112px; aspect-ratio: 1; background: var(--nacht-3); display: grid; place-items: center; border-radius: 50%; }
.trainer-foto span { font-size: 0.66rem; }
.feld input:focus-visible, .feld textarea:focus-visible, .feld select:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .weg-grad { background: rgba(10, 10, 11, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 6px 14px 10px; border-radius: 6px; justify-self: start; }
}

/* =====================================================================================
   Fertige Seite (2026-09-29): Vereinslogo aus dem Flyer, Probezeit-Band, Kalender,
   Rechtstexte – und alle Unterseiten in den Farben des Vereinsflyers (html.flyer).
   Die Startseite bleibt Schwarz-Gold. Übergang: der weiße Gürtel wischt, darunter liegt Papier.
   ===================================================================================== */

/* Vereinslogo als Maske: nimmt die jeweilige Akzentfarbe an (Gold auf Schwarz, Rot/Tinte auf Papier) */
.marke-logo, .fuss-logo { display: block; flex: none; background: currentColor; -webkit-mask: url("../bilder/logo/vereinslogo-weiss-128.png") center / contain no-repeat; mask: url("../bilder/logo/vereinslogo-weiss-128.png") center / contain no-repeat; }
.marke-logo { width: 46px; height: 46px; color: var(--gold); transition: transform 0.8s var(--aus); }
@media (hover: hover) { .marke:hover .marke-logo { transform: rotate(-8deg); } }
@media (min-width: 760px) { .marke-logo { width: 52px; height: 52px; } }
.fuss-logo { width: 76px; height: 76px; color: var(--gold); -webkit-mask-image: url("../bilder/logo/vereinslogo-weiss-256.png"); mask-image: url("../bilder/logo/vereinslogo-weiss-256.png"); }
.fuss-verein { display: flex; gap: 20px; align-items: flex-start; }
.fuss-titel { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--knochen-3); margin-bottom: 12px; }
.fuss-leise { color: var(--knochen-3); }
.fuss-recht { margin-top: 20px; display: flex !important; gap: 18px; flex-wrap: wrap; }
.fuss-recht a { text-decoration: underline; text-underline-offset: 0.25em; }
/* Herstellervermerk (Vertrag § 10 Abs. 1): zurückhaltend, der übrigen Fußzeile angeglichen */
.fuss-vermerk { margin-top: 18px; font-size: 0.78rem; color: var(--knochen-3); }
.fuss-vermerk a { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.fuss-probe { color: var(--gold); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Probezeit-Band – wie der rote Kasten auf dem Flyer */
.probe-band { display: inline-block; max-width: none; background: var(--rot, #a51e22); color: #fff; font-family: var(--text); font-weight: 750; font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15; padding: 0.55em 0.9em 0.5em; border-radius: 2px; }
.probe-band.gold { background: #a51e22; color: #fff; justify-self: start; } /* Flyer-Rot schon auf der Startseite: Brücke zu den Unterseiten */
.probe-abschnitt { padding-block: calc(var(--abschnitt) * 0.8); border-top: 1px solid var(--linie); }
.probe-raster { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .probe-raster { grid-template-columns: 5fr 7fr; gap: 96px; } }
.reihe { display: flex; flex-wrap: wrap; gap: 12px; }
.ort { color: var(--knochen); }
.ort-hinweis { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.symbolbild { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(10, 10, 11, 0.62); color: #e4ded2; padding: 3px 7px; border-radius: 99px; }
.feld select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 60%, calc(100% - 9px) 60%; background-size: 5px 5px; background-repeat: no-repeat; }
.feld select option { color: #111; }
.feld label.fest { transform: translateY(-22px) scale(0.78); color: var(--gold); }
.streifen-figur { background: #e2dccf; }
.streifen-figur img { height: 100%; width: auto; object-fit: contain; padding: 14px 20px 0; }
.bild-gross.hoch img { aspect-ratio: 4 / 5; object-position: center 22%; }
.verein-bild img { aspect-ratio: 4 / 5; object-position: center 20%; }
code { font-family: var(--mono); font-size: 0.85em; word-break: break-all; background: var(--nacht-2); padding: 0.1em 0.35em; border-radius: 3px; }

/* ---------- Seitenkopf mit Figur (Verein) ---------- */
.seitenkopf-raster { position: relative; z-index: 2; }
.seitenkopf.mit-figur .seitenkopf-raster { display: grid; gap: 24px; }
.seitenkopf-figur { display: flex; justify-content: center; }
.seitenkopf-figur .figur { height: clamp(320px, 62vh, 620px); width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.18)); }
@media (min-width: 900px) {
  .seitenkopf.mit-figur .seitenkopf-raster { grid-template-columns: 1fr auto; align-items: end; }
  .seitenkopf.mit-figur { padding-bottom: 0; }
  .seitenkopf.mit-figur .seitenkopf-text { padding-bottom: clamp(48px, 8vh, 96px); }
}
.seitenkopf .kreis { display: none; }

/* ---------- Kalender ---------- */
.kalender-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.ansicht { display: inline-flex; border: 1px solid var(--linie-stark); border-radius: 99px; padding: 3px; }
.ansicht button { background: none; border: 0; border-radius: 99px; padding: 8px 18px; min-height: 40px; cursor: pointer; font-size: 0.9rem; transition: background-color 0.35s var(--aus), color 0.35s var(--aus); }
.ansicht button[aria-pressed="true"] { background: var(--knochen); color: var(--nacht); }
.abo { display: flex; flex-wrap: wrap; gap: 10px; }
.kalender-filter { margin-top: 24px; }
.kalender { margin-top: 32px; }
.monat-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.monat-name { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); text-align: center; }
.monat-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.monat-raster .wt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--knochen-3); text-align: center; padding-block: 6px; }
.monat-raster .tag { position: relative; aspect-ratio: 1 / 0.86; min-height: 44px; border: 1px solid var(--linie); border-radius: 4px; background: transparent; cursor: pointer; display: grid; align-content: space-between; justify-items: start; padding: 6px 7px; text-align: left; font-family: var(--mono); font-size: 0.85rem; transition: border-color 0.3s, background-color 0.3s; }
.monat-raster .tag.leer { border: 0; cursor: default; }
.monat-raster .tag.vorbei { opacity: 0.45; }
.monat-raster .tag.hat { border-color: var(--linie-stark); }
@media (hover: hover) { .monat-raster .tag:hover { background: var(--nacht-2); } }
.monat-raster .tag.heute { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.monat-raster .tag.gewaehlt { background: var(--knochen); color: var(--nacht); border-color: var(--knochen); opacity: 1; }
.monat-raster .tag.aus span:first-child { text-decoration: line-through; text-decoration-color: var(--gold); }
.punkte { display: flex; gap: 3px; flex-wrap: wrap; }
.punkte i { width: 7px; height: 7px; border-radius: 50%; background: var(--knochen-3); }
.punkte .p-training { background: var(--knochen); }
.punkte .p-pruefung, .punkte .p-wettkampf { background: var(--gold); }
.punkte .p-lehrgang { background: #2c56a8; }
.punkte .p-feier { background: #3f8a4a; }
.punkte .p-ausfall { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }
.tag.gewaehlt .p-training { background: var(--nacht); }
/* Handy (2026-11-13, Kyogaku: „die einzelnen Kästen der Tage überschneiden sich“): Seitenverhältnis plus
   min-height 44 px ergab über das Seitenverhältnis eine Mindestbreite von 51 px – breiter als die Spalte
   (36–47 px bei 320–414 px), die Felder schoben sich übereinander. Am Handy feste Höhe statt Seitenverhältnis,
   Breite = Spalte. */
@media (max-width: 759px) { .monat-raster .tag { aspect-ratio: auto; min-width: 0; width: 100%; height: 48px; padding: 5px 6px; } }
@media (min-width: 760px) { .monat-raster { gap: 6px; } .monat-raster .tag { padding: 10px 12px; font-size: 0.95rem; } .punkte i { width: 8px; height: 8px; } }
.tag-details { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linie); min-height: 96px; }
.tag-titel { font-family: var(--titel); font-size: 1.3rem; }
.tag-details ul { display: grid; gap: 8px; margin-top: 12px; }
.tag-details li { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; }
.tag-details .z { font-family: var(--mono); font-size: 0.85rem; color: var(--knochen-2); }
.kalender-liste { margin-top: 32px; }
.termine-liste li.leer { grid-template-columns: 1fr; gap: 6px; }
.abo-hilfe { margin-top: 40px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.abo-hilfe summary { cursor: pointer; padding: 18px 0; font-family: var(--titel); font-size: 1.15rem; list-style: none; }
.abo-hilfe summary::-webkit-details-marker { display: none; }
.abo-hilfe summary::after { content: " +"; color: var(--gold); }
.abo-hilfe[open] summary::after { content: " –"; }
.abo-hilfe .antwort > div { padding-bottom: 20px; color: var(--knochen-2); }
[hidden] { display: none !important; }

/* Rechtstexte */
.recht-text { display: grid; gap: 16px; max-width: 68ch; }
.recht-text a { text-decoration: underline; }
.klein-hinweis { font-size: 0.85rem; max-width: none; }
.figur-karte { background: #e2dccf; }
.figur-karte img { padding: 16px 24px 0; }

/* ================================ Flyer-Farben ================================ */
html.flyer {
  --nacht: #ebe8e1; --nacht-2: #e1ddd4; --nacht-3: #d6d1c6;
  --knochen: #171513; --knochen-2: #3d3832; --knochen-3: #5c564d;
  --gold: #a51e22; --gold-hell: #c42a2e; --rot: #a51e22;
  --linie: rgba(23, 21, 19, 0.15); --linie-stark: rgba(23, 21, 19, 0.36);
  color-scheme: light;
}
html.flyer body {
  background-color: var(--nacht);
  /* Papierstruktur wie der Flyer, als feines Rauschen ohne Kachelkanten */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.flyer .kopf.fest { background: rgba(235, 232, 225, 0.84); }
html.flyer .marke-logo { color: var(--knochen); }
@media (hover: hover) { html.flyer .marke:hover .marke-logo { color: var(--rot); } }
html.flyer .kopf-probe { color: #fff; }
html.flyer .knopf { --k-grund: var(--rot); --k-text: #fff; }
html.flyer .knopf::before { background: var(--knochen); }
@media (hover: hover) { html.flyer .knopf:hover { color: var(--nacht); } }
html.flyer .knopf.hohl { --k-grund: transparent; --k-text: var(--knochen); border-color: var(--linie-stark); }
html.flyer .leuchtkasten { background: rgba(235, 232, 225, 0.97); }
html.flyer .ansicht button[aria-pressed="true"], html.flyer .galerie-filter button[aria-pressed="true"] { background: var(--knochen); color: var(--nacht); }
html.flyer .puls.ruhig, html.flyer .puls.ruhig i { color: var(--knochen-3); }
html.flyer .gruppen-nav a[aria-current="page"] { background: var(--knochen); color: var(--nacht); }
html.flyer .gruppen-nav a[aria-current="page"] small { color: #cfc8bb; }
html.flyer .wisch-deckel { background: #f2efe8; }

/* Seitenkopf: roter Pinselkreis und das graue Kanji 空手道 wie auf dem Flyer */
html.flyer .seitenkopf { border-bottom-color: var(--rot); }
html.flyer .seitenkopf .kreis {
  display: block; position: absolute; z-index: 0; pointer-events: none;
  width: min(46vw, 560px); aspect-ratio: 1; right: max(-12vw, -140px); top: clamp(-120px, -8vw, -40px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='r' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04 0.12' numOctaves='3' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='12'/%3E%3C/filter%3E%3Ccircle cx='200' cy='200' r='178' fill='%23a51e22' filter='url(%23r)'/%3E%3Ccircle cx='200' cy='200' r='193' fill='none' stroke='%23a51e22' stroke-width='2.2' filter='url(%23r)'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0.92); opacity: 0; transition: transform 1.6s var(--aus), opacity 1.2s var(--aus);
}
html.flyer .seitenkopf.da .kreis, html:not(.js).flyer .seitenkopf .kreis { transform: none; opacity: 1; }
html.flyer .seitenkopf .schatten-kanji {
  z-index: 1; writing-mode: vertical-rl; white-space: nowrap; letter-spacing: -0.02em; line-height: 1;
  right: clamp(8px, 6vw, 110px); top: 50%; transform: translateY(-50%);
  font-size: min(21vh, 26vw, 220px); color: rgba(23, 21, 19, 0.17);
}
html.flyer .seitenkopf.mit-figur .kreis { width: min(62vw, 600px); top: auto; bottom: clamp(20px, 6vh, 80px); right: clamp(-60px, 4vw, 120px); }
@media (max-width: 899px) {
  /* Handy (2026-10-05, Kyogaku: „das Handy an die Computer-Variante"): Kreis und Zeichen stehen
     zueinander wie bei 1440 px, in Einheiten der Kreis-Kastenbreite --d gerechnet (am Rechner 560 px):
     Kreis rechts −0,25 d / oben −0,205 d angeschnitten, Zeichen dunkel Ton in Ton, Schrift 0,3375 d für alle
     Zeichenzahlen, Mitte 0,072 d links der Kreismitte. Anders als am Rechner hängt die Höhe am Kreis
     (Mitte 0,089 d unter der Kreismitte, wie auf den Gruppenseiten), nicht an der Kopfmitte – sonst läuft es in den Text. */
  html.flyer .seitenkopf { --d: min(56vw, 300px); padding-top: calc(var(--d) * 0.78); }
  html.flyer .seitenkopf .kreis { width: var(--d); right: calc(var(--d) * -0.25); top: calc(var(--d) * -0.205); }
  /* Handy (2026-10-05, Kyogaku: „der rote Kreis sieht auf dem Handy unscharf aus"): iOS-WebKit rechnet den
     SVG-Filter (Pinselrand) im Hintergrundbild auf CSS-Pixeln statt Gerätepixeln – Rand treppig und weich.
     Deshalb hier dasselbe SVG (gleicher Filter, gleicher Seed), einmal in Chrome mit 1600 px gerendert, als Bild. */
  html.flyer .seitenkopf .kreis { background-image: url("../bilder/kreis-pinsel-1600.webp"); }
  html.flyer .seitenkopf .schatten-kanji { font-size: calc(var(--d) * 0.3375); top: calc(var(--d) * 0.384); bottom: auto; right: calc(var(--d) * 0.322); transform: translate(50%, -50%); }
  /* Mit Figur: der Kreis ist die Sonne hinter ihr, im selben Verhältnis wie am Rechner
     (Durchmesser = 1,075 × Figurhöhe, Mittelpunkt an der linken Kante der Figur auf 37 % ihrer Höhe). */
  html.flyer .seitenkopf.mit-figur { --d: min(112vw, 520px); --mx: 44vw; padding-top: 52px; padding-bottom: 0; }
  html.flyer .seitenkopf.mit-figur .seitenkopf-figur { justify-content: flex-start; padding-left: calc(var(--mx) - var(--rand)); margin-top: calc(var(--d) * 0.14); }
  html.flyer .seitenkopf.mit-figur .figur { height: calc(var(--d) / 1.075); }
  html.flyer .seitenkopf.mit-figur .kreis { width: var(--d); left: calc(var(--mx) - var(--d) / 2); right: auto; top: auto; bottom: calc(var(--d) * 0.09); }
  /* Zeichen wie am Rechner: dunkel, Schrift 0,315 d, Mitte 0,2955 d rechts der Kreismitte auf Kreishöhe, hinter der Figur. */
  html.flyer .seitenkopf.mit-figur .schatten-kanji { font-size: calc(var(--d) * 0.315); left: calc(var(--mx) + var(--d) * 0.2955); right: auto; top: auto; bottom: calc(var(--d) * 0.59); transform: translate(-50%, 50%); }
}

/* Fuß auf den Unterseiten: Flyer-Rot */
html.flyer .fuss { background: var(--rot); border-top: 0; --knochen: #fff; --knochen-2: #f7e4e3; --knochen-3: #efcfcd; --gold: #fff; --linie: rgba(255, 255, 255, 0.25); color: var(--knochen-2); }
@media (hover: hover) { html.flyer .fuss a:hover { color: #fff; text-decoration: underline; } }
html.flyer .fuss-kanji { color: rgba(255, 255, 255, 0.1); }
html.flyer .fuss :focus-visible { outline-color: #fff; }
html.flyer .probe-band { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); }
.monat-raster .tag .lbl { display: none; }
@media (min-width: 760px) { .monat-raster .tag { grid-template-rows: auto 1fr auto; } .monat-raster .tag .lbl { display: block; font-family: var(--text); font-size: 0.78rem; color: var(--knochen-2); } .monat-raster .tag .punkte { align-self: end; } .monat-raster .tag.gewaehlt .lbl { color: var(--nacht); } }

/* Handy-Feinschliff Startseite (2026-09-29) */
.gruppen-innen { grid-template-columns: minmax(0, 1fr); }
.gruppen-kopf, .gruppen-kopf > div, .gruppen-kopf p { min-width: 0; max-width: 100%; }
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .finale-text { background: rgba(10, 10, 11, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 22px 20px 24px; border-radius: 8px; border: 1px solid var(--linie); }
  .finale-innen { align-items: end; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .weg-satz { background: rgba(10, 10, 11, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 14px 16px; border-radius: 6px; }
  .zeichen-kanji { font-size: min(46vh, 29vw); }
}

/* ---------- Korrekturen nach Kyogakus Durchsicht (2026-09-29, spät) ---------- */
/* 1. Gruppen: Karte + Titel + Zeit passen immer ganz ins Fenster (auch 700–800 px Höhe) */
.gruppe-karte { width: min(76vw, 420px, max(190px, (100svh - 470px) * 0.8)); gap: 10px; }
.gruppe-karte h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.7rem); }
.gruppen-innen .gruppen-bahn { margin-top: clamp(14px, 2.5vh, 36px); align-items: start; }
.gruppe-karte .nr { mix-blend-mode: normal; color: #f2ede3; background: rgba(10, 10, 11, 0.72); padding: 4px 9px; border-radius: 99px; top: 12px; left: 12px; }
@media (max-height: 760px) and (min-width: 900px) { .gruppen-innen { padding-top: calc(var(--kopf) + 8px); } .gruppen-kopf h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); } }
/* 3. Handy-Menü: Knöpfe mit Knopfschrift statt Menü-Serif */
.menue-schicht .unten { gap: 12px; flex-wrap: nowrap; }
.menue-schicht .unten .knopf { flex: 1 1 0; justify-content: center; font-family: var(--text); font-weight: 600; font-size: 0.95rem; min-height: 50px; padding: 0 18px; }
/* 2. Handy, Der Weg: Gürtel frei, Schrift darunter statt Tafel darüber */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .weg-grad { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-block: 0; padding-inline: var(--rand); align-self: end; margin-bottom: 18px; }
  .weg-grad .zahl { font-size: clamp(3.6rem, 16vw, 5.4rem); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85); }
  .weg-satz { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
  .weg-satz p, .weg-kopf h2 { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); }
}
/* Menü-Knöpfe: Text senkrecht mittig (die Menü-Regel setzt display:block) */
.menue-schicht .unten .knopf { display: inline-flex; align-items: center; line-height: 1; }
/* Finale am kurzen Handy: Tafel kompakter, damit der weiße Gürtel darüber ganz sichtbar bleibt */
@media (max-width: 899px) and (max-height: 820px) {
  .finale-text { gap: 12px; padding: 16px 18px 18px; }
  .finale-text h2 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .finale-text p { font-size: 0.95rem; line-height: 1.5; }
  .finale-innen { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* Zeilenmasken: genug Raum für Unterlängen (g, j, p, y) und Überhänge (J, Ü) – der Innenabstand wird
   durch gleich große negative Außenabstände ausgeglichen, das Layout bleibt unverändert.
   Startlage der Einblendung entsprechend tiefer, damit vor der Animation nichts aus der Maske ragt. */
[data-zeilen] .zeile, .held h1 .zeile, .seitenkopf h1 .zeile {
  padding: 0.04em 0.12em 0.26em 0.12em; margin: -0.04em -0.12em -0.26em -0.12em;
}
.js .zeile > span { transform: translateY(calc(100% + 0.34em)); }
.js .zeilen-da .zeile > span { transform: none; }

/* ---------- Handy-Startseite, zweite Runde (2026-09-30) ---------- */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  /* Held: Gürtel oben, Textblock darunter – nie Text über dem Gürtel */
  .held { height: 135vh; }
  .held-innen { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .held-text { gap: 10px; }
  .held h1 { font-size: clamp(1.95rem, 8.6vw, 2.5rem); line-height: 1.02; }
  .held .unter { font-size: 0.98rem; line-height: 1.5; }
  /* Finale: kürzer, die Einladung steht sofort */
  .finale { height: 190vh; }
}
/* Kopfleiste über hellen Abschnitten: eigenes Papier statt grauem Rauchglas */
.kopf.fest.auf-hell { background: rgba(236, 231, 221, 0.94); color: #17150f; }
.kopf.auf-hell .marke-schrift span { color: #5d574d; }
.kopf.auf-hell .marke-logo { color: #8a6a2c; }
.kopf.auf-hell .menue a { color: #3b372f; }
.kopf.auf-hell .menue a[aria-current="page"] { color: #17150f; }
@media (hover: hover) { .kopf.auf-hell .menue a:hover { color: #17150f; } }
.kopf.auf-hell .menue a::after { background: #8a6a2c; }
.kopf.auf-hell .kopf-probe { --k-grund: #17150f; --k-text: #ece6da; background: #17150f; color: #ece6da; border-color: #17150f; }
.kopf.auf-hell .menue-knopf { color: #17150f; border-color: rgba(23, 21, 15, 0.35); }
.kopf.auf-hell::after { background: rgba(23, 21, 15, 0.14); }
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  /* Übergang Galerie → Finale am Handy kürzer, kein langer grauer Verlauf */
  .streifen { padding-bottom: calc(var(--abschnitt) * 1.1); }
  .streifen::after { height: calc(var(--abschnitt) * 0.9); }
}
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  /* Held: Kopfleiste steht über dem Held – unten Platz dafür lassen, sonst ragt der Text aus dem Bild */
  .held-innen { padding-bottom: calc(var(--kopf) + 18px + env(safe-area-inset-bottom)); }
  /* 率直館 → Verein: der helle Abschnitt schiebt sich über das Ende der Lichtfläche, kein leerer Papierbildschirm */
  /* 2026-10-05: erst wenn die Lichtfläche ganz aufgeblendet ist (start.js), kommt der helle Abschnitt – vorher schob er sich bei -58svh über die noch schwarzen Zeichen */
  .zeichen + .hell { margin-top: -22vh; margin-top: -22svh; z-index: 1; padding-top: 36px; }
}

/* Großer Einleitungssatz auf hellem Grund: vorher Knochengrau (für dunklen Grund gedacht), auf Papier kaum lesbar */
.hell .gross { color: #3d3832; }

/* ---------- Handy ohne feste Knopfleiste (2026-09-30) ----------
   Die Leiste „Anrufen / Probetraining“ verdeckte Inhalt und ist auf allen Seiten entfernt.
   Der Bodenabstand, der nur für sie freigehalten war, fällt weg. */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .fuss { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  html:not(.flyer) .finale-innen { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* Rechtsprüfung (2026-09-30): Widerspruchsrecht hervorgehoben, Datenschutz-Link am Formular */
.recht-hervor { border-left: 3px solid currentColor; padding: 4px 0 4px 16px; }
.form-notiz a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }

/* ---------- Kürzere Scroll-Strecken der Startseite (2026-09-30 abends) ----------
   Zwischen den Kapiteln stand der Gürtel zu lange allein im Bild. Die Choreografie ist an den Fortschritt
   des Abschnitts gebunden (0 … 1), deshalb ändert eine kürzere Strecke nur das Tempo, nicht die Folge:
   alle Grade, der Wisch und das Binden bleiben vollständig. */
.held { height: 150vh; }
.gruppen { height: 340vh; }
.finale { height: 240vh; }
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .held { height: 135vh; }
  .weg { height: 400vh; }
  .gruppen { height: 320vh; }
  .zeichen { height: 215vh; }
  .finale { height: 190vh; }
}
@media (prefers-reduced-motion: reduce) {
  .held, .weg, .gruppen, .zeichen, .finale { height: auto; }
}

/* ---------- Eine Kopfleiste für alle Breiten (2026-10-05) ----------
   Vorher: am Rechner Menü in der Leiste, am Handy ein Knopf „Menü“ mit eigener Vollbildschicht, anderen
   Bezeichnungen und ohne „Probetraining“. Jetzt ist es dieselbe Liste: am Handy klappt sie unter der Leiste auf,
   Logo und „Probetraining“ stehen immer in der Leiste. */
.kopf { --kopf-grund: #0c0c0d; }
.kopf.auf-hell { --kopf-grund: #ece7dd; }
html.flyer .kopf { --kopf-grund: #ebe8e1; }
.menue { margin-left: auto; }
.kopf-probe { flex: none; margin-left: 10px; }
.menue-knopf { display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; color: inherit; }
.menue-striche { display: grid; gap: 6px; width: 18px; }
.menue-striche i { display: block; height: 1.5px; background: currentColor; transition: transform 0.45s var(--aus); }
.kopf.menue-offen .menue-striche i:first-child { transform: translateY(3.75px) rotate(45deg); }
.kopf.menue-offen .menue-striche i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 900px) and (orientation: landscape), (min-width: 1101px) { .menue-knopf { display: none; } }
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .kopf .wrap { gap: 10px; }
  .marke { flex: none; margin-right: auto; gap: 10px; }
  .marke-schrift b { white-space: nowrap; }
  .marke-logo { width: 40px; height: 40px; }
  .kopf .kopf-probe { order: 2; margin-left: 0; min-height: 44px; padding: 0 15px; }
  .menue-knopf { order: 3; }
  .kopf.menue-offen { background: var(--kopf-grund); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .kopf::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; height: 100lvh; background: rgba(10, 10, 11, 0.42); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--aus); }
  .kopf.menue-offen::before { opacity: 1; pointer-events: auto; }
  .menue { display: block; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--kopf-grund); border-bottom: 1px solid var(--linie); max-height: calc(100vh - var(--kopf)); max-height: calc(100dvh - var(--kopf)); overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--inout), visibility 0s 0.5s; }
  .kopf.menue-offen .menue { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.5s var(--inout), visibility 0s; }
  .menue ul { display: grid; gap: 0; padding: 4px var(--rand) 16px; }
  .menue li + li { border-top: 1px solid var(--linie); }
  .menue a { display: flex; align-items: center; min-height: 50px; padding-block: 0; font-size: 1.02rem; }
  /* Kennzeichnung der aktuellen Seite wie am Rechner: Linie unter dem Wort, wortbreit (die Zeile bleibt als Ganzes antippbar) */
  .menue a::after { display: none; }
  .menue a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 9px; }
  .kopf.auf-hell .menue a[aria-current="page"] { text-decoration-color: #8a6a2c; }
}
@media (max-width: 429px) { .kopf-probe .pfeil { display: none; } }
@media (max-width: 379px) { .marke-schrift span { display: none; } .marke-schrift b { font-size: 0.95rem; } .kopf .kopf-probe { padding: 0 12px; font-size: 0.8rem; } }
@media (max-width: 339px) { .marke-schrift { display: none; } }
html.flyer .kopf.auf-hell::before, .kopf.auf-hell::before { background: rgba(23, 21, 15, 0.3); }

/* Fuß: unser Zeichen am Herstellervermerk (2026-10-05) */
/* Kyogaku 2026-10-05: Zeichen kleiner und hinter die Adresse, immer in derselben Zeile */
.fuss-vermerk { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: 0 0.4em; }
.fuss-museigen { display: block; width: 20px; height: 18px; margin-left: 4px; flex: none; }
.fuss-verein p a { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
@media (max-width: 369px) { .kopf .wrap { gap: 8px; } .marke-logo { width: 34px; height: 34px; } }

/* ---------- Handy-Vitrine, Konzept B (2026-10-05) ----------
   Am Handy steht der Gürtel vom Startbild bis zum Ende des Wegs in einer festen, gerahmten Bühne im oberen Bildteil
   (Maße setzt start.js als --b-oben/--b-unten/--b-rand). Der Heldentext gleitet unter ihre Unterkante, die Karten
   des Wegs stehen darunter – Text und Gürtel überschneiden sich nie, und der Gürtel verlässt nie unmotiviert das Bild.
   Gilt nur unter 900 px; die Klasse .vitrine setzt start.js nur dort. */
@media (max-width: 899px) {
  /* Die ganze Fläche oberhalb der Bühnen-Unterkante deckt ab (auch der Spalt unter der Kopfleiste und die Ränder),
     damit der Heldentext sauber an einer geraden Kante verschwindet; der Gürtel selbst bleibt im gerahmten Fenster. */
  html.vitrine .buehne {
    z-index: 2; pointer-events: auto; background: var(--nacht);
    clip-path: inset(0 0 calc(100% - var(--b-unten, 460px)) 0);
  }
  html.vitrine .buehne canvas { clip-path: inset(var(--b-oben, 74px) var(--b-rand, 14px) calc(100% - var(--b-unten, 460px)) var(--b-rand, 14px) round var(--b-radius, 16px)); }
  html.vitrine .buehne::before {
    inset: auto; top: var(--b-oben, 74px); left: var(--b-rand, 14px); right: var(--b-rand, 14px); height: calc(var(--b-unten, 460px) - var(--b-oben, 74px));
    border-radius: var(--b-radius, 16px); background: radial-gradient(85% 46% at 50% 36%, #2e2922 0%, #151412 60%, #0c0c0d 100%);
    opacity: var(--b-licht, 1);
  }
  /* Nachbesserung 2: Bühne geht ins Vollbild auf – ab da liegt sie hinter der Schrift (wie am Rechner), dahinter das gewohnte Licht */
  html.vitrine.vitrine-offen .buehne { z-index: 0; pointer-events: none; background: radial-gradient(90% 70% at 70% 40%, #1f1c18 0%, #0e0d0d 55%, var(--nacht) 100%); }
  html.vitrine .buehne::after {
    content: ""; position: absolute; pointer-events: none;
    top: var(--b-oben, 74px); left: var(--b-rand, 14px); right: var(--b-rand, 14px); height: calc(var(--b-unten, 460px) - var(--b-oben, 74px));
    border: 1px solid rgba(205, 168, 100, 0.3); border-radius: var(--b-radius, 16px); box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55);
    opacity: var(--b-rahmen, 1);
  }
}

/* ---------- Handy-Konzept C (2026-10-05): Gradzahl liegt über dem Band – dunkler Hof für die Lesbarkeit auf hellen Gürtelfarben ---------- */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .weg-grad .zahl { text-shadow: 0 0 2px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 42px rgba(0, 0, 0, 0.55); }
  .weg-grad .wort { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95); }
}

/* =====================================================================================
   Tablet-Fassung (2026-10-05, nach der Tablet-Prüfung, Kyogaku: „ja baue sie und baue alle drei varianten“)
   ===================================================================================== */

/* Stufe 1c – Berührziele ≥ 44 px nur auf Touch (pointer: coarse). Mit Maus ändert sich nichts.
   Rechner-Menü: unsichtbare Trefferfläche über ::before (::after ist die Goldlinie), das Wort bleibt, wo es ist. */
@media (pointer: coarse) {
  .menue a::before { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
  .kopf .kopf-probe, .knopf.klein { min-height: 44px; }
  .monat-kopf .knopf.klein { min-width: 44px; justify-content: center; }
  .ansicht button, .galerie-filter button { min-height: 44px; }
}

/* Stufe 2 – Seitenkopf der Unterseiten zwischen 900 und 1439 px: Überschrift und Untertitel enden vor dem roten Kreis.
   Ab 1440 px und unter 900 px gilt unverändert die bisherige Fassung.
   Ohne Figur: Kreis links = 100vw − min(46vw, 560px) + min(12vw, 140px) (aus width/right oben); die Textspalte endet 32 px davor.
   Das Zeichen steht innerhalb des Kreises und ist damit ebenfalls frei. */
@media (min-width: 900px) and (max-width: 1439px) {
  html.flyer .seitenkopf:not(.mit-figur) .seitenkopf-text { max-width: calc(100vw - min(46vw, 560px) + min(12vw, 140px) - var(--rand) - 32px); }
  /* Mit Figur (Verein): der Kreis ist die Sonne hinter der Figur – Durchmesser 1,075 × Figurhöhe, Mitte an ihrer linken Kante,
     wie bei 1440 px. Die Figur ist im Hochformat höchstens halb so hoch wie das Fenster breit ist (sonst frisst sie die Textspalte),
     und Überschrift und Untertitel enden 24 px vor dem Kreis; die Überschrift wird dafür so groß, dass „Das Haus der“ (6,5 em) passt. */
  html.flyer .seitenkopf.mit-figur {
    --fh: min(clamp(320px, 62vh, 620px), 50vw);
    --d: min(41.7vw, var(--fh) * 1.075);
    --spalte: calc(100vw - 2 * var(--rand) - var(--fh) * 0.5354 - var(--d) / 2 - 24px);
  }
  html.flyer .seitenkopf.mit-figur .figur { height: var(--fh); }
  html.flyer .seitenkopf.mit-figur .kreis { width: var(--d); right: calc(var(--rand) + var(--fh) * 0.5354 - var(--d) / 2); }
  html.flyer .seitenkopf.mit-figur .seitenkopf-text { max-width: var(--spalte); }
  html.flyer .seitenkopf.mit-figur h1 { font-size: min(clamp(2.8rem, 1.4rem + 6vw, 6.6rem), var(--spalte) / 6.5); }
}

/* Stufe 3 – Tablet im Hochformat (700–1100 px breit): Konzept C wie am Handy, aber in Tablet-Größen.
   Held-Titel wieder größer als die nächste Abschnittsüberschrift, Gradzahl groß, Band und Gradzahl im mittleren Drittel
   (handy-konzept.js richtet das Band an der Lage der Gradzahl aus), Satz und Gradleiste bleiben unten. */
@media (orientation: portrait) and (min-width: 700px) and (max-width: 1100px) {
  .held h1 { font-size: clamp(3.4rem, 1rem + 5vw, 4.2rem); line-height: 1.02; }
  .held .unter { font-size: 1.2rem; max-width: 40ch; }
  .held-text { gap: 16px; }
  .weg-grad { align-self: center; margin-bottom: 0; }
  .weg-grad .zahl { font-size: clamp(8rem, 1rem + 12vw, 10rem); }
  .weg-grad .wort { font-size: 0.95rem; }
}

/* Stufe 3 – Menü zwischen 900 und 999 px im Querformat: Rechner-Leiste wie die Rechner-Choreografie (vorher Mischform mit
   Hamburger). Damit sie passt, rücken die Punkte enger und der Vereinsname bricht nicht in vier Zeilen um. */
@media (min-width: 900px) and (max-width: 999px) and (orientation: landscape) {
  .menue ul { gap: 18px; }
  .marke { flex: none; }
  .marke-schrift b { white-space: nowrap; }
}

/* =====================================================================================
   Nachbesserung 2026-10-05 abends (Kyogaku: „bitte die gradzahl anpassen dass es genauso ist wie am rechner“)
   ===================================================================================== */
/* Gradzahl am Handy und im Tablet-Hochformat wie am Rechner in der Bildmitte; das Band läuft durch die Ziffern
   (handy-konzept.js richtet Lage und Breite des Bandes an der Zahl aus). Vorher stand die Zahl am Handy unten. */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .weg-grad { align-self: center; margin-bottom: 0; }
}

/* Rechner (gleiche Bedingung wie start.js „breit“): Kleinigkeiten nach Kyogakus Durchsicht */
@media (min-width: 900px) and (orientation: landscape), (min-width: 1101px) {
  /* 9. Kyu: helle Zahl auf weißem Band – dunkler Hof wie am Handy, nur beim weißen Gürtel */
  .weg-grad.weiss .zahl { text-shadow: 0 0 2px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 42px rgba(0, 0, 0, 0.55); }
  .weg-grad.weiss .wort { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95); }
  /* 率直館 → Verein: Sobald die Fahrt das Bild ganz ins Papier gefüllt hat, schiebt sich der Verein ohne Leerlauf herein.
     Er überlappt nur die letzten 10vh der Strecke – dort ist das Bild schon ganz Papier, seine Oberkante bleibt unsichtbar. */
  .zeichen + .hell { margin-top: -10vh; z-index: 1; padding-top: 8px; }
}
