/* ==========================================================================
   Mööpps — Streetband Luzern · Design-System
   Grün #4CBC5C · Ink #17161A · Grund #EDEBE4 · Panel #F6F4EE · Grau #5E5B55
   Display: Bricolage Grotesque · Lauftext: Source Serif 4 · Labels: JetBrains Mono
   ========================================================================== */

:root {
  --green: #4CBC5C;
  --green-dark: #2E9A40;
  --ink: #17161A;
  --bg: #EDEBE4;
  --panel: #F6F4EE;
  --gray: #5E5B55;
  --white: #FFFFFF;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 12px 32px -16px rgba(23,22,26,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--green-dark); }
a:hover { color: var(--ink); }

.label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237,235,228,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(23,22,26,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo em {
  font-style: normal;
  color: var(--green-dark);
}

.logo .label {
  margin-left: 0.5rem;
  align-self: center;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: 60vh;
}

.hero-copy .label { color: rgba(255,255,255,0.85); }
.hero-copy h1 { color: var(--white); margin-bottom: 0.3em; }
.hero-copy p.lead {
  font-family: "Source Serif 4", serif;
  font-size: 1.25rem;
  max-width: 46ch;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oval-wrap {
  position: relative;
  width: min(100%, 420px);
}

.oval-frame {
  position: relative;
  z-index: 2;
  border-radius: 50% / 45%;
  border: 6px solid rgba(255,255,255,0.85);
  overflow: hidden;
  aspect-ratio: 4/5;
  width: min(100%, 420px);
  box-shadow: var(--shadow);
  background: var(--green-dark);
}

.oval-wrap .oval-frame { width: 100%; }
.oval-frame img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-light { color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--green-dark); }
.btn-dark { color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--white); }
.btn:hover { transform: translateY(-2px); }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }
section.panel { background: var(--panel); }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* Steckbrief lexicon block */
.steckbrief {
  background: var(--ink);
  color: var(--panel);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.steckbrief .label { color: var(--green); }
.steckbrief h2 { color: var(--white); }
.steckbrief p { font-size: 1.05rem; }
.steckbrief .latin {
  font-style: italic;
  color: rgba(246,244,238,0.7);
}

/* Besetzung table */
.roster {
  width: 100%;
  border-collapse: collapse;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
}
.roster th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--gray);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
}
.roster td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(23,22,26,0.12);
}
.roster tr:hover td { background: rgba(76,188,92,0.08); }

/* Timeline (Stationen) */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--green);
}
.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -8.5px;
  top: 0.3em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
}
.timeline .year {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--green-dark);
  margin-right: 0.6rem;
}

/* Sujets grid */
.sujet-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.sujet-card img { width: 100%; height: 100%; object-fit: cover; }
.sujet-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(23,22,26,0.85), transparent);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}
.sujet-list {
  columns: 3;
  column-gap: 2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  line-height: 2;
}
.sujet-list .yr { color: var(--green-dark); font-weight: 700; }

/* Repertoire tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--panel);
  border: 1px solid rgba(23,22,26,0.15);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

/* Media / press lists */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(23,22,26,0.12);
}
.link-list a { text-decoration: none; font-weight: 600; }
.link-list a:hover { text-decoration: underline; }
.link-list .meta { display: block; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--gray); margin-top: 0.2rem; }

/* Contact */
.contact-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.contact-card .initial {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.3rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--panel);
  padding: 3rem 0 2rem;
}
.site-footer a { color: var(--green); }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer .label { color: rgba(246,244,238,0.55); }

