/* Siebers Weihnachtsgrillen – Stil „Glut & Lichterkette in Violett“ */
:root {
  --violett: #7b3fe4;
  --violett-tief: #2a0f45;
  --violett-nacht: #160823;
  --glut: #ff7a1a;
  --glut-dunkel: #e2580b;
  --licht: #ffd36b;
  --schnee: #fbf8ff;
  --text-leise: #d9cdee;
  --karte: rgba(25, 10, 41, 0.93);
  --rand: rgba(196, 160, 255, 0.22);
  --fehler: #ff9b8a;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--schnee);
  background: var(--violett-nacht);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
.hintergrund {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 8, 35, 0.05) 0%, rgba(22, 8, 35, 0.12) 30%, rgba(22, 8, 35, 0.78) 55%, rgba(22, 8, 35, 0.93) 75%),
    url("/bild/hintergrund.jpg") center top / cover no-repeat,
    radial-gradient(ellipse at 50% 85%, #ff7a1a55, transparent 60%),
    linear-gradient(#3b1466, #160823);
}
h1, h2 { line-height: 1.2; margin: 0 0 .6em; }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8.5vw, 3.4rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
  font-weight: 700;
}
h2 { font-size: 1.25rem; color: var(--licht); }
a { color: var(--licht); }
.kopf {
  min-height: 96vh;
  min-height: 96svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center;
  padding: 24px 18px 28px;
}
.lichter { display: flex; gap: 14px; justify-content: center; margin: 0 0 auto; padding-top: 6px; }
.lichter span {
  width: 10px; height: 14px; border-radius: 50% 50% 45% 45%;
  background: var(--licht); box-shadow: 0 0 8px 2px rgba(255,211,107,.55);
  animation: funkeln 4s ease-in-out infinite;
}
.lichter span:nth-child(3n+2) { background: #c79bff; box-shadow: 0 0 8px 2px rgba(199,155,255,.55); animation-delay: 1.3s; }
.lichter span:nth-child(3n) { background: var(--glut); box-shadow: 0 0 8px 2px rgba(255,122,26,.55); animation-delay: 2.6s; }
@keyframes funkeln { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .lichter span { animation: none; } html { scroll-behavior: auto; } }
.eckdaten { font-size: 1.15rem; font-weight: 600; margin: 0 0 14px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.gruss {
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.08rem;
  max-width: 27em; margin: 0 auto 16px; text-shadow: 0 1px 8px rgba(0,0,0,.85);
}
.gruss .unterschrift { display: block; text-align: right; margin-top: 4px; font-size: 1.15rem; color: var(--licht); }
.gruss .unterschrift::before { content: "– "; }
.countdown { margin: 0; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.countdown b { font-size: 1.45rem; color: var(--licht); font-variant-numeric: tabular-nums; }
.countdown-text { font-size: 1.3rem; font-weight: 700; color: var(--licht); margin: 4px 0 0; }
.sprung { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }

main { max-width: 640px; margin: 0 auto; padding: 0 14px 20px; }
.karte {
  background: var(--karte);
  border-top: 3px solid rgba(123, 63, 228, .55);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  margin: 0 0 14px;
}
.klein { font-size: .95rem; color: var(--text-leise); margin: -.2em 0 .8em; }
.leer { color: var(--text-leise); font-style: italic; margin: 0; }
.info { background: rgba(255,211,107,.14); border-left: 4px solid var(--licht); padding: 10px 12px; border-radius: 8px; }
.warnung { background: rgba(255,122,26,.16); border-left: 4px solid var(--glut); padding: 10px 12px; border-radius: 8px; }
.fehler { color: var(--fehler); font-weight: 600; margin: .4em 0 0; }
.fehler.gross { background: rgba(255,90,70,.15); border: 1px solid rgba(255,155,138,.5); padding: 12px; border-radius: 10px; margin-bottom: 12px; }

.feld { display: block; margin: 0 0 12px; }
.feld > span { display: block; font-weight: 600; margin-bottom: 6px; }
em { font-style: normal; font-weight: 400; color: var(--text-leise); }
input[type=text], textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--schnee);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  padding: 12px 14px; min-height: 48px;
}
input[type=text]::placeholder, textarea::placeholder { color: rgba(251,248,255,.5); }
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--licht); box-shadow: 0 0 0 3px rgba(255,211,107,.25); }
.ungueltig { border-color: var(--fehler) !important; }

.wahl { display: grid; gap: 10px; }
.wahl.drei { grid-template-columns: repeat(3, 1fr); }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; }
.wahl span {
  display: grid; place-items: center; min-height: 56px; text-align: center; padding: 8px 4px;
  border-radius: 8px; border: 2px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s;
}
.wahl input:checked + span { background: var(--violett); border-color: var(--licht); }
.wahl input:focus-visible + span { outline: 3px solid var(--licht); outline-offset: 2px; }

.zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.zaehler { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; }
.zaehler button {
  width: 48px; height: 48px; border: 0; background: transparent; color: var(--licht); font-size: 1.6rem; cursor: pointer; border-radius: 14px;
}
.zaehler button:active { background: rgba(255,255,255,.12); }
.zaehler output { font-size: 1.3rem; font-weight: 700; min-width: 2ch; text-align: center; }
.aus .nur-wenn-kommt, .nur-wenn-kommt.aus { display: none; }

