/* ============================================================
   Konzertseite — zentrales Stylesheet
   Farbwelt: Tannengrün mit Lichtverlauf, Akzent Messing
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --gruen-tief:   #102B27;
  --gruen-flaech: #173934;
  --gruen-hoch:   #21514B;
  --gruen-licht:  #2E645C;
  --salbei:       #86A9A0;
  --knochen:      #EDE9DE;
  --akzent:      #0CC0DF;   /* Cyan, Zweitfarbe */
  --akzent-tief: #076C7A;   /* dunkler, fuer Text auf hellem Grund */

  /* Eine Familie fuer alles, nur unterschiedlich gewichtet.
     Rein aus dem System, laedt nichts nach. */
  --schrift-display: "Segoe UI Variable Display", "Segoe UI", -apple-system,
                     "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
  --schrift-text: "Segoe UI Variable Text", "Segoe UI", -apple-system,
                  "Helvetica Neue", Inter, Roboto, Arial, sans-serif;

  --rand: clamp(1.25rem, 5vw, 5.5rem);
  --breite: 78rem;
  --luft: clamp(5rem, 12vh, 9rem);

  --linie: 1px solid rgba(237, 233, 222, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--gruen-tief);
  color: var(--knochen);
  font-family: var(--schrift-text);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lichtverlauf über die gesamte Seite, Quelle oben links */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 8% -10%,
      #5C817A 0%,
      #35635B 22%,
      #21504A 45%,
      #163934 68%,
      #0E2724 100%);
}

/* Filmkörnung, wie in der Vorlage */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23k)' opacity='0.42'/%3E%3C/svg%3E");
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--schrift-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.2;
}

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.fliess {
  color: rgba(237, 233, 222, 0.82);
}

.leise {
  color: var(--salbei);
  font-size: 0.9375rem;
}

/* ---------- Grundgerüst ---------- */
.bahn {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

section {
  padding-block: var(--luft);
  border-top: var(--linie);
}

section:first-of-type { border-top: none; }

.kopfzeile-abschnitt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}

@media (min-width: 60rem) {
  .kopfzeile-abschnitt {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: end;
  }
}

/* ---------- Fokus ---------- */
:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Kopfnavigation ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 2.6rem 0.75rem;
}

/* Der Kasten selbst: schwebt auf der Seite, nicht randlos */
.kopf-innen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(237, 233, 222, 0.14);
  background-color: rgba(16, 43, 39, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  transition: background-color 220ms ease, border-color 220ms ease,
              box-shadow 220ms ease;
}

.kopf[data-gescrollt="ja"] .kopf-innen {
  background-color: rgba(13, 35, 32, 0.92);
  border-color: rgba(237, 233, 222, 0.2);
  box-shadow: 0 1rem 2.5rem rgba(6, 20, 18, 0.45);
}

.wortmarke {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wortmarke img {
  display: block;
  height: 6.5rem;
  width: auto;
  /* Steht oben und unten aus dem Kasten heraus, ohne ihn hoeher zu machen */
  margin-block: -2.05rem;
}

@media (min-width: 40rem) {
  .wortmarke img { height: 8.5rem; margin-block: -3.05rem; }
}

@media (min-width: 64rem) {
  .wortmarke img { height: 10.5rem; margin-block: -4.05rem; }
}

/* Rechte Seite: Ticketknopf und Menüknopf */
.kopf-rechts {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Klappmenü auf schmalen Bildschirmen */
.menue-knopf {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 0.3rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menue-knopf span {
  display: block;
  height: 1.5px;
  background-color: var(--knochen);
  transition: transform 200ms ease, opacity 200ms ease;
}

.menue-knopf[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.45rem) rotate(45deg);
}

.menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.menue-knopf[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.45rem) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .menue-knopf span { transition: none; }
}

.kopf-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

/* Geöffnet: volle Breite unter der Kopfzeile */
.kopf-nav[data-offen="ja"] {
  display: grid;
  order: 3;
  width: 100%;
  gap: 0.4rem;
  padding-top: 0.75rem;
}

.kopf-nav[data-offen="ja"] a {
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(237, 233, 222, 0.14);
  font-size: 0.9375rem;
  color: rgba(237, 233, 222, 0.85);
  transition: border-color 160ms ease, color 160ms ease;
}

.kopf-nav[data-offen="ja"] a:hover {
  border-color: rgba(12, 192, 223, 0.45);
  color: var(--knochen);
}

.kopf-nav[data-offen="ja"] a::after { display: none; }

/* Ab Tablet dauerhaft sichtbar, Menüknopf entfällt */
@media (min-width: 56rem) {
  .kopf-nav,
  .kopf-nav[data-offen="ja"],
  .kopf-nav[data-offen="nein"] {
    display: flex;
    /* Navigation in die Mitte, Ticketknopf ganz nach rechts */
    order: 1;
    width: auto;
    padding-top: 0;
    border-top: none;
  }

  .kopf-rechts { order: 2; }

  .kopf-nav a {
    padding: 0.5rem 0;
    border: none;
    border-radius: 0;
    font-size: 0.9375rem;
    color: rgba(237, 233, 222, 0.78);
  }
  .kopf-nav a::after { display: block; }
  .menue-knopf { display: none; }
}

.kopf-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: rgba(237, 233, 222, 0.78);
  padding-block: 0.5rem;
  position: relative;
  transition: color 160ms ease;
}

.kopf-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: var(--akzent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.kopf-nav a:hover { color: var(--knochen); }
.kopf-nav a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .kopf-nav a::after { transition: none; }
  .kopf-innen { transition: none; }
}

/* Ticketknopf hervorgehoben */
.kopf-innen .knopf {
  box-shadow: 0 0 0 0 rgba(12, 192, 223, 0.55);
  animation: puls 3.6s ease-out infinite;
}

@keyframes puls {
  0%   { box-shadow: 0 0 0 0 rgba(12, 192, 223, 0); }
  18%  { box-shadow: 0 0 0 0 rgba(12, 192, 223, 0.5); }
  40%  { box-shadow: 0 0 0 0.6rem rgba(12, 192, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 192, 223, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .kopf-innen .knopf { animation: none; }
}

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--schrift-text);
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--akzent);
  color: var(--akzent);
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.knopf:hover {
  background-color: var(--akzent);
  color: var(--gruen-tief);
}

.knopf--voll {
  background-color: var(--akzent);
  color: var(--gruen-tief);
}

.knopf--voll:hover {
  background-color: var(--knochen);
  border-color: var(--knochen);
}

.knopf--gross {
  padding: 1.1rem 2.1rem;
  font-size: 1rem;
}

