/* Zweck: Gestaltung der Wichtel-Seite „Winterabend“ (handgeschrieben, kein Framework). Lebensdauer: wie die Seite.
   Herleitung: stiller Winterabend – Tannengrün (Nacht), Kerzengold (Akzent, Licht), Papier-Creme (Karten wie Geschenkpapier-Etiketten).
   Schrift: Systemschriften (lokal, keine Fremdhosts). Schneefall nur mit CSS, aus bei prefers-reduced-motion. Handy zuerst. Keine Bilddateien. */
:root{--tanne:#16301f;--tanne2:#0f2216;--tanne3:#24492f;--gold:#e8b04a;--gold-d:#c8902a;--creme:#fbf3e1;--creme2:#f1e6c9;--tinte:#26301f;--still:#6b6a52;--rot:#a4332b;--r:18px;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"DejaVu Serif",serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"DejaVu Sans",sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;color:var(--creme);font:400 16px/1.55 var(--sans);overflow-x:hidden;
  background:radial-gradient(ellipse at 50% -10%,#2f5a3a 0,var(--tanne) 45%,var(--tanne2) 100%) fixed}
.huelle{position:relative;z-index:1;max-width:560px;margin:0 auto;padding:22px 16px 48px}
.kopf{text-align:center;padding:18px 0 8px}
.stern{color:var(--gold);font-size:28px;text-shadow:0 0 18px rgba(232,176,74,.8);animation:flackern 4s ease-in-out infinite}
h1{margin:2px 0 0;font:600 42px/1.1 var(--serif);letter-spacing:.02em;color:var(--creme)}
.unter{margin:6px 0 0;color:#cfc29a;font-style:italic;font-family:var(--serif)}
h2{margin:0 0 10px;font:600 21px/1.25 var(--serif);color:var(--tanne)}
.karte{background:var(--creme);color:var(--tinte);border-radius:var(--r);padding:18px 18px 20px;margin:16px 0;box-shadow:0 1px 2px rgba(0,0,0,.25),0 14px 34px -14px rgba(0,0,0,.6);
  background-image:repeating-linear-gradient(0deg,transparent 0 27px,rgba(120,100,50,.05) 27px 28px)}
.karte p{margin:.4em 0}
.mitte{text-align:center}
.schritte{margin:.2em 0;padding-left:1.3em}.schritte li{margin:.35em 0}
.rahmen{margin-top:12px!important;padding:8px 12px;background:var(--creme2);border-left:4px solid var(--gold);border-radius:8px}
.leise{color:var(--still);font-size:14px}
.zahl b{font:600 28px var(--serif);color:var(--tanne)}
label{display:block;margin:12px 0 0;font-weight:600;font-size:14px;color:var(--tanne)}
input,select{display:block;width:100%;margin-top:5px;padding:12px 13px;font:inherit;font-size:16px;color:var(--tinte);background:#fff;border:1.5px solid #cdbf93;border-radius:12px}
input:focus,select:focus,.knopf:focus-visible,label.geschenk:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.haken{display:flex;gap:10px;align-items:center;font-weight:400}.haken input{width:auto;margin:0}
.falle{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.knopf{display:inline-block;margin-top:14px;padding:12px 20px;border:0;border-radius:999px;background:var(--tanne);color:var(--creme);font:600 16px var(--sans);text-decoration:none;cursor:pointer;min-height:44px}
.knopf:hover{background:var(--tanne3)}
.knopf.gold{background:var(--gold);color:#3a2705}.knopf.gold:hover{background:#f2bd5c}
.knopf.leise{background:transparent;color:var(--tanne);border:1.5px solid #b9ab7d}
.knopf.gefahr{background:var(--rot);color:#fff}
.knopf.klein{padding:8px 14px;font-size:14px;min-height:38px;margin-top:0}
form .knopf{width:100%}.inline .knopf,.reihe .knopf,form.zeile .knopf{width:auto}
.inline{display:inline}
.reihe{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.zeile{display:flex;gap:8px;align-items:center;margin-top:12px}.zeile select{margin:0}
.liste{list-style:none;margin:0;padding:0}
.liste li{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px dashed #cdbf93}
.liste li:last-child{border:0}.nm{font-weight:600;overflow-wrap:anywhere}.liste .reihe{margin:0}
.marke{font-size:12px;background:var(--gold);color:#3a2705;border-radius:6px;padding:1px 7px;font-style:normal}
.link{font-size:14px}
.hinweis{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#e6f0d4;color:#21380f;font-weight:600;overflow-wrap:anywhere}
.hinweis.fehler{background:#f8dcd6;color:#6d1a13}
.fuss{text-align:center;margin-top:24px}
/* Geschenk: Checkbox-Trick, funktioniert ohne Skript */
.aufdecken-schalter{position:absolute;opacity:0;pointer-events:none}
.geschenk{position:relative;display:block;width:230px;height:200px;margin:22px auto 8px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.geschenk .kasten{position:absolute;left:15px;right:15px;bottom:0;height:120px;background:linear-gradient(#b8352c,#8f241e);border-radius:6px 6px 10px 10px;box-shadow:0 12px 20px -8px rgba(0,0,0,.5)}
.geschenk .kasten::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:26px;margin-left:-13px;background:var(--gold)}
.geschenk .deckel{position:absolute;left:5px;right:5px;bottom:110px;height:42px;background:linear-gradient(#cc4036,#a22b23);border-radius:8px;z-index:3;transform-origin:left bottom;transition:transform .8s cubic-bezier(.3,1.4,.5,1),opacity .6s .3s}
.geschenk .deckel::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:26px;margin-left:-13px;background:var(--gold)}
.geschenk .schleife{position:absolute;left:50%;bottom:150px;width:60px;height:34px;margin-left:-30px;z-index:4;transition:transform .8s,opacity .5s .2s}
.geschenk .schleife::before,.geschenk .schleife::after{content:"";position:absolute;top:0;width:28px;height:30px;border:6px solid var(--gold);border-radius:50% 50% 50% 0}
.geschenk .schleife::before{left:0;transform:rotate(-10deg)}.geschenk .schleife::after{right:0;border-radius:50% 50% 0 50%;transform:rotate(10deg)}
.geschenk .partner{position:absolute;left:0;right:0;bottom:30px;z-index:2;opacity:0;transform:translateY(40px) scale(.7);transition:opacity .6s .35s,transform .9s .35s cubic-bezier(.2,1.5,.4,1);color:#fff6dc;text-shadow:0 2px 6px rgba(0,0,0,.5)}
.geschenk .partner small{display:block;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.geschenk .partner b{display:block;font:600 30px/1.15 var(--serif);overflow-wrap:anywhere;padding:0 20px}
.aufdecken-schalter:checked + .geschenk .deckel{transform:translate(40px,-70px) rotate(24deg);opacity:0}
.aufdecken-schalter:checked + .geschenk .schleife{transform:translateY(-60px) rotate(20deg);opacity:0}
.aufdecken-schalter:checked + .geschenk .partner{opacity:1;transform:none;bottom:36px}
.aufdecken-schalter:checked + .geschenk .partner b{animation:leuchten 2.4s ease-in-out infinite alternate}
.aufdecken-schalter:focus-visible + .geschenk{outline:3px solid var(--gold);outline-offset:6px;border-radius:12px}
/* Schnee: 24 Flocken, nur transform/opacity */
.schnee{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.schnee i{position:absolute;top:-12px;width:7px;height:7px;border-radius:50%;background:#fff;opacity:.8;animation:fallen linear infinite}
@keyframes fallen{to{transform:translate3d(30px,108vh,0)}}
@keyframes flackern{50%{opacity:.75;text-shadow:0 0 28px rgba(232,176,74,1)}}
@keyframes leuchten{to{text-shadow:0 0 18px rgba(232,176,74,.95),0 2px 6px rgba(0,0,0,.5)}}
@media (min-width:700px){.huelle{padding-top:44px}h1{font-size:54px}}
@media (prefers-reduced-motion:reduce){.schnee{display:none}.stern,.aufdecken-schalter:checked + .geschenk .partner b{animation:none}.geschenk *{transition:none!important}}
.schnee i:nth-child(1){left:37%;width:4px;height:4px;animation-duration:16s;animation-delay:-2s;opacity:.5}
.schnee i:nth-child(2){left:74%;width:4px;height:4px;animation-duration:14s;animation-delay:-4s;opacity:.6}
.schnee i:nth-child(3){left:11%;width:4px;height:4px;animation-duration:12s;animation-delay:-6s;opacity:.7}
.schnee i:nth-child(4){left:48%;width:4px;height:4px;animation-duration:10s;animation-delay:-8s;opacity:.8}
.schnee i:nth-child(5){left:85%;width:4px;height:4px;animation-duration:17s;animation-delay:-10s;opacity:.4}
.schnee i:nth-child(6){left:22%;width:4px;height:4px;animation-duration:15s;animation-delay:-1s;opacity:.5}
.schnee i:nth-child(7){left:59%;width:4px;height:4px;animation-duration:13s;animation-delay:-3s;opacity:.6}
.schnee i:nth-child(8){left:96%;width:4px;height:4px;animation-duration:11s;animation-delay:-5s;opacity:.7}
.schnee i:nth-child(9){left:33%;width:4px;height:4px;animation-duration:9s;animation-delay:-7s;opacity:.8}
.schnee i:nth-child(10){left:70%;width:4px;height:4px;animation-duration:16s;animation-delay:-9s;opacity:.4}
.schnee i:nth-child(11){left:7%;width:4px;height:4px;animation-duration:14s;animation-delay:-0s;opacity:.5}
.schnee i:nth-child(12){left:44%;width:4px;height:4px;animation-duration:12s;animation-delay:-2s;opacity:.6}
.schnee i:nth-child(13){left:81%;width:4px;height:4px;animation-duration:10s;animation-delay:-4s;opacity:.7}
.schnee i:nth-child(14){left:18%;width:4px;height:4px;animation-duration:17s;animation-delay:-6s;opacity:.8}
.schnee i:nth-child(15){left:55%;width:4px;height:4px;animation-duration:15s;animation-delay:-8s;opacity:.4}
.schnee i:nth-child(16){left:92%;width:4px;height:4px;animation-duration:13s;animation-delay:-10s;opacity:.5}
.schnee i:nth-child(17){left:29%;width:4px;height:4px;animation-duration:11s;animation-delay:-1s;opacity:.6}
.schnee i:nth-child(18){left:66%;width:4px;height:4px;animation-duration:9s;animation-delay:-3s;opacity:.7}
.schnee i:nth-child(19){left:3%;width:4px;height:4px;animation-duration:16s;animation-delay:-5s;opacity:.8}
.schnee i:nth-child(20){left:40%;width:4px;height:4px;animation-duration:14s;animation-delay:-7s;opacity:.4}
.schnee i:nth-child(21){left:77%;width:4px;height:4px;animation-duration:12s;animation-delay:-9s;opacity:.5}
.schnee i:nth-child(22){left:14%;width:4px;height:4px;animation-duration:10s;animation-delay:-0s;opacity:.6}
.schnee i:nth-child(23){left:51%;width:4px;height:4px;animation-duration:17s;animation-delay:-2s;opacity:.7}
.schnee i:nth-child(24){left:88%;width:4px;height:4px;animation-duration:15s;animation-delay:-4s;opacity:.8}
.fuss .knopf.leise{color:var(--creme);border-color:#7f9570}
.fuss .knopf.leise:hover{background:rgba(255,255,255,.08)}
