/* ---------- Weihnachtsmodus: absichtlich viel zu kitschig (siehe js/christmas.js) ---------- */

:root.theme-xmas {
    --text: #fff8e7;
    --text-muted: rgba(255, 248, 231, 0.9);
    --text-faint: rgba(255, 248, 231, 0.78);
    --glass-border: rgba(255, 215, 0, 0.55);
    --glass-edge: none;
    --accent: #ffd700;
    --cold: #bfe9ff;
    --warm: #ffb0a0;
    --amber: #ffd700;
    --rain: #bfe9ff;
    --danger: #ffb0a0;

    --surface: rgba(255, 255, 255, 0.1);
    --surface-hover: rgba(255, 255, 255, 0.18);
    --control: rgba(255, 215, 0, 0.14);
    --control-hover: rgba(255, 215, 0, 0.26);
    --line: rgba(255, 215, 0, 0.22);
    --divider: rgba(255, 215, 0, 0.45);
    --text-off: rgba(255, 248, 231, 0.35);
    --panel: #5e0a14;
    --header-bg: #8b0000;
    --menu-bg: #5e0a14;
    --primary-bg: linear-gradient(180deg, #ffe45c, #e6ac00);
    --primary-text: #5e0a14;

    --chart-text: rgba(255, 248, 231, 0.85);
    --chart-grid: rgba(255, 215, 0, 0.16);
    --chart-line: #ffd700;
    --chart-label: #fff8e7;
    --chart-fill: rgba(255, 215, 0, 0.35);
    --chart-fill-end: rgba(255, 215, 0, 0);
    --chart-band: rgba(255, 255, 255, 0.1);
    --chart-range: rgba(255, 255, 255, 0.2);
    --chart-previous: rgba(255, 248, 231, 0.7);
    --chart-warm: #ff9d8a;
    --chart-warm-fill: rgba(255, 157, 138, 0.35);
    --chart-warm-fill-end: rgba(255, 157, 138, 0);
    --chart-warm-soft: rgba(255, 157, 138, 0.6);
    --chart-cold-soft: rgba(191, 233, 255, 0.6);
    --chart-accent: #ffd700;
    --chart-rain: rgba(191, 233, 255, 0.55);
    --chart-gap: rgba(255, 255, 255, 0.14);
    --chart-pressure: #8dfca2;
}

/* Weichzeichner brauchen wir nicht: alles ist deckend, und der Schnee kostet schon Leistung */
.theme-xmas * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.theme-xmas body {
    padding-bottom: 32px;
    background: #071536;
}

/* Sternenhimmel statt Foto */
.theme-xmas .app-bg {
    background-color: #071536;
    background-image:
        radial-gradient(circle at 50% 12%, rgba(255, 215, 0, 0.22), transparent 38%),
        radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, transparent),
        radial-gradient(1.5px 1.5px at 90px 110px, #ffe45c, transparent),
        radial-gradient(1px 1px at 150px 60px, #ffffff, transparent),
        radial-gradient(2px 2px at 210px 170px, #ffffff, transparent),
        radial-gradient(1px 1px at 40px 190px, #ffffff, transparent),
        linear-gradient(180deg, #071536 0%, #16306f 58%, #6d3a8f 100%);
    background-size: auto, 240px 220px, 240px 220px, 240px 220px, 240px 220px, 240px 220px, auto;
    background-position: 0 0;
    background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
}

.theme-xmas .app-bg::before,
.theme-xmas .app-bg::after {
    background: none !important;
}

/* ---------- Kopfleiste mit Lichterkette ---------- */

.theme-xmas .app-header {
    background: linear-gradient(90deg, #8b0000, #0b5d1e 50%, #8b0000);
    border-bottom: 3px solid #ffd700;
}

.theme-xmas .app-header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 18px;
    background:
        radial-gradient(circle at 15px 8px, #ff3b3b 0 4px, transparent 5px) 0 0 / 120px 18px repeat-x,
        radial-gradient(circle at 45px 11px, #ffd700 0 4px, transparent 5px) 0 0 / 120px 18px repeat-x,
        radial-gradient(circle at 75px 8px, #35e36b 0 4px, transparent 5px) 0 0 / 120px 18px repeat-x,
        radial-gradient(circle at 105px 11px, #5cc8ff 0 4px, transparent 5px) 0 0 / 120px 18px repeat-x;
    filter: drop-shadow(0 0 5px #ffffff);
    pointer-events: none;
    animation: xmas-twinkle 900ms steps(2, jump-none) infinite alternate;
}

/* Weihnachtsmütze auf dem Gemeindewappen */
.theme-xmas .brand {
    position: relative;
}

.theme-xmas .brand::before {
    content: '';
    position: absolute;
    top: -9px;
    left: -7px;
    z-index: 1;
    width: 30px;
    height: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 52'%3E%3Cpath d='M8 38C12 14 26 3 42 8c6 2 10 8 11 15l-8-5c-4 6-3 14-1 20Z' fill='%23d40000'/%3E%3Crect x='3' y='35' width='46' height='13' rx='6.5' fill='%23fff'/%3E%3Ccircle cx='53' cy='26' r='6' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: rotate(-14deg);
    pointer-events: none;
}

.theme-xmas .brand-name,
.theme-xmas .card-title,
.theme-xmas .card-subtitle {
    font-family: 'Mountains of Christmas', 'Inter', cursive;
    font-weight: 700;
    letter-spacing: 0;
}

.theme-xmas .brand-name {
    color: #ffd700;
    font-size: 1.3rem;
}

.theme-xmas .app-nav a[aria-current="page"] {
    background: #ffd700;
    color: #5e0a14;
}

@media only screen and (max-width: 1300px) {
    .theme-xmas .app-nav {
        background: #5e0a14;
    }

    .theme-xmas .app-nav a[aria-current="page"] {
        color: #5e0a14;
    }
}

/* ---------- Große Karten: Zuckerstangen-Rand und Schleife ---------- */

.theme-xmas .hero,
.theme-xmas .card {
    --text: #fff8e7;
    --text-muted: rgba(255, 248, 231, 0.92);
    --text-faint: rgba(255, 248, 231, 0.82);
    position: relative;
    border: 9px solid transparent;
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.5);
}

.theme-xmas .hero::before,
.theme-xmas .card::before {
    content: '🎀';
    position: absolute;
    top: -22px;
    left: 50%;
    z-index: 2;
    font-size: 2.1rem;
    line-height: 1;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.theme-xmas .card-title::before {
    content: '🎄 ';
}

.theme-xmas .card-title::after {
    content: ' 🎄';
}

.theme-xmas .card-title {
    color: #ffd700;
    font-size: 1.9rem;
    text-shadow: 0 2px 0 #5e0a14;
}

.theme-xmas .card-subtitle {
    color: #ffd700;
    font-size: 1.35rem;
}

/* Die Temperatur in glänzendem Gold */
.theme-xmas .temperature {
    font-family: 'Mountains of Christmas', 'Inter', cursive;
    font-weight: 700;
}

.theme-xmas .temperature-value,
.theme-xmas .temperature-unit {
    background: linear-gradient(180deg, #fff6a8 10%, #ffd700 50%, #c98a00 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

/* ---------- Kleine Kacheln als Geschenke, abwechselnd grün und rot ---------- */

.theme-xmas .stat,
.theme-xmas .record-period,
.theme-xmas .frost-tile,
.theme-xmas .forecast-day,
.theme-xmas .climate-tile,
.theme-xmas .climate-year,
.theme-xmas .year-switch {
    --present: #0a5a24;
    border: 1px solid #ffd700;
    background:
        linear-gradient(#ffd700, #ffd700) top / 100% 4px no-repeat,
        var(--present);
}

.theme-xmas .stat:nth-child(even),
.theme-xmas .record-period:nth-child(even),
.theme-xmas .frost-tile:nth-child(even),
.theme-xmas .forecast-day:nth-child(even),
.theme-xmas .climate-tile:nth-child(even),
.theme-xmas .climate-year:nth-child(even) {
    --present: #a01420;
}

.theme-xmas .forecast-day[aria-selected="true"] {
    box-shadow: 0 0 0 2px #ffd700, 0 0 14px #ffd700;
}

.theme-xmas .stat {
    position: relative;
}

.theme-xmas .stat::after {
    content: '🎁';
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.85rem;
    line-height: 1;
    pointer-events: none;
}

.theme-xmas .meter-fill {
    background: repeating-linear-gradient(45deg, #ffffff 0 6px, #d40000 6px 12px);
}

.theme-xmas .hint {
    border-color: #ffd700;
    background: #0a5a24;
    color: #fff8e7;
}

.theme-xmas .modal-modern .modal-content {
    border: 4px solid #ffd700;
}

/* ---------- Copyright, sonst steht es auf dem Himmel ---------- */

.theme-xmas .made-by {
    color: #ffd700;
    text-shadow: 0 1px 3px #000000;
}

.theme-xmas .made-by::after {
    content: ' 🎅 Frohe Weihnachten! 🎄';
    display: block;
    margin-top: 4px;
}

/* ---------- Tannenwald, Schlitten, Schnee und Laufband (js/christmas.js) ---------- */

.xmas-scene {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 30px;
    z-index: 0;
    overflow: hidden;
    color: #000000;
    font-size: 46px;
    line-height: 1;
    letter-spacing: 8px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.xmas-sleigh {
    position: fixed;
    top: 110px;
    left: 0;
    z-index: 940;
    font-size: 34px;
    line-height: 1;
    white-space: nowrap;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
    pointer-events: none;
    transform: translateX(100vw);
    animation: xmas-sleigh 40s linear infinite;
}

/* Unter den Popups (Bootstrap ab 1050), damit nichts Lesbares überdeckt wird */
.xmas-snow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    pointer-events: none;
}

.xmas-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: flex;
    height: 30px;
    overflow: hidden;
    align-items: center;
    border-top: 2px solid #ffd700;
    background: #8b0000;
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: pre;
    pointer-events: none;
}

.xmas-banner span {
    flex-shrink: 0;
    animation: xmas-banner 28s linear infinite;
}

@keyframes xmas-twinkle {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

@keyframes xmas-sleigh {
    0% { transform: translate(100vw, 0) rotate(-4deg); }
    10% { transform: translate(65vw, -22px) rotate(3deg); }
    20% { transform: translate(30vw, 12px) rotate(-3deg); }
    30%, 100% { transform: translate(-300px, -14px) rotate(2deg); }
}

@keyframes xmas-banner {
    to { transform: translateX(-100%); }
}

/* Auswahl in der Kopfleiste: Symbol des Modus */
.theme-emoji {
    font-size: 18px;
    line-height: 20px;
    text-align: center;
}

/* ---------- Stufe 2: übelst übertrieben ---------- */

.theme-xmas body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='26' font-size='26'%3E%F0%9F%8E%85%3C/text%3E%3C/svg%3E") 4 4, auto;
}

/* Alles Anklickbare: ein Geschenk statt der Hand */
.theme-xmas a,
.theme-xmas button:not(:disabled),
.theme-xmas select:not(:disabled),
.theme-xmas label[for],
.theme-xmas .daterangepicker td.available,
.theme-xmas .daterangepicker th.available {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='26' font-size='26'%3E%F0%9F%8E%81%3C/text%3E%3C/svg%3E") 16 16, pointer !important;
}

.xmas-bell {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='26' font-size='26'%3E%F0%9F%8E%81%3C/text%3E%3C/svg%3E") 16 16, pointer;
}

/* Kopfleiste: wandernder Farbverlauf und eine zweite Lichterkette im Wechseltakt */
.theme-xmas .app-header {
    background: linear-gradient(90deg, #b00000, #0b5d1e, #b00000, #0b5d1e, #b00000) 0 0 / 200% 100%;
    box-shadow: 0 0 22px #ffd700;
    animation: xmas-slide 8s linear infinite;
}

.theme-xmas .app-header::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 18px;
    background:
        radial-gradient(circle at 30px 11px, #ff5cf0 0 4px, transparent 5px) 0 0 / 120px 18px repeat-x,
        radial-gradient(circle at 60px 8px, #ffffff 0 4px, transparent 5px) 0 0 / 120px 18px repeat-x,
        radial-gradient(circle at 90px 11px, #ff8a00 0 4px, transparent 5px) 0 0 / 120px 18px repeat-x;
    filter: drop-shadow(0 0 6px #ffffff);
    pointer-events: none;
    animation: xmas-twinkle 450ms steps(2, jump-none) infinite alternate-reverse;
}

.theme-xmas .app-header::after {
    animation-duration: 450ms;
}

.theme-xmas .brand-name::after {
    content: ' ✨';
}

.theme-xmas .brand-logo {
    animation: xmas-wiggle 1.6s ease-in-out infinite;
}

.theme-xmas .brand::before {
    animation: xmas-hat 1.6s ease-in-out infinite;
}

/* Jeder Menüpunkt bekommt sein Symbol, sofern Platz dafür ist */
@media only screen and (max-width: 1300px), only screen and (min-width: 1750px) {
    .theme-xmas .app-nav a::before {
        margin-right: 6px;
    }

    .theme-xmas .app-nav a[data-nav="aktuell"]::before { content: '🎅'; }
    .theme-xmas .app-nav a[data-nav="vorhersage"]::before { content: '🦌'; }
    .theme-xmas .app-nav a[data-nav="statistik"]::before { content: '🍪'; }
    .theme-xmas .app-nav a[data-nav="kenntage"]::before { content: '⛄'; }
    .theme-xmas .app-nav a[data-nav="rekorde"]::before { content: '🌟'; }
    .theme-xmas .app-nav a[data-nav="jahr"]::before { content: '🎁'; }
}

/* Himmel: mehr Sterne, Polarlicht und ein bunter Schleier über dem Foto, grinsender Mond */
.theme-xmas .app-bg {
    background-image:
        radial-gradient(ellipse 70% 30% at 25% 18%, rgba(53, 227, 107, 0.34), transparent),
        radial-gradient(ellipse 60% 26% at 75% 28%, rgba(255, 92, 240, 0.3), transparent),
        radial-gradient(circle at 50% 12%, rgba(255, 215, 0, 0.32), transparent 38%),
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2.5px 2.5px at 90px 110px, #ffe45c, transparent),
        radial-gradient(1.5px 1.5px at 150px 60px, #ffffff, transparent),
        radial-gradient(3px 3px at 210px 170px, #ffffff, transparent),
        radial-gradient(1.5px 1.5px at 40px 190px, #ffe45c, transparent),
        linear-gradient(180deg, rgba(7, 21, 54, 0.62) 0%, rgba(22, 48, 111, 0.42) 55%, rgba(176, 52, 143, 0.42) 100%),
        var(--bg-image);
    background-size: auto, auto, auto, 240px 220px, 240px 220px, 240px 220px, 240px 220px, 240px 220px, auto, cover;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, center;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat;
}

.xmas-moon {
    position: fixed;
    top: 88px;
    right: 4vw;
    z-index: 0;
    font-size: 86px;
    line-height: 1;
    filter: drop-shadow(0 0 28px #ffe45c);
    pointer-events: none;
    animation: xmas-pulse 3s ease-in-out infinite;
}

/* Riesenbaum und Riesen-Schneemann neben dem Inhalt, nur wo Platz ist */
.xmas-giant {
    position: fixed;
    bottom: 60px;
    z-index: 0;
    display: none;
    font-size: min(230px, 15vw);
    line-height: 1;
    filter: drop-shadow(0 0 26px #ffd700);
    pointer-events: none;
    animation: xmas-pulse 2.2s ease-in-out infinite;
}

.xmas-giant--left {
    left: 1vw;
}

.xmas-giant--right {
    right: 1vw;
    animation-delay: -1.1s;
}

@media only screen and (min-width: 1200px) {
    .xmas-giant {
        display: block;
    }
}

@media only screen and (max-width: 760px) {
    .xmas-moon {
        display: none;
    }
}

/* Baumelnde Christbaumkugeln */
.xmas-baubles {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 990;
    height: 0;
    pointer-events: none;
}

.xmas-baubles span {
    position: absolute;
    top: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 2px;
    background: #ffd700;
    font-size: 20px;
    line-height: 1;
    transform-origin: top center;
    animation: xmas-swing 2.4s ease-in-out infinite alternate;
}

/* Zur Mitte hin wäre der Text verdeckt */
@media only screen and (max-width: 1000px) {
    .xmas-baubles span:nth-child(n+2):nth-child(-n+7) {
        display: none;
    }
}

/* Karten: laufender Zuckerstangen-Rand und pulsierendes Leuchten */
.theme-xmas .hero,
.theme-xmas .card {
    /* Durchscheinend, damit das Foto auch hinter den Karten zu sehen ist */
    background: linear-gradient(160deg, rgba(160, 19, 34, 0.72), rgba(77, 7, 16, 0.78)) padding-box;
    animation: xmas-glow 1.8s ease-in-out infinite alternate;
}

/* Das Muster liegt in einem eigenen Rahmen und ist per Maske auf den Rand begrenzt,
   sonst schiene es durch die Fläche */
.theme-xmas .hero::after,
.theme-xmas .card::after {
    content: '';
    position: absolute;
    inset: -9px;
    z-index: 1;
    padding: 9px;
    border-radius: var(--radius);
    background: repeating-linear-gradient(45deg, #d40000 0 14px, #ffffff 14px 28px, #0a8a2f 28px 42px, #ffffff 42px 56px) 0 0 / 200% 200%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    animation: xmas-candy 6s linear infinite;
}

.theme-xmas .hero::before,
.theme-xmas .card::before {
    content: '🎀🔔🎀';
    font-size: 2.1rem;
    white-space: nowrap;
    animation: xmas-ring 1.2s ease-in-out infinite alternate;
    transform-origin: top center;
}

/* Spruch zur Temperatur, von js/christmas.js gesetzt */
.xmas-message {
    display: block;
    margin-top: 12px;
    padding: 6px 10px;
    border: 2px dashed #ffd700;
    border-radius: 14px;
    background: #0a5a24;
    color: #ffd700;
    font-family: 'Mountains of Christmas', 'Inter', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Temperatur mit Mütze, die wackelt */
.theme-xmas .temperature {
    position: relative;
    animation: xmas-wiggle 2.4s ease-in-out infinite;
}

.theme-xmas .temperature::before {
    content: '';
    position: absolute;
    top: -6%;
    left: -12%;
    z-index: 1;
    width: 0.62em;
    height: 0.54em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 52'%3E%3Cpath d='M8 38C12 14 26 3 42 8c6 2 10 8 11 15l-8-5c-4 6-3 14-1 20Z' fill='%23d40000'/%3E%3Crect x='3' y='35' width='46' height='13' rx='6.5' fill='%23fff'/%3E%3Ccircle cx='53' cy='26' r='6' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: rotate(-16deg);
    pointer-events: none;
}

.theme-xmas .card-title::before {
    content: '🎄🔔 ';
}

.theme-xmas .card-title::after {
    content: ' 🔔🎄';
}

/* Geschenke: blinkende Kanten im Wechsel, Bewegung beim Antippen */
.theme-xmas .stat,
.theme-xmas .record-period,
.theme-xmas .frost-tile,
.theme-xmas .forecast-day,
.theme-xmas .climate-tile,
.theme-xmas .climate-year {
    border-width: 2px;
    animation: xmas-tile 1.1s ease-in-out infinite alternate;
    transition: transform 150ms ease;
}

.theme-xmas .stat:nth-child(even),
.theme-xmas .record-period:nth-child(even),
.theme-xmas .frost-tile:nth-child(even),
.theme-xmas .forecast-day:nth-child(even),
.theme-xmas .climate-tile:nth-child(even),
.theme-xmas .climate-year:nth-child(even) {
    animation-delay: -0.55s;
}

.theme-xmas .stat:hover,
.theme-xmas .record-period:hover,
.theme-xmas .forecast-day:hover,
.theme-xmas .climate-tile:hover,
.theme-xmas .climate-year:hover {
    transform: scale(1.05) rotate(-1.5deg);
}

.theme-xmas .stat-label {
    color: #ffe45c;
}

/* Im Popup stünde das Geschenk über dem Wert */
.theme-xmas .modal-modern .stat::after {
    display: none;
}

.theme-xmas .btn-primary-modern::before {
    content: '🔔 ';
}

.theme-xmas .btn-primary-modern::after {
    content: ' 🎁';
}

.theme-xmas .btn-primary-modern:hover {
    animation: xmas-shake 180ms ease-in-out infinite alternate;
}

.theme-xmas .modal-modern .modal-content {
    border: 6px solid #ffd700;
    box-shadow: 0 0 40px #ffd700;
}

.theme-xmas .modal-title::before {
    content: '🎅 ';
}

/* Hüpfender Wald: Jedes Bäumchen tanzt für sich */
.xmas-scene {
    font-size: 54px;
    padding-top: 22px;
}

.xmas-scene span {
    display: inline-block;
    animation: xmas-hop 1.4s ease-in-out infinite alternate;
}

.xmas-sleigh {
    font-size: 46px;
    animation-duration: 18s;
}

.xmas-sleigh--late {
    top: 46vh;
    font-size: 36px;
    animation-delay: -9s;
}

.xmas-banner {
    background: linear-gradient(90deg, #b00000, #0b5d1e, #b00000) 0 0 / 200% 100%;
    animation: xmas-slide 6s linear infinite;
}

.xmas-banner span {
    animation-duration: 42s;
}

/* Glitzer bei jedem Tipp, über allem außer den Tooltips */
.xmas-particle {
    position: fixed;
    z-index: 3000;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
    animation: xmas-burst 850ms ease-out forwards;
}

/* Glocke für die Weihnachtslieder */
.xmas-bell {
    position: fixed;
    right: 14px;
    bottom: 42px;
    z-index: 960;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 4px solid #ffd700;
    border-radius: 50%;
    background: #b00000;
    box-shadow: 0 0 22px #ffd700;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    animation: xmas-shake 1s ease-in-out infinite alternate;
}

@media only screen and (max-width: 520px) {
    .xmas-bell {
        right: 8px;
        width: 62px;
        height: 62px;
        font-size: 32px;
    }
}

/* Name des laufenden Lieds neben der Glocke */
.xmas-song {
    position: fixed;
    right: 98px;
    bottom: 62px;
    z-index: 960;
    max-width: calc(100vw - 120px);
    padding: 8px 14px;
    border: 2px solid #ffd700;
    border-radius: 999px;
    background: #0a5a24;
    box-shadow: 0 0 14px #ffd700;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 700;
    pointer-events: none;
}

.xmas-song[hidden] {
    display: none;
}

@media only screen and (max-width: 520px) {
    .xmas-song {
        right: 78px;
        bottom: 54px;
        max-width: calc(100vw - 90px);
        font-size: 0.8rem;
    }
}

.xmas-bell.is-playing {
    background: #0a8a2f;
    animation-duration: 160ms;
}

.xmas-bell:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

@keyframes xmas-slide {
    to { background-position: -200% 0; }
}

@keyframes xmas-candy {
    to { background-position: 79px 79px; }
}

@keyframes xmas-glow {
    from { box-shadow: 0 0 16px rgba(255, 215, 0, 0.5); }
    to { box-shadow: 0 0 46px #ffd700, 0 0 90px rgba(255, 60, 60, 0.6); }
}

@keyframes xmas-tile {
    from { box-shadow: 0 0 2px #ffd700; }
    to { box-shadow: 0 0 14px #ffd700; }
}

@keyframes xmas-wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes xmas-hat {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-6deg); }
}

@keyframes xmas-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes xmas-swing {
    from { transform: rotate(-12deg); }
    to { transform: rotate(12deg); }
}

@keyframes xmas-ring {
    from { transform: translateX(-50%) rotate(-7deg); }
    to { transform: translateX(-50%) rotate(7deg); }
}

@keyframes xmas-shake {
    from { transform: rotate(-7deg); }
    to { transform: rotate(7deg); }
}

@keyframes xmas-hop {
    from { transform: translateY(0) rotate(-5deg); }
    to { transform: translateY(-20px) rotate(5deg); }
}

@keyframes xmas-burst {
    from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
    to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3) rotate(200deg); opacity: 0; }
}

/* Das Logo ist hier breiter: Kurz über der Umbruchstelle wäre sonst kein Platz für den Wettertext */
@media only screen and (max-width: 1560px) {
    .theme-xmas .header-weather-text {
        display: none;
    }
}

/* Ruf beim Tippen */
.xmas-particle--word {
    color: #ffd700;
    font-family: 'Mountains of Christmas', 'Inter', cursive;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 0 6px #d40000, 0 2px 2px #000000;
    white-space: nowrap;
    /* Länger sichtbar und ohne Drehung als der Glitzer, damit man den Ruf lesen kann */
    animation: xmas-word 1s ease-out forwards;
}

@keyframes xmas-word {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    12% { transform: translate(-50%, -80%) scale(1.15); opacity: 1; }
    70% { transform: translate(-50%, -180%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -260%) scale(1); opacity: 0; }
}

/* Reduzierte Bewegung im System: Die Dekoration bleibt, aber nichts bewegt sich */
@media (prefers-reduced-motion: reduce) {
    .theme-xmas *,
    .theme-xmas *::before,
    .theme-xmas *::after {
        animation: none !important;
    }
}