.note-box {
  border: 1.5px dashed var(--green-dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--gray);
  background: rgba(76,188,92,0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* Das Menue haengt als Klappe direkt unter der Kopfzeile. Wichtig: die
     Kopfzeile hat backdrop-filter und ist damit Bezugsrahmen fuer fixe
     Kinder — ein "position: fixed" Menue bekaeme dort eine Hoehe von
     praktisch null und wuerde ohne Hintergrund ueber der Seite stehen. */
  .site-header .container { position: relative; }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg);
    border-top: 1px solid rgba(23,22,26,0.08);
    border-bottom: 1px solid rgba(23,22,26,0.10);
    box-shadow: 0 20px 34px -22px rgba(23,22,26,0.55);
    padding: 1.25rem 1.5rem 1.75rem;
    z-index: 60;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0.25rem; font-size: 1.05rem; }
  nav.main-nav li { border-bottom: 1px solid rgba(23,22,26,0.07); }
  nav.main-nav li:last-child { border-bottom: 0; }
  nav.main-nav a {
    display: block;
    padding: 0.8rem 0.2rem;
    border-bottom: 0;
  }
  nav.main-nav a[aria-current="page"] {
    color: var(--green-dark);
  }
  .nav-toggle { display: block; }

  .hero .container { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-media { order: -1; }
  .oval-frame,
  .oval-wrap { width: min(100%, 300px); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sujet-list { columns: 2; }
  .site-footer .container { flex-direction: column; }
}

@media (max-width: 480px) {
  .sujet-list { columns: 1; }
  .steckbrief { padding: 1.5rem; }
}

/* ==========================================================================
   Bewegung — Ticker, Marsch, schwebende Noten, Reveals
   Alle Animationen werden bei "prefers-reduced-motion" abgeschaltet.
   ========================================================================== */

/* ---------- Laufband (Paradenband) ---------- */
.ticker {
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2.25rem;
  padding: 0.55rem 0;
  animation: marquee 24s linear infinite;
  will-change: transform;
}
.ticker-track span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.ticker-track span.dim { color: rgba(246,244,238,0.4); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Laufband im Footer */
.site-footer:has(.footer-ticker) { padding-top: 0; }
.footer-ticker {
  background: rgba(76,188,92,0.12);
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 2.25rem;
}
.footer-ticker .ticker-track { animation-duration: 30s; padding: 0.4rem 0; }
.footer-ticker .ticker-track span { font-size: 0.66rem; }

/* ---------- Hero: schwebende Noten, wippendes Bild, Puls-Button ---------- */
.float-note {
  position: absolute;
  z-index: 1;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
  animation: float-up 9s linear infinite;
}

@keyframes float-up {
  0%   { transform: translateY(30px) rotate(-6deg); opacity: 0; }
  12%  { opacity: 0.75; }
  82%  { opacity: 0.5; }
  100% { transform: translateY(-280px) rotate(8deg); opacity: 0; }
}

.oval-frame { animation: bob 6s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-11px) rotate(1.2deg); }
}

.note-badge {
  position: absolute;
  top: 6%;
  right: 2%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--green-dark);
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: badge-wiggle 3.2s ease-in-out infinite;
}

@keyframes badge-wiggle {
  0%, 100% { transform: rotate(-9deg) scale(1); }
  50%      { transform: rotate(9deg) scale(1.06); }
}

.cta-wrap { position: relative; display: inline-block; }
.cta-wrap::before,
.cta-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.65);
  pointer-events: none;
  animation: pulse-ring 2.6s ease-out infinite;
}
.cta-wrap::after { animation-delay: 1.3s; }

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Marschkapelle ---------- */
.march {
  background: var(--ink);
  color: var(--panel);
  padding: 2.25rem 0;
  overflow: hidden;
}
.march .container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.march-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--green);
  flex-shrink: 0;
  margin: 0;
}
.march-row {
  display: flex;
  align-items: flex-end;
  gap: 2.25rem;
  flex: 1;
  flex-wrap: wrap;
}
.march-icon {
  color: var(--green);
  animation: march-bounce 1.1s ease-in-out infinite;
}

@keyframes march-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---------- Karten, Sujets, Tags ---------- */
a.card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 18px 40px -16px rgba(23,22,26,0.4);
}
.card .arrow {
  display: inline-block;
  color: var(--green-dark);
  transition: transform 0.2s ease;
}
a.card:hover .arrow { transform: translateX(5px); }

.sujet-card img { transition: transform 0.5s ease; }
.sujet-card:hover img { transform: scale(1.05); }

