/* ============================================================
   Gastplayliste – Gastansicht (iPad-Kiosk und Handy)
   Ein Formular: Song auswählen → Name → Musikwunsch senden
   Ziel: iPad Pro 11"  (1194 × 834 quer  /  834 × 1194 hoch)
   Als Web-App zum Home-Bildschirm hinzufügen → Vollbild ohne Safari-Leiste
   ============================================================ */

html, body {
  height: 100%;
  overflow: hidden;                 /* kein Seitenscroll im Kiosk */
  overscroll-behavior: none;        /* kein Gummiband / Pull-to-Refresh */
  touch-action: manipulation;       /* kein Doppeltipp-Zoom */
}

body.kiosk {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  background:
    radial-gradient(1100px 620px at 82% -8%,
      color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    radial-gradient(760px 540px at -10% 108%,
      color-mix(in srgb, var(--accent-soft) 13%, transparent), transparent 60%),
    var(--bg);
}

/* Eingabefelder bleiben markierbar */
body.kiosk input, body.kiosk textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* ---------------- Bühne ---------------- */

.kiosk-stage {
  height: 100dvh;
  overflow-y: auto;                 /* Formular + eigene Wünsche dürfen scrollen */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding:
    max(.9rem, env(safe-area-inset-top))
    max(1.1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.1rem, env(safe-area-inset-left));
}
.kiosk-col {
  width: min(1020px, 100%);
  margin-inline: auto;
  padding-top: .6rem;
  display: grid;
  gap: 1.4rem;
}

/* ---------------- Kopf: Logo · Eventname · Infos ---------------- */

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .7rem;
}
.hero-logo {
  height: clamp(70px, 12vh, 120px);
  color: var(--accent-soft);
  filter: drop-shadow(0 4px 22px color-mix(in srgb, var(--accent) 35%, transparent));
}
.hero-event {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 18px color-mix(in srgb, var(--text) 18%, transparent);
  overflow-wrap: anywhere;
}

.chips {
  list-style: none;
  margin: .3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  font-weight: 700;
  font-size: clamp(.88rem, 1.9vw, 1.02rem);
}
.chip .ico { width: 1.2em; height: 1.2em; flex: none; color: var(--muted); }

/* ---------------- Kopf als eigene Kachel über den beiden anderen ----------------
   QR-Code links in der Kachel, Logo/Eventname/Infos mittig */

.head-row.wish-card {
  display: grid;
  justify-items: center;
  padding: clamp(1.1rem, 3vw, 1.8rem);
}
.qr-panel { display: none; }
.head-spacer { display: none; }

@media (min-width: 760px) {
  .head-row.has-qr {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.4rem;
  }
  .head-row.has-qr .qr-panel { display: flex; justify-self: start; width: clamp(150px, 17vw, 190px); }
  /* in der Kachel ohne eigenen Kasten – nur der weiße QR-Code mit Text */
  .head-row .qr-panel { background: none; border: 0; box-shadow: none; padding: 0; }
  .head-row.has-qr .head-spacer { display: block; }
}

.qr-panel {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .9rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-2);
}
.qr-panel img {
  width: 100%;
  max-width: 170px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;          /* Scanner brauchen den hellen Untergrund */
  padding: 10px;
}
.qr-panel p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.qr-panel strong { color: var(--text); }

/* ---------------- Register: „Musik einreichen“ / „Playliste voten“ ----------------
   Das aktive Register steht vorn und geht nahtlos in seinen Inhalt über,
   das andere tritt zurück. */

