  html { -webkit-text-size-adjust: 100%; color-scheme: light; }
  body { margin: 0; }
  img { max-width: 100%; }
  [hidden] { display: none !important; }

  /* Kopfnavigation, auf allen Seiten gleich */
  nav.oben {
    display: flex; flex-wrap: wrap; gap: 2px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
  }
  nav.oben a {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-decoration: none;
    padding: 10px 12px;
    min-height: 44px;
    display: flex; align-items: center;
  }
  nav.oben a:hover { color: var(--accent); }
  nav.oben a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); }
  nav.oben a:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }

  /* Kacheln der Startseite */
  .kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
  a.kachel {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 18px;
    text-decoration: none;
    color: var(--ink);
    display: flex; flex-direction: column; gap: 6px;
  }
  a.kachel:hover { border-color: var(--accent); }
  a.kachel:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
  a.kachel .titel { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.1rem; }
  a.kachel .was { color: var(--ink-soft); font-size: .92rem; }
  a.kachel .stand {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-faint); margin-top: 4px;
  }
  a.kachel.leer { opacity: .72; }

  /* Zaehlwerk bis zum Abflug */
  .zaehler {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
    padding: 16px 18px;
    background: var(--card); border: 1px solid var(--line);
    border-left: 3px solid var(--amber);
    box-shadow: var(--shadow);
  }
  .zaehler .tage {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums;
  }
  .zaehler .was { color: var(--ink-soft); font-size: .95rem; }


  :root {
    --ground: #fdf7ea;
    --card: #ffffff;
    --card-2: #f6efdd;
    --ink: #23302c;
    --ink-soft: #52655e;
    --ink-faint: #8a9a92;
    --line: #e6dbc4;
    --line-soft: #f0e8d8;
    --accent: #0e7c86;
    --accent-soft: #d7eef0;
    --amber: #c25c14;
    --amber-soft: #fbeedb;
    --safran: #e08a16;
    --rot: #d8281c;
    --tuerkis: #0a9fae;
    --nacht: #170c1f;
    --nacht-2: #2d1339;
    --magenta: #e0489b;
    --lila: #9b4ee0;
    --rose: #f4cde6;
    --himmel-1: rgba(224, 138, 22, .22);
    --himmel-2: rgba(14, 124, 134, .16);
    --shadow: 0 1px 2px rgba(35, 48, 44, .05), 0 10px 26px -18px rgba(35, 48, 44, .30);
  }

  * { box-sizing: border-box; }

  body {
    background: var(--ground);
    color: var(--ink);
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    padding-inline: 18px;
    padding-block: 28px 64px;
    -webkit-text-size-adjust: 100%;
  }

  .wrap {
    max-width: 700px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  h1, h2, h3 {
    font-family: "Bricolage Grotesque", "Source Sans 3", sans-serif;
    font-weight: 700;
    text-wrap: balance;
    margin: 0;
    letter-spacing: -.015em;
  }
  h1 { font-size: clamp(1.75rem, 7vw, 2.4rem); line-height: 1.1; }
  h2 { font-size: 1.28rem; line-height: 1.2; }
  h3 { font-size: 1.02rem; font-weight: 500; }
  p { margin: 0; }

  .eyebrow {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  /* ---------- Kopf ---------- */
  header { display: flex; flex-direction: column; gap: 12px; }
  header p.lede { color: var(--ink-soft); max-width: 60ch; }

  .summe {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    box-shadow: var(--shadow);
  }
  .summe .betrag {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.6rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
  }
  .summe .was { color: var(--ink-soft); font-size: .95rem; }

  /* ---------- Y-Figur: zwei Startorte, eine Maschine ---------- */
  .figur { display: flex; flex-direction: column; gap: 0; }
  .zubringer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ort {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .ort .stadt { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.05rem; }
  .ort .wer { color: var(--ink-faint); font-size: .85rem; }
  .ort .flug {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .85rem;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
  }
  .naht {
    height: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .naht span { position: relative; }
  .naht span::before {
    content: "";
    position: absolute;
    top: 0; bottom: 50%;
    left: 50%;
    border-left: 1px solid var(--line);
  }
  .naht span::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 0;
    border-top: 1px solid var(--line);
  }
  .naht span:first-child::after { left: 50%; right: 0; }
  .naht span:last-child::after { left: 0; right: 50%; }
  .naht-mitte {
    height: 14px;
    margin-inline: auto;
    width: 1px;
    background: var(--line);
  }
  .gemeinsam {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    padding: 15px 17px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .gemeinsam .nummer {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--accent);
  }
  .gemeinsam .strecke { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }
  .gemeinsam .detail { color: var(--ink-soft); font-size: .9rem; }

  /* ---------- Gruppenkarten ---------- */
  .gruppen { display: flex; flex-direction: column; gap: 18px; }
  .gruppe {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
  }
  .gruppe > .kopf {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
    padding: 15px 17px 12px;
    border-bottom: 1px solid var(--line-soft);
  }
  .gruppe .preis {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
    color: var(--amber);
    white-space: nowrap;
  }
  .gruppe .preis small { color: var(--ink-faint); font-size: .74rem; letter-spacing: .04em; }

  .segmente { display: flex; flex-direction: column; }
  .seg {
    display: grid;
    grid-template-columns: 4.2rem 1fr;
    gap: 2px 12px;
    padding: 12px 17px;
    border-bottom: 1px solid var(--line-soft);
  }
  .seg .tag {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .8rem;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
  }
  .seg .zeile {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    font-size: .95rem;
  }
  .seg .zeile b { font-weight: 500; }
  .seg .unter { grid-column: 2; color: var(--ink-soft); font-size: .85rem; }
  .seg .unter .fn { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .8rem; }

  .seg.umstieg {
    background: var(--card-2);
    padding-block: 8px;
  }
  .seg.umstieg .zeile {
    font-family: "Source Sans 3", sans-serif;
    font-size: .85rem;
    color: var(--ink-soft);
  }

  .tarifzeile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 12px 17px;
    border-bottom: 1px solid var(--line-soft);
    font-size: .9rem;
    color: var(--ink-soft);
  }
  .tarifzeile .paar {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
  }

  .knopfzeile { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 9px; }
  a.buchen {
    display: block;
    text-align: center;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 18px;
    min-height: 48px;
    border: 1px solid var(--accent);
  }
  a.buchen:hover { filter: brightness(1.08); }
  a.buchen:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
  a.zweit {
    display: block;
    text-align: center;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 11px 16px;
    min-height: 44px;
    font-size: .93rem;
  }
  a.zweit:hover { border-color: var(--accent); }
  a.zweit:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

  /* ---------- Tagespreise ---------- */
  .kalender { display: flex; flex-direction: column; gap: 12px; }
  .kalscroll { overflow-x: auto; }
  table {
    border-collapse: collapse;
    width: 100%;
    min-width: 460px;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    font-size: .86rem;
  }
  caption {
    text-align: left;
    font-family: "Source Sans 3", sans-serif;
    color: var(--ink-soft);
    font-size: .9rem;
    padding-bottom: 8px;
  }
  th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line-soft); }
  th:first-child, td:first-child { text-align: left; }
  thead th {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
    font-size: .82rem;
    color: var(--ink-faint);
    border-bottom: 1px solid var(--line);
  }
  td.beste { color: var(--amber); font-weight: 500; background: var(--amber-soft); }

  /* ---------- Alternativen ---------- */
  .alt { display: flex; flex-direction: column; gap: 14px; }
  .altkarte {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .altkarte .zeile1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
  }
  .altkarte .linie { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }
  .altkarte .wert {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    color: var(--amber);
    white-space: nowrap;
  }
  .altkarte .zeiten {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .88rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
  }
  .altkarte p { font-size: .9rem; color: var(--ink-soft); }
  .altkarte a {
    color: var(--accent);
    font-size: .92rem;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    align-self: flex-start;
    padding-block: 6px;
  }
  .altkarte a:hover { border-color: var(--accent); }
  .marke {
    display: inline-block;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid var(--amber);
    padding: 2px 7px;
  }

  /* ---------- Checkliste ---------- */
  .liste { display: flex; flex-direction: column; gap: 0; }
  .punkt {
    display: grid;
    grid-template-columns: 1.6rem 1fr;
    gap: 4px 8px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .punkt .zahl {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    color: var(--accent);
    font-size: .9rem;
    padding-top: 2px;
  }
  .punkt strong { font-weight: 600; }
  .punkt p { color: var(--ink-soft); font-size: .92rem; grid-column: 2; }

  /* Umschalter für das Gepäck */
  .schalter { display: flex; flex-direction: column; gap: 8px; }
  .schalter .frage { font-size: .9rem; color: var(--ink-soft); }
  .knopfgruppe { display: flex; gap: 0; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
  .knopfgruppe button {
    font: inherit;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    background: var(--card);
    color: var(--ink-soft);
    border: 0;
    border-right: 1px solid var(--line);
    padding: 11px 15px;
    min-height: 44px;
    cursor: pointer;
  }
  .knopfgruppe button:last-child { border-right: 0; }
  .knopfgruppe button[aria-pressed="true"] { background: var(--accent); color: #fff; }
  .knopfgruppe button:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
  .zusatz { font-size: .88rem; color: var(--ink-faint); }

  /* Klappblöcke */
  details.klapp {
    background: var(--card);
    border: 1px solid var(--line);
  }
  details.klapp > summary {
    cursor: pointer;
    padding: 14px 16px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 48px;
  }
  details.klapp > summary::-webkit-details-marker { display: none; }
  details.klapp > summary::after {
    content: "mehr";
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
  }
  details.klapp[open] > summary::after { content: "zu"; }
  details.klapp > summary:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
  details.klapp .innen {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--line-soft);
    padding-top: 14px;
  }

  /* Checkliste */
  .punkt label { display: contents; cursor: pointer; }
  .punkt input[type="checkbox"] {
    width: 20px; height: 20px;
    margin: 3px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
  }
  .punkt.erledigt strong, .punkt.erledigt p { opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; }

  footer {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    color: var(--ink-faint);
    font-size: .85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  footer .stand { font-family: "IBM Plex Mono", ui-monospace, monospace; }

  @media (max-width: 430px) {
    .zubringer { grid-template-columns: 1fr; }
    .naht { display: none; }
    .naht-mitte { height: 18px; margin-block: 8px; }
    .seg { grid-template-columns: 1fr; }
    .seg .unter { grid-column: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }

/* ---------- Kopf der Startseite: Himmel hinter dem Titel ---------- */
header.himmel {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 88% 0%, var(--himmel-1) 0%, transparent 62%),
    radial-gradient(100% 80% at 4% 100%, var(--himmel-2) 0%, transparent 58%),
    var(--card);
  box-shadow: var(--shadow);
}

/* ---------- Zaehlwerk in vier Bloecken ---------- */
.uhrwerk { display: flex; flex-direction: column; gap: 10px; }
.bloecke { display: flex; flex-wrap: wrap; gap: 8px; }
.block {
  flex: 1 1 68px;
  min-width: 68px;
  background: var(--card-2);
  border: 1px solid var(--line);
  padding: 10px 6px 8px;
  text-align: center;
}
.block .zahl {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}
.block .einheit {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}
.block.sekunden .zahl { color: var(--safran); }
.uhrwerk .darunter {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: .88rem; color: var(--ink-soft);
}
.uhrwerk .bkk-uhr {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* ---------- Flugweg ---------- */
.flugweg { margin-top: 4px; }
.flugweg svg { display: block; width: 100%; height: auto; max-width: 100%; overflow: visible; }
.flugweg .bahn { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 4; }
.flugweg .bahn-haupt { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.flugweg .ort { fill: var(--ink-soft); }
.flugweg .ort-haupt { fill: var(--accent); }
.flugweg text {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  fill: var(--ink-faint);
}
.flugweg text.stark { fill: var(--accent); }
.flieger {
  offset-path: path("M 152 62 C 210 46, 268 74, 344 104");
  offset-rotate: auto;
  animation: fliegen 9s linear infinite;
  fill: var(--safran);
}
@keyframes fliegen {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .flieger { animation: none; offset-distance: 100%; }
}

/* ---------- Flugstreifen auf der Startseite ---------- */
.streifen { display: flex; flex-direction: column; gap: 12px; }
.reihe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.reihe .wer { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }
.reihe .zeit {
  grid-column: 1;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: .92rem;
  color: var(--ink-soft);
}
.reihe .geld {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  white-space: nowrap;
  text-align: right;
}
.reihe a.jetzt {
  grid-column: 1 / -1;
  margin-top: 8px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  padding: 12px 16px;
  min-height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent);
}
.reihe a.jetzt:hover { filter: brightness(1.08); }
.reihe a.jetzt:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; }

/* Das Wortspiel im Titel: "for four" traegt die Farbe der Sonne. */
h1 .fuer-vier {
  color: var(--safran);
  white-space: nowrap;
}

/* ---------- Kopfbild ---------- */
figure.kopfbild {
  margin: 0 0 18px;
  position: relative;
}
figure.kopfbild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 32%;
  border: 1px solid var(--line);
}
figure.kopfbild figcaption {
  margin-top: 6px;
  font-size: .8rem;
  color: var(--ink-faint);
}

/* ---------- Die vier Koepfe auf der Route ---------- */
.flugweg .kopf-grund { fill: var(--card); }
.flugweg .kopf-rand {
  fill: none;
  stroke: var(--safran);
  stroke-width: 1.6;
}
.flugweg .kopf { pointer-events: none; }

/* ---------- Die vier Koepfe im Titel, an der Stelle von "four" ---------- */
h1 .vier-koepfe {
  display: inline-flex;
  vertical-align: -9px;
  margin-left: 8px;
}
h1 .vier-koepfe span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-image: url("/assets/wir.jpg");
  background-size: 137px 137px;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--safran);
}
h1 .vier-koepfe span + span { margin-left: -9px; }
.vier-koepfe .a1 { background-position: -4.5px -22.9px; }
.vier-koepfe .a2 { background-position: -28.5px -28.7px; }
.vier-koepfe .a3 { background-position: -67.3px -29.8px; }
.vier-koepfe .a4 { background-position: -92.8px -36.6px; }