.tag { transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.tag:hover {
  transform: translateY(-2px);
  background: rgba(76,188,92,0.12);
  border-color: var(--green);
}

/* ---------- Zitat-Unterstreichung im Steckbrief ---------- */
.quote-underline {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: var(--white);
}
.quote-underline svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 8px;
  overflow: visible;
}
.quote-underline path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw-underline 2.4s ease-in-out 0.6s infinite alternate;
}

@keyframes draw-underline {
  to { stroke-dashoffset: 0; }
}

/* ---------- Kanäle: Live-Punkt und Equalizer ---------- */
.kanal-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(76,188,92,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(76,188,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,188,92,0); }
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-left: auto;
}
.eq span {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--green-dark);
  transform-origin: bottom;
  animation: eq-bounce 1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 40%;  animation-delay: 0s; }
.eq span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.eq span:nth-child(3) { height: 60%;  animation-delay: 0.3s; }
.eq span:nth-child(4) { height: 85%;  animation-delay: 0.45s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* ---------- Einblenden beim Scrollen ----------
   Nur in Browsern mit scroll-gesteuerten Animationen; sonst bleibt alles
   normal sichtbar (kein Inhalt hängt von JavaScript ab). */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Karten blenden nur über die Deckkraft ein — so bleibt der Hover-Effekt
   (transform) unangetastet. */
@keyframes reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head,
    .timeline li,
    .steckbrief,
    .note-box {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }

    .card,
    .sujet-card {
      animation: reveal-fade linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }
  }
}

/* ---------- Fasnachts-Countdown (in der Marschleiste) ---------- */
.countdown {
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.countdown .cd-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(246,244,238,0.55);
  margin-bottom: 0.3rem;
}
.countdown .cd-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.countdown .cd-sec { opacity: 0.65; }
.countdown.is-fasnacht .cd-value { animation: cd-blink 1.4s ease-in-out infinite; }

@keyframes cd-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ---------- Auftrittsagenda ---------- */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(23,22,26,0.12);
}
.agenda li:first-child { border-top: 1px solid rgba(23,22,26,0.12); }
.agenda .a-datum {
  flex: 0 0 12rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.agenda .a-text { flex: 1; }
.agenda .a-titel {
  display: block;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
}
.agenda .a-ort { color: var(--gray); font-size: 0.95rem; }
.agenda .a-bald {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: 0.15em;
}
.agenda-leer { color: var(--gray); }

/* ---------- Booking-Formular ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.form-feld { display: flex; flex-direction: column; gap: 0.4rem; }
.form-feld.voll { grid-column: 1 / -1; }
.form-feld label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
}
.form-feld input,
.form-feld select,
.form-feld textarea {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(23,22,26,0.2);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-feld textarea { resize: vertical; min-height: 130px; }
.form-feld input:focus,
.form-feld select:focus,
.form-feld textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,188,92,0.22);
}
.form-feld input:invalid:not(:placeholder-shown) { border-color: #C4553A; }
/* Honigtopf gegen Spam-Roboter — für Menschen unsichtbar */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-aktion { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.form-hinweis { font-size: 0.85rem; color: var(--gray); }
.form-status {
  margin-top: 1.2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form-status.ok { background: rgba(76,188,92,0.14); border: 1.5px solid var(--green); }
.form-status.fehler { background: rgba(196,85,58,0.1); border: 1.5px solid #C4553A; }
button.btn { background: none; cursor: pointer; font-family: "JetBrains Mono", ui-monospace, monospace; }
button.btn[disabled] { opacity: 0.55; cursor: progress; }

@media (max-width: 860px) {
  .agenda li { flex-direction: column; gap: 0.3rem; }
  .agenda .a-datum { flex: none; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Hörprobe / Video ---------- */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  font: inherit;
  color: inherit;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.3s ease;
}
.video-facade:hover img,
.video-facade:focus-visible img { transform: scale(1.04); filter: brightness(0.88); }
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,22,26,0.55), rgba(23,22,26,0.05) 55%);
  pointer-events: none;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(23,22,26,0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  animation: pulse-ring 2.6s ease-out infinite;
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--green-dark); }
.video-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--white);
  pointer-events: none;
}
.video-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); display: block; }

