/* Partyliste – gemeinsames Aussehen. Schriften lokal: Antonio (Überschriften), Barlow (Text), OFL. */
@font-face { font-family: "Antonio"; src: url("../fonts/antonio-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Antonio"; src: url("../fonts/antonio-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --nacht: #0f0a17;
  --tief: #170f22;
  --karte: #1f1530;
  --karte-hell: #2a1d40;
  --linie: #3a2a55;
  --text: #f4eefc;
  --leise: #a596bd;
  --flamme: #ff5a36;
  --glut: #ffcc33;
  --wunsch: #38e1c5;
  --fehler: #ff6b8a;
  --hype-verlauf: linear-gradient(135deg, var(--flamme), var(--glut));
  --rund: 14px;
  --kopf: "Antonio", "Arial Narrow", sans-serif;
  --text-font: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--nacht); color: var(--text);
  font: 500 16px/1.4 var(--text-font);
  background-image: radial-gradient(1200px 600px at 110% -10%, #3b1240 0%, transparent 60%),
                    radial-gradient(900px 500px at -20% 110%, #0d2e3a 0%, transparent 60%);
  background-attachment: fixed;
}
a { color: var(--wunsch); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--kopf); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin: 0; line-height: 1.05; }
.leise { color: var(--leise); }
.versteckt { display: none !important; }
:focus-visible { outline: 3px solid var(--wunsch); outline-offset: 2px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  border: 1px solid var(--linie); background: var(--karte-hell); border-radius: 999px;
  padding: .55em 1.1em; font-weight: 600; text-decoration: none; color: var(--text); min-height: 44px;
  transition: transform .08s ease, background .15s;
}
.knopf:active { transform: scale(.96); }
.knopf:disabled { opacity: .4; cursor: default; }
.knopf.haupt { background: var(--wunsch); color: #06221d; border-color: transparent; }
.knopf.hype { background: var(--hype-verlauf); color: #2a0a00; border-color: transparent; }
.knopf.gefahr { border-color: var(--fehler); color: var(--fehler); background: transparent; }
.knopf.klein { min-height: 36px; padding: .3em .8em; font-size: .9em; }
.rund-knopf {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie); background: var(--karte-hell);
  display: inline-grid; place-items: center; flex: none; padding: 0;
}
.rund-knopf svg { width: 22px; height: 22px; }
.rund-knopf.plus { background: var(--wunsch); color: #06221d; border: 0; }
.rund-knopf.drin { background: transparent; color: var(--wunsch); border-color: var(--wunsch); }
.icon { width: 1.1em; height: 1.1em; vertical-align: -.15em; flex: none; }

input[type=text], input[type=search], input[type=password], input[type=number] {
  width: 100%; background: var(--tief); border: 1px solid var(--linie); border-radius: 12px; padding: .75em 1em;
  min-height: 48px; font-size: 17px;
}
input:focus { border-color: var(--wunsch); outline: none; }

/* Toasts */
#toasts { position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; gap: 8px;
  justify-items: center; pointer-events: none; z-index: 50; padding: 0 12px; }
.toast { background: var(--karte-hell); border: 1px solid var(--linie); padding: .7em 1.1em; border-radius: 12px;
  box-shadow: 0 10px 30px #0008; max-width: 520px; animation: rein .25s ease; font-weight: 600; }
.toast.fehler { border-color: var(--fehler); color: #ffd9e1; }
.toast.hype { border-color: var(--flamme); }
.toast.wunsch { border-color: var(--wunsch); }
@keyframes rein { from { transform: translateY(12px); opacity: 0; } }

/* ---------------------------------------------------------- Gäste (Handy) */
.app { max-width: 640px; margin: 0 auto; padding: 0 14px 120px; }
.kopfzeile { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 0 10px; background: linear-gradient(var(--nacht) 70%, transparent); }
.kopfzeile h1 { font-size: 26px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hypezaehler { display: flex; align-items: center; gap: 8px; background: var(--karte); border: 1px solid var(--linie);
  border-radius: 999px; padding: 4px 12px 4px 6px; }
.hypezaehler .flammen { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hype-verlauf); color: #2a0a00; }
.hypezaehler b { font-family: var(--kopf); font-size: 24px; }
.hypezaehler small { display: block; font-size: 11px; color: var(--leise); line-height: 1; }
.hypezaehler.leer .flammen { background: var(--karte-hell); color: var(--leise); }
.hypezaehler.puls { animation: puls .5s ease; }
@keyframes puls { 50% { transform: scale(1.12); } }

.jetzt-karte { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; background: var(--karte);
  border: 1px solid var(--linie); border-radius: var(--rund); padding: 10px; margin: 4px 0 14px; position: relative; overflow: hidden; }
.jetzt-karte img, .cover { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--karte-hell); display: block; }
.jetzt-karte .etikett { font-family: var(--kopf); font-size: 13px; letter-spacing: .12em; color: var(--glut); text-transform: uppercase; }
.jetzt-karte .titel { font-weight: 600; font-size: 17px; line-height: 1.2; }
.fortschritt { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--hype-verlauf); width: 0; transition: width 1s linear; }
.leer-hinweis { text-align: center; padding: 28px 12px; color: var(--leise); }

.reiter { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--karte); border: 1px solid var(--linie);
  border-radius: 999px; padding: 4px; margin-bottom: 14px; position: sticky; top: 64px; z-index: 9; }
.reiter button { background: none; border: 0; border-radius: 999px; padding: .55em .2em; font-weight: 600; color: var(--leise); min-height: 42px; }
.reiter button[aria-selected=true] { background: var(--karte-hell); color: var(--text); }
.reiter .zahl { font-size: .8em; background: var(--linie); border-radius: 999px; padding: 0 .5em; margin-left: .2em; }

.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zeile { display: grid; grid-template-columns: auto 52px 1fr auto; gap: 10px; align-items: center; background: var(--karte);
  border: 1px solid transparent; border-radius: var(--rund); padding: 8px 10px 8px 8px; }
.zeile.ohne-nr { grid-template-columns: 52px 1fr auto; }
.zeile .nr { font-family: var(--kopf); font-size: 20px; color: var(--leise); width: 1.6em; text-align: center; }
.zeile .cover { width: 52px; height: 52px; border-radius: 8px; }
.zeile .cover.rund { border-radius: 50%; }
.zeile .mitte { min-width: 0; }
.zeile .titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.zeile .unter { font-size: 13.5px; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .unter .wer { color: var(--wunsch); }
.zeile.meins { border-color: color-mix(in srgb, var(--wunsch) 45%, transparent); }
.zeile.gehypt { box-shadow: inset 3px 0 0 var(--flamme); }
.zeile .aktionen { display: flex; gap: 6px; align-items: center; }
.hypeknopf { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--flamme); background: transparent; color: var(--glut); font-weight: 700; }
.hypeknopf:not(:disabled):active { background: var(--hype-verlauf); color: #2a0a00; }
.hypeknopf:disabled { opacity: .35; }
.hypeknopf.flieg { animation: flieg .45s ease; }
@keyframes flieg { 40% { transform: translateY(-6px) scale(1.1); background: var(--hype-verlauf); color: #2a0a00; } }
.zeile.hochgerueckt { animation: hoch .6s ease; }
@keyframes hoch { from { background: color-mix(in srgb, var(--flamme) 35%, var(--karte)); } }
.abschnitt { margin: 22px 0 10px; font-size: 18px; color: var(--leise); }
details.verlauf summary { cursor: pointer; color: var(--leise); margin: 22px 0 10px; font-family: var(--kopf); text-transform: uppercase; letter-spacing: .04em; }
.zeile.vorbei { opacity: .6; }

.suchfeld { display: flex; gap: 8px; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--linie); background: var(--karte); border-radius: 999px; padding: .4em .9em; font-weight: 600; color: var(--leise); min-height: 38px; }
.chip[aria-pressed=true] { background: var(--text); color: var(--nacht); border-color: var(--text); }

.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kachel { background: var(--karte); border: 0; border-radius: var(--rund); padding: 0 0 10px; text-align: left; overflow: hidden; }
.kachel img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--karte-hell); }
.kachel .t { font-weight: 600; padding: 8px 10px 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kachel .u { font-size: 13px; color: var(--leise); padding: 2px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel.rund img { border-radius: 50%; width: 80%; margin: 10% auto 0; }
.kachel.rund .t { text-align: center; }
.genres { display: flex; flex-wrap: wrap; gap: 8px; }
.genre { border: 0; border-radius: 10px; padding: .7em 1em; font-weight: 600; min-height: 44px; color: #fff;
  background: hsl(var(--h) 55% 32%); }
.zurueck { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ansicht-kopf { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.ansicht-kopf img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--karte-hell); }
.ansicht-kopf h2 { font-size: 26px; }
.lade { text-align: center; padding: 30px; color: var(--leise); }
.lade::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%;
  border: 3px solid var(--linie); border-top-color: var(--wunsch); animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

.schleier { position: fixed; inset: 0; background: #0f0a17ee; z-index: 40; display: grid; place-items: center; padding: 20px; }
.dialog { background: var(--karte); border: 1px solid var(--linie); border-radius: 20px; padding: 26px 22px; width: min(420px, 100%); display: grid; gap: 14px; }
.dialog h2 { font-size: 34px; }
.dialog .fehlertext { color: var(--fehler); min-height: 1.2em; margin: 0; }
.regelkasten { font-size: 14px; color: var(--leise); background: var(--tief); border-radius: 12px; padding: 10px 12px; margin: 0; }
.regelkasten li { margin: 2px 0; }
.banner { background: var(--karte-hell); border: 1px solid var(--glut); border-radius: var(--rund); padding: 12px 14px; margin-bottom: 14px; }

/* ---------------------------------------------------------- Start & Gastgeber */
.schmal { max-width: 720px; margin: 0 auto; padding: 32px 16px 80px; }
.marke { font-size: clamp(44px, 12vw, 84px); background: var(--hype-verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 18px; margin: 16px 0; }
.karte h2 { font-size: 22px; margin-bottom: 12px; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.reihe > input { flex: 1; min-width: 180px; }
.partyliste a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.regeln-form { display: grid; grid-template-columns: 1fr 110px; gap: 10px 12px; align-items: center; }
.regeln-form label { color: var(--leise); }
.regeln-form input[type=checkbox] { width: 26px; height: 26px; justify-self: start; accent-color: var(--wunsch); }
.gastzeile { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.gastzeile.gesperrt .name { text-decoration: line-through; color: var(--leise); }
.steuerung { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.steuerung .knopf { min-height: 58px; border-radius: 16px; }
.qr-klein { width: 180px; background: #fff; border-radius: 12px; padding: 6px; display: block; }
code.link { word-break: break-all; background: var(--tief); padding: 4px 8px; border-radius: 6px; font-size: 14px; }
.hypeknopf svg { width: 20px; height: 20px; }
.steuerung .icon { width: 26px; height: 26px; }
