/* Navigation The Last Hour (Board J und Quellen). Nur transform und opacity werden animiert.
   Farben kommen von der Seite: --tx (Text), --bgk (Grund der Bühne). */
.navi { --rot-t: #e0574c; position: fixed; z-index: 50; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px var(--rand); color: var(--tx); transition: opacity .9s, transform .9s var(--kurve-gleiten); }
body:not(.dunkel) .navi { --rot-t: #b9271d; }
body.vorspann .navi { opacity: 0; transform: translateY(-14px); pointer-events: none; }
body.im-abend .navi { --tx: #ece7de; --bgk: #0f0e0d; --rot-t: #e0574c; }
body.im-abend .navi .index { opacity: 0; pointer-events: none; }

/* Zeichen: beim Hover färbt sich der Mohn rot (zweite Ebene, Deckkraft) und dreht sich ein Stück */
.navi .marke-n { position: relative; justify-self: start; display: block; width: 34px; height: 34px; }
.navi .marke-n .mohn-n { position: absolute; inset: 0; transition: transform .8s var(--kurve-gleiten), opacity .5s; }
.navi .marke-n svg { display: block; width: 100%; height: 100%; }
.navi .marke-n .mohn-n.rot { color: #c62a1f; opacity: 0; }
.navi .marke-n:hover .mohn-n, .navi .marke-n:focus-visible .mohn-n { transform: rotate(45deg) scale(1.08); }
.navi .marke-n:hover .mohn-n.rot, .navi .marke-n:focus-visible .mohn-n.rot { opacity: 1; }

/* Uhrzeiten: gleich breite Knöpfe, ein Schieber gleitet unter den gewählten */
.navi .index { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: color-mix(in srgb, var(--tx) 9%, transparent); border: 1px solid color-mix(in srgb, var(--tx) 16%, transparent); }
/* Der Schieber liegt über den Knöpfen und trägt eine helle Kopie der Uhrzeiten, die gegenläufig mitgleitet:
   so steht auf dem Schieber immer helle Schrift, auch mitten in der Bewegung (kein Rot auf Rot) */
.navi .index .schieber { position: absolute; z-index: 2; left: 0; top: 4px; bottom: 4px; width: 60px; overflow: hidden; border-radius: 99px; background: var(--tx); transition: transform .75s cubic-bezier(.65, 0, .2, 1), opacity .4s; pointer-events: none; }
.navi .index .schieber .reihe { position: absolute; left: 0; top: 0; bottom: 0; display: flex; gap: 2px; padding-left: 4px; color: var(--bgk, #e4e1dc); transition: transform .75s cubic-bezier(.65, 0, .2, 1); }
.navi .index .schieber.tot .reihe { color: #fff; }
.navi .index .schieber .reihe span { width: 60px; display: grid; place-items: center; font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; }
.navi .index .schieber b { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: #c8372c; opacity: 0; transition: opacity .5s; }
.navi .index .schieber.tot b { opacity: 1; }
.navi .index button { position: relative; isolation: isolate; width: 60px; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; padding: 8px 0; text-align: center; border-radius: 99px; cursor: pointer; opacity: .72; transition: opacity .3s; }
.navi .index button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--tx); opacity: 0; transform: scale(.55); transition: opacity .35s, transform .5s var(--kurve-gleiten); }
.navi .index button.tot { color: var(--rot-t); }
.navi .index button:hover, .navi .index button:focus-visible { opacity: 1; }
.navi .index button:not(.aktiv):hover::before { opacity: .13; transform: none; }
.navi .index button.aktiv { opacity: 1; }

/* Wege rechts: echte Knöpfe, Füllung steigt beim Hover von unten */
.navi nav { justify-self: end; display: flex; gap: 8px; }
.navi nav a { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--tx) 38%, transparent); color: inherit; font-size: 14px; text-decoration: none; transition: color .4s; }
.navi nav a::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--tx); transform: translateY(102%); transition: transform .55s var(--kurve-gleiten); }
.navi nav a:hover, .navi nav a:focus-visible, .navi nav a[aria-current="page"] { color: var(--bgk, #e4e1dc); }
.navi nav a:hover::before, .navi nav a:focus-visible::before, .navi nav a[aria-current="page"]::before { transform: none; }
.navi nav a.hilfe { background: var(--tx); color: var(--bgk, #e4e1dc); border-color: var(--tx); }
.navi nav a.hilfe::before { background: var(--bgk, #e4e1dc); }
.navi nav a.hilfe:hover, .navi nav a.hilfe:focus-visible { color: var(--tx); }

@media (max-width: 1100px) { .navi .index button { width: 52px; font-size: 12px; } .navi .index .schieber { width: 52px; } .navi .index .schieber .reihe span { width: 52px; font-size: 12px; } .navi nav a { padding: 0 13px; } }
@media (max-width: 900px) {
  .navi { grid-template-columns: auto 1fr; padding: 12px var(--rand); }
  .navi .index { display: none; }
  .navi nav { gap: 5px; }
  .navi nav a { height: 34px; padding: 0 11px; font-size: 13px; }
  .navi .marke-n { width: 30px; height: 30px; }
}
@media (max-width: 380px) { .navi nav a { padding: 0 9px; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .navi .index .schieber, .navi .index .schieber .reihe, .navi .marke-n .mohn-n { transition: none; } }

/* Fuß: Projekt von Jerome, mit seinem Zeichen (Kind auf dem Pferd); beim Hover galoppiert es ein Stück */
.fuss-l { position: relative; z-index: 1; background: #0f0e0d; color: #cfc9bf; padding: clamp(56px, 7vw, 96px) var(--rand) 26px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; font-size: 14px; line-height: 1.45; }
.fuss-l .von { display: flex; align-items: center; gap: 20px; color: inherit; text-decoration: none; align-self: start; }
.fuss-l .von img { width: clamp(78px, 7vw, 104px); height: auto; filter: invert(.9); transition: transform .9s var(--kurve-gleiten); }
.fuss-l .von:hover img { transform: translateX(12px) rotate(-2deg); }
.fuss-l .von b { display: block; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.02em; color: #ece7de; }
.fuss-l .von small { display: block; margin-top: 4px; font-size: 13px; color: #8f8980; }
.fuss-l h3 { margin: 0 0 12px; font-size: 13px; font-weight: 400; color: #8f8980; }
.fuss-l ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fuss-l ul a { position: relative; color: #ece7de; text-decoration: none; }
.fuss-l ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--kurve-gleiten); }
.fuss-l ul a:hover::after, .fuss-l ul a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.fuss-l .klein { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: #8f8980; }
@media (max-width: 760px) { .fuss-l { grid-template-columns: 1fr; } }

/* Vorhang für Sprünge über Navigation und Fuß: nur Deckkraft und Bewegung des Mohns */
.vorhang { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #0f0e0d; opacity: 0; pointer-events: none; transition: opacity .45s var(--kurve-gleiten); }
.vorhang.zu { opacity: 1; pointer-events: auto; }
.vorhang.sofort { transition: none; }
.vorhang .mohn-v { display: block; width: 46px; color: #ece7de; opacity: 0; transform: scale(.6) rotate(-60deg); transition: transform .8s var(--kurve-gleiten), opacity .4s; }
.vorhang .mohn-v svg { display: block; width: 100%; height: auto; }
.vorhang.zu .mohn-v { opacity: 1; transform: none; }
.vorhang.sofort .mohn-v { transition: none; }
.fuss-l .klein .recht { display: inline-flex; gap: 18px; }
.fuss-l .klein .recht a { color: inherit; text-decoration: none; }
.fuss-l .klein .recht a:hover, .fuss-l .klein .recht a:focus-visible { color: #ece7de; text-decoration: underline; text-underline-offset: 3px; }
