:root {
  /* Weihnachtlich: Tannengrün, Kerzengold, Weihnachtsrot */
  --bg: #0f2a1d;
  --karte: #173a29;
  --rand: #2f5e45;
  --text: #fbf6ec;
  --leise: #b9cbbf;
  --akzent: #f2c14e;
  --rot: #c0392b;
  --ja: #b8262f;
  --nein: #d9534f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: #0a1f15; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(242, 193, 78, 0.18), transparent 60%),
    linear-gradient(180deg, #0c2318 0%, var(--bg) 40%, #0a1f15 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 20px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 8px 0 0;
  color: var(--akzent);
  text-shadow: 0 0 18px rgba(242, 193, 78, 0.35);
}
h1::before { content: "🎄 "; }
h1::after { content: " ✨"; }
h2 { font-size: 1.15rem; margin: 14px 0 0; color: var(--leise); font-weight: 600; }
p { margin: 0; }

.leise { color: var(--leise); }
.gross { font-size: 1.5rem; font-weight: 700; }
.mitte { text-align: center; }

.meldung {
  background: #4a1418;
  border: 2px solid var(--akzent);
  border-radius: 14px;
  padding: 12px 14px;
}

button, input {
  font: inherit;
  color: inherit;
  width: 100%;
  border-radius: 16px;
  border: 2px solid var(--rand);
  background: var(--karte);
  padding: 0 18px;
  min-height: 68px;
}

input { font-size: 1.3rem; }
input::placeholder { color: #777; }
input:focus, button:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

button {
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
button:active { transform: scale(0.98); }

button.haupt {
  background: linear-gradient(180deg, #d64541, var(--rot));
  border-color: var(--akzent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.45);
  justify-content: center;
}
button.klein {
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 600;
  justify-content: center;
}
button.gefahr { color: #ff8a80; }

/* Getränke-Auswahl */
button.wahl small { font-size: 0.9rem; font-weight: 500; color: var(--leise); }
button.wahl.zuletzt { border-style: dashed; border-color: var(--akzent); }
button.wahl.gewaehlt {
  background: var(--ja);
  border-color: var(--akzent);
  border-style: solid;
  color: #fff;
}
button.wahl.gewaehlt small { color: #fff; font-size: 1.6rem; font-weight: 700; }
button.wahl.aus { color: var(--leise); }
button.wahl.aus.gewaehlt { background: #4d5f55; border-color: #9fb3a6; color: #fff; }

.reihe { display: flex; gap: 10px; }
.reihe > * { flex: 1; }

/* Summen */
.summen { display: flex; flex-direction: column; gap: 8px; }
.summe {
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--karte);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 1.5rem;
  font-weight: 700;
}
.summe b { color: var(--akzent); font-size: 2rem; min-width: 2.6ch; text-align: right; }
.summe.null { opacity: 0.4; }

ul.liste { list-style: none; margin: 0; padding: 0; }
ul.liste li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--rand);
}
ul.liste li span:last-child { color: var(--leise); text-align: right; }
ul.liste li.fehlt span:last-child { color: var(--akzent); }

canvas.qr { width: 100%; height: auto; background: #fff; border-radius: 14px; image-rendering: pixelated; }

hr { border: 0; border-top: 1px solid var(--rand); margin: 10px 0; width: 100%; }

/* Karten mit dezenter Goldkante */
button, input, .summe { box-shadow: inset 0 1px 0 rgba(242, 193, 78, 0.08); }

/* Lichterkette oben */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 2;
  background: repeating-linear-gradient(90deg, #c0392b 0 22px, #f2c14e 22px 44px, #2e9e44 44px 66px, #fbf6ec 66px 88px);
  opacity: 0.85;
}

/* Schneefall, nur aus CSS-Verläufen (CSP-freundlich, keine Bilder) */
body::after {
  content: "";
  position: fixed;
  inset: -200px 0 0 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20px 30px, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(2px 2px at 80px 120px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(3px 3px at 150px 60px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 200px 170px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(2.5px 2.5px at 120px 190px, rgba(255, 255, 255, 0.5), transparent 60%);
  background-size: 220px 200px;
  animation: schnee 14s linear infinite;
  opacity: 0.55;
}
@keyframes schnee {
  from { transform: translateY(0); }
  to { transform: translateY(200px); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
