/* Adventskalender im Leiterbereich. Nutzt die Farben der Jahreszeit (Variablen aus index.html). */
.adv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adv-head h2 { font-size: 30px; }
.adv-punkte { border-radius: 22px; background: var(--paper); color: var(--front); padding: 8px 16px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.adv-punkte b { font-family: var(--display); font-weight: 900; font-size: 22px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.adv-door { position: relative; aspect-ratio: 1 / 1.05; border-radius: 14px; border: 0; padding: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--card); color: var(--text); font-family: var(--body); box-shadow: inset 0 0 0 2px rgba(247, 241, 227, .22); }
.adv-door .adv-n { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; }
.adv-door .adv-sub { font-size: 10.5px; line-height: 1.1; font-weight: 700; opacity: .85; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adv-door.adv-zu { opacity: .6; }
.adv-door.adv-zu::after { content: ""; position: absolute; top: 5px; right: 5px; width: 12px; height: 12px; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='black'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='black'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.adv-door.adv-heute { background: var(--accent); color: var(--front); box-shadow: 0 0 0 3px var(--paper); animation: adv-glow 2.4s ease-in-out infinite; }
.adv-door.adv-vorbei { background: var(--paper); color: var(--front); }
.adv-door.adv-done::before { content: "✓"; position: absolute; top: 3px; right: 6px; font-size: 14px; font-weight: 900; color: #2F7A4B; }
.adv-door.adv-bonus { grid-column: span 5; aspect-ratio: auto; min-height: 56px; flex-direction: row; gap: 12px; }
@keyframes adv-glow { 0%, 100% { box-shadow: 0 0 0 3px var(--paper), 0 0 0 rgba(242, 194, 48, 0); } 50% { box-shadow: 0 0 0 3px var(--paper), 0 0 18px rgba(242, 194, 48, .8); } }
@media (prefers-reduced-motion: reduce) { .adv-door.adv-heute { animation: none; } }
.adv-note { font-size: 14px; color: var(--muted); margin: 0; }
.adv-test { border-radius: 18px; border: 2px dashed var(--muted); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.adv-test b { font-family: var(--display); font-size: 17px; }
.adv-banner { border-radius: 14px; background: #F6D5CF; color: #6A1F14; font-weight: 700; padding: 10px 14px; font-size: 14px; }
.adv-typ { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 14px; background: var(--paper); color: var(--front); }
.adv-card h2 { font-size: 30px; }
.adv-card p { margin: 0; }
.adv-ok { border-radius: 14px; background: #D3EBD8; color: #0F3B1D; font-weight: 700; padding: 12px 14px; }
.adv-nein { border-radius: 14px; background: #F6D5CF; color: #6A1F14; font-weight: 700; padding: 12px 14px; }
.adv-lamp { width: 64px; height: 64px; border-radius: 50%; background: #3a3a3a; box-shadow: inset 0 0 0 4px rgba(255,255,255,.15); transition: background .04s; align-self: center; }
.adv-lamp.on { background: var(--accent); box-shadow: 0 0 28px rgba(242, 194, 48, .9); }
.adv-morse { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: 4px; text-align: center; word-break: break-word; line-height: 1.3; }
.adv-ml { display: inline-block; margin: 4px 12px; padding: 2px 4px; border-bottom: 3px solid rgba(247, 241, 227, .25); }
.adv-zeile { display: flex; flex-direction: column; gap: 6px; }
.adv-zeile.richtig .lb-in { background: #D3EBD8; }
.adv-zeile.falsch .lb-in { background: #F6D5CF; }
.adv-buchst { display: flex; flex-wrap: wrap; gap: 4px; }
.adv-buchst span { min-width: 28px; height: 36px; padding: 0 6px; border-radius: 8px; background: var(--paper); color: var(--front); font: 900 20px/36px var(--display); text-align: center; }
.adv-emoji { font-size: 38px; line-height: 1.1; }
.adv-frage { display: flex; flex-direction: column; gap: 8px; }
.adv-frage > b { font-size: 17px; }
.adv-opt { min-height: 48px; border-radius: 14px; border: 2px solid var(--paper); background: transparent; color: var(--text); font: 700 16px var(--body); text-align: left; padding: 0 14px; cursor: pointer; }
.adv-opt[aria-pressed="true"] { background: var(--paper); color: var(--front); }
.adv-opt.richtig { background: #D3EBD8; border-color: #D3EBD8; color: #0F3B1D; }
.adv-opt.falsch { background: #F6D5CF; border-color: #F6D5CF; color: #6A1F14; }
.adv-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.adv-tab td { padding: 3px 6px; }
.adv-mt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }

/* ---- Spiele ---- */
.adv-info { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.adv-info b { font-family: var(--display); font-size: 20px; }
.adv-schritte { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.adv-sch-ok { color: #D3EBD8; font-weight: 700; }
.adv-cv { width: 100%; max-width: 360px; align-self: center; border-radius: 16px; touch-action: none; background: #16284a; display: block; }
.adv-mem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.adv-karte { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; cursor: pointer; background: var(--paper); color: var(--front); perspective: 600px; }
.adv-k-hinten, .adv-k-vorn { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .3s; }
.adv-k-hinten { background: var(--accent); color: var(--front); font: 900 30px var(--display); box-shadow: inset 0 0 0 3px rgba(23, 56, 40, .25); }
.adv-k-vorn { background: #F6EFE0; transform: rotateY(180deg); }
.adv-k-vorn svg { width: 78%; height: 78%; }
.adv-karte.auf .adv-k-hinten, .adv-karte.weg .adv-k-hinten { transform: rotateY(180deg); }
.adv-karte.auf .adv-k-vorn, .adv-karte.weg .adv-k-vorn { transform: rotateY(0); }
.adv-karte.weg { opacity: .55; }
.adv-pfanne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: 22px; background: #2a2118; }
.adv-m { position: relative; border: 0; border-radius: 18px; background: #3b3128; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; color: #fff; min-height: 120px; }
.adv-m:disabled { cursor: default; opacity: .8; }
.adv-m-bild svg { width: 64px; height: 64px; }
.adv-bar { display: block; width: 100%; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.adv-bar b { display: block; height: 100%; width: 0; background: #6fa8dc; transition: background .2s; }
.adv-m.bereit .adv-bar b { background: #6fcf7f; }
.adv-m.bereit { box-shadow: 0 0 0 3px #6fcf7f; }
.adv-m.heiss .adv-bar b { background: #e0553d; }
.adv-m.heiss { box-shadow: 0 0 0 3px #e0553d; }
.adv-m.kohle { background: #111; }
.adv-m.kohle .adv-m-bild { filter: grayscale(1) brightness(.4); }
.adv-m em { font-style: normal; font-size: 12px; font-weight: 700; min-height: 14px; color: #f2a99c; }
.adv-funde { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-fund { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 16px; background: var(--paper); color: var(--front); font-size: 13px; font-weight: 700; }
.adv-fund-b { width: 24px; height: 24px; display: inline-grid; place-items: center; }
.adv-fund-b svg { width: 24px; height: 24px; }
.adv-fund.ok { background: #D3EBD8; text-decoration: line-through; opacity: .85; }
.adv-wimmel { width: 100%; max-width: 420px; align-self: center; border-radius: 16px; display: block; touch-action: manipulation; }

/* ---- Challenges und Lieder ---- */
.adv-foto { width: 100%; max-height: 420px; object-fit: contain; border-radius: 14px; background: rgba(0, 0, 0, .15); display: block; }
.adv-gal { gap: 10px; }
.adv-gal-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.adv-eigen, .adv-frei, .adv-voll { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 12px; background: var(--paper); color: var(--front); }
.adv-frei { background: #D3EBD8; color: #0F3B1D; }
.adv-voll { background: rgba(247, 241, 227, .18); color: var(--text); }
.adv-sterne { display: flex; gap: 4px; }
.adv-stern { flex: 1; min-height: 48px; border: 2px solid var(--paper); border-radius: 12px; background: transparent; color: var(--paper); font-size: 24px; cursor: pointer; }
.adv-bew { flex-wrap: wrap; } .adv-bew .adv-stern { font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 8px; }
.adv-stimme { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.18); }
.adv-stern.an { background: var(--accent); border-color: var(--accent); color: var(--front); }
.adv-teile { display: flex; flex-direction: column; gap: 12px; }
.adv-teil audio, .adv-recbox audio { width: 100%; }
.adv-recbox { display: flex; flex-direction: column; gap: 10px; }
.adv-recstate { font-weight: 700; font-size: 15px; }
.adv-player { gap: 10px; }
.adv-pz { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 10px; }
.adv-pz.jetzt { background: var(--accent); color: var(--front); }
.adv-pt { flex: 0 0 38%; font-weight: 700; font-size: 14px; }
.adv-pz .adv-sel { flex: 1; min-height: 40px; }
.adv-mw { display: inline-block; width: 28px; }
.adv-baumbox, .adv-vergleich > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.adv-baum { width: 100%; max-width: 300px; background: #16284a; border-radius: 16px; display: block; touch-action: manipulation; }
.adv-vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adv-palette { display: flex; gap: 10px; justify-content: center; }
.adv-pal { width: 48px; height: 48px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); cursor: pointer; }
.adv-pal.an { border-color: #fff; box-shadow: 0 0 0 3px var(--accent); }
.adv-slot { cursor: pointer; }
.adv-pfanne.neun { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.adv-pfanne.neun .adv-m { min-height: 92px; padding: 6px; border-radius: 14px; }
.adv-pfanne.neun .adv-m-bild svg { width: 42px; height: 42px; }
.adv-live { max-height: 260px; background: #000; }
video.adv-foto { width: 100%; border-radius: 12px; }

/* ---- Winterliche Verzierung (Kopf, Türchen) ---- */
.adv-head { position: relative; padding-bottom: 30px; }
.adv-head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none; background:
  radial-gradient(circle at 12px 16px, #F2C230 3.6px, transparent 4.6px) 0 0 / 60px 28px repeat-x,
  radial-gradient(circle at 36px 20px, #E8564A 3.6px, transparent 4.6px) 0 0 / 60px 28px repeat-x,
  radial-gradient(circle at 54px 12px, #8BD48A 3.6px, transparent 4.6px) 0 0 / 60px 28px repeat-x,
  radial-gradient(ellipse 30px 14px at 30px 0, transparent 12.5px, rgba(255, 255, 255, .55) 13px, rgba(255, 255, 255, .55) 14.5px, transparent 15px) 0 0 / 60px 28px repeat-x; }
.adv-head::after { content: "\2744   \2745   \2746   \2744   \2745   \2746   \2744   \2745   \2746   \2744   \2745   \2746"; position: absolute; left: 0; right: 0; bottom: -6px; height: 16px; overflow: hidden; white-space: nowrap; font-size: 11px; letter-spacing: 12px; color: rgba(255, 255, 255, .75); pointer-events: none; }
.adv-head h2::after { content: " \2744"; font-size: .6em; opacity: .8; }
.adv-door { --tc: #2C5BB8;
  --schnee: radial-gradient(circle at 18% 0, #fff 7px, transparent 7.6px), radial-gradient(circle at 42% 0, #fff 9px, transparent 9.6px), radial-gradient(circle at 68% 0, #fff 8px, transparent 8.6px), radial-gradient(circle at 90% 0, #fff 6px, transparent 6.6px), radial-gradient(circle at 20% 94%, #F2C230 2.4px, transparent 3.2px), radial-gradient(circle at 50% 94%, #fff 2.4px, transparent 3.2px), radial-gradient(circle at 80% 94%, #F2C230 2.4px, transparent 3.2px);
  color: #fff; background-color: var(--tc); background-image: var(--schnee);
  box-shadow: inset 0 0 0 2px rgba(242, 194, 48, .55); }
.adv-door.adv-c0 { --tc: #B8323A; }
.adv-door.adv-c1 { --tc: #2F7A54; }
.adv-door.adv-c2 { --tc: #2C5BB8; }
.adv-door.adv-c3 { --tc: #7A3E9A; }
.adv-door.adv-c4 { --tc: #D9822B; }
.adv-door.adv-c5 { --tc: #12908E; }
.adv-door.adv-c6 { --tc: #C2467F; }
.adv-door.adv-c7 { --tc: #4A5FD0; }
.adv-door .adv-n { text-shadow: 0 1px 0 rgba(0, 0, 0, .25); margin-top: 6px; }
.adv-door.adv-zu { opacity: .88; }
.adv-door.adv-heute { background-color: var(--accent); background-image: var(--schnee); color: var(--front); box-shadow: 0 0 0 3px var(--paper); animation: adv-glow 2.4s ease-in-out infinite; }
.adv-door.adv-vorbei { background-color: var(--paper); background-image: var(--schnee); color: var(--front); box-shadow: inset 0 0 0 2px rgba(242, 194, 48, .7); }
.adv-door.adv-vorbei .adv-n::after, .adv-door.adv-heute .adv-n::after { content: "\2726"; position: absolute; left: 7px; bottom: 5px; font-size: 11px; color: #C99A14; }
