/* Aurora Theme: warm editorial look */
:root {
    --color-primary: #b45309;
    --color-primary-dark: #92400e;
    --color-primary-light: rgba(180,83,9,.13);
    --color-success: #15803d;
    --color-success-bg: rgba(21,128,61,.11);
    --color-error: #b91c1c;
    --color-error-bg: rgba(185,28,28,.11);
    --color-warning: #b45309;
    --color-warning-bg: rgba(180,83,9,.12);
    --color-text: #1c1917;
    --color-text-muted: #6b645d;
    --color-border: #d7ccc2;
    --color-bg: #f7f1e8;
    --color-card: #fffdf8;
    --color-surface: #fdf7ee;
    --shadow-sm: 0 1px 2px rgba(28,25,23,.08);
    --shadow: 0 8px 22px rgba(28,25,23,.10);
    --shadow-md: 0 18px 42px rgba(28,25,23,.14);
    --radius-sm: .45rem;
    --radius: .65rem;
    --radius-lg: .9rem;

    /* BB-Toolbar (helles Aurora) */
    --bb-toolbar-bg:      #efe2d1;
    --bb-toolbar-border:  #d8c0a8;
    --bb-btn-bg:          #fff8ef;
    --bb-btn-color:       #4a3728;
    --bb-btn-hover:       #f3e1cd;
    --bb-sep-color:       #d8c0a8;
    --bb-gallery-bg:      #fffaf2;
    --bb-gallery-text:    #2b2118;
    --bb-gallery-muted:   #8a6f5a;
    --bb-up-zone-bg:      #f6e9d8;
    --bb-up-input-bg:     #fffaf2;
    --bb-up-input-color:  #2b2118;
    --bb-up-msg-color:    #8a6f5a;

    --aurora-panel-bg: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,252,247,.92));
    --aurora-panel-border: rgba(146,64,14,.16);
    --aurora-input-bg: #fffaf2;
    --aurora-input-border: #d8c0a8;
    --aurora-footer-bg: rgba(255,250,243,.9);
    --aurora-footer-bar-bg: rgba(180,83,9,.08);
    --aurora-footer-text: #6b645d;
}

body.wu-theme-aurora {
    font-family: "Source Sans 3", "Segoe UI", "Trebuchet MS", sans-serif;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 520px at -8% -18%, rgba(245,158,11,.18), transparent 68%),
        radial-gradient(960px 460px at 102% -14%, rgba(251,146,60,.16), transparent 66%),
        linear-gradient(180deg, #fdf8ef 0%, #f6eee4 100%);
    color: var(--color-text);
}

body.wu-theme-aurora::before,
body.wu-theme-aurora::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(66px);
    pointer-events: none;
    opacity: .45;
}

body.wu-theme-aurora::before {
    width: 360px;
    height: 360px;
    left: -92px;
    top: 10vh;
    background: radial-gradient(circle at 35% 35%, rgba(251,146,60,.48), rgba(251,146,60,0));
    animation: wuAuroraDriftA 22s ease-in-out infinite;
}

body.wu-theme-aurora::after {
    width: 420px;
    height: 420px;
    right: -140px;
    top: 52vh;
    background: radial-gradient(circle at 65% 35%, rgba(245,158,11,.45), rgba(245,158,11,0));
    animation: wuAuroraDriftB 24s ease-in-out infinite;
}

.wu-theme-aurora h1,
.wu-theme-aurora h2,
.wu-theme-aurora h3 {
    font-family: "Georgia", "Times New Roman", serif;
    letter-spacing: .01em;
}

.wu-theme-aurora .wu-header {
    background: rgba(255,251,244,.94);
    backdrop-filter: blur(8px) saturate(108%);
    border-bottom: 1px solid rgba(146,64,14,.16);
    box-shadow: 0 6px 18px rgba(28,25,23,.07);
    animation: wuFadeSlide .45s ease both;
}