.knopf[aria-disabled="true"] {
  border-color: rgba(237, 233, 222, 0.28);
  color: rgba(237, 233, 222, 0.5);
  cursor: default;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  /* Gerade so viel, dass das Bild nicht unter dem Kopf verschwindet */
  padding-block: clamp(1rem, 2vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  border-top: none;
}

.hero-titel {
  position: relative;
  z-index: 2;
  font-weight: 600;
  font-size: clamp(4rem, 19vw, 17rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: -0.46em 0 1.25rem;
  text-align: center;
}

.hero-daten {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  max-width: none;
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: rgba(237, 233, 222, 0.88);
}

.hero-daten span {
  color: var(--akzent);
}

/* Bildkasten: gleiche Form wie die Tafeln, nur groesser */
.hero-bild {
  position: relative;
  margin: 0;
  border-radius: 1.75rem;
  border: 1px solid rgba(237, 233, 222, 0.13);
  overflow: hidden;
  background-color: var(--gruen-hoch);
  box-shadow: 0 2rem 4.5rem rgba(6, 20, 18, 0.5);
}

/* Dunkler Verlauf am unteren Bildrand, damit der Schriftzug
   auf jedem Motiv lesbar bleibt */
.hero-bild::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top,
    rgba(9, 27, 24, 0.85) 0%,
    rgba(9, 27, 24, 0.35) 55%,
    transparent 100%);
  pointer-events: none;
}

.hero-bild img {
  display: block;
  width: 100%;
  height: auto;
  /* Querformat wird hochkant beschnitten, damit es groesser wirkt */
  aspect-ratio: 4 / 5;
  max-height: 64svh;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 40rem) {
  .hero-bild img { aspect-ratio: 3 / 2; }
}

@media (min-width: 64rem) {
  .hero-bild img { aspect-ratio: 16 / 9; }
}