.nur-vorleser {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 430px) {
  h1 .vier-koepfe { vertical-align: -7px; margin-left: 6px; }
  h1 .vier-koepfe span { width: 28px; height: 28px; background-size: 107px 107px; }
  h1 .vier-koepfe span + span { margin-left: -7px; }
  .vier-koepfe .a1 { background-position: -3.5px -17.8px; }
  .vier-koepfe .a2 { background-position: -22.2px -22.3px; }
  .vier-koepfe .a3 { background-position: -52.3px -23.2px; }
  .vier-koepfe .a4 { background-position: -72.2px -28.5px; }
}

/* ---------- Kopfbild ---------- */
figure.kopfbild { margin: 0 0 18px; position: relative; }
figure.kopfbild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--line);
}
figure.kopfbild figcaption { margin-top: 6px; font-size: .8rem; color: var(--ink-faint); }

/* ---------- Die vier Koepfe auf der Route ---------- */
.flugweg .kopf-grund { fill: var(--card); }
.flugweg .kopf-rand { fill: none; stroke: var(--safran); stroke-width: 1.4; }
.flugweg .kopf { pointer-events: none; }

/* ---------- Der Anlass: Festival-Karte mit eigenem Tor ---------- */
.festival {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 6px 18px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--safran);
  padding: 18px;
  box-shadow: var(--shadow);
}
.festival .tor { width: 116px; height: auto; }
.festival .tor-bogen, .festival .tor-innen, .festival .tor-turm {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
}
.festival .tor-innen { stroke: var(--safran); stroke-width: 2.4; }
.festival .tor-sonne { fill: var(--safran); }
.festival .tor-strahl { fill: none; stroke: var(--safran); stroke-width: 2; stroke-linecap: round; }
.festival .tor-turm { fill: var(--accent); }
.festival-text { display: flex; flex-direction: column; gap: 8px; }
.festival-titel {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.32rem;
  margin: 0;
}
.festival-zeile {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .88rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.festival-text p { color: var(--ink-soft); font-size: .95rem; }
.festival-link {
  align-self: flex-start;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-block: 6px;
  font-size: .93rem;
}
.festival-link:hover { border-color: var(--accent); }
@media (max-width: 430px) {
  .festival { grid-template-columns: 1fr; }
  .festival .tor { width: 96px; }
}

/* ---------- Woran wir gerade sind ---------- */
.stand-jetzt { display: flex; flex-direction: column; gap: 6px; }
.stand-jetzt .stand-datum {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
ul.punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.punkte li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  padding: 13px 15px;
}
ul.punkte li.offen { border-left-color: var(--safran); }
ul.punkte li.wartet { border-left-color: var(--accent); }
ul.punkte .marker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  align-self: start;
  white-space: nowrap;
}
ul.punkte li.offen .marker { color: var(--amber); border-color: var(--safran); background: var(--amber-soft); }
ul.punkte li.wartet .marker { color: var(--accent); border-color: var(--accent); }
ul.punkte .sache {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  align-self: center;
}
ul.punkte .notiz {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: .92rem;
}
@media (max-width: 430px) {
  ul.punkte li { grid-template-columns: 1fr; }
  ul.punkte .notiz { grid-column: 1; }
}

