/* =========================================================
   SP24_XMAS_THEME_V1 - Weihnachtsfassung fuer NRW Welle
   Wird nach styles.css geladen und ueberschreibt nur Farben
   und Dekoration. Layout und Funktionen bleiben erhalten.
   ========================================================= */

:root {
    --xmas-night: #050d18;
    --xmas-panel: rgba(8, 17, 30, 0.90);
    --xmas-panel-2: rgba(6, 13, 24, 0.96);
    --xmas-red: #c3162e;
    --xmas-red-dark: #7c0c1c;
    --xmas-green: #1d7347;
    --xmas-green-dark: #0f4a2c;
    --xmas-gold: #e9c46a;
    --xmas-gold-light: #f7e2a6;
    --xmas-snow: #f4f8ff;
    --xmas-line: rgba(233, 196, 106, 0.38);
    --xmas-line-soft: rgba(233, 196, 106, 0.18);
}

/* ---------- Hintergrund ---------- */

html {
    min-height: 100%;
    background-color: #050d18;
}

body {
    min-height: 100vh;
}

body {
    color: var(--xmas-snow);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(233, 196, 106, 0.10), transparent 55%),
        linear-gradient(rgba(4, 10, 22, 0.55), rgba(4, 10, 22, 0.78)),
        url("../images/christmas.jpg") no-repeat center center fixed;
    background-size: auto, auto, cover;
    background-color: var(--xmas-night);
}

a {
    color: var(--xmas-gold);
}

a:hover {
    color: #ffffff;
}

/* ---------- Grosse Flaechen ---------- */

.header-table,
.slider-table,
.content-table,
.boxes-table,
.footermain {
    background: rgba(6, 14, 26, 0.84);
    border: 2px solid rgba(233, 196, 106, 0.42);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 22px rgba(233, 196, 106, 0.10),
        0 14px 30px rgba(0, 0, 0, 0.42);
}

.header-table {
    background:
        radial-gradient(ellipse at 22% 40%, rgba(233, 196, 106, 0.16), transparent 50%),
        linear-gradient(180deg, rgba(15, 58, 38, 0.92) 0%, rgba(8, 20, 34, 0.95) 100%);
}

.theme-logo {
    filter:
        drop-shadow(0 0 10px rgba(233, 196, 106, 0.30))
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.25));
}

/* ---------- Lichterkette ---------- */

.xmas-garland {
    position: relative;
    z-index: 5;
    width: 1300px;
    max-width: 100%;
    margin: -8px auto -14px auto;
    pointer-events: none;
    line-height: 0;
}

.xmas-garland svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.xmas-wire {
    fill: none;
    stroke: #6b7d6e;
    stroke-width: 2;
}

.xmas-socket {
    fill: #3b4a3f;
}

.xmas-shine {
    fill: rgba(255, 255, 255, 0.55);
}

.xmas-bulb {
    animation: xmas-twinkle 3.2s ease-in-out infinite;
}

.xmas-bulb-red .xmas-glass   { fill: #ff4b5c; filter: drop-shadow(0 0 5px #ff4b5c); }
.xmas-bulb-gold .xmas-glass  { fill: #ffd166; filter: drop-shadow(0 0 5px #ffd166); }
.xmas-bulb-green .xmas-glass { fill: #4be38a; filter: drop-shadow(0 0 5px #4be38a); }
.xmas-bulb-blue .xmas-glass  { fill: #5cc8ff; filter: drop-shadow(0 0 5px #5cc8ff); }

@keyframes xmas-twinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}

/* ---------- Grussleiste ---------- */

.xmas-greeting-wrap {
    width: 1300px;
    max-width: 100%;
    margin: 0 auto 16px auto;
    box-sizing: border-box;
}

.xmas-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 9px 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    color: var(--xmas-gold-light);
    text-align: center;
    background:
        linear-gradient(90deg, rgba(124, 12, 28, 0.92), rgba(15, 74, 44, 0.92) 50%, rgba(124, 12, 28, 0.92));
    border: 1px solid var(--xmas-line);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.xmas-greeting strong {
    color: #ffffff;
    font-size: 18px;
}

.xmas-star {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--xmas-gold);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 4px rgba(233, 196, 106, 0.8));
}

.xmas-snow-toggle {
    margin-left: 6px;
    padding: 4px 12px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: var(--xmas-snow);
    background: rgba(5, 13, 24, 0.55);
    border: 1px solid var(--xmas-line);
    border-radius: 999px;
    cursor: pointer;
}

.xmas-snow-toggle:hover {
    color: #10130c;
    background: var(--xmas-gold);
}

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

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

/* ---------- Schneefall ---------- */

#sp24-xmas-snow {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
}