.wu-theme-aurora .wu-logo {
    background: linear-gradient(120deg, #92400e, #c2410c 58%, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wu-theme-aurora .wu-nav-link,
.wu-theme-aurora .wu-nav-btn {
    transition: background .18s, color .18s, transform .18s;
}

.wu-theme-aurora .wu-page-island {
    background: linear-gradient(180deg, rgba(255,254,251,.96), rgba(255,249,240,.92));
    border: 1px solid rgba(146,64,14,.16);
    border-top: 4px solid rgba(180,83,9,.42);
    box-shadow: 0 14px 36px rgba(28,25,23,.10);
    backdrop-filter: blur(2px);
    animation: wuFadeSlide .62s ease both;
}

.wu-theme-aurora .wu-page-island.wu-cal-island {
    width: 100%;
    max-width: 100%;
}

.wu-theme-aurora .wu-card,
.wu-theme-aurora .wu-entry-card,
.wu-theme-aurora .wu-forum-category,
.wu-theme-aurora .wu-admin-sidebar,
.wu-theme-aurora .wu-admin-stat {
    border: 1px solid rgba(146,64,14,.16);
    border-left: 3px solid rgba(180,83,9,.28);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,252,247,.92));
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .2s ease;
}

.wu-theme-aurora .wu-card:hover,
.wu-theme-aurora .wu-entry-card:hover,
.wu-theme-aurora .wu-forum-category:hover,
.wu-theme-aurora .wu-admin-stat:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: rgba(180,83,9,.28);
}

.wu-theme-aurora .wu-nav-link:hover,
.wu-theme-aurora .wu-nav-btn:hover {
    background: rgba(180,83,9,.1);
    color: var(--color-primary-dark);
    transform: none;
}