/* ---------- Eingebettetes Video ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- One World Radio ---------- */
.radio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--safran);
  padding: 16px;
  box-shadow: var(--shadow);
}
.radio-kopf { display: flex; align-items: flex-start; gap: 11px; }
.radio-punkt {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #c8320f;
  margin-top: 6px;
  flex: none;
  box-shadow: 0 0 0 4px rgba(200, 50, 15, .16);
  animation: pochen 2.4s ease-in-out infinite;
}
@keyframes pochen {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200, 50, 15, .16); }
  50%      { box-shadow: 0 0 0 8px rgba(200, 50, 15, .05); }
}
@media (prefers-reduced-motion: reduce) { .radio-punkt { animation: none; } }
.radio-titel {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
}
.radio-was, .radio-fuss { color: var(--ink-soft); font-size: .92rem; }
.radio-fuss { font-size: .88rem; }

/* ---------- Radioleiste, klebt oben ---------- */
.radioleiste {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin: -28px -18px 18px;
  background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 100%);
  border-bottom: 1px solid var(--line);
}
.rl-punkt {
  width: 9px; height: 9px; border-radius: 50%;
  background: #c8320f; flex: none;
  box-shadow: 0 0 0 3px rgba(200, 50, 15, .16);
  animation: pochen 2.4s ease-in-out infinite;
}
.rl-name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.rl-balken { display: flex; align-items: flex-end; gap: 2px; height: 16px; flex: 1 1 auto; max-width: 120px; }
.rl-balken i {
  display: block;
  width: 3px;
  background: var(--accent);
  opacity: .55;
  height: 30%;
  animation: wippen 1.1s ease-in-out infinite;
}
.rl-balken i:nth-child(2) { animation-delay: .13s; }
.rl-balken i:nth-child(3) { animation-delay: .26s; }
.rl-balken i:nth-child(4) { animation-delay: .39s; }
.rl-balken i:nth-child(5) { animation-delay: .52s; }
.rl-balken i:nth-child(6) { animation-delay: .65s; }
.rl-balken i:nth-child(7) { animation-delay: .78s; }
@keyframes wippen {
  0%, 100% { height: 22%; }
  50%      { height: 100%; }
}
.radioleiste.an .rl-balken i { opacity: 1; background: var(--safran); }
.rl-knopf {
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
}
.rl-knopf:hover { filter: brightness(1.08); }
.rl-knopf:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; }
/* Der Player schwebt unten in der Ecke, damit er nichts wegschiebt. */
.rl-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  width: 258px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(23, 12, 31, .92);
  border: 1px solid rgba(224, 72, 155, .45);
  box-shadow: 0 10px 40px rgba(23, 12, 31, .45), 0 0 24px rgba(224, 72, 155, .25);
  backdrop-filter: blur(6px);
}
.rl-panel .rl-hinweis { color: rgba(244, 205, 230, .8); font-size: .78rem; }
.rl-panel .rl-hinweis a { color: var(--rose); }
@media (max-width: 520px) {
  .rl-panel { left: 10px; right: 10px; bottom: 10px; width: auto; }
}
.rl-hinweis { color: var(--ink-faint); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) {
  .rl-punkt, .rl-balken i { animation: none; }
}