/* ---------- Lightbox für Bilder ---------- */
.lb-trigger { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  background: rgba(23,22,26,0.93);
  backdrop-filter: blur(3px);
}
.lightbox.open { display: flex; animation: lb-fade 0.22s ease-out; }

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
}
.lightbox figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: rgba(246,244,238,0.85);
}
.lb-btn {
  position: absolute;
  background: rgba(246,244,238,0.1);
  border: 1px solid rgba(246,244,238,0.25);
  color: var(--panel);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lb-btn:hover { background: rgba(246,244,238,0.22); transform: scale(1.06); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; margin-top: -23px; }
.lb-next { right: 1.25rem; top: 50%; margin-top: -23px; }
.lb-count {
  position: absolute;
  top: 1.6rem;
  left: 1.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(246,244,238,0.6);
}
body.lb-open { overflow: hidden; }

/* ---------- Sujet-Teaser auf der Startseite ---------- */
.jahr-karte {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jahr-karte img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.jahr-karte:hover { transform: translateY(-4px); box-shadow: 0 18px 38px -18px rgba(23,22,26,0.5); }
.jahr-karte:hover img { transform: scale(1.05); }
.jahr-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(23,22,26,0.85), transparent);
  color: var(--white);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
}

/* ---------- Zusatzmaterial pro Sujet (Dokumente, Videos) ---------- */
.sujet-extras { display: none; }

.sujet-card { position: relative; }

.sujet-mehr {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(23,22,26,0.72);
  color: var(--panel);
  border: 1px solid rgba(246,244,238,0.3);
  pointer-events: none;
}

.lightbox video.lb-video {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
}
.lightbox video.lb-video[hidden],
.lightbox audio.lb-audio[hidden],
.lightbox img[hidden] { display: none; }

.lightbox audio.lb-audio {
  display: block;
  width: min(420px, 100%);
  margin: 1rem auto 0;
}

.lb-doc {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(246,244,238,0.35);
  color: var(--panel);
  text-decoration: none;
  font-size: 0.78rem;
  transition: background 0.15s ease;
}
.lb-doc:hover { background: rgba(246,244,238,0.18); color: var(--white); }
.lb-doc[hidden] { display: none; }
.lightbox figcaption .lb-text { display: block; }

/* ---------- Materialstreifen in der Grossansicht ---------- */
.lb-strip {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  max-width: min(900px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(23,22,26,0.72);
  border: 1px solid rgba(246,244,238,0.18);
  overflow-x: auto;
  scrollbar-width: none;
}
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip[hidden] { display: none; }

.lb-strip-titel {
  flex: 0 0 auto;
  padding: 0 0.4rem 0 0.2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.6);
  white-space: nowrap;
}

.lb-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(246,244,238,0.1);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.lb-thumb.ist-aktiv { opacity: 1; border-color: var(--green); }

.lb-thumb-typ {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(23,22,26,0.8);
  color: var(--panel);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.55rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.lightbox:has(.lb-audio:not([hidden])) img {
  max-height: min(360px, calc(100vh - 20rem));
}

/* Bild etwas kleiner, damit der Streifen nicht darauf liegt */
.lightbox:has(.lb-strip:not([hidden])) img,
.lightbox:has(.lb-strip:not([hidden])) video.lb-video {
  max-height: calc(100vh - 14rem);
}

@media (max-width: 620px) {
  .lb-strip { bottom: 0.6rem; gap: 0.4rem; padding: 0.45rem 0.55rem; }
  .lb-strip-titel { display: none; }
  .lb-thumb { width: 52px; height: 38px; }
}

@media (max-width: 860px) {
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .video-play { width: 64px; height: 64px; }
}

/* ---------- Bewegung auf kleinen Bildschirmen ---------- */
@media (max-width: 860px) {
  /* Marschkapelle: Titel oben, Instrumente in einer Reihe */
  .march .container { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .march-row { width: 100%; gap: 0.75rem; justify-content: space-between; }
  .march-icon svg { height: 24px; width: auto; }
  .march-icon:nth-child(n+6) { display: none; }
  .countdown { margin-left: 0; text-align: left; }
}

/* ---------- Rücksicht auf reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