.wu-theme-aurora .wu-nav-cta {
    background: linear-gradient(120deg, #b45309, #c2410c 72%, #ea580c);
    border: 1px solid rgba(255,255,255,.62);
    box-shadow: 0 8px 18px rgba(146,64,14,.24);
}

.wu-theme-aurora .wu-nav-cta:hover {
    background: linear-gradient(120deg, #92400e, #9a3412 72%, #c2410c);
}

.wu-theme-aurora .wu-btn-primary {
    background: linear-gradient(120deg, #b45309, #ea580c);
    border-color: rgba(180,83,9,.3);
    box-shadow: 0 8px 18px rgba(146,64,14,.20);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wu-theme-aurora .wu-btn-primary:hover {
    background: linear-gradient(120deg, #92400e, #c2410c);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(146,64,14,.26);
    filter: saturate(104%);
}

.wu-theme-aurora .wu-footer {
    background: var(--aurora-footer-bg);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(146,64,14,.16);
}

.wu-theme-aurora .wu-footer-bar,
.wu-theme-aurora .wu-footer-powered,
.wu-theme-aurora .wu-footer-copy,
.wu-theme-aurora .wu-text-muted {
    color: var(--aurora-footer-text);
}

.wu-theme-aurora .wu-footer-bar {
    background: var(--aurora-footer-bar-bg);
}

.wu-theme-aurora .wu-entry-card,
.wu-theme-aurora .wu-widget,
.wu-theme-aurora .wu-form-shell {
    background: var(--aurora-panel-bg);
    border-color: var(--aurora-panel-border);
}

.wu-theme-aurora .wu-form-group input,
.wu-theme-aurora .wu-form-group textarea,
.wu-theme-aurora .wu-form-group select,
.wu-theme-aurora .wu-bb-toolbar + textarea {
    background: var(--aurora-input-bg);
    border-color: var(--aurora-input-border);
    color: var(--color-text);
}

.wu-theme-aurora .wu-entry-list .wu-entry-card,
.wu-theme-aurora .wu-admin-stats .wu-admin-stat,
.wu-theme-aurora .wu-admin-activity-card,
.wu-theme-aurora .wu-forum-category,
.wu-theme-aurora .wu-profile-card,
.wu-theme-aurora .wu-widget {
    animation: wuFadeSlide .55s ease both;
}

/* Admin in Aurora: weniger Weiss, klar dunkleres Panel-Design */
.wu-theme-aurora .wu-admin-sidebar,
.wu-theme-aurora .wu-admin-stat,
.wu-theme-aurora .wu-admin-activity-card,
.wu-theme-aurora .wu-admin-quicklinks {
    background: linear-gradient(180deg, rgba(58,42,33,.96), rgba(47,34,27,.95));
    border-color: rgba(180,83,9,.28);
}

.wu-theme-aurora .wu-admin-nav a {
    color: #e9ddcf;
}

.wu-theme-aurora .wu-admin-nav a:hover,
.wu-theme-aurora .wu-admin-nav a.active,
.wu-theme-aurora .wu-admin-nav a.wu-nav-active {
    background: rgba(180,83,9,.18);
    color: #ffd8b0;
}

.wu-theme-aurora .wu-admin-stat-value {
    color: #ffb74f;
}

.wu-theme-aurora .wu-admin-stat-label,
.wu-theme-aurora .wu-admin-msg-subj,
.wu-theme-aurora .wu-admin-msg-time,
.wu-theme-aurora .wu-admin-user-date {
    color: #d0b9a0;
}

/* Forum: warme Aurora-Farben statt blauem Default */
.wu-theme-aurora .wu-forum-cat-header {
    background: linear-gradient(90deg, #92400e 0%, #c2410c 100%);
}

.wu-theme-aurora .wu-thread-item.wu-sticky {
    background: rgba(180,83,9,.09);
}

.wu-theme-aurora .wu-post-author {
    background: linear-gradient(180deg, #3a2618 0%, #523723 100%);
    border-right: 1px solid rgba(180,83,9,.28);
}

.wu-theme-aurora .wu-post-author-group {
    color: rgba(255,236,214,.7);
}

.wu-theme-aurora .wu-post-author-joined {
    color: rgba(255,236,214,.52);
}

.wu-theme-aurora .wu-post-number {
    background: rgba(180,83,9,.14);
}

.wu-theme-aurora .wu-entry-list .wu-entry-card:nth-child(1),
.wu-theme-aurora .wu-admin-stats .wu-admin-stat:nth-child(1),
.wu-theme-aurora .wu-admin-activity-card:nth-child(1),
.wu-theme-aurora .wu-forum-category:nth-child(1) { animation-delay: .05s; }

.wu-theme-aurora .wu-entry-list .wu-entry-card:nth-child(2),
.wu-theme-aurora .wu-admin-stats .wu-admin-stat:nth-child(2),
.wu-theme-aurora .wu-admin-activity-card:nth-child(2),
.wu-theme-aurora .wu-forum-category:nth-child(2) { animation-delay: .1s; }

.wu-theme-aurora .wu-entry-list .wu-entry-card:nth-child(3),
.wu-theme-aurora .wu-admin-stats .wu-admin-stat:nth-child(3),
.wu-theme-aurora .wu-admin-activity-card:nth-child(3),
.wu-theme-aurora .wu-forum-category:nth-child(3) { animation-delay: .15s; }

.wu-theme-aurora .wu-entry-list .wu-entry-card:nth-child(4),
.wu-theme-aurora .wu-admin-stats .wu-admin-stat:nth-child(4),
.wu-theme-aurora .wu-admin-activity-card:nth-child(4),
.wu-theme-aurora .wu-forum-category:nth-child(4) { animation-delay: .2s; }

.wu-theme-aurora #wu-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255,251,244,.98);
    border-top: 1px solid rgba(146,64,14,.2);
    box-shadow: 0 -8px 24px rgba(15,23,42,.08);
    padding: 1rem 1.25rem;
}

.wu-theme-aurora #wu-cookie-banner .wu-cb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wu-theme-aurora #wu-cookie-banner p {
    margin: 0;
    color: #334155;
    font-size: .9rem;
    line-height: 1.55;
    flex: 1;
    min-width: 260px;
}

.wu-theme-aurora #wu-cookie-banner button {
    border: 0;
    border-radius: .6rem;
    padding: .56rem 1.1rem;
    color: #fff;
    background: linear-gradient(120deg, #b45309, #ea580c);
    font-weight: 600;
    cursor: pointer;
}

.wu-theme-aurora #wu-cookie-banner button:hover {
    background: linear-gradient(120deg, #92400e, #c2410c);
}

.wu-theme-aurora .wu-hero-actions-center {
    justify-content: center;
}

@keyframes wuFadeSlide {
    from {
        opacity: 0;
        transform: translateY(9px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wuAuroraDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -24px) scale(1.08); }
}

@keyframes wuAuroraDriftB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-24px, 18px) scale(1.06); }
}

@media (max-width: 980px) {
    .wu-theme-aurora .wu-header-inner {
        padding: .65rem 1rem;
    }

    .wu-theme-aurora .wu-page-island {
        width: 92%;
        margin: 1.25rem auto;
        padding: 1.35rem 0 1.75rem;
    }
}

@media (max-width: 768px) {
    .wu-theme-aurora .wu-nav {
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(148,163,184,.4);
        box-shadow: 0 18px 34px rgba(15,23,42,.12);
    }

    .wu-theme-aurora .wu-nav-user-area {
        border-left: 0;
        margin-left: 0;
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wu-theme-aurora *,
    .wu-theme-aurora *::before,
    .wu-theme-aurora *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Automatische Anpassung an dunkles System-Design */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #f59e0b;
        --color-primary-dark: #d97706;
        --color-primary-light: rgba(245,158,11,.18);
        --color-text: #f5efe6;
        --color-text-muted: #d2c2af;
        --color-border: #5d4638;
        --color-bg: #1f1712;
        --color-card: #2a1f18;
        --color-surface: #32251d;
        --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
        --shadow: 0 10px 26px rgba(0,0,0,.4);
        --shadow-md: 0 18px 40px rgba(0,0,0,.45);

        --bb-toolbar-bg:      #2f241d;
        --bb-toolbar-border:  #5f4738;
        --bb-btn-bg:          #3a2c23;
        --bb-btn-color:       #f5efe6;
        --bb-btn-hover:       #4a382c;
        --bb-sep-color:       #5f4738;
        --bb-gallery-bg:      #241a14;
        --bb-gallery-text:    #f5efe6;
        --bb-gallery-muted:   #d0b9a0;
        --bb-up-zone-bg:      #32251d;
        --bb-up-input-bg:     #3a2c23;
        --bb-up-input-color:  #f5efe6;
        --bb-up-msg-color:    #d0b9a0;

        --aurora-panel-bg: linear-gradient(180deg, rgba(51,37,29,.96), rgba(39,28,22,.94));
        --aurora-panel-border: rgba(245,158,11,.22);
        --aurora-input-bg: #2f231c;
        --aurora-input-border: #5f4738;
        --aurora-footer-bg: rgba(40,30,24,.92);
        --aurora-footer-bar-bg: rgba(245,158,11,.08);
        --aurora-footer-text: #d4c4b2;
    }

    body.wu-theme-aurora {
        background:
            radial-gradient(1200px 520px at -8% -18%, rgba(245,158,11,.14), transparent 68%),
            radial-gradient(960px 460px at 102% -14%, rgba(251,146,60,.12), transparent 66%),
            linear-gradient(180deg, #1f1712 0%, #241a14 100%);
    }

    .wu-theme-aurora .wu-header {
        background: rgba(40,30,24,.88);
        border-bottom: 1px solid rgba(245,158,11,.24);
        box-shadow: 0 6px 18px rgba(0,0,0,.32);
    }

    .wu-theme-aurora .wu-page-island {
        background: linear-gradient(180deg, rgba(48,36,28,.95), rgba(40,30,24,.93));
        border: 1px solid rgba(245,158,11,.2);
        border-top: 4px solid rgba(245,158,11,.45);
    }

    .wu-theme-aurora .wu-admin-sidebar,
    .wu-theme-aurora .wu-admin-stat,
    .wu-theme-aurora .wu-admin-activity-card,
    .wu-theme-aurora .wu-admin-quicklinks {
        background: linear-gradient(180deg, rgba(44,32,25,.98), rgba(36,26,20,.96));
        border-color: rgba(245,158,11,.28);
    }

    .wu-theme-aurora .wu-card,
    .wu-theme-aurora .wu-entry-card,
    .wu-theme-aurora .wu-widget,
    .wu-theme-aurora .wu-forum-category {
        background: var(--aurora-panel-bg);
        border-color: var(--aurora-panel-border);
    }

    .wu-theme-aurora .wu-forum-cat-header {
        background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
    }

    .wu-theme-aurora .wu-post-author {
        background: linear-gradient(180deg, #2a1e17 0%, #37271e 100%);
        border-right: 1px solid rgba(245,158,11,.3);
    }
}