/* ---------- Playlist ---------- */
.liste-musik { display: flex; flex-direction: column; gap: 14px; }
.kachelreihe {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
button.track {
  font: inherit;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button.track:hover { border-color: var(--accent); }
button.track:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; }
button.track[aria-current="true"] { border-color: var(--safran); border-width: 2px; }
button.track img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
button.track .t-titel {
  padding: 9px 10px 4px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
button.track .t-wer {
  padding: 0 10px 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  color: var(--ink-faint);
}

/* ---------- Was im Flugpreis steckt ---------- */
.reihe .inklusive {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: .86rem;
  color: var(--ink-soft);
}
.reihe .inklusive .haken {
  color: var(--accent);
  font-weight: 700;
  margin-right: 3px;
}

/* ---------- Zwei Spalten: Musik links, Inhalt rechts ---------- */
.spalten { display: grid; gap: 28px; }
.haupt { display: flex; flex-direction: column; gap: 34px; min-width: 0; }
.seite-musik { min-width: 0; }
.seite-musik h2 { font-size: 1.1rem; }
.seite-musik .kachelreihe { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

@media (min-width: 1000px) {
  .wrap { max-width: 1040px; }
  .spalten { grid-template-columns: 250px minmax(0, 1fr); gap: 34px; }
  .seite-musik {
    position: sticky;
    z-index: 40;
    top: 62px;
    align-self: start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding-right: 4px;
    border-right: 1px solid var(--line-soft);
  }
  .seite-musik .kachelreihe { grid-template-columns: 1fr; }
  .seite-musik button.track {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: start;
  }
  .seite-musik button.track img {
    grid-row: 1 / span 2;
    width: 84px;
    aspect-ratio: 1 / 1;
  }
  .seite-musik button.track .t-titel {
    padding: 8px 10px 2px;
    font-size: .82rem;
    overflow-wrap: anywhere;
  }
  .seite-musik button.track .t-wer {
    padding: 0 10px 9px;
    font-size: .68rem;
    overflow-wrap: anywhere;
  }
  .seite-musik .kachel.leer { padding: 12px !important; }
}

/* ---------- Nachtseite: Festival und Musik ---------- */
.festival {
  background:
    radial-gradient(120% 130% at 88% 0%, rgba(224, 72, 155, .30) 0%, transparent 58%),
    radial-gradient(100% 120% at 6% 100%, rgba(155, 78, 224, .34) 0%, transparent 60%),
    linear-gradient(160deg, var(--nacht-2) 0%, var(--nacht) 100%);
  border: 1px solid rgba(224, 72, 155, .38);
  border-left: 4px solid var(--magenta);
  color: var(--rose);
  position: relative;
  overflow: hidden;
}
.festival::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 50% -10%, rgba(255, 255, 255, .10), transparent 70%);
}
.festival .festival-titel { color: #fff; }
.festival .festival-zeile { color: var(--magenta); }
.festival .eyebrow { color: rgba(244, 205, 230, .62); }
.festival .festival-text p { color: rgba(244, 205, 230, .84); }
.festival .festival-link {
  color: #fff;
  border-bottom-color: var(--magenta);
}
.festival .festival-link:hover { border-bottom-color: #fff; }
.festival .tor-bogen, .festival .tor-turm { stroke: var(--rose); }
.festival .tor-turm { fill: var(--rose); }
.festival .tor-innen { stroke: var(--magenta); }
.festival .tor-sonne { fill: #fff; }
.festival .tor-strahl { stroke: #fff; }
.festival .tor {
  filter: drop-shadow(0 0 6px rgba(224, 72, 155, .85)) drop-shadow(0 0 18px rgba(155, 78, 224, .55));
}

/* Radioleiste als Nachtstreifen */
.radioleiste {
  background:
    radial-gradient(80% 200% at 100% 50%, rgba(224, 72, 155, .34) 0%, transparent 60%),
    linear-gradient(90deg, var(--nacht) 0%, var(--nacht-2) 100%);
  border-bottom: 1px solid rgba(224, 72, 155, .34);
}
.radioleiste .rl-name { color: var(--rose); }
.radioleiste .rl-balken i { background: var(--magenta); opacity: .8; }
.radioleiste.an .rl-balken i { background: var(--rose); }
.rl-knopf {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
  box-shadow: 0 0 14px rgba(224, 72, 155, .55);
}
.rl-knopf:hover { background: var(--lila); border-color: var(--lila); }

/* Playlist: aktive Kachel leuchtet */
button.track[aria-current="true"] {
  border-color: var(--magenta);
  box-shadow: 0 0 0 1px var(--magenta), 0 0 16px rgba(224, 72, 155, .35);
}
.seite-musik h2 { position: relative; }

/* Der Player sitzt in einer runden Kachel, damit er nicht wie eine Fremdseite wirkt. */
.rl-panel { align-items: center; }
.rl-rahmen {
  position: relative;
  width: 100%;
  height: 296px;
  border-radius: 16px;
  border: 1px solid rgba(224, 72, 155, .42);
  background: var(--nacht);
  overflow: hidden;
  box-shadow: 0 0 26px rgba(224, 72, 155, .30), var(--shadow);
}
.rl-rahmen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.rl-hinweis { text-align: center; }
.rl-hinweis a { color: var(--accent); }
.rl-knopf span { margin-left: 4px; font-size: .9em; }
@media (max-width: 430px) {
  .rl-rahmen { max-width: 100%; height: 400px; border-radius: 20px; }
}

/* Warnhinweis, wo eine falsche Wahl Geld oder Nerven kostet */
.achtung {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--amber-soft);
  border: 1px solid var(--safran);
  border-left: 4px solid var(--amber);
  padding: 14px 16px;
  font-size: .92rem;
  color: var(--ink);
}
.achtung .fn {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .88em;
  background: rgba(255,255,255,.6);
  padding: 1px 5px;
  border: 1px solid var(--line);
}

/* ---------- Preise: laut und eindeutig ---------- */
.reihe .geld {
  font-size: 1.62rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--rot);
  letter-spacing: -.01em;
}
.gruppe .preis { color: var(--rot); font-size: 1.3rem; }

.je-person {
  display: inline-block;
  margin-top: 6px;
  background: var(--tuerkis);
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 8px 2px;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(10, 159, 174, .45);
  white-space: nowrap;
}
.gruppe .preis .je-person { font-size: .62rem; margin-top: 4px; }

@media (max-width: 430px) {
  .reihe .geld { font-size: 1.42rem; }
}

/* ---------- Dschungel im Hintergrund, selbst gezeichnet ---------- */
body {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22460%22%20height=%22460%22%20viewBox=%220%200%20460%20460%22%3E%20%3Cg%20fill=%22none%22%20stroke=%22%231f6b46%22%20stroke-width=%222.2%22%20stroke-linecap=%22round%22%20opacity=%220.5%22%3E%20%3Cpath%20d=%22M60%2040%20C10%2070%208%20140%2058%20176%20C104%20208%20150%20176%20152%20128%20C154%2084%20112%2044%2060%2040%20Z%22/%3E%20%3Cpath%20d=%22M60%2040%20C74%2090%2088%20140%20108%20190%22/%3E%20%3Cpath%20d=%22M40%2078%20L86%2096%20M28%20112%20L80%20124%20M34%20146%20L86%20148%20M62%20172%20L100%20164%22/%3E%20%3Cpath%20d=%22M330%2030%20C300%2074%20304%20130%20348%20156%20C388%20180%20424%20152%20424%20108%20C424%2068%20380%2034%20330%2030%20Z%22/%3E%20%3Cpath%20d=%22M330%2030%20C352%2074%20372%20116%20392%20168%22/%3E%20%3Cpath%20d=%22M318%2066%20L360%2086%20M310%20104%20L356%20116%20M320%20138%20L362%20140%22/%3E%20%3Cpath%20d=%22M210%20250%20C170%20270%20150%20320%20176%20360%20C200%20396%20254%20396%20274%20356%20C294%20316%20262%20268%20210%20250%20Z%22/%3E%20%3Cpath%20d=%22M210%20250%20C226%20296%20240%20340%20250%20386%22/%3E%20%3Cpath%20d=%22M186%20288%20L232%20300%20M172%20322%20L226%20330%20M182%20356%20L230%20356%22/%3E%20%3C/g%3E%20%3Cg%20fill=%22none%22%20stroke=%22%232b7d54%22%20stroke-width=%221.8%22%20stroke-linecap=%22round%22%20opacity=%220.42%22%3E%20%3Cpath%20d=%22M420%20250%20C380%20262%20350%20300%20348%20344%22/%3E%20%3Cpath%20d=%22M420%20250%20C404%20248%20384%20258%20372%20272%20M420%20250%20C400%20258%20384%20276%20376%20296%20M420%20250%20C388%20274%20368%20306%20358%20336%22/%3E%20%3Cpath%20d=%22M40%20400%20C80%20386%20118%20400%20140%20434%22/%3E%20%3Cpath%20d=%22M40%20400%20C56%20392%2078%20392%2094%20400%20M40%20400%20C64%20396%2092%20404%20112%20418%20M40%20400%20C70%20404%20104%20420%20128%20442%22/%3E%20%3Cpath%20d=%22M250%2060%20C262%2096%20258%20140%20236%20172%22/%3E%20%3Cpath%20d=%22M250%2060%20C240%2078%20236%20100%20238%20118%20M250%2060%20C246%2086%20250%20112%20258%20132%22/%3E%20%3C/g%3E%20%3C/svg%3E");
  background-size: 460px 460px;
  background-repeat: repeat;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(253, 247, 234, .55) 0%, rgba(253, 247, 234, .88) 55%, var(--ground) 100%);
}

/* Karten bekommen etwas mehr Deckkraft, damit Text auf dem Muster ruhig bleibt */
.reihe, .altkarte, ul.punkte li, a.kachel, .gruppe, .summe, details.klapp, button.track, header.himmel {
  background-color: rgba(255, 255, 255, .94);
}
.achtung { background-color: rgba(251, 238, 219, .96); }

/* ---------- Thai-Ornament als Trenner ---------- */
.zierde {
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22180%22%20height=%2218%22%20viewBox=%220%200%20180%2018%22%3E%20%3Cg%20fill=%22none%22%20stroke=%22%230a9fae%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%3E%20%3Cpath%20d=%22M90%203%20C86%208%2082%2010%2076%2010%20C70%2010%2066%207%2066%203%22/%3E%20%3Cpath%20d=%22M90%203%20C94%208%2098%2010%20104%2010%20C110%2010%20114%207%20114%203%22/%3E%20%3Cpath%20d=%22M90%203%20L90%2014%22/%3E%20%3Cpath%20d=%22M66%203%20C58%203%2052%206%2048%2011%20M114%203%20C122%203%20128%206%20132%2011%22/%3E%20%3Cpath%20d=%22M40%2011%20L14%2011%20M140%2011%20L166%2011%22%20opacity=%220.55%22/%3E%20%3C/g%3E%20%3C/svg%3E") no-repeat center;
  background-size: 180px 18px;
  margin: 2px 0 -12px;
}

/* ---------- Überschriften mit thailändischem Charakter ---------- */
h1, .festival-titel, .rl-name {
  font-family: "Chonburi", "Bricolage Grotesque", -apple-system, sans-serif;
  letter-spacing: 0;
}
h1 { line-height: 1.18; }
.thai-gruss {
  font-family: "Mitr", "Chonburi", sans-serif;
  font-size: 1.02rem;
  color: var(--tuerkis);
  letter-spacing: .02em;
}
.thai-gruss span { color: var(--ink-faint); font-family: inherit; font-size: .84rem; }

/* ---------- Player groß und wieder klein ---------- */
.spieler-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.spieler-fuss p { color: var(--ink-faint); font-size: .85rem; }
#gross-knopf {
  font: inherit;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
}
#gross-knopf:hover { border-color: var(--accent); }
#gross-knopf:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; }

#spieler-rahmen.gross {
  position: fixed;
  inset: 6vh 5vw;
  isolation: isolate;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  z-index: 60;
  border-radius: 14px;
  border-color: var(--safran);
  box-shadow: 0 0 0 100vmax rgba(23, 12, 31, .86), 0 20px 60px rgba(0, 0, 0, .5);
}
body.keinscroll { overflow: hidden; }
@media (max-width: 520px) {
  #spieler-rahmen.gross { inset: 12vh 3vw; }
}

