/* Pizza Tornado – Adventskalender (Startseite) und Advents-Kachel
   Alle Klassen mit Präfix „advent-“. Farben und Maße der Seite: siehe site.css (:root). */

/* ---------- Kopf der Kachel ---------- */
.advent-kopf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.advent-kopf > .small-label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.advent-kopf > .small-label::before { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.5 7.1.9-5.2 4.9 1.3 7.1L12 17.7l-6.3 3.5 1.3-7.1-5.2-4.9 7.1-.9z' fill='%23FFC531' stroke='%23C98A00' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.advent-kopf > h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.advent-text { color: var(--muted); max-width: 600px; text-wrap: pretty; }
.advent-regeln { font-size: 13px; color: var(--muted); }
.advent-regeln a { color: var(--ink); font-weight: 700; }
.advent-regeln a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .advent-kopf { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "label ." "titel text" "titel regeln"; column-gap: clamp(28px, 4vw, 64px); row-gap: 8px; align-items: end; }
  .advent-kopf > .small-label { grid-area: label; }
  .advent-kopf > h2 { grid-area: titel; }
  .advent-text { grid-area: text; }
  .advent-regeln { grid-area: regeln; }
}
.advent-noscript { padding: 16px; border-radius: var(--r-s); background: var(--soft); font-weight: 700; text-align: center; }