.speisekarte { display: grid; gap: 10px; }
.gericht {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 2px solid rgba(255,255,255,.18); border-radius: 14px; padding: 4px 4px 4px 14px; background: rgba(255,255,255,.05);
}
.gericht.an { border-color: var(--glut); background: rgba(255,122,26,.13); }
.gericht .name { flex: 1; font-weight: 600; min-height: 48px; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; padding: 0; }
.gericht .haken { width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(255,255,255,.5); display: grid; place-items: center; flex: none; }
.gericht.an .haken { background: var(--glut); border-color: var(--glut); }
.gericht.an .haken::after { content: "✓"; font-weight: 900; }
.gericht .zaehler { flex: none; }

.kategorie { margin-bottom: 14px; }
.kategorie > span { font-weight: 700; display: block; margin-bottom: 4px; }
.schon { font-size: .93rem; color: var(--text-leise); margin: 0 0 6px; }
.schon b { color: var(--schnee); font-weight: 600; }

fieldset.lied { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
fieldset.lied legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.wunsch { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 10px 22px; border-radius: 8px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; color: var(--schnee);
}
.knopf-glut { background: var(--glut); color: #1b0a00; }
.knopf-glut:hover { background: var(--glut-dunkel); }
.knopf-glut:active { transform: translateY(1px); }
.knopf-hell { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
.knopf[disabled] { opacity: .6; cursor: wait; }
.breit { width: 100%; }
.gross { min-height: 56px; font-size: 1.15rem; }
.absenden { padding: 4px 0 8px; margin-bottom: 20px; }

.bestaetigung h2 { font-size: 1.45rem; }
.uebersicht { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 18px; }
.uebersicht dt { color: var(--text-leise); }
.uebersicht dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.namen { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 10px; }
.namen li { background: rgba(123,63,228,.35); border: 1px solid rgba(199,155,255,.35); padding: 6px 12px; border-radius: 999px; }
.namen.vielleicht li { background: rgba(255,255,255,.07); border-style: dashed; }
.bringt { list-style: none; padding: 0; margin: 0; }
.bringt li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.bringt li:last-child { border-bottom: 0; }
.bringt .kat { display: inline-block; font-size: .92rem; color: var(--text-leise); min-width: 6.5em; }
.musik { list-style: none; padding: 0; margin: 0; counter-reset: lied; }
.musik li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.musik li:last-child { border-bottom: 0; }
.musik .t { flex: 1; }
.musik .t small { display: block; color: var(--text-leise); }
.musik .n { font-weight: 800; color: var(--glut); white-space: nowrap; }

.einverstaendnis { font-weight: 600; background: rgba(255,211,107,.14); padding: 10px 12px; border-radius: 10px; }
.datei-knopf { position: relative; overflow: hidden; font-size: 1.15rem; min-height: 56px; }
.datei-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.fortschritt { margin: 12px 0; }
.balken { height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.balken div { height: 100%; width: 0; background: var(--glut); transition: width .2s; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.galerie button { position: relative; padding: 0; border: 0; background: rgba(255,255,255,.06); border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie .herz { position: absolute; right: 6px; bottom: 6px; font-size: 1.1rem; text-shadow: 0 1px 4px #000; }

.pulli-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pulli-liste button { min-height: 52px; border-radius: 14px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--schnee); font: inherit; font-weight: 600; cursor: pointer; }
.pulli-liste button.gewaehlt { background: var(--violett); border-color: var(--licht); }
.pulli-liste button:disabled:not(.gewaehlt) { opacity: .55; cursor: default; }

.sieger-karte { border-top-color: var(--licht); }
.sieger-fotos { display: grid; gap: 10px; }
.sieger-fotos img { width: 100%; border-radius: 12px; display: block; }
.hinweis-karte p { white-space: pre-line; margin: 0; }

.foto-dialog { padding: 0; border: 0; background: #000; color: var(--schnee); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; height: 100dvh; margin: 0; }
.foto-dialog::backdrop { background: rgba(0,0,0,.9); }
.foto-dialog[open] { display: flex; flex-direction: column; }
.foto-dialog img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.foto-leiste { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }

.fuss { max-width: 640px; margin: 10px auto 0; padding: 18px 18px 40px; font-size: .9rem; color: var(--text-leise); }
.fuss h2 { font-size: 1rem; color: var(--text-leise); }

@media (min-width: 700px) {
  body { font-size: 18px; }
  .galerie { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) {
  .wahl.drei span { font-size: .92rem; }
}

/* Ausgeblendetes bleibt ausgeblendet, auch bei Knöpfen mit eigener Anzeige */
[hidden] { display: none !important; }

#pulli-frage .knopf { margin-top: 10px; }
.wahl.drei span { line-height: 1.25; }

/* Christians Bild hat echte Lichterketten – die gezeichneten entfallen */
.lichter { visibility: hidden; }
@media (min-width: 700px) {
  .hintergrund { background-position: center top, center 15%, center, center; }
  .kopf { min-height: 88vh; }
}