/* ---------- Groß und klein: eine Fläche zum Antippen, ein X zum Schließen ---------- */
#spieler-rahmen { position: relative; }

/* Klickfläche über dem kleinen Player: vergrößert beim Antippen */
.lupe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  opacity: 0;
  transition: opacity .18s ease;
}
.lupe span { font-size: 1.1em; margin-right: 6px; }
.lupe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 12, 31, .72) 0%, transparent 46%);
}
.lupe > * { position: relative; }
.lupe:hover, .lupe:focus-visible { opacity: 1; }
.lupe:focus-visible { outline: 3px solid var(--safran); outline-offset: -3px; }
@media (hover: none) {
  .lupe { opacity: 1; }   /* auf dem Telefon dauerhaft sichtbar */
}

/* Schließen im großen Zustand */
.zu {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--safran);
  background: var(--nacht);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: zoom-out;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.zu:hover { background: var(--magenta); border-color: var(--magenta); }
.zu:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; }

.spieler-fuss p { margin-right: auto; }

/* ---------- Leiste: Equalizer über die ganze Breite, Knopf als Pille ---------- */
.radioleiste { gap: 14px; padding: 9px 16px; }
.rl-balken {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex: 1 1 auto;
  max-width: none;
  margin-right: clamp(16px, 5vw, 90px);
  overflow: hidden;
}
.rl-balken i {
  display: block;
  flex: 1 1 auto;
  min-width: 2px;
  max-width: 5px;
  background: var(--magenta);
  opacity: .55;
  height: 26%;
  border-radius: 2px 2px 0 0;
  animation-name: wippen;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.radioleiste.an .rl-balken i { opacity: 1; background: var(--rose); }
@media (prefers-reduced-motion: reduce) { .rl-balken i { animation: none; height: 40%; } }

.rl-knopf {
  border-radius: 999px;
  padding: 10px 22px;
  min-height: 40px;
  font-size: .76rem;
  letter-spacing: .12em;
  border: 0;
  background: linear-gradient(180deg, #f05fae 0%, var(--magenta) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 18px rgba(224, 72, 155, .45);
  transition: transform .12s ease, box-shadow .18s ease;
}
.rl-knopf:hover {
  background: linear-gradient(180deg, #f472bd 0%, #d63a8f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 22px rgba(224, 72, 155, .55);
}
.rl-knopf:active { transform: translateY(1px); }
.radioleiste.an .rl-knopf {
  background: linear-gradient(180deg, #3ad0c0 0%, var(--tuerkis) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 18px rgba(10, 159, 174, .5);
}
@media (max-width: 520px) {
  .rl-knopf { padding: 9px 16px; letter-spacing: .08em; }
  .rl-balken { margin-right: 10px; }
}

/* Balken werden jetzt vom Skript in der Höhe gesteuert, nicht von Keyframes. */
.rl-balken { height: 22px; align-items: stretch; }
.rl-balken i {
  height: 100%;
  transform-origin: bottom center;
  transform: scaleY(.3);
  animation: none;
  will-change: transform;
  background: linear-gradient(to top, var(--magenta) 0%, #f9a8d4 100%);
  opacity: .85;
}
.radioleiste.an .rl-balken i {
  opacity: 1;
  background: linear-gradient(to top, var(--magenta) 0%, #fff 100%);
}

/* Wellenform: die Balken wachsen aus der Mitte nach oben und unten. */
.rl-balken { align-items: center; height: 26px; }
.rl-balken i {
  transform-origin: center center;
  border-radius: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #f9a8d4 0%, var(--magenta) 50%, #f9a8d4 100%);
}
.radioleiste.an .rl-balken i {
  background: linear-gradient(to bottom, #fff 0%, var(--magenta) 50%, #fff 100%);
}