/* ---------- Das Kalender-Brett (tannengrün, Schneeflocken, goldener Rahmen) ---------- */
.advent-kalender { container: advent / inline-size; }
.advent-brett { position: relative; isolation: isolate; padding: 60px 12px 16px; border-radius: var(--r-m);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' opacity='.17'%3E%3Cpath d='M26 12v18M18.2 16.5l15.6 9M18.2 25.5l15.6-9M23 13.5l3 3 3-3M23 28.5l3-3 3 3'/%3E%3Cpath d='M118 66v14M112 69.5l12 7M112 76.5l12-7'/%3E%3Cpath d='M58 112v12M52.8 115l10.4 6M52.8 121l10.4-6'/%3E%3Cpath d='M140 132v8M136.5 134l7 4M136.5 138l7-4'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.22'%3E%3Ccircle cx='78' cy='24' r='1.7'/%3E%3Ccircle cx='138' cy='20' r='1.2'/%3E%3Ccircle cx='12' cy='76' r='1.4'/%3E%3Ccircle cx='96' cy='128' r='1.6'/%3E%3Ccircle cx='150' cy='100' r='1.1'/%3E%3Ccircle cx='44' cy='62' r='1.1'/%3E%3Ccircle cx='84' cy='88' r='.9'/%3E%3Ccircle cx='20' cy='140' r='1.3'/%3E%3C/g%3E%3Cg fill='%23FFD66B' opacity='.34'%3E%3Cpath d='M88 50l1.6 4.2 4.2 1.6-4.2 1.6-1.6 4.2-1.6-4.2-4.2-1.6 4.2-1.6z'/%3E%3Cpath d='M22 104l1.2 3.1 3.1 1.2-3.1 1.2-1.2 3.1-1.2-3.1-3.1-1.2 3.1-1.2z'/%3E%3Cpath d='M132 150l1 2.6 2.6 1-2.6 1-1 2.6-1-2.6-2.6-1 2.6-1z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 160px, radial-gradient(120% 85% at 50% 0%, #237A52 0%, #165C3E 45%, #0D412B 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 214, 107, .6), 0 18px 40px -12px rgba(13, 65, 43, .45); }
.advent-brett::before { content: ""; position: absolute; z-index: -1; inset: 7px; border: 1.5px solid rgba(255, 214, 107, .3); border-radius: calc(var(--r-m) - 6px); pointer-events: none; }
/* Schneehügel unten am Rand */
.advent-brett::after { content: ""; position: absolute; z-index: 0; left: 2px; right: 2px; bottom: 2px; height: 26px; border-radius: 0 0 calc(var(--r-m) - 2px) calc(var(--r-m) - 2px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V9.3Q0 9.3 7.5 8.3Q15 7.3 22.5 6.4Q30 5.5 37.5 4.9Q45 4.4 52.5 4.4Q60 4.4 67.5 4.9Q75 5.4 82.5 6.2Q90 7.1 97.5 8Q105 8.9 112.5 9.5Q120 10.1 127.5 10.3Q135 10.4 142.5 10.1Q150 9.8 157.5 9.1Q165 8.4 172.5 7.7Q180 7 187.5 6.6Q195 6.2 202.5 6.3Q210 6.4 217.5 7Q225 7.6 232.5 8.6Q240 9.6 247.5 10.7Q255 11.9 262.5 12.9Q270 13.8 277.5 14.5Q285 15.1 292.5 15.4Q300 15.6 307.5 15.6Q315 15.5 322.5 15.3Q330 15.1 337.5 14.8Q345 14.5 352.5 14.2Q360 14 367.5 13.7Q375 13.3 382.5 12.9Q390 12.4 397.5 11.8Q405 11.1 412.5 10.2L420 9.3V26Z' fill='%23CFE1EE'/%3E%3Cpath d='M0 26V12.3Q0 12.3 7.5 11.3Q15 10.3 22.5 9.4Q30 8.5 37.5 7.9Q45 7.4 52.5 7.4Q60 7.4 67.5 7.9Q75 8.4 82.5 9.2Q90 10.1 97.5 11Q105 11.9 112.5 12.5Q120 13.1 127.5 13.3Q135 13.4 142.5 13.1Q150 12.8 157.5 12.1Q165 11.4 172.5 10.7Q180 10 187.5 9.6Q195 9.2 202.5 9.3Q210 9.4 217.5 10Q225 10.6 232.5 11.6Q240 12.6 247.5 13.7Q255 14.9 262.5 15.9Q270 16.8 277.5 17.5Q285 18.1 292.5 18.4Q300 18.6 307.5 18.6Q315 18.5 322.5 18.3Q330 18.1 337.5 17.8Q345 17.5 352.5 17.2Q360 17 367.5 16.7Q375 16.3 382.5 15.9Q390 15.4 397.5 14.8Q405 14.1 412.5 13.2L420 12.3V26Z' fill='%23fff'/%3E%3C/svg%3E") 50% 100% / 420px 26px repeat-x; opacity: .95; pointer-events: none; }

/* Girlande mit Kugeln, Schleifen und Lichterkette (SVG kommt aus advent.js) */
.advent-girlande { position: absolute; z-index: 3; left: 2px; right: 2px; top: -4px; height: 64px; pointer-events: none; }
.advent-girlande svg { display: block; width: 100%; height: 100%; }
.advent-licht { animation: advent-licht 2.2s ease-in-out infinite; }
@keyframes advent-licht { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Türchen-Raster: feste, gemischte Anordnung (Handy 4 Spalten, Tablet 6, Desktop 8) ---------- */
.advent-tueren { position: relative; z-index: 1; display: grid; gap: 7px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); aspect-ratio: 4 / 6.6;
  grid-template-areas:
    "t13 t6  t20 t3"
    "t21 t24 t24 t12"
    "t21 t24 t24 t8"
    "t9  t1  t17 t10"
    "t14 t5  t23 t2"
    "t18 t11 t4  t22"
    "t7  t15 t19 t16"; }
@container advent (min-width: 600px) {
  .advent-brett { padding: 76px 20px 22px; }
  .advent-girlande { height: 80px; top: -5px; }
  .advent-tueren { gap: 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); aspect-ratio: 6 / 4.6;
    grid-template-areas:
      "t13 t6  t19 t9  t20 t3"
      "t21 t1  t24 t24 t12 t17"
      "t21 t14 t24 t24 t8  t10"
      "t5  t18 t11 t4  t23 t10"
      "t16 t18 t15 t22 t2  t7"; }
}
@container advent (min-width: 900px) {
  .advent-brett { padding: 88px 26px 28px; }
  .advent-girlande { height: 96px; top: -6px; }
  .advent-tueren { gap: 12px; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); aspect-ratio: 8 / 3.35;
    grid-template-areas:
      "t13 t6  t6  t20 t9  t17 t7  t3"
      "t21 t1  t18 t24 t24 t12 t4  t10"
      "t21 t14 t18 t24 t24 t8  t23 t10"
      "t5  t11 t15 t22 t2  t19 t19 t16"; }
}

/* ---------- Ein Türchen: Fach (dahinter) + Flügel (Vorderseite/Rückseite), schwingt links auf ---------- */
.advent-tuer { position: relative; z-index: 1; display: block; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer;
  container-type: size; perspective: 1100px; perspective-origin: 0 50%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.advent-tuer:focus-visible { outline: 3px solid #FFE08A; outline-offset: 3px; z-index: 30; }
.advent-fach, .advent-fluegel, .advent-vorne, .advent-hinten { position: absolute; inset: 0; border-radius: inherit; }

.advent-fach { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqmin; padding: 6cqmin; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 38%, rgba(255, 214, 107, .95) 0%, rgba(245, 170, 50, .55) 30%, rgba(160, 30, 20, 0) 70%), linear-gradient(160deg, #7A0E12 0%, #520709 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 214, 107, .45), inset 12px 0 18px -6px rgba(20, 0, 0, .65), inset 0 -10px 16px -8px rgba(20, 0, 0, .5); }
.advent-fach-bild { flex: none; width: 40cqmin; height: 40cqmin; filter: drop-shadow(0 2px 3px rgba(110, 50, 0, .35)); }
.advent-fach-bild svg { display: block; width: 100%; height: 100%; }
.advent-fach-wert { max-width: 100%; color: #FFF1C7; text-shadow: 0 1px 2px rgba(40, 0, 0, .6); font-size: 22cqmin; font-weight: 800; line-height: .95; letter-spacing: -0.045em; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance; }
.advent-fach-wert.is-mittel { font-size: 16cqmin; letter-spacing: -0.035em; }
.advent-fach-wert.is-lang { font-size: 11.5cqmin; letter-spacing: -0.02em; line-height: 1.05; }
.advent-fach.ohne-wert .advent-fach-bild { width: 54cqmin; height: 54cqmin; }

.advent-fluegel { transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.advent-vorne, .advent-hinten { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.advent-vorne { display: grid; place-items: center; overflow: hidden; background: var(--advent-flaeche); color: var(--advent-zahl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 6px 14px -4px rgba(0, 20, 10, .55); }
/* gestanzte Linie wie bei einem echten Kalender */
.advent-vorne::after { content: ""; position: absolute; inset: 5.5cqmin; border: 2px dashed var(--advent-naht); border-radius: 7px; pointer-events: none; }
.advent-hinten { transform: rotateY(180deg); background: linear-gradient(90deg, #A88F5E 0%, #CDB78A 35%, #DCC9A0 70%, #C9B285 100%); box-shadow: inset 0 0 0 1px rgba(90, 60, 10, .3), inset -14px 0 16px -12px rgba(60, 35, 0, .55); }
.advent-hinten::after { content: ""; position: absolute; inset: 5.5cqmin; border: 2px dashed rgba(120, 90, 30, .25); border-radius: 7px; }

.advent-zahl { position: relative; z-index: 1; font-size: 30px; font-size: 44cqmin; font-weight: 800; line-height: 1; letter-spacing: -0.06em; text-shadow: 0 .045em 0 var(--advent-schatten); font-variant-numeric: lining-nums; }

/* kleine Motive (Stern, Flocke, Kugel, Tanne, Zuckerstange, Glocke) */
.advent-motiv { position: absolute; z-index: 1; width: 25cqmin; height: 25cqmin; color: var(--advent-motiv); opacity: .95; }
.advent-motiv svg { display: block; width: 100%; height: 100%; }
.advent-ecke-ro { top: 11cqmin; right: 10cqmin; rotate: 12deg; }
.advent-ecke-lu { bottom: 10cqmin; left: 10cqmin; rotate: -10deg; }
.advent-ecke-lo { top: 11cqmin; left: 10cqmin; rotate: -8deg; }
.advent-ecke-ru { bottom: 10cqmin; right: 10cqmin; rotate: 8deg; }

/* Schneehaube oben auf manchen Türchen */
.advent-tuer.mit-schnee .advent-vorne::before { content: ""; position: absolute; z-index: 2; left: -1px; right: -1px; top: -1px; height: 12cqmin; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v8c-3 0-4 4-8 4s-5-5-10-5-5 8-11 8-6-6-11-6-5 4-10 4-6-7-12-7-5 6-11 6S10 6 5 6 0 10 0 10z' fill='%23C9DCEB'/%3E%3Cpath d='M0 0h100v6c-3 0-4 4-8 4s-5-5-10-5-5 8-11 8-6-6-11-6-5 4-10 4-6-7-12-7-5 6-11 6S10 4 5 4 0 8 0 8z' fill='%23fff'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }

/* Farben der Türchen */
.advent-farbe-rot { --advent-flaeche: linear-gradient(150deg, #F2493B 0%, #DA261C 48%, #AE140E 100%); --advent-zahl: #FFE6A3; --advent-naht: rgba(255, 221, 150, .55); --advent-motiv: #FFD66B; --advent-schatten: rgba(90, 0, 0, .4); }
.advent-farbe-creme { --advent-flaeche: linear-gradient(150deg, #FFFDF6 0%, #FFF3D7 55%, #F3DFAF 100%); --advent-zahl: #C8161D; --advent-naht: rgba(200, 22, 29, .3); --advent-motiv: #1F7A4D; --advent-schatten: rgba(150, 100, 20, .22); }
.advent-farbe-gruen { --advent-flaeche: linear-gradient(150deg, #44A874 0%, #2A8556 50%, #1C6943 100%); --advent-zahl: #FFF6DE; --advent-naht: rgba(255, 221, 150, .55); --advent-motiv: #FFC531; --advent-schatten: rgba(0, 40, 20, .4); }
.advent-farbe-gold { --advent-flaeche: linear-gradient(150deg, #FFE7A0 0%, #FFC531 48%, #E2A00A 100%); --advent-zahl: #9A1018; --advent-naht: rgba(154, 16, 24, .28); --advent-motiv: #C8161D; --advent-schatten: rgba(130, 75, 0, .3); }
/* Türchen 24: ein Geschenk mit goldenem Band und Schleife */
.advent-farbe-geschenk { --advent-flaeche:
    linear-gradient(90deg, transparent 44.5%, #FFE18A 44.5%, #FFC531 50%, #E6A30C 55.5%, transparent 55.5%),
    linear-gradient(180deg, transparent 52%, #FFE18A 52%, #FFC531 57.5%, #E6A30C 63%, transparent 63%),
    linear-gradient(150deg, #F2493B 0%, #D5231A 50%, #A3110C 100%);
  --advent-zahl: #B3121A; --advent-naht: rgba(255, 221, 150, .5); --advent-motiv: #FFD66B; --advent-schatten: rgba(150, 90, 0, .25); }
.advent-farbe-geschenk .advent-zahl { display: grid; place-items: center; width: 46cqmin; height: 46cqmin; margin-top: 10cqmin; border-radius: 50%; font-size: 21cqmin; letter-spacing: -0.05em;
  background: radial-gradient(circle at 38% 32%, #FFFFFF 0%, #FFF6DE 55%, #F1D99E 100%); box-shadow: 0 0 0 1.6cqmin #FFC531, 0 0 0 2.6cqmin rgba(150, 90, 0, .35), 0 8px 18px rgba(80, 0, 0, .4); }
.advent-masche { position: absolute; z-index: 2; left: 50%; top: 4cqmin; width: 46cqmin; height: 30cqmin; translate: -50% 0; filter: drop-shadow(0 3px 3px rgba(80, 0, 0, .35)); }
.advent-masche svg { display: block; width: 100%; height: 100%; }

/* ---------- Zustände ---------- */
@media (hover: hover) {
  .advent-tuer.is-zu:hover .advent-fluegel, .advent-tuer.is-heute:hover .advent-fluegel, .advent-tuer.is-nachholen:hover .advent-fluegel { transform: rotateY(-13deg); }
}
/* Türchen mit Schleife liegen oben; weiter unten = weiter oben (die Schleife ragt in das Türchen darüber) */
.advent-tuer.is-heute, .advent-tuer.is-nachholen { z-index: calc(12 + var(--advent-zeile, 0)); }
.advent-tuer.is-heute::before, .advent-tuer.is-nachholen::before { content: ""; position: absolute; inset: -4px; border-radius: 16px; pointer-events: none; }
.advent-tuer.is-heute::before { box-shadow: 0 0 0 3px #FFD66B, 0 0 26px 8px rgba(255, 200, 80, .85); animation: advent-glimmen 2.2s ease-in-out infinite alternate; }
.advent-tuer.is-nachholen::before { inset: -3px; border-radius: 15px; box-shadow: 0 0 0 2px rgba(255, 246, 222, .9), 0 0 14px 2px rgba(255, 246, 222, .35); }
@keyframes advent-glimmen { from { opacity: .45; } to { opacity: 1; } }

/* „Heute!“-Schleife (Band mit gekerbten Enden) */
.advent-schleife { position: absolute; z-index: 6; left: 50%; top: 0; translate: -50% -48%; rotate: -4deg; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(60, 0, 0, .45)); }
.advent-schleife span { display: block; padding: .32em 1.15em .36em; background: linear-gradient(180deg, #FFE69A 0%, #FFC531 60%, #EDAA12 100%); color: #8E1016; font-size: 11px; font-size: clamp(9.5px, 15cqmin, 13.5px); font-weight: 800; line-height: 1.1; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 91% 50%, 100% 100%, 0 100%, 9% 50%); }
.advent-tuer.is-nachholen .advent-schleife { rotate: 0deg; }
.advent-tuer.is-nachholen .advent-schleife span { background: linear-gradient(180deg, #FFFFFF, #EEF2EC); color: #1C5A3A; letter-spacing: .03em; font-size: clamp(9px, 13cqmin, 12.5px); }

.advent-tuer.is-offen { z-index: calc(2 + var(--advent-spalte, 0)); }
.advent-tuer.is-offen .advent-fluegel { transform: rotateY(-98deg); }
.advent-tuer.is-offen .advent-vorne { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.advent-tuer.is-oeffnet { z-index: 25; }
.advent-tuer.is-oeffnet .advent-fluegel { animation: advent-auf 1.2s cubic-bezier(.3, .75, .3, 1) both; }
.advent-tuer.is-oeffnet .advent-fach > * { animation: advent-inhalt .55s cubic-bezier(.3, 1.6, .5, 1) .45s both; }
@keyframes advent-auf {
  0% { transform: rotateY(-10deg); }
  55% { transform: rotateY(-112deg); }
  78% { transform: rotateY(-94deg); }
  100% { transform: rotateY(-98deg); }
}
@keyframes advent-inhalt { from { transform: scale(.5); opacity: 0; } }

.advent-tuer.is-laedt { cursor: progress; z-index: 25; }
.advent-tuer.is-laedt .advent-fluegel { animation: advent-knarren .45s ease-in-out infinite alternate; }
@keyframes advent-knarren { from { transform: rotateY(-5deg); } to { transform: rotateY(-17deg); } }

.advent-tuer.is-vorbei { cursor: default; }
.advent-tuer.is-vorbei .advent-fach { visibility: hidden; }
.advent-tuer.is-vorbei .advent-fluegel { opacity: .5; }
.advent-tuer.is-vorbei .advent-vorne { filter: saturate(.3) brightness(.95); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }

/* „Geduld!“ – Türchen klemmt noch */
.advent-tuer.is-wackelt { z-index: 25; }
.advent-tuer.is-wackelt .advent-fluegel { animation: advent-ruetteln .7s ease-in-out; }
@keyframes advent-ruetteln {
  0%, 100% { transform: rotateY(0); }
  14% { transform: rotateY(-17deg); }
  28% { transform: rotateY(-2deg); }
  44% { transform: rotateY(-11deg); }
  60% { transform: rotateY(-1deg); }
  78% { transform: rotateY(-5deg); }
}
.advent-tuer.is-zittert { animation: advent-zittern .45s ease-in-out; }
@keyframes advent-zittern { 20% { translate: -3px 0; } 40% { translate: 3px 0; } 60% { translate: -2px 0; } 80% { translate: 1px 0; } }

/* Funken beim Öffnen */
.advent-funke { position: absolute; z-index: 26; left: 50%; top: 50%; width: 14px; height: 14px; background: #FFE08A; pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: advent-funke .9s cubic-bezier(.2, .7, .3, 1) var(--advent-v, 0s) both; }
.advent-funke:nth-child(3n) { background: #fff; width: 10px; height: 10px; }
.advent-funke:nth-child(3n+1) { background: #FFC531; }
@keyframes advent-funke {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--advent-x)), calc(-50% + var(--advent-y))) scale(1) rotate(120deg); opacity: 0; }
}

/* Hinweis-Blase („Geduld! …“) */
.advent-blase { position: absolute; z-index: 40; left: 0; top: 0; width: max-content; max-width: min(270px, calc(100% - 16px)); padding: 10px 14px 11px; border-radius: 14px; background: #FFFDF6; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left;
  box-shadow: 0 14px 30px rgba(0, 25, 12, .45), 0 0 0 2px #FFD66B; pointer-events: none; animation: advent-blase .28s cubic-bezier(.3, 1.5, .5, 1) both; }
.advent-blase::after { content: ""; position: absolute; left: var(--advent-pfeil, 50%); bottom: -7px; width: 14px; height: 14px; background: #FFFDF6; box-shadow: 2px 2px 0 0 #FFD66B; translate: -50% 0; rotate: 45deg; }
.advent-blase.is-unten::after { bottom: auto; top: -7px; box-shadow: -2px -2px 0 0 #FFD66B; }
.advent-blase-titel { color: #B3121A; }
@keyframes advent-blase { from { opacity: 0; transform: translateY(6px) scale(.94); } }

/* Live-Bereich: nur für Screenreader (bei Fehlern ohne Dialog sichtbar) */
.advent-ergebnis.advent-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.advent-ergebnis:not(.advent-sr) { --metal: var(--card); margin-top: 18px; }
.advent-ergebnis:not(.advent-sr) .ticket { max-width: 460px; margin: 0 auto; }

/* ---------- Dialog mit Gutschein ---------- */
.advent-dialog { --metal: #9C141B; width: min(440px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 30px; background: transparent; color: #fff; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.advent-dialog::-webkit-scrollbar { display: none; }
.advent-dialog::backdrop { background: rgba(6, 28, 18, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.advent-dialog-karte { position: relative; isolation: isolate; overflow: hidden; padding: 76px 22px 22px; border-radius: 30px; text-align: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' opacity='.17'%3E%3Cpath d='M26 12v18M18.2 16.5l15.6 9M18.2 25.5l15.6-9M23 13.5l3 3 3-3M23 28.5l3-3 3 3'/%3E%3Cpath d='M118 66v14M112 69.5l12 7M112 76.5l12-7'/%3E%3Cpath d='M58 112v12M52.8 115l10.4 6M52.8 121l10.4-6'/%3E%3Cpath d='M140 132v8M136.5 134l7 4M136.5 138l7-4'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.22'%3E%3Ccircle cx='78' cy='24' r='1.7'/%3E%3Ccircle cx='138' cy='20' r='1.2'/%3E%3Ccircle cx='12' cy='76' r='1.4'/%3E%3Ccircle cx='96' cy='128' r='1.6'/%3E%3Ccircle cx='150' cy='100' r='1.1'/%3E%3Ccircle cx='44' cy='62' r='1.1'/%3E%3Ccircle cx='84' cy='88' r='.9'/%3E%3Ccircle cx='20' cy='140' r='1.3'/%3E%3C/g%3E%3Cg fill='%23FFD66B' opacity='.34'%3E%3Cpath d='M88 50l1.6 4.2 4.2 1.6-4.2 1.6-1.6 4.2-1.6-4.2-4.2-1.6 4.2-1.6z'/%3E%3Cpath d='M22 104l1.2 3.1 3.1 1.2-3.1 1.2-1.2 3.1-1.2-3.1-3.1-1.2 3.1-1.2z'/%3E%3Cpath d='M132 150l1 2.6 2.6 1-2.6 1-1 2.6-1-2.6-2.6-1 2.6-1z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 160px, #9C141B; box-shadow: inset 0 0 0 2px rgba(255, 214, 107, .6), 0 30px 80px rgba(0, 0, 0, .5); }
.advent-dialog[open] .advent-dialog-karte { animation: advent-dialog .55s cubic-bezier(.2, 1.25, .4, 1) both; }
@keyframes advent-dialog { from { opacity: 0; transform: translateY(24px) scale(.9); } }
.advent-dialog .advent-girlande { top: -6px; height: 70px; left: 0; right: 0; }
.advent-dialog-zu { position: absolute; z-index: 5; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.advent-dialog-zu:hover { transform: scale(1.07); }
.advent-dialog-zu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.advent-dialog-zu:focus-visible { outline: 3px solid #FFE08A; outline-offset: 2px; }
.advent-dialog-label { display: inline-block; margin-bottom: 8px; padding: 5px 14px; border-radius: 999px; background: #FFC531; color: #7A0C12; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.advent-dialog-titel { font-size: clamp(26px, 6vw, 32px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: #fff; text-wrap: balance; }
.advent-dialog-inhalt { margin-top: 18px; }
.advent-dialog-inhalt .ticket { text-align: left; }
.advent-dialog-inhalt .ticket-main { text-align: center; }
.advent-dialog-inhalt .ticket-amount.advent-wert-lang { font-size: clamp(30px, 8vw, 40px); letter-spacing: -0.035em; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.advent-dialog-fuss { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.advent-dialog-fuss .btn { margin-top: 2px; }
/* Leer / Fehler / Laden */
.advent-karte { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 22px 24px; border-radius: 22px; background: #FFFDF6; color: var(--ink); box-shadow: 0 14px 30px rgba(60, 0, 0, .35); }
.advent-karte-bild { width: 76px; height: 76px; }
.advent-karte-bild svg { display: block; width: 100%; height: 100%; }
.advent-karte-titel { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.advent-karte-text { color: var(--muted); max-width: 340px; text-wrap: pretty; }
.advent-karte .btn { margin-top: 4px; }
.advent-laden { display: grid; place-items: center; gap: 12px; min-height: 200px; color: #FFE6A3; font-weight: 700; }
.advent-laden::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255, 230, 163, .3); border-top-color: #FFE6A3; animation: advent-dreh .8s linear infinite; }
@keyframes advent-dreh { to { transform: rotate(360deg); } }
/* fallende Flocken im Dialog */
.advent-flocke { position: absolute; z-index: -1; top: -12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .55; pointer-events: none; animation: advent-flocke linear infinite; }
@keyframes advent-flocke { to { transform: translate(var(--advent-wind, 20px), 760px); } }

/* ---------- Advents-Kachel (Teaser in der Aktionen-Reihe): tiefrot, Türchen von heute, Tannenbaum im Schnee ---------- */
.aktion-kachel.advent-kachel { --advent-tuer-b: 68px; --advent-tuer-y: 22px; --advent-tuer-x: 22px; --advent-platz: 84px;
  container: advent-kachel / inline-size; isolation: isolate; border: 0; color: #fff;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V9.3Q0 9.3 7.5 8.3Q15 7.3 22.5 6.4Q30 5.5 37.5 4.9Q45 4.4 52.5 4.4Q60 4.4 67.5 4.9Q75 5.4 82.5 6.2Q90 7.1 97.5 8Q105 8.9 112.5 9.5Q120 10.1 127.5 10.3Q135 10.4 142.5 10.1Q150 9.8 157.5 9.1Q165 8.4 172.5 7.7Q180 7 187.5 6.6Q195 6.2 202.5 6.3Q210 6.4 217.5 7Q225 7.6 232.5 8.6Q240 9.6 247.5 10.7Q255 11.9 262.5 12.9Q270 13.8 277.5 14.5Q285 15.1 292.5 15.4Q300 15.6 307.5 15.6Q315 15.5 322.5 15.3Q330 15.1 337.5 14.8Q345 14.5 352.5 14.2Q360 14 367.5 13.7Q375 13.3 382.5 12.9Q390 12.4 397.5 11.8Q405 11.1 412.5 10.2L420 9.3V26Z' fill='%23CFE1EE'/%3E%3Cpath d='M0 26V12.3Q0 12.3 7.5 11.3Q15 10.3 22.5 9.4Q30 8.5 37.5 7.9Q45 7.4 52.5 7.4Q60 7.4 67.5 7.9Q75 8.4 82.5 9.2Q90 10.1 97.5 11Q105 11.9 112.5 12.5Q120 13.1 127.5 13.3Q135 13.4 142.5 13.1Q150 12.8 157.5 12.1Q165 11.4 172.5 10.7Q180 10 187.5 9.6Q195 9.2 202.5 9.3Q210 9.4 217.5 10Q225 10.6 232.5 11.6Q240 12.6 247.5 13.7Q255 14.9 262.5 15.9Q270 16.8 277.5 17.5Q285 18.1 292.5 18.4Q300 18.6 307.5 18.6Q315 18.5 322.5 18.3Q330 18.1 337.5 17.8Q345 17.5 352.5 17.2Q360 17 367.5 16.7Q375 16.3 382.5 15.9Q390 15.4 397.5 14.8Q405 14.1 412.5 13.2L420 12.3V26Z' fill='%23fff'/%3E%3C/svg%3E") 0 100% / 420px 24px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' opacity='.17'%3E%3Cpath d='M26 12v18M18.2 16.5l15.6 9M18.2 25.5l15.6-9M23 13.5l3 3 3-3M23 28.5l3-3 3 3'/%3E%3Cpath d='M118 66v14M112 69.5l12 7M112 76.5l12-7'/%3E%3Cpath d='M58 112v12M52.8 115l10.4 6M52.8 121l10.4-6'/%3E%3Cpath d='M140 132v8M136.5 134l7 4M136.5 138l7-4'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.22'%3E%3Ccircle cx='78' cy='24' r='1.7'/%3E%3Ccircle cx='138' cy='20' r='1.2'/%3E%3Ccircle cx='12' cy='76' r='1.4'/%3E%3Ccircle cx='96' cy='128' r='1.6'/%3E%3Ccircle cx='150' cy='100' r='1.1'/%3E%3Ccircle cx='44' cy='62' r='1.1'/%3E%3Ccircle cx='84' cy='88' r='.9'/%3E%3Ccircle cx='20' cy='140' r='1.3'/%3E%3C/g%3E%3Cg fill='%23FFD66B' opacity='.34'%3E%3Cpath d='M88 50l1.6 4.2 4.2 1.6-4.2 1.6-1.6 4.2-1.6-4.2-4.2-1.6 4.2-1.6z'/%3E%3Cpath d='M22 104l1.2 3.1 3.1 1.2-3.1 1.2-1.2 3.1-1.2-3.1-3.1-1.2 3.1-1.2z'/%3E%3Cpath d='M132 150l1 2.6 2.6 1-2.6 1-1 2.6-1-2.6-2.6-1 2.6-1z'/%3E%3C/g%3E%3C/svg%3E") 30px 10px / 160px 160px, radial-gradient(130% 95% at 85% 0%, #D8261C 0%, #A8121A 48%, #7A0A10 100%); }
.aktion-kachel.advent-kachel:hover, .aktion-kachel.advent-kachel:focus-visible { color: #fff; }
.advent-kachel .small-label { position: relative; z-index: 3; display: block; padding-right: var(--advent-platz); color: #FFD66B; }
.advent-kachel-titel { position: relative; z-index: 3; display: block; min-height: calc(var(--advent-tuer-y) + var(--advent-tuer-b) * 1.18 - 46px); margin-top: 6px; padding-right: var(--advent-platz);
  color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; text-shadow: 0 2px 10px rgba(70, 0, 0, .35); }
.advent-kachel-text { position: relative; z-index: 3; display: block; margin: 8px 0 18px; color: rgba(255, 255, 255, .9); font-size: 15px; font-weight: 600; line-height: 1.4; }
.advent-kachel-knopf { position: relative; z-index: 3; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin-top: auto; padding: 0 18px;
  border-radius: 999px; background: #FFC531; color: #161616; font-size: 15px; font-weight: 800; box-shadow: 0 6px 16px rgba(60, 0, 0, .35); }
.advent-kachel-knopf span { display: inline-block; transition: transform .2s ease; }
.advent-kachel:hover .advent-kachel-knopf span, .advent-kachel:focus-visible .advent-kachel-knopf span { transform: translateX(4px); }

/* kleiner geschmückter Tannenbaum, steht unten rechts im Schnee */
.advent-kachel-baum { position: absolute; z-index: 1; bottom: 7px; right: 24px; width: var(--advent-baum-b, 66px); aspect-ratio: 80 / 100; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100'%3E%3Cdefs%3E%3CradialGradient id='bl' cx='.5' cy='.5' r='.5'%3E%3Cstop offset='0' stop-color='%23FFE9A0' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23FFE9A0' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='40' cy='12' r='15' fill='url(%23bl)'/%3E%3Crect x='35.5' y='84' width='9' height='12' rx='1.5' fill='%236B4423'/%3E%3Crect x='40' y='84' width='4.5' height='12' fill='%234E3018'/%3E%3Cpath d='M40 14L20 42Q23.3 46 26.7 42Q30 46 33.3 42Q36.7 46 40 42Q43.3 46 46.7 42Q50 46 53.3 42Q56.7 46 60 42Z' fill='%231B7A47'/%3E%3Cpath d='M40 14L40 42Q43.3 46 46.7 42Q50 46 53.3 42Q56.7 46 60 42Z' fill='%230F5A33'/%3E%3Cpath d='M29 29.4q4 3.2 7 .4 4.4 3.4 8 .2 4.4 2.6 7 .8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.92'/%3E%3Cpath d='M40 28L12 64Q16.7 68 21.3 64Q26 68 30.7 64Q35.3 68 40 64Q44.7 68 49.3 64Q54 68 58.7 64Q63.3 68 68 64Z' fill='%231B7A47'/%3E%3Cpath d='M40 28L40 64Q44.7 68 49.3 64Q54 68 58.7 64Q63.3 68 68 64Z' fill='%230F5A33'/%3E%3Cpath d='M24.6 47.8q5.6 3.2 9.8 .4 6.2 3.4 11.2 .2 6.2 2.6 9.8 .8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.92'/%3E%3Cpath d='M40 46L4 88Q10 92 16 88Q22 92 28 88Q34 92 40 88Q46 92 52 88Q58 92 64 88Q70 92 76 88Z' fill='%231B7A47'/%3E%3Cpath d='M40 46L40 88Q46 92 52 88Q58 92 64 88Q70 92 76 88Z' fill='%230F5A33'/%3E%3Cpath d='M20.2 69.1q7.2 3.2 12.6 .4 7.9 3.4 14.4 .2 7.9 2.6 12.6 .8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.92'/%3E%3Cpath d='M27 38C34 44 46 44 54 36M20 60C30 68 50 68 62 58M12 84C26 92 54 92 70 82' fill='none' stroke='%23F2C14E' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='31' cy='33' r='3.4' fill='%23E3241B'/%3E%3Ccircle cx='29.9' cy='31.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='47' cy='30' r='3.4' fill='%23FFFFFF'/%3E%3Ccircle cx='45.9' cy='28.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='25' cy='52' r='3.4' fill='%23FFC531'/%3E%3Ccircle cx='23.9' cy='50.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='42' cy='54' r='3.4' fill='%23E3241B'/%3E%3Ccircle cx='40.9' cy='52.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='56' cy='49' r='3.4' fill='%23FFFFFF'/%3E%3Ccircle cx='54.9' cy='47.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='18' cy='76' r='3.4' fill='%23FFFFFF'/%3E%3Ccircle cx='16.9' cy='74.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='33' cy='78' r='3.4' fill='%23FFC531'/%3E%3Ccircle cx='31.9' cy='76.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='50' cy='76' r='3.4' fill='%23E3241B'/%3E%3Ccircle cx='48.9' cy='74.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='64' cy='72' r='3.4' fill='%23FFC531'/%3E%3Ccircle cx='62.9' cy='70.9' r='1' fill='%23fff' fill-opacity='.8'/%3E%3Cpath d='M40 1.5l2.9 6 6.6.8-4.9 4.6 1.2 6.5L40 16.2l-5.8 3.2 1.2-6.5-4.9-4.6 6.6-.8z' fill='%23FFC531' stroke='%23B57D00' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.advent-kachel:hover .advent-kachel-baum, .advent-kachel:focus-visible .advent-kachel-baum { transform: rotate(-4deg) scale(1.04); }

/* das Türchen von heute: Fach mit Geschenk, davor der Flügel mit der Zahl */
.advent-kachel-tuer { position: absolute; z-index: 2; top: var(--advent-tuer-y); right: var(--advent-tuer-x); width: var(--advent-tuer-b); height: calc(var(--advent-tuer-b) * 1.18);
  border-radius: 12px; perspective: 420px; perspective-origin: 0 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='7.5' y='21' width='33' height='22' rx='3' fill='%23C8161D'/%3E%3Crect x='5.5' y='14.5' width='37' height='9' rx='2.5' fill='%23E3241B'/%3E%3Crect x='7.5' y='23.5' width='33' height='2.6' fill='%23000' fill-opacity='.16'/%3E%3Crect x='21.3' y='14.5' width='5.4' height='28.5' fill='%23FFC531'/%3E%3Cpath d='M24 14.5c-3.2-6.4-11.6-8-11.6-2.7 0 3.7 6.3 3.4 11.6 2.7zm0 0c3.2-6.4 11.6-8 11.6-2.7 0 3.7-6.3 3.4-11.6 2.7z' fill='%23FFD45E' stroke='%23B57D00' stroke-width='1.3' stroke-linejoin='round'/%3E%3Ccircle cx='24' cy='14.4' r='2.6' fill='%23FFC531' stroke='%23B57D00' stroke-width='1.2'/%3E%3C/svg%3E") 50% 60% / 62% no-repeat, radial-gradient(70% 60% at 50% 45%, rgba(255, 214, 107, .95) 0%, rgba(245, 170, 50, .55) 32%, rgba(160, 30, 20, 0) 72%), linear-gradient(160deg, #7A0E12 0%, #520709 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 8px 0 12px -6px rgba(0, 0, 0, .55), 0 0 0 3px #E9B53C, 0 0 22px 4px rgba(255, 200, 80, .35), 0 12px 24px rgba(50, 0, 0, .45);
  animation: advent-kachel-glimmen 2.8s ease-in-out infinite; }
.advent-kachel-zahl { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; transform-origin: 0 50%; transform-style: preserve-3d; backface-visibility: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v8c-3 0-4 4-8 4s-5-5-10-5-5 8-11 8-6-6-11-6-5 4-10 4-6-7-12-7-5 6-11 6S10 6 5 6 0 10 0 10z' fill='%23C9DCEB'/%3E%3Cpath d='M0 0h100v6c-3 0-4 4-8 4s-5-5-10-5-5 8-11 8-6-6-11-6-5 4-10 4-6-7-12-7-5 6-11 6S10 4 5 4 0 8 0 8z' fill='%23fff'/%3E%3C/svg%3E") 0 0 / 100% 12px no-repeat, linear-gradient(150deg, #FFFDF6 0%, #FFF3D7 55%, #F3DFAF 100%);
  outline: 2px dashed rgba(200, 22, 29, .3); outline-offset: -7px; box-shadow: inset 0 1px 0 #fff, inset -3px 0 0 rgba(150, 100, 30, .12);
  color: #C8161D; font-size: calc(var(--advent-tuer-b) * .5); font-weight: 800; letter-spacing: -0.06em; line-height: 1; text-indent: -0.06em; text-shadow: 0 2px 0 rgba(150, 100, 20, .22);
  animation: advent-kachel-gucken 8s ease-in-out 1.5s infinite; }
/* Rückseite des Flügels (sichtbar, wenn er offen steht) */
.advent-kachel-zahl::before { content: ""; position: absolute; inset: 0; border-radius: inherit; transform: rotateY(180deg); backface-visibility: hidden;
  background: linear-gradient(90deg, #A88F5E 0%, #CDB78A 40%, #DCC9A0 70%, #C9B285 100%); }
/* Schleife „Heute!“ */
.advent-kachel-tuer::after { content: "Heute!"; position: absolute; z-index: 2; left: 50%; top: -11px; translate: -50% 0; rotate: -5deg; padding: 3px 10px 4px;
  background: linear-gradient(180deg, #FFE69A 0%, #FFC531 60%, #EDAA12 100%); color: #8E1016; font-size: 11px; font-weight: 800; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 91% 50%, 100% 100%, 0 100%, 9% 50%); filter: drop-shadow(0 2px 2px rgba(60, 0, 0, .3)); }
@keyframes advent-kachel-glimmen { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 8px 0 12px -6px rgba(0, 0, 0, .55), 0 0 0 3px #E9B53C, 0 0 18px 2px rgba(255, 200, 80, .28), 0 12px 24px rgba(50, 0, 0, .45); }
  50% { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 8px 0 12px -6px rgba(0, 0, 0, .55), 0 0 0 3px #FFD66B, 0 0 30px 8px rgba(255, 200, 80, .55), 0 12px 24px rgba(50, 0, 0, .45); } }
@keyframes advent-kachel-gucken { 0%, 80%, 100% { transform: rotateY(0); } 85% { transform: rotateY(-26deg); } 90% { transform: rotateY(-18deg); } 95% { transform: rotateY(-3deg); } }
.advent-kachel:hover .advent-kachel-zahl, .advent-kachel:focus-visible .advent-kachel-zahl { animation: none; transform: rotateY(-34deg); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }

/* Zustände: heute schon geöffnet (is-geoeffnet) · Kalender startet erst (is-bald) */
.advent-kachel.is-geoeffnet .advent-kachel-zahl, .advent-kachel.is-geoeffnet:hover .advent-kachel-zahl { animation: none; transform: rotateY(-100deg); }
.advent-kachel.is-geoeffnet .advent-kachel-tuer::after { content: "Geöffnet"; rotate: 0deg; background: linear-gradient(180deg, #FFFFFF, #E6EFE6); color: #1C5A3A; }
.advent-kachel.is-bald .advent-kachel-tuer { animation: none; }
.advent-kachel.is-bald .advent-kachel-zahl { animation: none; }
.advent-kachel.is-bald .advent-kachel-tuer::after { content: "Bald!"; }

@container advent-kachel (max-width: 300px) {
  .advent-kachel-baum { --advent-baum-b: 54px; right: 16px; }
  .advent-kachel .small-label, .advent-kachel-titel, .advent-kachel-text, .advent-kachel-tuer { --advent-tuer-b: 58px; --advent-platz: 72px; }
  .advent-kachel-titel { font-size: 22px; }
}
@container advent-kachel (max-width: 289px) { .advent-kachel-baum { display: none; } }
@container advent-kachel (min-width: 400px) {
  .advent-kachel-baum { --advent-baum-b: 62px; right: 41px; }
  .advent-kachel .small-label, .advent-kachel-titel, .advent-kachel-text, .advent-kachel-tuer { --advent-tuer-b: 84px; --advent-tuer-y: 28px; --advent-tuer-x: 30px; --advent-platz: 110px; }
  .advent-kachel-titel { min-height: 0; font-size: 26px; }
  .advent-kachel-text { padding-right: var(--advent-platz); }
  .advent-kachel-tuer::after { top: -12px; font-size: 12px; }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .advent-licht, .advent-tuer.is-heute::before, .advent-tuer.is-oeffnet .advent-fluegel, .advent-tuer.is-oeffnet .advent-fach > *,
  .advent-tuer.is-laedt .advent-fluegel, .advent-tuer.is-wackelt .advent-fluegel, .advent-tuer.is-zittert, .advent-blase,
  .advent-dialog[open] .advent-dialog-karte, .advent-kachel-zahl, .advent-kachel-tuer, .advent-laden::before { animation: none; }
  .advent-fluegel, .advent-kachel-knopf span, .advent-kachel-baum { transition: none; }
  .advent-funke, .advent-flocke { display: none; }
  .advent-tuer:hover .advent-fluegel { transform: none; }
  .advent-tuer.is-offen:hover .advent-fluegel, .advent-tuer.is-offen .advent-fluegel { transform: rotateY(-98deg); }
  .advent-kachel:hover .advent-kachel-zahl, .advent-kachel:focus-visible .advent-kachel-zahl, .advent-kachel:hover .advent-kachel-baum, .advent-kachel:focus-visible .advent-kachel-baum { transform: none; transition: none; }
  .advent-kachel.is-geoeffnet .advent-kachel-zahl, .advent-kachel.is-geoeffnet:hover .advent-kachel-zahl { transform: rotateY(-100deg); }
}
/* Animationen ruhen, solange der Kalender nicht zu sehen ist */
.advent-brett.is-pause .advent-licht, .advent-brett.is-pause .advent-tuer.is-heute::before { animation-play-state: paused; }

/* ---------- Dunkles Design (html[data-thema="dunkel"], Agent T) ----------
   Kalender, Dialog und Kachel sind schon dunkelrot/grün und bleiben. Sprechblase, Papier-Karte und Schließen-Knopf bleiben hell
   (helle Tokens: site.css, „Helle Inseln, die ihre Schriftfarbe selbst mitbringen“). */
html[data-thema="dunkel"] .advent-kopf > .small-label, html[data-thema="dunkel"] .advent-regeln a:hover { color: var(--accent-text); }
html[data-thema="dunkel"] .advent-dialog::backdrop { background: rgba(0, 0, 0, .7); }