/* Einblendung beim Laden: ein einziger orchestrierter Moment */
.einblenden > * {
  opacity: 0;
  transform: translateY(0.9rem);
  animation: aufblenden 900ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.einblenden > *:nth-child(1) { animation-delay: 120ms; }
.einblenden > *:nth-child(2) { animation-delay: 240ms; }
.einblenden > *:nth-child(3) { animation-delay: 400ms; }

@keyframes aufblenden {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .einblenden > * { animation: none; opacity: 1; transform: none; }
}

/* ---------- Tafel: heller Block hinter Textinhalten ---------- */
.tafel {
  background-color: rgba(33, 81, 75, 0.55);
  border: 1px solid rgba(237, 233, 222, 0.13);
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  backdrop-filter: blur(2px);
}

.tafel-paar {
  display: grid;
  gap: clamp(0.85rem, 2.5vw, 1.25rem);
}

@media (min-width: 52rem) {
  .tafel-paar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tafel h3 { margin-bottom: 0.75rem; }

/* ---------- Einleitung ---------- */
.einleitung .tafel > .fliess:first-of-type {
  color: rgba(237, 233, 222, 0.9);
}

.einleitung .fliess {
  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 58ch;
}

/* ---------- Lineup ---------- */
.act {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-top: var(--linie);
  align-items: center;
}

.act:last-child { border-bottom: var(--linie); }

@media (min-width: 48rem) {
  .act {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.act-bild {
  aspect-ratio: 1;
  width: 100%;
  max-width: 9rem;
  background-color: var(--gruen-hoch);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.act-name {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

/* ---------- Ablauf ---------- */
.ablauf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 44rem;
}

.ablauf li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: clamp(0.9rem, 2.5vw, 1.4rem);
  border-top: var(--linie);
  align-items: baseline;
}

.ablauf li:last-child { border-bottom: var(--linie); }

.ablauf time {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: var(--akzent);
}

/* ---------- Tickets ---------- */
.karten {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.karte {
  background-color: rgba(33, 81, 75, 0.5);
  border: 1px solid rgba(237, 233, 222, 0.13);
  border-radius: 0.75rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.karte--hervor {
  border-color: rgba(12, 192, 223, 0.55);
}

.karte-etikett {
  font-size: 0.8125rem;
  color: var(--akzent);
}

.karte-preis {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.25rem 0 0.5rem;
}

.karte ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(237, 233, 222, 0.8);
  margin-top: auto;
  padding-top: 0.75rem;
}

.karte li {
  padding-left: 1.1rem;
  position: relative;
}

.karte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background-color: var(--akzent);
}

.hinweis-verkauf {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px dashed rgba(12, 192, 223, 0.45);
  border-radius: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.hinweis-verkauf p { margin: 0; max-width: 42ch; }

/* Buehne: alle Bilder liegen uebereinander, nicht nebeneinander */
.buehne {
  --dia-breite: clamp(15rem, 52vw, 24rem);
  /* 4:5 hochkant — jedes Bild wird auf dieses Verhaeltnis beschnitten */
  --dia-hoehe: calc(var(--dia-breite) * 5 / 4);

  position: relative;
  height: calc(var(--dia-hoehe) + 4rem);
  perspective: 1600px;
  touch-action: pan-y;
  overflow: hidden;
  cursor: grab;
  /* Raender weich auslaufen lassen, damit die hintere Reihe verschwindet */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0, #000 9%, #000 91%, transparent 100%);
}

.buehne:active { cursor: grabbing; }

.dia {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--dia-breite);
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: var(--gruen-hoch);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 460ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 460ms ease,
              filter 460ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .dia { transition: none; }
}

.dia img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  /* Beschneidet mittig, egal welches Format hochgeladen wird */
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.dia figcaption {
  padding: 0.3rem 0.85rem 0.4rem;
  font-size: 0.625rem;
  line-height: 1.25;
  letter-spacing: 0.05em;
  color: rgba(237, 233, 222, 0.4);
}

/* Mitte: vorne, scharf, mit Schatten */
.dia[data-pos="0"] {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 4;
  cursor: default;
  box-shadow: 0 0.75rem 2rem rgba(6, 20, 18, 0.55);
}

/* Erste Reihe dahinter */
.dia[data-pos="-1"] {
  transform: translateX(calc(-50% - var(--dia-breite) * 0.62)) scale(0.78);
  opacity: 0.9;
  filter: brightness(0.5) saturate(0.8);
  z-index: 3;
  cursor: pointer;
}

.dia[data-pos="1"] {
  transform: translateX(calc(-50% + var(--dia-breite) * 0.62)) scale(0.78);
  opacity: 0.9;
  filter: brightness(0.5) saturate(0.8);
  z-index: 3;
  cursor: pointer;
}

/* Zweite Reihe, noch weiter hinten */
.dia[data-pos="-2"] {
  transform: translateX(calc(-50% - var(--dia-breite) * 1.04)) scale(0.6);
  opacity: 0.75;
  filter: brightness(0.32) saturate(0.7);
  z-index: 2;
  cursor: pointer;
}

.dia[data-pos="2"] {
  transform: translateX(calc(-50% + var(--dia-breite) * 1.04)) scale(0.6);
  opacity: 0.75;
  filter: brightness(0.32) saturate(0.7);
  z-index: 2;
  cursor: pointer;
}

/* Wartende Bilder: unsichtbar hinter der zweiten Reihe */
.dia[data-pos="fern-links"] {
  transform: translateX(calc(-50% - var(--dia-breite) * 1.25)) scale(0.48);
  opacity: 0;
  filter: brightness(0.25);
  z-index: 1;
  pointer-events: none;
}

.dia[data-pos="fern-rechts"] {
  transform: translateX(calc(-50% + var(--dia-breite) * 1.25)) scale(0.48);
  opacity: 0;
  filter: brightness(0.25);
  z-index: 1;
  pointer-events: none;
}

.punkte {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.punkt {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: rgba(237, 233, 222, 0.28);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.punkt[aria-current="true"] {
  background-color: var(--akzent);
  transform: scale(1.35);
}


/* ---------- Aktuelles ---------- */
.news-reihe {
  --news-breite: clamp(15rem, 23vw, 19rem);
  --news-luecke: 1.5rem;

  position: relative;
  /* Bild im Verhaeltnis 4:5 plus Datum, Titel, Text und Knopf */
  height: calc(var(--news-breite) * 1.25 + 15rem);
  overflow: hidden;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0, #000 6%, #000 94%, transparent 100%);
}

.beitrag {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--news-breite);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(237, 233, 222, 0.13);
  background-color: rgba(33, 81, 75, 0.55);
  text-decoration: none;
  transition: transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 400ms ease, filter 400ms ease,
              border-color 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .beitrag { transition: none; }
}

.beitrag-datum {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(237, 233, 222, 0.12);
  font-size: 0.75rem;
  color: var(--knochen);
}

.beitrag h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.beitrag-bild {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.75rem;
}

.beitrag .fliess {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.beitrag-knopf {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
}

.beitrag[data-pos="0"] {
  transform: translateX(-50%);
  opacity: 1;
  filter: none;
  z-index: 3;
}

.beitrag[data-pos="0"]:hover { border-color: rgba(12, 192, 223, 0.55); }

.beitrag[data-pos="-1"] {
  transform: translateX(calc(-50% - var(--news-breite) - var(--news-luecke)));
  opacity: 0.9;
  filter: brightness(0.45) saturate(0.75);
  z-index: 2;
}

.beitrag[data-pos="1"] {
  transform: translateX(calc(-50% + var(--news-breite) + var(--news-luecke)));
  opacity: 0.9;
  filter: brightness(0.45) saturate(0.75);
  z-index: 2;
}

.beitrag[data-pos="fern-links"],
.beitrag[data-pos="fern-rechts"] {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.beitrag[data-pos="fern-links"] {
  transform: translateX(calc(-50% - (var(--news-breite) + var(--news-luecke)) * 2));
}

.beitrag[data-pos="fern-rechts"] {
  transform: translateX(calc(-50% + (var(--news-breite) + var(--news-luecke)) * 2));
}

/* Pfeile sitzen mittig auf den abgedunkelten Nachbarkarten */


.pfeil--news[data-news-richtung="-1"] {
  left: calc(50% - var(--news-breite) / 2);
  transform: translate(-50%, -50%);
}

.pfeil--news[data-news-richtung="1"] {
  left: calc(50% + var(--news-breite) / 2);
  transform: translate(-50%, -50%);
}

/* ---------- Seitenkopf auf Unterseiten ---------- */
.seitenkopf {
  padding-block: clamp(5rem, 9vh, 7rem) 2.5rem;
  border-top: none;
}

.seitenkopf h1 {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 1.5rem + 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
}

/* ---------- Ticketkarten: Knopf am Fuß ---------- */
.karte .knopf { width: 100%; }
.karte > p:last-child { margin-top: 1.25rem; }

/* ---------- Kopf der Bildergalerie ---------- */
.galerie-jahr {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}


/* ---------- Slider-Knöpfe ---------- */
.pfeil {
  position: absolute;
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(237, 233, 222, 0.45);
  background-color: rgba(16, 43, 39, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 0.5rem 1.5rem rgba(6, 20, 18, 0.5);
  color: var(--knochen);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 160ms ease, border-color 160ms ease,
              color 160ms ease;
}

.pfeil:hover {
  background-color: var(--akzent);
  border-color: var(--akzent);
  color: var(--gruen-tief);
}

.pfeil svg { width: 1.15rem; height: 1.15rem; }

@media (min-width: 40rem) {
  .pfeil { width: 3.25rem; height: 3.25rem; }
}

/* Bildergalerie: auf den Kanten des vorderen Bildes */
.pfeil[data-richtung] { top: calc(var(--dia-hoehe) / 2); }

.pfeil[data-richtung="-1"] {
  left: calc(50% - var(--dia-breite) / 2);
  transform: translate(-50%, -50%);
}

.pfeil[data-richtung="1"] {
  left: calc(50% + var(--dia-breite) / 2);
  transform: translate(-50%, -50%);
}

/* News: auf den Kanten der vorderen Karte */
.pfeil--news { top: 50%; }

.pfeil--news[data-news-richtung="-1"] {
  left: calc(50% - var(--news-breite) / 2);
  transform: translate(-50%, -50%);
}

.pfeil--news[data-news-richtung="1"] {
  left: calc(50% + var(--news-breite) / 2);
  transform: translate(-50%, -50%);
}



/* ---------- Mittiger Abschnittskopf ---------- */
.abschnitt-mitte {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3.5vw, 3rem);
}

.abschnitt-mitte h2 { margin: 0; }

.unterzeile {
  margin: 0.75rem auto 0;
  max-width: 46ch;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  color: var(--salbei);
}


/* ---------- Fußzeile, schmal ---------- */
.fuss {
  border-top: var(--linie);
  padding-block: 1.75rem;
  font-size: 0.875rem;
  color: var(--salbei);
}

.fuss-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.fuss-leiste p { margin: 0; }
.fuss-termin b { color: var(--knochen); font-weight: 600; }

.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.fuss-links a { text-decoration: none; transition: color 160ms ease; }
.fuss-links a:hover { color: var(--knochen); }
.fuss-links span { color: rgba(237, 233, 222, 0.32); }

/* Symbole und Trägerlogo in der Mitte */
.fuss-mitte {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.symbol {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(237, 233, 222, 0.2);
  color: var(--salbei);
  transition: color 160ms ease, border-color 160ms ease,
              background-color 160ms ease;
}

.symbol:hover {
  color: var(--gruen-tief);
  background-color: var(--akzent);
  border-color: var(--akzent);
}

.symbol svg { width: 1.15rem; height: 1.15rem; }

.traeger {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(237, 233, 222, 0.15);
  opacity: 0.65;
  transition: opacity 160ms ease;
}

.traeger:hover { opacity: 1; }

.traeger img {
  display: block;
  height: 2.8rem;
  width: auto;
}

/* ---------- Künstlerseite ---------- */
.kuenstler {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 52rem) {
  .kuenstler {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.kuenstler-bild {
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.25rem;
  background-color: var(--gruen-hoch);
}

.kuenstler-text h2 { margin: 0.5rem 0 1rem; }

/* ---------- Karte ---------- */
.karten-platz {
  margin-top: 1.25rem;
  min-height: 22rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(237, 233, 222, 0.13);
  background-color: rgba(33, 81, 75, 0.4);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--salbei);
  font-size: 0.9375rem;
}

/* ---------- Textlink im Fließtext ---------- */
.textlink {
  color: var(--akzent);
  text-decoration: underline;
  text-decoration-color: rgba(12, 192, 223, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.textlink:hover {
  color: var(--knochen);
  text-decoration-color: rgba(237, 233, 222, 0.5);
}

/* Künstlerlinks in der Timeline: nur Farbe, keine Linie */
.zeit-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.zeit-link:hover { color: var(--akzent); }

/* ---------- Tafel im Streifen-Layout ---------- */
.streifen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.streifen h2 { max-width: 18ch; margin-bottom: 0.5rem; }

/* ---------- Hinweiskarte unten rechts ---------- */
.fenster {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  width: min(calc(100vw - 2rem), 30rem);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 1.25rem;
  /* Helle Karte, damit sie sich klar von der Seite abhebt */
  background-color: var(--knochen);
  color: var(--gruen-tief);
  box-shadow: 0 1.5rem 3.5rem rgba(6, 20, 18, 0.55);

  opacity: 0;
  transform: translateY(1.5rem) scale(0.97);
  transition: opacity 280ms ease,
              transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fenster[hidden] { display: none; }

.fenster[data-offen="ja"] {
  opacity: 1;
  transform: none;
}

@media (min-width: 40rem) {
  .fenster { right: 1.5rem; bottom: 1.5rem; padding: 1.75rem; }
}

/* Breite Karte: Ueberschrift darf groesser sein, Zeilen bleiben eng */
.fenster h2 { font-size: 1.6rem; line-height: 1.15; }

@media (prefers-reduced-motion: reduce) {
  .fenster { transition: none; }
}

.fenster-zu {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: rgba(16, 43, 39, 0.1);
  color: var(--gruen-tief);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.fenster-zu:hover { background-color: rgba(16, 43, 39, 0.2); }
.fenster-zu svg { width: 1rem; height: 1rem; }

.fenster-marke {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--akzent-tief);
}

.fenster h2 {
  margin: 0 0 0.85rem;
  padding-right: 2rem;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--gruen-tief);
}

.fenster-zeile {
  margin: 0 0 0.7rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gruen-tief);
}

.fenster-liste {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(16, 43, 39, 0.85);
}

.fenster-liste b {
  display: inline-block;
  min-width: 3.6rem;
  color: var(--gruen-tief);
  font-variant-numeric: tabular-nums;
}

.fenster-knopf {
  /* Ueber die ganze Kartenbreite, Text und Pfeil zusammen mittig */
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 0.9rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25;
  background-color: var(--akzent-tief);
  border-color: var(--akzent-tief);
  color: var(--knochen);
}

.fenster-knopf:hover {
  background-color: var(--gruen-tief);
  border-color: var(--gruen-tief);
  color: var(--knochen);
}

.fenster-knopf svg {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 200ms ease;
}

.fenster-knopf:hover svg { transform: translateX(0.2rem); }

@media (prefers-reduced-motion: reduce) {
  .fenster-knopf svg { transition: none; }
}

/* ---------- Verkaufsphasen ---------- */
.phasen {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(237, 233, 222, 0.13);
  background-color: rgba(33, 81, 75, 0.5);
}

.phasen-status {
  margin: 0 0 1.25rem;
  max-width: none;
  font-weight: 600;
  color: var(--knochen);
}

.phasen-schiene {
  height: 0.5rem;
  border-radius: 999px;
  background-color: rgba(237, 233, 222, 0.14);
  overflow: hidden;
}

.phasen-fuellung {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(to right, #0A8FA8, var(--akzent));
  /* Laeuft beim Aufrufen der Seite auf den Zielwert hoch */
  transition: width 1400ms cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
}

/* Wandernde Streifen: sieht aus, als wuerde noch geladen */
.phasen-fuellung::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    115deg,
    rgba(237, 233, 222, 0) 0%,
    rgba(237, 233, 222, 0.35) 45%,
    rgba(237, 233, 222, 0.35) 55%,
    rgba(237, 233, 222, 0) 100%
  );
  background-size: 2.5rem 100%;
  background-repeat: repeat-x;
  animation: streifen 1.1s linear infinite;
}

@keyframes streifen {
  from { background-position: 0 0; }
  to   { background-position: 2.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phasen-fuellung { transition: none; }
  .phasen-fuellung::after { animation: none; opacity: 0.25; }
}

.phasen-liste {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 44rem) {
  .phasen-liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.phasen-liste li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "punkt name"
    "punkt zeit";
  column-gap: 0.65rem;
  align-items: center;
}

.phasen-punkt {
  grid-area: punkt;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background-color: rgba(237, 233, 222, 0.22);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.phasen-name {
  grid-area: name;
  font-size: 0.9375rem;
  color: rgba(237, 233, 222, 0.55);
}

.phasen-zeit {
  grid-area: zeit;
  font-size: 0.8125rem;
  color: var(--salbei);
  font-variant-numeric: tabular-nums;
}

/* Abgeschlossen */
.phasen-liste li[data-zustand="vorbei"] .phasen-punkt {
  background-color: rgba(12, 192, 223, 0.45);
}

.phasen-liste li[data-zustand="vorbei"] .phasen-name {
  color: rgba(237, 233, 222, 0.45);
  text-decoration: line-through;
  text-decoration-color: rgba(237, 233, 222, 0.3);
}

/* Laeuft gerade */
.phasen-liste li[data-zustand="aktiv"] .phasen-punkt {
  background-color: var(--akzent);
  animation: phasen-puls 2.2s ease-out infinite;
}

@keyframes phasen-puls {
  0%   { box-shadow: 0 0 0 0 rgba(12, 192, 223, 0.5); }
  70%  { box-shadow: 0 0 0 0.7rem rgba(12, 192, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 192, 223, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .phasen-liste li[data-zustand="aktiv"] .phasen-punkt {
    animation: none;
    box-shadow: 0 0 0 0.35rem rgba(12, 192, 223, 0.2);
  }
}

.phasen-liste li[data-zustand="aktiv"] .phasen-name {
  color: var(--knochen);
  font-weight: 600;
}

/* ---------- Preisvergleich auf den Ticketkarten ---------- */
.karte-vergleich {
  margin: -0.35rem 0 0;
  min-height: 1.2em;
  font-size: 0.8125rem;
  color: var(--salbei);
}

.karte-vergleich s {
  text-decoration-color: rgba(237, 233, 222, 0.45);
}

.karte-preis span {
  font-variant-numeric: tabular-nums;
}

/* ---------- Earlybird-Kennzeichen auf der Ticketkarte ---------- */
.karte-abzeichen {
  align-self: flex-start;
  margin: 0 0 0.25rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: var(--akzent);
  color: var(--gruen-tief);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.karte-abzeichen[hidden] { display: none; }

/* ---------- Mengenwahl auf den Ticketkarten ---------- */
.menge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: var(--linie);
}

.menge-knopf {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(237, 233, 222, 0.3);
  background: transparent;
  color: var(--knochen);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
              color 160ms ease, opacity 160ms ease;
}

.menge-knopf:hover:not(:disabled) {
  background-color: var(--akzent);
  border-color: var(--akzent);
  color: var(--gruen-tief);
}

.menge-knopf:disabled { opacity: 0.3; cursor: default; }

.menge-wert {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Warenkorb ---------- */
.korb {
  margin-top: 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(237, 233, 222, 0.13);
  background-color: rgba(33, 81, 75, 0.5);
}

.korb-zeile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.5rem;
  max-width: none;
  font-size: 0.9375rem;
  color: rgba(237, 233, 222, 0.85);
}

.korb-leer {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  color: var(--salbei);
}

.korb-summe {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: var(--linie);
  font-size: 1rem;
}

.korb-summe strong {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.korb-knopf {
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
  justify-content: center;
}

.korb-knopf:disabled {
  background-color: rgba(237, 233, 222, 0.12);
  border-color: transparent;
  color: rgba(237, 233, 222, 0.45);
  cursor: default;
}

.korb-hinweis {
  margin: 0.85rem 0 0;
  max-width: none;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--salbei);
}

/* ---------- Formular ---------- */
.formular {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 44rem) {
  .formular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feld--breit { grid-column: 1 / -1; }
}

.feld { display: grid; gap: 0.4rem; }

.feld label {
  font-size: 0.8125rem;
  color: var(--salbei);
}

.feld input,
.feld textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(237, 233, 222, 0.18);
  background-color: rgba(16, 43, 39, 0.5);
  color: var(--knochen);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.feld textarea { resize: vertical; min-height: 8rem; }

.feld input:focus,
.feld textarea:focus {
  border-color: var(--akzent);
  background-color: rgba(16, 43, 39, 0.75);
}

/* Falle fuer automatische Eintraege */
.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular-fuss {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  margin-top: 0.5rem;
}

.formular-fuss .knopf { min-width: 14rem; }

.formular-meldung {
  margin: 0;
  max-width: none;
  min-height: 1.2em;
  text-align: center;
  font-size: 0.875rem;
  color: var(--salbei);
}

.formular-meldung[data-art="fehler"] { color: var(--akzent); }
.formular-meldung[data-art="gut"] { color: var(--knochen); }

.korb-zeilen { display: grid; }

/* ---------- Künstler: Links und Lieder ---------- */
.knopf--klein {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.kuenstler-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--linie);
}

/* ---------- Gründer ---------- */
.gruender {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 44rem) {
  .gruender { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

.person {
  display: grid;
  justify-items: center;
  text-align: center;
}

.person-bild {
  width: clamp(8rem, 22vw, 11rem);
  height: clamp(8rem, 22vw, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--gruen-hoch);
  margin-bottom: 1.25rem;
}

.person h3 { margin-bottom: 0.6rem; }
.person .fliess { max-width: 34ch; }


/* ---------- Karte auf der Anfahrtsseite ---------- */
.karte-bereich { margin-top: 1.25rem; }

.karte-rahmen {
  display: block;
  width: 100%;
  height: 24rem;
  border: 1px solid rgba(237, 233, 222, 0.13);
  border-radius: 1.25rem;
  background-color: var(--gruen-tief);
  /* Die Kacheln kommen hell von OpenStreetMap. Umkehren und in
     Richtung Tannengruen drehen, damit sie zur Seite passen. */
  filter: invert(0.92) hue-rotate(165deg) saturate(0.55)
          brightness(0.95) contrast(0.92);
}

.karte-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: none;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--salbei);
}



/* ---------- Lieder mit Cover ---------- */
.lieder {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 26rem;
}

.lieder a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(237, 233, 222, 0.12);
  background-color: rgba(33, 81, 75, 0.4);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.lieder a:hover {
  border-color: rgba(12, 192, 223, 0.5);
  background-color: rgba(33, 81, 75, 0.65);
}

.lied-cover {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 0.4rem;
  object-fit: cover;
  background-color: var(--gruen-hoch);
}

.lied-titel {
  flex: 1 1 auto;
  font-size: 0.9375rem;
}

.lieder svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: var(--akzent);
  transition: transform 200ms ease;
}

.lieder a:hover svg { transform: translateX(0.2rem); }

@media (prefers-reduced-motion: reduce) {
  .lieder svg { transition: none; }
}

/* ---------- Abschließender Ticket-Streifen ---------- */
.abschluss {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: none;
}

.abschluss .streifen h2 { max-width: 22ch; }

.streifen .leise { margin: 0 0 0.4rem; }

/* ---------- Kontakt und Unterstützer nebeneinander ---------- */
.kontakt-raster {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 60rem) {
  .kontakt-raster {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.kontakt-spalte h2,
.sponsoren-spalte h2 { margin-bottom: 0.75rem; }

.kontakt-spalte > .fliess,
.sponsoren-spalte > .fliess { margin-bottom: 1.75rem; }

/* Formular in der schmalen Spalte einspaltig */
.kontakt-spalte .formular {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin-inline: 0;
}

.kontakt-spalte .formular-fuss {
  justify-items: start;
}

.kontakt-spalte .formular-meldung { text-align: left; }

/* ---------- Unterstützer ---------- */
.sponsoren {
  display: grid;
  gap: 0.85rem;
  /* Immer zwei nebeneinander */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sponsor {
  display: block;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  border-radius: 0.75rem;
  /* Weiss, weil die Logos selbst weissen Hintergrund haben */
  background-color: #fff;
  border: 1px solid rgba(237, 233, 222, 0.18);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sponsor:hover {
  border-color: var(--akzent);
  box-shadow: 0 0.5rem 1.5rem rgba(6, 20, 18, 0.35);
}

.sponsor img {
  display: block;
  width: 100%;
  height: 100%;
  /* Ganzes Logo sichtbar, kein Zuschnitt */
  object-fit: contain;
  object-position: center;
}

/* ---------- Rechtstexte ---------- */
.recht { max-width: 46rem; }

.recht h2 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  margin: 2.5rem 0 0.75rem;
}

.recht h2:first-child { margin-top: 0; }

.recht .fliess { margin-bottom: 1rem; }

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 0;
}

.countdown[hidden] { display: none; }

.countdown-feld {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-width: 3.9rem;
  padding: 0.6rem 0.5rem 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(237, 233, 222, 0.14);
  background-color: rgba(33, 81, 75, 0.45);
}

.countdown-zahl {
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.countdown-name {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--salbei);
}

/* Kleinere Ausführung auf der Ticketseite */
.countdown--klein {
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.countdown--klein .countdown-feld {
  min-width: 3.2rem;
  padding: 0.4rem 0.4rem 0.35rem;
}

.countdown--klein .countdown-zahl { font-size: 1.15rem; }

.countdown-titel {
  width: 100%;
  margin-bottom: 0.1rem;
  font-size: 0.8125rem;
  color: var(--akzent);
}

.hinweis-pruefung {
  margin-bottom: 2.5rem;
  border-color: rgba(12, 192, 223, 0.4);
}

.hinweis-pruefung b { color: var(--akzent); }

/* ---------- Klappmenü für schmale Fenster ---------- */
.burger {
  display: grid;
  gap: 0.28rem;
  place-content: center;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(237, 233, 222, 0.25);
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.burger:hover { border-color: var(--akzent); }

.burger span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--knochen);
  transition: transform 220ms ease, opacity 180ms ease;
}

/* Aus den drei Strichen wird ein Kreuz */
.burger[data-offen="ja"] span:nth-child(1) { transform: translateY(0.44rem) rotate(45deg); }
.burger[data-offen="ja"] span:nth-child(2) { opacity: 0; }
.burger[data-offen="ja"] span:nth-child(3) { transform: translateY(-0.44rem) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .burger span { transition: none; }
}

/* Ab dieser Breite reicht die normale Leiste */
@media (min-width: 56rem) {
  .burger { display: none; }
}

@media (max-width: 55.999rem) {
  .kopf-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(237, 233, 222, 0.16);
    background-color: rgba(13, 35, 32, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 1rem 2.5rem rgba(6, 20, 18, 0.5);
  }

  .kopf-nav[data-offen="ja"] { display: flex; }

  .kopf-nav a {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--knochen);
  }

  .kopf-nav a:hover { background-color: rgba(33, 81, 75, 0.6); }

  /* Der Unterstrich aus der breiten Ansicht stoert hier */
  .kopf-nav a::after { display: none; }
}

/* ============================================================
   Kompaktere Abstände auf schmalen Bildschirmen
   ============================================================ */
@media (max-width: 40rem) {
  :root {
    --luft: 3rem;
    --rand: 1.1rem;
  }

  section { padding-block: var(--luft); }

  .kopfzeile-abschnitt { margin-bottom: 1.75rem; }
  .abschnitt-mitte { margin-bottom: 1.5rem; }
  .unterzeile { margin-top: 0.5rem; }

  .tafel { padding: 1.25rem; }
  .tafel-paar { gap: 0.85rem; }

  .act { padding-block: 1.5rem; gap: 1rem; }

  .ablauf li { padding-block: 1rem; }

  .kuenstler { gap: 1.5rem; }
  .kuenstler-links { margin-top: 1rem; padding-top: 1rem; }
  .lieder { margin-top: 0.85rem; }

  .gruender { gap: 1.75rem; }
  .person-bild { margin-bottom: 0.85rem; }

  .karte-bereich { margin-top: 0.85rem; }
  .karte-rahmen { height: 17rem; }

  .kontakt-raster { gap: 2rem; }
  .formular { gap: 0.85rem; }

  .recht h2 { margin-top: 1.75rem; }
  .recht .fliess { margin-bottom: 0.75rem; }

  .seitenkopf { padding-block: 1.5rem 1.75rem; }

  .punkte { margin-top: 1rem; }
  .countdown { gap: 0.4rem; }
  .countdown-feld { min-width: 3.4rem; }

  .fuss { padding-block: 1.5rem; }
}

/* ---------- Kompaktere Abstände auf schmalen Bildschirmen ---------- */
@media (max-width: 40rem) {
  /* Künstlerbild auf dem Handy flacher — volle Breite, weniger Höhe */
  .kuenstler-bild {
    max-width: none;
    aspect-ratio: 16 / 9;
    object-position: center 35%;
  }

  .kopfzeile-abschnitt { margin-bottom: 1.75rem; }
  .abschnitt-mitte { margin-bottom: 1.5rem; }
  .tafel-paar { gap: 0.85rem; }
  .tafel { padding: 1.35rem; }
  .act { padding-block: 1.5rem; gap: 1rem; }
  .ablauf li { padding-block: 1rem; }
  .kuenstler { gap: 1.5rem; }
  .fakten { margin-top: 1.25rem; padding-top: 1.25rem; }
  .karten { gap: 0.85rem; }
  .korb { margin-top: 1.25rem; }
  .phasen-liste { margin-top: 1rem; gap: 0.75rem; }
  .gruender { gap: 1.75rem; }
  .kontakt-raster { gap: 2rem; }
  .recht h2 { margin-top: 1.75rem; }
  .lieder { margin-top: 1rem; }
  .kuenstler-links { margin-top: 1.25rem; padding-top: 1.25rem; }
  .buehne { padding-block: 1.25rem 0.5rem; }
  .punkte { margin-top: 1.25rem; }
  .seitenkopf { padding-block: 1.5rem 1.75rem; }
}



/* ---------- Feedbackseite ---------- */
.formular--feedback {
  display: grid;
  gap: 1.75rem;
  max-width: 34rem;
  margin-inline: auto;
}

.regler-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.regler-kopf label {
  font-size: 0.9375rem;
  color: var(--knochen);
}

.regler-wert {
  display: inline-grid;
  place-items: center;
  /* Feste Breite und Hoehe: bleibt auch bei zweistelligen Werten rund */
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--akzent);
  background-color: rgba(12, 192, 223, 0.12);
  color: var(--akzent);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.regler-skala {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: rgba(237, 233, 222, 0.35);
}

/* Der Regler selbst */
.regler input[type="range"] {
  --fuellung: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

/* Schiene */
.regler input[type="range"]::-webkit-slider-runnable-track {
  height: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--akzent) 0 var(--fuellung),
    rgba(237, 233, 222, 0.16) var(--fuellung) 100%);
}

.regler input[type="range"]::-moz-range-track {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(237, 233, 222, 0.16);
}

.regler input[type="range"]::-moz-range-progress {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--akzent);
}

/* Griff */
.regler input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: -0.475rem;
  border-radius: 50%;
  border: 2px solid var(--gruen-tief);
  background-color: var(--knochen);
  box-shadow: 0 0.2rem 0.6rem rgba(6, 20, 18, 0.5);
}

.regler input[type="range"]::-moz-range-thumb {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid var(--gruen-tief);
  background-color: var(--knochen);
  box-shadow: 0 0.2rem 0.6rem rgba(6, 20, 18, 0.5);
}

.regler input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

/* Zeichenzähler */
.zaehler {
  font-size: 0.75rem;
  color: rgba(237, 233, 222, 0.4);
  font-variant-numeric: tabular-nums;
}

.zaehler[data-knapp="ja"] { color: var(--akzent); }

/* Mittiger Seitenkopf (Feedbackseite) */
.kopf-mitte { text-align: center; }
.kopf-mitte .fliess { margin-inline: auto; }

/* Beschriftung der Regler: Kategorie fett, Frage klein darunter */
.regler-kopf label {
  font-weight: 600;
  font-size: 1rem;
}

.regler-frage {
  margin: -0.2rem 0 0.7rem;
  max-width: none;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--salbei);
}

/* Fußzeile auf schmalen Bildschirmen mittig */
@media (max-width: 56rem) {
  .fuss-leiste {
    justify-content: center;
    text-align: center;
  }

  .fuss-termin { width: 100%; }

  .fuss-mitte { justify-content: center; }

  .fuss-links {
    width: 100%;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }
}

/* ---------- Verwaltung ---------- */
.panel-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.werte {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  margin-bottom: 2.5rem;
}

.wert {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(237, 233, 222, 0.13);
  background-color: rgba(33, 81, 75, 0.45);
}

.wert-zahl {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--akzent);
  font-variant-numeric: tabular-nums;
}

.wert-name {
  font-size: 0.75rem;
  text-align: center;
  color: var(--salbei);
}

.reiter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.reiter-knopf {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(237, 233, 222, 0.2);
  background: transparent;
  color: rgba(237, 233, 222, 0.7);
  font-family: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease,
              background-color 160ms ease;
}

.reiter-knopf[aria-selected="true"] {
  border-color: var(--akzent);
  background-color: rgba(12, 192, 223, 0.12);
  color: var(--akzent);
}

.eintrag {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(237, 233, 222, 0.12);
  background-color: rgba(33, 81, 75, 0.4);
}

.eintrag-kopf {
  margin: 0 0 0.5rem;
  max-width: none;
  font-size: 0.8125rem;
  color: var(--salbei);
}

.eintrag-werte {
  margin: 0 0 0.6rem;
  max-width: none;
  font-size: 0.875rem;
  color: rgba(237, 233, 222, 0.85);
  font-variant-numeric: tabular-nums;
}

.eintrag h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.eintrag .fliess { margin: 0; white-space: pre-wrap; }

.formular--schmal {
  grid-template-columns: minmax(0, 1fr);
  max-width: 24rem;
  margin-inline: 0;
}

/* Benutzerliste in der Verwaltung */
.benutzer-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(237, 233, 222, 0.12);
  background-color: rgba(33, 81, 75, 0.4);
}

#liste-konto h2 { margin-bottom: 1rem; }
#liste-konto h3 { margin-bottom: 0.5rem; }

.feld select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(237, 233, 222, 0.18);
  background-color: rgba(16, 43, 39, 0.5);
  color: var(--knochen);
  font-family: inherit;
  font-size: 1rem;
}

/* ---------- Anmeldung im Verwaltungsbereich ---------- */
.anmeldeseite {
  display: grid;
  place-items: center;
  min-height: 70svh;
  border-top: none;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.anmeldekasten {
  width: min(100%, 26rem);
  text-align: center;
}

.anmeldekasten h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.anmeldekasten .leise { margin-bottom: 2rem; }

.anmeldekasten .formular {
  max-width: none;
  margin-inline: auto;
  text-align: left;
}

.anmeldekasten .formular-fuss { justify-items: stretch; }
.anmeldekasten .formular-fuss .knopf { width: 100%; }
.anmeldekasten .formular-meldung { text-align: center; }

/* hidden muss immer gewinnen, egal welche Regel sonst greift */
[hidden] { display: none !important; }

/* ---------- Pflege von News und Sponsoren ---------- */
/* Raster: mehrere Karten nebeneinander */
#news-felder,
#sponsoren-felder,
#kuenstler-felder,
#galerie-felder {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  align-items: start;
}

.pflege-karte {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(237, 233, 222, 0.12);
  background-color: rgba(33, 81, 75, 0.4);
}

/* Beim Bearbeiten über die volle Breite */
.pflege-karte[data-offen="ja"] {
  grid-column: 1 / -1;
  padding: 1.25rem;
}

.pflege-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.pflege-fuss .formular-meldung { text-align: left; margin: 0; }

.bildwahl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.bildwahl-vorschau {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.6rem;
  object-fit: cover;
  background-color: var(--gruen-hoch);
}


.bildwahl-stand { font-size: 0.8125rem; }

/* Zugeklappte Pflegekarte */
.pflege-kopf {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

.pflege-karte[data-offen="ja"] .pflege-kopf {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 0.85rem;
}

.pflege-bild {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0.6rem;
  object-fit: cover;
  background-color: var(--gruen-hoch);
}

.pflege-karte[data-offen="ja"] .pflege-bild {
  width: 3.2rem;
  height: 3.2rem;
  aspect-ratio: auto;
}

.pflege-titel {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  font-size: 0.9375rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pflege-knoepfe {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.pflege-knoepfe .knopf { padding: 0.4rem 0.7rem; font-size: 0.8125rem; }

.pflege-koerper {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: var(--linie);
}

.pflege-karte[data-offen="ja"] {
  border-color: rgba(12, 192, 223, 0.4);
}


/* Timeline-Zeilen im Panel */
#timeline-felder,
#texte-felder { display: grid; gap: 0.85rem; }

.pflege-karte--zeile {
  grid-column: 1 / -1;
  grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}

@media (max-width: 48rem) {
  .pflege-karte--zeile { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
}

#texte-felder h3 { font-size: 1.05rem; }

/* ---------- Verwaltung auf schmalen Bildschirmen ---------- */
@media (max-width: 48rem) {
  /* Reiterleiste umbrechen statt seitlich rauslaufen */
  .reiter {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .reiter-knopf {
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
  }

  /* Kennzahlen zweispaltig */
  .werte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.75rem;
  }

  .panel-kopf { align-items: flex-start; }

  /* Pflegekarten einspaltig */
  #news-felder,
  #sponsoren-felder,
  #kuenstler-felder,
  #galerie-felder {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Bild in der zugeklappten Karte flach statt hochkant */
  .pflege-bild {
    aspect-ratio: 16 / 9;
  }

  .pflege-fuss { flex-direction: column; align-items: stretch; }
  .pflege-fuss .knopf { width: 100%; text-align: center; justify-content: center; }

  /* Einträge und Formulare nicht breiter als der Bildschirm */
  .eintrag { padding: 1rem; }
  .eintrag-werte { font-size: 0.8125rem; }
  .formular--schmal { max-width: none; }
  .benutzer-zeile { flex-direction: column; align-items: flex-start; }
}

/* Lange Zeichenfolgen dürfen umbrechen, damit nichts seitlich rausläuft */
.eintrag .fliess,
.eintrag-kopf { overflow-wrap: anywhere; }

/* Ablagefläche fürs Ziehen */
.bildwahl-feld {
  flex: 1 1 10rem;
  display: grid;
  place-items: center;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(237, 233, 222, 0.28);
  background-color: rgba(16, 43, 39, 0.35);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.bildwahl-feld:hover { border-color: rgba(12, 192, 223, 0.5); }

.bildwahl-feld[data-bereit="ja"] {
  border-color: var(--akzent);
  border-style: solid;
  background-color: rgba(12, 192, 223, 0.12);
}

.bildwahl-text {
  font-size: 0.875rem;
  line-height: 1.4;
  pointer-events: none;
}

.bildwahl-text .leise { font-size: 0.75rem; }

/* Lieder im Künstlerformular */
.lieder-block {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
  padding-top: 1.1rem;
  border-top: var(--linie);
  justify-items: start;
}

.lieder-block h4 {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--salbei);
}

.lied-zeile {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(237, 233, 222, 0.1);
  background-color: rgba(16, 43, 39, 0.35);
  justify-items: start;
}

@media (min-width: 52rem) {
  .lied-zeile {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
  .lied-zeile .bildwahl { grid-column: 1 / -1; }
}

.lied-zeile .feld { width: 100%; }

/* Textgruppen im Panel */
.textgruppe {
  border-radius: 1rem;
  border: 1px solid rgba(237, 233, 222, 0.12);
  background-color: rgba(33, 81, 75, 0.4);
  overflow: hidden;
}

.textgruppe summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  position: relative;
  padding-right: 3rem;
}

.textgruppe summary::-webkit-details-marker { display: none; }

.textgruppe summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1.5px solid var(--akzent);
  border-bottom: 1.5px solid var(--akzent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease;
}

.textgruppe[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

@media (prefers-reduced-motion: reduce) {
  .textgruppe summary::after { transition: none; }
}

.textgruppe[open] { border-color: rgba(12, 192, 223, 0.35); }

.textgruppe-inhalt {
  display: grid;
  gap: 0.85rem;
  padding: 0 1.25rem 1.25rem;
}

#team-felder {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  align-items: start;
}

@media (max-width: 48rem) {
  #team-felder { grid-template-columns: minmax(0, 1fr); }
}

/* Ticketkategorien im Panel */
.pflege-karte--ticket {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  align-items: end;
  gap: 0.75rem;
}

#tickets-felder { display: grid; gap: 0.85rem; }

@media (max-width: 48rem) {
  .pflege-karte--ticket { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
}

/* ---------- Spotify-Playlist ---------- */
.playlist {
  border-top: none;
  padding-top: 0;
}

.playlist .fliess {
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.playlist-zeile {
  margin: 1.75rem 0 0;
  max-width: none;
}

.playlist-knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

/* Das Spotify-Zeichen wird unveraendert verwendet,
   nur in einer der zugelassenen Farbfassungen. */
.spotify-zeichen {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
}

.playlist .playlist-knopf .spotify-zeichen { width: 1.35rem; height: 1.35rem; }

/* Playlist-Zeile auf der Startseite: Text links, Knopf rechts */
.playlist-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  margin: 1.75rem 0 0;
}

.playlist-text {
  flex: 1 1 22rem;
  min-width: 0;
}

.playlist-text .leise {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playlist-zeile .fliess { margin: 0; max-width: none; }

/* Abschluss auf der Lineup-Seite näher an die Playlist rücken */
.playlist { padding-bottom: 0; }
.playlist + .abschluss { padding-top: clamp(1.5rem, 3vw, 2.25rem); }

.playlist-oben {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Bestellungen in der Verwaltung ---------- */
.zustand {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(237, 233, 222, 0.25);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zustand[data-zustand="bezahlt"] {
  border-color: rgba(12, 192, 223, 0.5);
  color: var(--akzent);
}

.zustand[data-zustand="storniert"] {
  border-color: rgba(237, 233, 222, 0.2);
  color: rgba(237, 233, 222, 0.45);
  text-decoration: line-through;
}

.ticketliste {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.ticketliste li {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: rgba(16, 43, 39, 0.4);
}

.ticketliste code {
  font-family: "Consolas", "Menlo", monospace;
  letter-spacing: 0.04em;
  color: var(--akzent);
}

#bestell-liste .eintrag button { margin-top: 0.25rem; }

/* ---------- Einlassseite ---------- */
.einlass-kopfzahlen {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
}

.ergebnis {
  display: grid;
  gap: 0.35rem;
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  border: 2px solid rgba(237, 233, 222, 0.16);
  background-color: rgba(33, 81, 75, 0.4);
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.ergebnis-gross {
  margin: 0;
  max-width: none;
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
}

.ergebnis-text {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  color: var(--salbei);
}

.ergebnis[data-zustand="eingelassen"] {
  border-color: #3FBF7F;
  background-color: rgba(63, 191, 127, 0.14);
}

.ergebnis[data-zustand="eingelassen"] .ergebnis-gross { color: #7FDFAF; }

.ergebnis[data-zustand="warnung"] {
  border-color: #E0A33A;
  background-color: rgba(224, 163, 58, 0.14);
}

.ergebnis[data-zustand="warnung"] .ergebnis-gross { color: #F0C878; }

.ergebnis[data-zustand="fehler"] {
  border-color: #D9534F;
  background-color: rgba(217, 83, 79, 0.14);
}

.ergebnis[data-zustand="fehler"] .ergebnis-gross { color: #F09490; }

.ergebnis[data-zustand="pruefen"] { border-color: var(--akzent); }

/* Kamerabild */
.scan-feld {
  position: relative;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 1;
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: rgba(16, 43, 39, 0.6);
  border: 1px solid rgba(237, 233, 222, 0.14);
}

.scan-feld video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-platzhalter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Verlauf */
.verlauf-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 0.4rem;
  max-width: none;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  border-left: 3px solid rgba(237, 233, 222, 0.2);
  background-color: rgba(33, 81, 75, 0.35);
  font-size: 0.875rem;
}

.verlauf-zeile code {
  font-family: "Consolas", "Menlo", monospace;
  color: var(--akzent);
}

.verlauf-zeile[data-zustand="eingelassen"] { border-left-color: #3FBF7F; }
.verlauf-zeile[data-zustand="schon-drin"]  { border-left-color: #E0A33A; }
.verlauf-zeile[data-zustand="storniert"],
.verlauf-zeile[data-zustand="unbezahlt"],
.verlauf-zeile[data-zustand="unbekannt"]   { border-left-color: #D9534F; }

/* Unsichtbare Zeichenfläche für die Codeerkennung */
#leinwand { display: none; }

.bestell-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