/* ---------- Navigation (dropdown.php) ---------- */

.menu-wrapper .nav-btn {
    border: 1px solid rgba(247, 226, 166, 0.75);
    border-radius: 8px;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.menu-wrapper .nav-btn.blue {
    background: linear-gradient(180deg, #23814f 0%, #135c36 100%);
}

.menu-wrapper .nav-btn.blue:hover {
    background: linear-gradient(180deg, #2c9a5f 0%, #176a3f 100%);
}

.menu-wrapper .nav-btn.red {
    background: linear-gradient(180deg, #d01d36 0%, #8f0f22 100%);
}

.menu-wrapper .nav-btn.red:hover {
    background: linear-gradient(180deg, #e2324a 0%, #a3142a 100%);
}

.menu-wrapper .nav-btn .fa {
    color: var(--xmas-gold-light);
}

.menu-wrapper .dropdown-content {
    background: #0a1626;
    border: 1px solid var(--xmas-line);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.menu-wrapper .dropdown-content a {
    color: var(--xmas-snow);
    background: transparent;
    border-bottom: 1px solid rgba(233, 196, 106, 0.10);
}

.menu-wrapper .dropdown-content a:last-child {
    border-bottom: 0;
}

.menu-wrapper .dropdown-content a:hover {
    color: var(--xmas-gold-light);
    background: rgba(233, 196, 106, 0.14);
}

.menu-wrapper .menu5 .menu5-text,
.menu-wrapper .menu5 .menu5-news {
    color: #ff9a9a;
}

.menu-wrapper .menu6 .menu6-text {
    color: #ffe27a;
}

/* ---------- Panel-Ueberschriften mit Schneehaube ---------- */

.capmain,
.scapmain {
    padding-top: 9px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10' viewBox='0 0 60 10'%3E%3Cpath d='M0 0H60V4Q54 9 47 5Q41 2 35 6Q28 10 21 5Q15 1 9 6Q4 9 0 5Z' fill='%23f4f8ff'/%3E%3C/svg%3E") repeat-x left top / 60px 10px,
        linear-gradient(180deg, var(--xmas-red) 0%, var(--xmas-red-dark) 100%);
    border-bottom: 2px solid var(--xmas-gold);
}

/* ---------- Panel-Inhalte ---------- */

.main-body,
.side-body {
    color: var(--xmas-snow);
    background: var(--xmas-panel);
    border: 1px solid var(--xmas-line);
    border-top: 0;
}

.sub-header {
    background: linear-gradient(180deg, #0f3a26 0%, #0a1a14 100%);
    border: 1px solid var(--xmas-line-soft);
}

.sub-header2 {
    color: var(--xmas-gold-light);
    background: linear-gradient(180deg, #0f3a26 0%, #0a1a14 100%);
    border: 1px solid var(--xmas-line-soft);
}

.main-footer {
    background: linear-gradient(180deg, #1d7347, #0f4a2c);
}

.news-footer {
    color: var(--xmas-snow);
    background: var(--xmas-panel-2);
    border: 1px solid var(--xmas-line-soft);
    border-top: 0;
}

.news-footer a,
.side-small a,
.shoutboxname a,
.comment-name a,
a.top,
a.reg,
.footer-links a,
#footer-left a,
#footer-right a {
    color: var(--xmas-gold);
}

.news-footer a:hover,
.side-small a:hover,
.shoutboxname a:hover,
.comment-name a:hover,
a:hover.top,
a:hover.reg {
    color: #ffffff;
}

#navigation a:hover {
    color: var(--xmas-gold-light);
    background: rgba(233, 196, 106, 0.10);
}

#navigation h2 {
    color: var(--xmas-gold-light);
}

.tbl1,
.tbl2 {
    border-bottom: 1px solid rgba(233, 196, 106, 0.22);
}

.side-label {
    border-bottom: 1px dotted rgba(233, 196, 106, 0.40);
}

/* ---------- Formulare ---------- */

.button {
    color: #ffffff;
    background: linear-gradient(180deg, #d01d36, #8f0f22);
    border: 1px solid rgba(247, 226, 166, 0.70);
    box-shadow: 0 0 10px rgba(195, 22, 46, 0.25);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.button:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #e2324a, #a3142a);
    box-shadow: 0 0 14px rgba(233, 196, 106, 0.30);
}

#search input.search,
.textbox {
    border: 1px solid rgba(233, 196, 106, 0.30);
}

#search input.search:focus,
.textbox:focus {
    border-color: rgba(247, 226, 166, 0.85);
    box-shadow:
        0 0 0 2px rgba(233, 196, 106, 0.18),
        inset 0 0 8px rgba(0, 0, 0, 0.25);
}

.pagenav span {
    border-color: rgba(233, 196, 106, 0.30);
}

.pagenav a {
    border-color: rgba(233, 196, 106, 0.22);
}

.pagenav a:hover,
.pagenav a:focus {
    border-color: rgba(247, 226, 166, 0.70);
    box-shadow: 0 0 12px rgba(233, 196, 106, 0.20);
}

/* ---------- Boxenreihen ---------- */

.box1div,
.box2div,
.box3div,
.box4div,
.box5div {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10' viewBox='0 0 60 10'%3E%3Cpath d='M0 0H60V4Q54 9 47 5Q41 2 35 6Q28 10 21 5Q15 1 9 6Q4 9 0 5Z' fill='%23f4f8ff' fill-opacity='.9'/%3E%3C/svg%3E") repeat-x left top / 60px 10px,
        linear-gradient(180deg, rgba(14, 40, 30, 0.96), rgba(6, 13, 24, 0.98));
    border: 1px solid var(--xmas-line);
}

.box1div::after,
.box2div::after,
.box3div::after,
.box4div::after,
.box5div::after {
    background: linear-gradient(90deg,
        rgba(233, 196, 106, 0),
        rgba(233, 196, 106, 0.40),
        rgba(233, 196, 106, 0));
}

.box-inner {
    padding-top: 14px;
}

.box-inner > span.shadow {
    color: var(--xmas-gold-light);
    text-shadow: 0 0 6px rgba(233, 196, 106, 0.25);
}

.box-inner > span.shadow::before {
    content: "\2744\00a0";
    color: var(--xmas-snow);
}

.box4div .box-inner img,
.box5div .box-inner img {
    border-color: rgba(233, 196, 106, 0.30);
}

.box4div .box-inner img:hover,
.box5div .box-inner img:hover {
    border-color: rgba(247, 226, 166, 0.70);
    box-shadow: 0 0 10px rgba(233, 196, 106, 0.25), 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* ---------- Footer mit Schneedecke ---------- */

.footermain {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 16V9Q15 2 30 8T60 7T90 9T120 8V16Z' fill='%23f4f8ff' fill-opacity='.85'/%3E%3C/svg%3E") repeat-x left bottom / 120px 16px,
        linear-gradient(180deg, rgba(15, 58, 38, 0.92), rgba(6, 14, 26, 0.95));
}

.footerleft,
.footerright {
    padding-bottom: 22px;
}

/* ---------- Nach-oben-Button weihnachtlich ---------- */

html body #sp24-theme-back-to-top {
    border-color: var(--xmas-gold);
    color: var(--xmas-gold-light);
    background:
        radial-gradient(circle at center, transparent 0 16px, rgba(233,196,106,.14) 17px, transparent 18px 22px, rgba(233,196,106,.10) 23px, transparent 24px),
        linear-gradient(145deg, #8f0f22, #3d0710);
    box-shadow: 0 5px 18px rgba(0,0,0,.45), 0 0 12px rgba(233,196,106,.25);
}

html body #sp24-theme-back-to-top:hover {
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 18px rgba(233,196,106,.45);
}

/* ---------- Mobil / Barrierefreiheit ---------- */

@media screen and (max-width: 980px) {
    .xmas-garland {
        margin-top: -4px;
        margin-bottom: -6px;
    }

    .xmas-greeting {
        border-radius: 16px;
        font-size: 14px;
        gap: 8px;
    }

    .xmas-greeting strong {
        font-size: 16px;
    }

    body {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 600px) {
    .xmas-greeting .xmas-star {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xmas-bulb {
        animation: none;
    }
}

/* ---------- SP24_XMAS_TREE_V1: drehender Tannenbaum in Panel-Titeln ---------- */
.capmain img[src*="xmas_tree.svg"],
.scapmain img[src*="xmas_tree.svg"] {
    width: 18px;
    height: 24px;
    vertical-align: middle;
    top: -1px;
    filter:
        drop-shadow(0 0 3px rgba(255, 217, 94, 0.95))
        drop-shadow(0 0 7px rgba(75, 227, 138, 0.55));
    animation: xmas-tree-spin 4s linear infinite;
}

@keyframes xmas-tree-spin {
    from { transform: perspective(60px) rotateY(0deg); }
    to   { transform: perspective(60px) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .capmain img[src*="xmas_tree.svg"],
    .scapmain img[src*="xmas_tree.svg"] {
        animation: none;
    }
}