.reg { display: grid; min-width: 0; }
.reg-tabs {
  display: flex;
  align-items: flex-end;              /* inaktives Register kürzer, sitzt bündig auf der Karte */
  gap: .5rem;
  padding-inline: clamp(.6rem, 2.5vw, 1.4rem);
  position: relative;
  z-index: 3;
}
.reg-tab {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: -1px;
  padding: .6rem 1.3rem .7rem .7rem;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  /* inaktiv: dunkler als die Karte, tiefer gesetzt, gedämpft – liegt sichtbar „dahinter“ */
  background: color-mix(in srgb, var(--bg) 70%, var(--surface));
  color: var(--muted);
  font: inherit;
  font-size: clamp(.92rem, 2.1vw, 1.15rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  opacity: .62;
  box-shadow: inset 0 -10px 14px -10px rgb(0 0 0 / .45);
  min-height: 54px;
  transform: scale(.96);
  transform-origin: 50% 100%;
  transition: transform .25s ease, opacity .25s ease, background .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.reg-tab:not(.is-active):hover { opacity: .85; transform: scale(.98); }
/* aktiv: hell wie die Karte, größer, farbige Kante oben, leicht leuchtend */
.reg-tab.is-active {
  opacity: 1;
  transform: none;
  min-height: 72px;
  color: var(--text);
  font-weight: 800;
  background:
    radial-gradient(130% 120% at 20% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    color-mix(in srgb, var(--surface) 96%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 -10px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}
.reg-tab.is-active::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: -1px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
}
/* Naht zum Inhalt verdecken, damit Register und Karte eins werden */
.reg-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 4px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.reg-tab .icon-tile { width: 42px; border-radius: 12px; box-shadow: none; }
.reg-tab:not(.is-active) .icon-tile { filter: grayscale(1); opacity: .55; }
.reg-tab:not(.is-active) .n { opacity: .7; }
.reg-tab .n {
  min-width: 1.6rem;
  padding: .05rem .45rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}
.reg-tab .n:empty { display: none; }
.icon-tile.heart { color: #fff; background: color-mix(in srgb, #e11d48 60%, var(--accent)); }

.reg-panel { display: grid; gap: 1.2rem; min-width: 0; position: relative; z-index: 2; }
.reg-panel[hidden] { display: none; }
.reg-panel > .wish-card:first-child { border-top-left-radius: 14px; }
.reg-enter { animation: reg-in .32s cubic-bezier(.2, .8, .3, 1); }
@keyframes reg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.vote-head { display: flex; align-items: flex-start; gap: 1rem; }
.vote-head .wish-lead { flex: 1; margin: 0; }

@media (max-width: 560px) {
  .reg-tabs { gap: .35rem; padding-inline: .4rem; }
  .reg-tab { flex: 1 1 0; justify-content: center; min-width: 0; padding: .55rem .45rem .6rem; font-size: .88rem; text-transform: none; letter-spacing: 0; min-height: 50px; gap: .35rem; }
  .reg-tab:not(.is-active) { min-height: 46px; }
  .reg-tab.is-active { min-height: 60px; }
  .reg-tab .icon-tile { display: none; }
  .reg-tab .reg-label { text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
}

/* ---------------- Voting-Liste ---------------- */

.vote-join { display: flex; gap: .6rem; }
.vote-join[hidden] { display: none; }
.vote-join .input-icon { flex: 1; min-width: 0; }
.vote-join .input-icon input { min-height: 56px; border-radius: 18px; font-size: 1.05rem; }
.vote-join .btn { flex: none; min-height: 56px; border-radius: 18px; }
.vote-meta { margin: -.3rem 0 0; color: var(--muted); font-size: .9rem; }
.vote-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* lange Titel kürzen statt die Zeile zu verbreitern */
  grid-auto-rows: max-content;            /* Zeilen und Player nie zusammenquetschen, wenn die Liste scrollt */
  gap: .25rem;
  max-height: min(60dvh, 620px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-inline: -.4rem;
  padding-inline: .4rem;
}
.vote-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .4rem;
  border-radius: var(--radius-sm);
}
.vote-item:nth-child(-n+3) .pos { color: var(--accent-soft); }
.vote-item.mine { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vote-item .cover { width: 48px; height: 48px; }
.vote-item .play { width: 46px; height: 46px; font-size: 1rem; }
.vote-item.is-playing { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.vote-list .hit-player { margin: 0 0 .4rem; }
@media (max-width: 560px) {
  .vote-item { gap: .5rem; padding-inline: .2rem; }
  .vote-item .cover { width: 42px; height: 42px; }
  .vote-item .play { width: 40px; height: 40px; }
  .vote-btn { min-width: 58px; padding-inline: .6rem; gap: .25rem; }
}
@media (max-width: 420px) {
  .vote-item .pos { display: none; }      /* Reihenfolge zeigt die Liste selbst – Platz für den Titel */
}
.vote-btn {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 70px;
  min-height: 46px;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #e11d48 45%, var(--border));
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.vote-btn .vh { color: #e11d48; font-size: 1.25rem; line-height: 1; }
.vote-btn.on { background: #e11d48; border-color: #e11d48; color: #fff; }
.vote-btn.on .vh { color: #fff; }
.vote-btn:disabled { opacity: .6; cursor: default; }
.vote-btn.locked { opacity: .45; border-style: dashed; }
.vote-btn.pop { animation: vote-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes vote-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------------- Herz aus dem Logo explodiert ---------------- */

/* Herz im DJ-Dirk-Design: Herzbogen aus dem Logo als Maske, Farbe = currentColor */
.dj-heart {
  display: block;
  aspect-ratio: 348 / 360;
  background-color: currentColor;
  -webkit-mask: url("heart-mask.png") no-repeat center / contain;
          mask: url("heart-mask.png") no-repeat center / contain;
}

.heart-boom { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; }
.boom-logo { position: fixed; display: block; aspect-ratio: auto; margin: 0; transform-origin: 50% 50%; color: var(--accent-soft); }
/* gleiche Herzen wie beim „Danke für dein Voting“: rot mit leichtem Leuchten */
.boom-heart {
  position: fixed;
  color: #e11d48;
  filter: drop-shadow(0 0 8px rgb(255 60 100 / .35));
  will-change: transform, opacity;
}

/* ---------------- Wunschkarte ---------------- */

.wish-card {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.4rem, 4.6vw, 2.6rem);
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background:
    radial-gradient(130% 75% at 15% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
    radial-gradient(110% 70% at 100% 100%, color-mix(in srgb, var(--accent-soft) 16%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.wish-card-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.wish-card-head h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  line-height: 1.2;
}
/* „Alle Wünsche“ als Banner rechts neben der Überschrift */
.wish-banner {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 46px;
  padding: .5rem .95rem .5rem .8rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-soft) 50%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent-soft) 14%, transparent)),
    var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 25%, transparent);
  -webkit-tap-highlight-color: transparent;
}
.wish-banner:active { transform: scale(.97); }
.wish-banner .ico { width: 18px; height: 18px; color: var(--accent-soft); }
.wish-banner .n {
  min-width: 1.6rem;
  padding: .05rem .45rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .8rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.wish-banner .n:empty { display: none; }

.icon-tile {
  flex: none;
  width: clamp(54px, 9vw, 66px);
  aspect-ratio: 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 48%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-soft) 55%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 40%, transparent);
}
.icon-tile .ico { width: 48%; height: 48%; }

.wish-lead {
  margin: -.3rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

/* Gemeinsame Optik für Songfeld und Namensfeld */
.song-field,
.input-icon input {
  width: 100%;
  min-height: 72px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text);
  font: inherit;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

.song-field {
  appearance: none;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem 1.4rem;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background .15s ease;
}
.song-field:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.song-field:disabled { opacity: .55; cursor: not-allowed; }
.song-empty { color: var(--muted); }
.song-field.has-song { padding-left: .6rem; border-color: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.song-field .cover { width: 54px; height: 54px; border-radius: 18px; }
.song-field .track-main { display: grid; }
.song-field .track-title { font-size: 1.05rem; }
.song-change {
  flex: none;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
}

.wish-field { display: grid; gap: .55rem; }
label.cap {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 800;
  font-size: .9rem;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}
.input-icon { position: relative; }
.input-icon .ico {
  position: absolute;
  left: 1.35rem; top: 50%;
  width: 26px; height: 26px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.input-icon input { padding: 0 1.4rem 0 3.9rem; }
.input-icon input:focus { border-color: color-mix(in srgb, var(--accent-soft) 65%, transparent); }
.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: .5rem;
  color: var(--muted);
  font-size: .92rem;
}
.field-foot span:last-child { flex: none; font-variant-numeric: tabular-nums; }

.btn.send {
  min-height: 74px;
  border-radius: 28px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}
.btn.send .ico { width: 24px; height: 24px; }

/* „Fertig“ rechts neben „Musikwunsch senden“ */
.send-row { display: flex; gap: .7rem; align-items: stretch; }
.send-row { container-type: inline-size; }
.send-row .send { flex: 1; min-width: 0; letter-spacing: .03em; padding-inline: .8rem; }
/* Richtet sich nach der Breite der Kachel (nicht des Bildschirms) – zwei offene
   Kacheln nebeneinander am iPad sind genauso schmal wie ein Handy */
@container (max-width: 480px) {
  .send-row .send { font-size: .9rem; letter-spacing: 0; gap: .35rem; padding-inline: .6rem; }
  .send-row .send .ico { display: none; }
  .send-row .done-btn { font-size: .85rem; letter-spacing: .02em; padding-inline: .8rem; }
}
.done-btn {
  flex: none;
  min-height: 74px;
  padding-inline: 1.6rem;
  border-radius: 28px;
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  border: 2px solid color-mix(in srgb, var(--accent) 60%, var(--border));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: none;
}
.done-btn[hidden] { display: none; }

/* „Nächste/r Gast“ auf der Danke-Seite: groß und unübersehbar */
.sheet .btn.next-btn {
  min-height: 84px;
  margin-top: .6rem;
  border-radius: 24px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: next-pulse 2.2s ease-in-out infinite;
}
.next-arrow { font-size: 1.5em; line-height: 1; transition: transform .2s ease; }
.next-btn:hover .next-arrow { transform: translateX(6px); }
@keyframes next-pulse {
  0%, 100% { box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50%      { box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 12px transparent; }
}
@media (prefers-reduced-motion: reduce) { .sheet .btn.next-btn { animation: none; } }

.quota { margin: -.4rem 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.quota.is-full { color: var(--warn); font-weight: 700; }

/* ---------------- Eigene Wünsche ---------------- */

.my-wishes {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: grid;
  gap: .6rem;
}
.my-wishes[hidden] { display: none; }
.my-wishes-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 .3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .92rem;
}
.my-wishes-list .track { padding: .5rem .3rem; }

/* ---------------- Songsuche als Dropdown ---------------- */

.wish-card { position: relative; z-index: 2; }
.song-combo { position: relative; }
.song-combo .song-field[hidden], .song-input[hidden] { display: none; }

.song-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 72px;
  padding: 0 1rem 0 1.4rem;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  background: color-mix(in srgb, var(--text) 9%, transparent);
  transition: border-color .15s ease, border-radius .15s ease;
}
.song-input:focus-within {
  border-color: color-mix(in srgb, var(--accent-soft) 65%, transparent);
}
.song-combo.open .song-input { border-radius: 28px 28px 14px 14px; }
.song-note { flex: none; font-size: clamp(1.05rem, 2.5vw, 1.35rem); }
.song-input input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 70px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  box-shadow: none;
}
.song-input input:focus { outline: none; box-shadow: none; }
.song-input input::placeholder { color: var(--muted); opacity: 1; }
.song-input input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.song-input input:disabled { cursor: not-allowed; }
.song-input:has(input:disabled) { opacity: .55; }
.song-clear {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.song-clear[hidden] { display: none; }

.song-dropdown {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: min(52dvh, 470px);
  padding: .5rem;
  border-radius: 14px 14px 22px 22px;
  border: 1px solid color-mix(in srgb, var(--accent-soft) 40%, var(--border));
  background: var(--surface);           /* deckend – darunter liegt das Namensfeld */
  box-shadow: var(--shadow-2), 0 18px 50px rgb(0 0 0 / .28);
  animation: drop-in .16s ease;
}
.song-dropdown[hidden] { display: none; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.results-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .3rem .5rem .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.results-list {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.song-dropdown .empty { padding: 1.4rem 1rem; }

/* Vorhören direkt im Dropdown: Player klappt unter dem Treffer auf */
.hit-player {
  margin: 0 .4rem .5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-soft) 40%, var(--border));
  background: var(--surface-2);
  animation: drop-in .16s ease;
}
.hit-player iframe { display: block; width: 100%; height: 128px; border: 0; }
.hit-player.is-spotify iframe { height: 80px; }   /* kompakter Spotify-Player – keine weiße Fläche darunter */
.hit.is-playing {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent-soft) 35%, transparent);
}
.play.is-playing { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Trefferkarte – große Tippflächen */
.hit {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  min-height: 74px;
}
.hit-pick {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.hit-pick:active { transform: scale(.995); }
.hit:active { background: var(--surface-2); }
.hit[data-picked="1"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.hit .cover { width: 56px; height: 56px; }
.hit .add {
  flex: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.hit[data-picked="1"] .add { background: var(--ok); color: #fff; }

/* Schon von jemand anderem gewünscht: gedämpft, Hinweis rechts statt „+“ */
.hit.is-wished .cover,
.hit.is-wished .track-main { opacity: .55; }
.hit.is-wished .hit-pick { cursor: not-allowed; }
.wished {
  flex: none;
  display: grid;
  justify-items: end;
  gap: .05rem;
  max-width: 9.5rem;
  padding: .35rem .7rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--warn) 55%, var(--border));
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  text-align: right;
  line-height: 1.2;
}
.wished-label { font-size: .78rem; font-weight: 800; color: var(--warn); white-space: nowrap; }
.wished-by {
  min-width: 0;
  font-size: .76rem;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.remove:active { background: var(--error); color: #fff; border-color: var(--error); }

.empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* ---------------- Hinweis-Overlay ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px) saturate(1.2);
  animation: overlay-in .22s ease;
}
.overlay[hidden] { display: none; }

@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  display: grid;
  gap: 1.1rem;
  animation: sheet-in .3s cubic-bezier(.2, 1.2, .35, 1);
}

@keyframes sheet-in {
  from { transform: translateY(18px) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.sheet-mark {
  width: 76px; height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.1rem; line-height: 1;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.sheet h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.sheet p  { margin: 0; font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted); line-height: 1.5; }
.sheet .btn { margin-top: .35rem; }

.sheet-mark.warn {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  border-color: color-mix(in srgb, var(--warn) 55%, transparent);
}

@media (max-height: 620px) {
  .sheet { padding: 1.4rem 1.5rem 1.2rem; gap: .8rem; }
  .sheet-mark { width: 54px; height: 54px; font-size: 1.5rem; }
  .sheet .btn { min-height: 54px; font-size: 1.05rem; }
}

/* ---------------- QR-Code ---------------- */

.sheet.qr { width: min(460px, 100%); }
.qr-big {
  width: min(300px, 62vw);
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.sheet.player { width: min(680px, 100%); }
.sheet.player h2 { font-size: 1.25rem; }

/* Der TIDAL-Player übernimmt das Farbschema der Seite, wird im dunklen Mood
   also selbst dunkel. Der Rahmen füllt nur die Sekunde bis er geladen ist. */
.player-frame {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 128px;
}
.player-frame iframe {
  display: block;
  width: 100%;
  height: 128px;
  border: 0;
}

/* Abspielknopf in den Listen */
.play {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.play:active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.my-wishes-list .play { width: 44px; height: 44px; font-size: 1rem; }

/* Direkte Hörprobe: Knopf wird zum Stopp-Knopf mit Fortschrittsring */
.play { position: relative; }
.play.is-sound { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.play.is-sound::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1turn), color-mix(in srgb, var(--accent) 22%, transparent) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  pointer-events: none;
}
.play.is-loading::before {
  background: conic-gradient(var(--accent) .28turn, transparent 0);
  animation: play-spin .9s linear infinite;
}
@keyframes play-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .play.is-loading::before { animation: none; } }
.track.is-playing { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------------- Wünsche-Übersicht ---------------- */

.sheet.wide {
  width: min(760px, 100%);
  text-align: left;
  padding: 1.5rem 1.5rem 1.25rem;
  max-height: min(80dvh, 720px);
  grid-template-rows: auto 1fr;
  gap: 1rem;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.sheet-head h2 { margin: 0 0 .15rem; text-align: left; }
.sheet-head p  { font-size: .88rem; }
.sheet-head .btn { flex: none; }

.wish-list {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-inline: -.4rem;
  padding-inline: .4rem;
}
.wish-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem .4rem;
  border-bottom: 1px solid var(--border);
}
.wish-item:last-child { border-bottom: 0; }
.wish-item.mine {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}
.wish-item .cover { width: 48px; height: 48px; }
.wish-item .who {
  flex: none;
  font-size: .84rem;
  color: var(--muted);
  text-align: right;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  opacity: 0;
  visibility: hidden;
  z-index: 60;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 650;
  box-shadow: var(--shadow-2);
  transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .2s ease, visibility .2s;
  max-width: min(90vw, 560px);
  text-align: center;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.toast.error { border-color: var(--error); color: var(--error); }
.toast.ok    { border-color: var(--ok);    color: var(--ok); }


.sheet-mark.ok {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  border-color: var(--ok);
}
.sheet-head .spacer { flex: 1; }


/* ---------------- Fußzeile ---------------- */

.kiosk-foot {
  display: flex;
  justify-content: center;
  gap: .6rem;
  padding: .4rem 0 .2rem;
  font-size: .85rem;
  color: var(--muted);
}
.kiosk-foot a { color: var(--muted); text-decoration: none; padding: .3rem .2rem; }
.kiosk-foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------------- Trinkgeld auf der Danke-Seite ---------------- */

.sheet.has-tip { width: min(640px, 100%); }
.tip-box {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent-soft) 40%, var(--border));
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%),
    var(--surface-2);
}
.tip-main { flex: 1; min-width: 0; display: grid; gap: .65rem; align-content: center; }
.tip-head { display: flex; align-items: center; gap: .55rem; font-size: 1.1rem; }
.tip-icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-soft);
  font-size: 1rem;
}
.sheet p.tip-text { margin: 0; font-size: .98rem; }
.tip-amounts { display: flex; gap: .45rem; flex-wrap: wrap; }
.tip-amount {
  flex: 1 1 0;
  min-width: 64px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-soft) 45%, var(--border));
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}
.tip-amount:active { background: var(--accent); color: var(--on-accent); }
.sheet .btn.tip-btn { margin-top: 0; min-height: 52px; }
.tip-btn .pp {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: #fff;
  color: #003087;            /* PayPal-Blau */
  font-weight: 900;
  font-style: italic;
  font-size: .9rem;
}
.tip-qr {
  flex: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--muted);
}
.tip-qr img {
  width: 132px; height: 132px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

/* ---------------- DANKESCHÖN mit Herzregen ---------------- */

.thanks-burst {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .4rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgb(225 29 72 / .28), rgb(0 0 0 / .55) 70%);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  animation: burst-in .35s ease both;
  cursor: pointer;
}
.thanks-burst.out { animation: burst-out .55s ease both; }
@keyframes burst-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes burst-out { to { opacity: 0; } }

.thanks-word {
  position: relative;
  z-index: 2;
  font-size: clamp(2.6rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 18px rgb(255 40 90 / .9),
    0 0 48px rgb(225 29 72 / .8),
    0 6px 0 #9f1239;
  animation: word-pop .9s cubic-bezier(.2, 1.6, .4, 1) both, word-beat 1.1s ease-in-out .9s infinite;
  text-align: center;
  padding-inline: 1rem;
}
.thanks-word.long { font-size: clamp(2.2rem, 7vw, 6.2rem); max-width: 14ch; line-height: 1.05; }
.thanks-burst .heart.dj-heart { text-shadow: none; filter: drop-shadow(0 0 8px rgb(255 60 100 / .35)); }
.thanks-sub {
  position: relative;
  z-index: 2;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgb(0 0 0 / .5);
  animation: word-pop .9s .25s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes word-pop  { from { transform: scale(.2) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes word-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.thanks-burst .heart {
  position: absolute;
  bottom: -80px;
  z-index: 1;
  color: #e11d48;
  line-height: 1;
  text-shadow: 0 0 12px rgb(255 60 100 / .6);
  animation-name: heart-rise;
  animation-timing-function: cubic-bezier(.3, .6, .5, 1);
  animation-iteration-count: 2;
  will-change: transform;
}
@keyframes heart-rise {
  0%   { transform: translate(0, 0) rotate(0) scale(.6); }
  15%  { transform: translate(calc(var(--drift) * .2), -18vh) rotate(calc(var(--spin) * .3)) scale(1); }
  100% { transform: translate(var(--drift), -120vh) rotate(var(--spin)) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .thanks-word { animation: none; }
  .thanks-burst .heart { animation: none; bottom: auto; top: calc(var(--i, 50) * 1%); }
}

/* ---------------- Kleine Geräte ---------------- */

@media (max-width: 560px) {
  .tip-qr { display: none; }           /* am Handy direkt per Knopf zahlen */
  .kiosk-col { gap: 1.1rem; }
  .wish-card { gap: 1.1rem; }
  .song-field, .input-icon input, .btn.send, .done-btn { min-height: 62px; border-radius: 22px; }
  .done-btn { padding-inline: 1rem; }
  .field-foot { font-size: .82rem; }
  .song-input { min-height: 62px; border-radius: 22px; padding-left: 1.1rem; }
  .song-input input { height: 60px; }
  .song-dropdown { max-height: 58dvh; padding: .35rem; }
  .song-dropdown .hit { gap: .45rem; padding: .4rem; min-height: 60px; }
  .song-dropdown .hit-pick { gap: .65rem; }
  .song-dropdown .hit .cover { width: 46px; height: 46px; }
  .song-dropdown .hit .add,
  .song-dropdown .play { width: 40px; height: 40px; font-size: 1.05rem; }
  .song-dropdown .track-title { font-size: .95rem; }
  .song-dropdown .track-sub { font-size: .8rem; }
  .song-dropdown .wished { width: 5.4rem; max-width: 5.4rem; padding: .25rem .45rem; overflow: hidden; }
  .song-dropdown .wished-label { font-size: .68rem; white-space: normal; text-align: right; }
  .song-dropdown .wished-by { font-size: .68rem; }
  .hit { min-height: 70px; }
  .hit .cover { width: 52px; height: 52px; }
  .hit .add, .play { width: 44px; height: 44px; }
  .wish-card-head { flex-wrap: wrap; row-gap: .8rem; }
  .wish-card-head h2 { flex: 1 1 0; }
  .wish-banner { order: 3; width: 100%; justify-content: center; }
}

/* ---------------- Nachfrage nach jedem Wunsch ---------------- */

.ask-sheet { text-align: center; width: min(520px, 100%); }
.ask-sheet h2 { margin: .2rem 0 .4rem; font-size: clamp(1.3rem, 3.2vw, 1.75rem); line-height: 1.2; }
.ask-sheet p { margin: 0 0 1.2rem; color: var(--muted); }
.ask-actions { display: grid; gap: .65rem; }
.ask-actions .btn[hidden] { display: none; }
.tap-hint {
  margin: .4rem 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .04em;
  animation: tap-blink 1.6s ease-in-out infinite;
}
.tap-hint[hidden] { display: none; }
#doneOverlay:has(.tap-hint:not([hidden])) { cursor: pointer; }
@keyframes tap-blink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tap-hint { animation: none; } }

/* ================================================================
   Bildschirm einpassen
   iPad & Co.: alles passt ohne Seiten-Scroll in den Bildschirm –
   „Deine Wünsche“ und die Vote-Liste scrollen innerhalb ihres Bereichs.
   Handy: Seite darf scrollen, der Kopf ist dafür kompakt.
   ================================================================ */

/* ---- Handy: kompakter Kopf ---- */
@media (max-width: 699px) {
  .kiosk-col { gap: .9rem; padding-top: .2rem; }
  .head-row.wish-card { padding: .9rem 1rem 1rem; }
  .hero { gap: .4rem; }
  .hero-logo { height: clamp(48px, 8vh, 72px); }
  .hero-event { font-size: clamp(1.3rem, 6vw, 1.75rem); }
  .chips { gap: .4rem; margin-top: .1rem; }
  .chip { padding: .35rem .75rem; font-size: .82rem; gap: .4rem; }
  #wishForm { gap: 1rem; padding: 1.1rem; }
}

/* ---- Tablet (auch hochkant): alles in einen Bildschirm ---- */
@media (min-width: 700px) and (min-height: 540px) {
  .kiosk-stage {
    overflow: hidden;
    display: flex;
    padding-top: max(.7rem, env(safe-area-inset-top));
    padding-bottom: max(.4rem, env(safe-area-inset-bottom));
  }
  .kiosk-col {
    flex: 1;
    min-height: 0;
    height: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(.6rem, 1.6vh, 1.1rem);
  }
  .head-row.wish-card { flex: none; padding: clamp(.7rem, 1.8vh, 1.4rem) clamp(1rem, 2.5vw, 1.8rem); }
  .hero { gap: clamp(.25rem, .9vh, .7rem); }
  .hero-logo { height: clamp(46px, 8.5vh, 104px); }
  .hero-event { font-size: clamp(1.35rem, 3.4vh, 2.3rem); }
  .chip { padding: clamp(.3rem, .8vh, .55rem) clamp(.7rem, 1.5vw, 1.05rem); }
  .head-row.has-qr .qr-panel { width: clamp(110px, 15vh, 180px); gap: .45rem; }
  .qr-panel p { font-size: .74rem; }

  .reg { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .reg-tabs { flex: none; }
  .reg-panel:not([hidden]) {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(.6rem, 1.4vh, 1.1rem);
  }
  #wishForm { flex: none; gap: clamp(.7rem, 1.9vh, 1.35rem); padding: clamp(1rem, 2.6vh, 2.4rem) clamp(1.1rem, 3vw, 2.6rem); }
  .my-wishes:not([hidden]) {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: .7rem .9rem;
  }
  .my-wishes-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

  .vote-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: clamp(.6rem, 1.5vh, 1.1rem); }
  .vote-card > * { flex: none; }
  .vote-card .vote-list { flex: 1 1 auto; min-height: 0; max-height: none; }

  .kiosk-foot { flex: none; padding: .1rem 0 0; font-size: .78rem; }
}

/* ---- Tablet quer: Kopf als Spalte links, Register rechts in voller Höhe ---- */
@media (min-width: 960px) and (min-height: 540px) and (min-aspect-ratio: 5/4) {
  .kiosk-col {
    width: min(1440px, 100%);
    display: grid;
    grid-template-columns: clamp(250px, 25vw, 340px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: clamp(1rem, 1.8vw, 1.6rem);
    row-gap: .4rem;
  }
  .head-row.wish-card,
  .head-row.wish-card.has-qr {
    grid-column: 1; grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3.5vh, 2.2rem);
    min-height: 0;
    margin-top: clamp(66px, 9vh, 80px);          /* bündig mit der Karte unter den Registern */
    padding: clamp(1rem, 3vh, 2rem) 1.1rem;
  }
  .head-row .hero { order: 1; }
  .head-row .qr-panel { order: 2; }
  .head-row .head-spacer { display: none !important; }
  .head-row.has-qr .qr-panel { display: flex; justify-self: auto; width: clamp(130px, 22vh, 190px); }
  .hero-logo { height: clamp(60px, 13vh, 120px); }
  .hero-event { font-size: clamp(1.4rem, 2.3vw, 2.1rem); }
  .chips { flex-direction: column; align-items: center; }

  .reg { grid-column: 2; grid-row: 1 / span 2; min-height: 0; }
  .kiosk-foot { grid-column: 1; grid-row: 2; }
}

/* ---------------- Gespielt (aus Spotify) ---------------- */

.vote-list .vote-item.played {
  background: color-mix(in srgb, #22c55e 16%, transparent);
  border: 1px solid color-mix(in srgb, #22c55e 45%, transparent);
}
.vote-item.played .track-title { color: color-mix(in srgb, #22c55e 35%, var(--text)); }
.played-tag {
  display: inline-block;
  margin-top: .2rem;
  padding: .05rem .5rem;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.vote-btn.played-lock { opacity: .45; border-style: dashed; filter: grayscale(.6); }

/* ---------------- Admin-Kiosksicht: Neues in „Playliste voten“ gelb ---------------- */

.vote-list .vote-item.ak-new {
  position: relative;
  background: #fde047;
  border: 1px solid #eab308;
  color: #1c1917;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgb(234 179 8 / .35);
}
.vote-list .vote-item.ak-new .track-title,
.vote-list .vote-item.ak-new .pos { color: #1c1917; background: none; -webkit-text-fill-color: currentColor; }
.vote-list .vote-item.ak-new .track-sub { color: #44403c; }
.vote-list .vote-item.ak-new::after {
  content: attr(data-ak);
  position: absolute;
  top: -.55rem; left: .8rem;
  padding: .05rem .5rem;
  border-radius: 999px;
  background: #1c1917;
  color: #fde047;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
}
/* Platz für das Etikett „Neu“ über der Zeile, damit es in der scrollenden Liste nicht abgeschnitten wird */
html.in-admin-view .vote-list { padding-top: .7rem; }
html.in-admin-view .vote-list .vote-item.ak-new { margin-top: .45rem; }

/* ---------------- Admin-Kiosksicht: Register „Playliste Spotify“ ---------------- */

.icon-tile.spot { color: #fff; background: #1db954; }
.reg-tabs:has(#tabSpot) .reg-tab { padding-right: .9rem; gap: .5rem; font-size: clamp(.72rem, 1.15vw, .92rem); letter-spacing: .02em; white-space: nowrap; }
.spot-votes {
  flex: none;
  min-width: 3.2rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #e11d48 40%, var(--border));
  text-align: center;
  font-weight: 800;
  font-size: .9rem;
}
.vote-item.dj-own .track-sub { font-style: italic; }

/* ---------------- Umschalten Kiosksicht ⇄ Admin-Kiosksicht ---------------- */

.kiosk-foot .ak-link { white-space: nowrap; }   /* gleiche Schrift wie Impressum/Datenschutz */
.kiosk-foot { flex-wrap: wrap; }
.ak-switch {
  flex: none;
  align-self: flex-start;
  min-height: 40px;
  font-weight: 800;
}
@media (min-width: 960px) and (min-height: 540px) and (min-aspect-ratio: 5/4) {
  .kiosk-col { position: relative; }
  /* quer: in den freien Platz über der Kopf-Kachel */
  .ak-switch {
    position: absolute;
    top: clamp(14px, 2.2vh, 22px);
    left: 0;
    width: clamp(250px, 25vw, 340px);
    justify-content: center;
    z-index: 4;
  }
}

@media (min-width: 960px) and (min-height: 540px) and (min-aspect-ratio: 5/4) {
  .kiosk-foot { gap: .35rem; font-size: .72rem; }
}

/* ---------------- Kiosk-Code (Zahlenfeld wie beim iPad) ---------------- */

.pin-overlay { background: rgb(0 0 0 / .72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pin-sheet {
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
  gap: .9rem;
  color: #fff;
  text-align: center;
}
.pin-sheet h2 { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; color: #fff; text-transform: none; }
.pin-sub { margin: -.4rem 0 .2rem; font-size: .9rem; color: rgb(255 255 255 / .7); min-height: 1.3em; }
.pin-sub.bad { color: #fca5a5; }
.pin-dots { display: flex; gap: 1.1rem; min-height: 16px; margin-bottom: .6rem; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff; transition: background .12s ease; }
.pin-dot.on { background: #fff; }
.pin-dots.shake { animation: pin-shake .4s ease; }
@keyframes pin-shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 78px); gap: 1rem 1.4rem; }
.pin-key {
  appearance: none;
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / .16);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .1s ease;
}
.pin-key:active { background: rgb(255 255 255 / .45); }
.pin-key.pin-text { background: none; font-size: 1rem; font-weight: 600; }
.pin-key.pin-text:active { background: rgb(255 255 255 / .12); }
@media (max-height: 620px) {
  .pin-pad { grid-template-columns: repeat(3, 64px); gap: .7rem 1.1rem; }
  .pin-key { width: 64px; height: 64px; font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .pin-dots.shake { animation: none; } }

/* ---------------- Popups: nie größer als der Bildschirm ----------------
   Passt ein Fenster nicht ganz hinein (z. B. Danke + Trinkgeld am iPhone),
   lässt es sich scrollen; sonst bleibt es mittig. */
.overlay {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.overlay > * { margin: auto; flex: none; }

@media (max-width: 560px), (max-height: 700px) {
  .overlay { padding: max(.8rem, env(safe-area-inset-top)) .8rem max(.8rem, env(safe-area-inset-bottom)); }
  .sheet { padding: 1.4rem 1.1rem 1.2rem; gap: .8rem; }
  .sheet-mark { width: 56px; height: 56px; font-size: 1.6rem; }
  .sheet h2 { font-size: 1.3rem; }
  .sheet p { font-size: .98rem; line-height: 1.4; }
  .sheet .tip-box { padding: .9rem; gap: .6rem; }
  .sheet .tip-head { font-size: 1rem; }
  .sheet p.tip-text { font-size: .9rem; }
  .tip-amount { min-height: 42px; }
  .sheet .btn.tip-btn { min-height: 48px; }
  .sheet .btn.big.next-btn { min-height: 54px; }
}

/* ---------------- Safari (iPhone/iPad): Spalten nie breiter als der Bildschirm ----------------
   Safari misst die Mindestbreite eines Grid-Bereichs an langen, nicht umbrechenden
   Songtiteln – die Karte wurde dadurch breiter als das iPhone. Mit minmax(0, 1fr)
   bleibt sie bildschirmbreit und lange Titel werden mit „…“ gekürzt. */
.kiosk-col,
.reg,
.reg-panel,
.wish-card,
.my-wishes,
.my-wishes-list,
.vote-card,
.vote-list,
.song-dropdown,
.results-list { grid-template-columns: minmax(0, 1fr); }
.reg-panel > *, .wish-card > *, .my-wishes > *, .vote-card > *, .song-combo, .song-dropdown > * { min-width: 0; }
.track, .hit, .vote-item { min-width: 0; max-width: 100%; }

/* ---------------- Admin-Kiosksicht: ohne Kopfteil ----------------
   Logo, Eventname, QR-Code und Fußzeile braucht der Admin hier nicht –
   Register und Inhalt bekommen die volle Breite, „← Kiosksicht“ steht darüber. */
html.in-admin-view .head-row,
html.in-admin-view .kiosk-foot { display: none !important; }
html.in-admin-view .kiosk-col {
  display: flex;
  flex-direction: column;
  width: min(1440px, 100%);
  gap: .7rem;
}
html.in-admin-view .reg { grid-column: auto; grid-row: auto; flex: 1 1 auto; min-height: 0; }
html.in-admin-view .ak-switch {
  position: static;
  width: auto;
  align-self: flex-start;
  margin: 0 0 .1rem;
}

/* Hinweis im Feld „Dein Name / Tisch“ etwas kleiner als die Eingabe, damit der lange Text hineinpasst */
#inpName::placeholder { font-size: .8em; }

/* Admin-Kiosksicht: Neuigkeiten im Register
   über der Überschrift „Neue Wünsche“ (Zahl gelb), darunter „Neue Votes“ (Zahl in Herzfarbe) – Text weiß */
html.in-admin-view .reg-tab { --akv: var(--pink, #e11d48); }
.reg-tab .ak-stack {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  margin-left: .2rem;
}
.reg-tab .ak-stack:not(:has(.ak-line:not([hidden]))) { display: none; }
.reg-tab .ak-line {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  white-space: nowrap;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: none;
  color: #fff;
  line-height: 1.2;
}
.reg-tab .ak-line[hidden] { display: none; }
.reg-tab .ak-line-n {
  min-width: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}
.reg-tab .ak-line.top .ak-line-n { background: #fde047; color: #1c1917; }
.reg-tab .ak-line.bottom .ak-line-n { background: var(--akv); color: #fff; }
/* lesbar auch bei hellen Moods und im blasseren (inaktiven) Register */
.reg-tab .ak-line-text { text-shadow: 0 1px 2px rgb(0 0 0 / .65); }
html.in-admin-view .reg-tab.has-ak:not(.is-active) { opacity: .9; }

/* Neue Votes in den Listen in Herzfarbe (neue Wünsche bleiben gelb) */
html.in-admin-view .vote-list { --akv: var(--pink, #e11d48); }
.vote-list .vote-item.ak-new[data-kind="v"] {
  background: var(--akv);
  border-color: color-mix(in srgb, var(--akv) 70%, #000);
  color: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--akv) 35%, transparent);
}
.vote-list .vote-item.ak-new[data-kind="v"] .track-title,
.vote-list .vote-item.ak-new[data-kind="v"] .pos { color: #fff; -webkit-text-fill-color: #fff; }
.vote-list .vote-item.ak-new[data-kind="v"] .track-sub { color: rgb(255 255 255 / .85); }
.vote-list .vote-item.ak-new[data-kind="v"]::after { color: #fff; background: color-mix(in srgb, var(--akv) 60%, #000); }
.vote-list .vote-item.ak-new[data-kind="wv"] { border: 2px solid var(--akv); box-shadow: 0 0 0 2px color-mix(in srgb, var(--akv) 30%, transparent); }

/* ---------------- Tablet quer: Spalten wiederherstellen & gleiche Höhe ----------------
   (Die Safari-Regel weiter oben setzte .kiosk-col einspaltig – im Querformat gilt wieder:
   Kopf links, Register rechts.) Die rechte Kachel reicht bis unten, solange noch keine
   eigenen Wünsche darunter stehen – so sind linke und rechte Kachel gleich hoch. */
@media (min-width: 960px) and (min-height: 540px) and (min-aspect-ratio: 5/4) {
  html:not(.in-admin-view) .kiosk-col { grid-template-columns: clamp(250px, 25vw, 340px) minmax(0, 1fr); }
  #tileWish:has(#myWishes[hidden]) #wishForm { flex: 1 1 auto; align-content: center; }
  /* rechte Seite endet auf Höhe der linken Kachel (Fußzeile steht darunter links) */
  html:not(.in-admin-view) .reg { grid-row: 1; }
  html:not(.in-admin-view) .head-row.wish-card { margin-top: 72px; }   /* = Höhe der Register */
}
