/*
 * Nova Theme - Modern WuCMS Design
 * Mobile-First, Responsive, CSS Grid & Flexbox
 */

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES - Zentrale Farbverwaltung
   ══════════════════════════════════════════════════════════════ */
:root {
    /* Primärfarben */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    
    /* Sekundärfarben */
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Grautöne */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantische Farben */
    --bg-body: #ffffff;
    --bg-alt: var(--gray-50);
    --bg-card: #ffffff;
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --border-color: var(--gray-200);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Layout */
    --max-width: 1600px;
    --header-height: 64px;
    --sidebar-width: 240px;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Aliases für wu-* Klassen (default theme compatibility) ── */
    --color-primary:        var(--primary);
    --color-primary-dark:   var(--primary-dark);
    --color-primary-light:  rgba(59,130,246,.14);
    --color-bg:             var(--bg-body);
    --color-card:           var(--bg-card);
    --color-surface:        var(--bg-alt);
    --color-text:           var(--text-primary);
    --color-text-muted:     var(--text-muted);
    --color-border:         var(--border-color);
    --color-border-subtle:  var(--gray-100);
    --color-hover:          rgba(59,130,246,.07);
    --color-input-bg:       var(--bg-body);
    --color-success:        var(--success);
    --color-success-bg:     rgba(16,185,129,.10);
    --color-error:          var(--error);
    --color-error-bg:       rgba(239,68,68,.10);
    --color-danger:         var(--error);
    --color-warning:        var(--warning);
    --color-warning-bg:     rgba(245,158,11,.10);
    /* Border-radius aliases */
    --radius:               var(--border-radius);
    --radius-sm:            var(--border-radius-sm);
    --radius-lg:            var(--border-radius-lg);
    --radius-md:            var(--border-radius);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT - RESPONSIVE GRID
   ══════════════════════════════════════════════════════════════ */
.nova-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nova-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Tablet & Desktop: Mit Sidebars */
@media (min-width: 768px) {
    .nova-layout.with-left {
        grid-template-columns: var(--sidebar-width) 1fr;
    }
    .nova-layout.with-right {
        grid-template-columns: 1fr var(--sidebar-width);
    }
    .nova-layout.with-both {
        grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.nova-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nova-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nova-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none !important;
}

/* Responsive Navigation */
.nova-nav {
    display: none;
}

.nova-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.nova-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.nova-nav a:hover, .nova-nav a.active {
    background: var(--gray-100);
    color: var(--primary);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.nova-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nova-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nova-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    .nova-menu-toggle {
        display: none;
    }
}

/* Mobile Navigation Overlay */
.nova-nav-mobile {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    padding: 1rem;
    overflow-y: auto;
    z-index: 999;
}

.nova-nav-mobile.active {
    display: block;
}

.nova-nav-mobile ul {
    list-style: none;
}

.nova-nav-mobile a {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* User Menu */
.nova-user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nova-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nova-btn-login {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.nova-btn-login:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   WIDGETS / SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.nova-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.nova-widget-header {
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nova-widget-body {
    padding: 1rem;
}

.nova-widget-list {
    list-style: none;
}

.nova-widget-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nova-widget-list li:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS & CONTENT BLOCKS
   ══════════════════════════════════════════════════════════════ */
.nova-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nova-card:hover {
    box-shadow: var(--shadow-md);
}

.nova-card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.nova-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.nova-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
}

.nova-btn-primary {
    background: var(--primary);
    color: white;
}

.nova-btn-primary:hover {
    background: var(--primary-dark);
}

.nova-btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

.nova-btn-secondary:hover {
    background: var(--gray-300);
}

.nova-btn-success {
    background: var(--success);
    color: white;
}

.nova-btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.nova-btn-outline:hover {
    background: var(--gray-100);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════ */
.nova-form-group {
    margin-bottom: 1rem;
}

.nova-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.nova-form-input,
.nova-form-textarea,
.nova-form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.nova-form-input:focus,
.nova-form-textarea:focus,
.nova-form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.nova-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS & MESSAGES
   ══════════════════════════════════════════════════════════════ */
.nova-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.nova-alert-success {
    background: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.nova-alert-error {
    background: #fee2e2;
    border-color: var(--error);
    color: #991b1b;
}

.nova-alert-warning {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

.nova-alert-info {
    background: #dbeafe;
    border-color: var(--info);
    color: #1e40af;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.nova-footer {
    margin-top: auto;
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 2rem 0 1rem;
}

.nova-footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.nova-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .nova-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nova-footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.nova-footer ul {
    list-style: none;
}

.nova-footer a {
    color: var(--gray-300);
    display: block;
    padding: 0.25rem 0;
}

.nova-footer a:hover {
    color: white;
}

.nova-footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Grid System */
.nova-grid {
    display: grid;
    gap: 1.5rem;
}

.nova-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.nova-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive Helpers */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .show-mobile { display: none !important; }
}
.wu-admin-wrap  { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }

/* ── Admin Config Accordion ──────────────────────────────────── */
.wu-cfg-toolbar {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-bottom: .85rem;
}
.wu-cfg-section {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: .5rem;
    overflow: hidden;
    background: var(--color-card);
}
.wu-cfg-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    background: var(--color-surface);
    list-style: none;
    user-select: none;
    border: none;
    outline: none;
    transition: background .12s;
}
.wu-cfg-section-head::-webkit-details-marker { display: none; }
.wu-cfg-section-head::marker { display: none; }
.wu-cfg-section-head:hover { background: rgba(255,255,255,.04); }
.wu-cfg-section[open] > .wu-cfg-section-head { border-bottom: 1px solid var(--color-border); }
.wu-cfg-chevron {
    font-size: .6rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: transform .2s ease;
}
.wu-cfg-section[open] .wu-cfg-chevron { transform: rotate(180deg); }
.wu-cfg-section-body { padding: 1.25rem 1.5rem 1rem; }
.wu-cfg-hint { margin: -.25rem 0 1.25rem; font-size: .85rem; }
.wu-cfg-actions {
    position: sticky;
    bottom: 0;
    background: var(--color-bg);
    padding: .75rem 0 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: .5rem;
    z-index: 20;
}

.wu-admin-sidebar {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 4.5rem;
}
.wu-admin-sidebar h3 {
    font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: var(--color-text-muted); padding: .5rem .5rem .25rem; margin-bottom: .25rem;
}
.wu-admin-nav a {
    display: block; padding: .45rem .75rem; border-radius: var(--radius-sm);
    color: var(--color-text); font-size: .875rem; text-decoration: none;
    transition: background .15s;
}
.wu-admin-nav a:hover,
.wu-admin-nav a.active,
.wu-admin-nav a.wu-nav-active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; }
.wu-admin-nav .sep     { border-top: 1px solid var(--color-border); margin: .4rem 0; }

/* ── Admin Stat-Kacheln ────────────────────────────────────── */
.wu-admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.wu-admin-stat  {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 1rem .75rem .85rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    transition: border-top-color .15s, box-shadow .15s, transform .1s;
}
.wu-admin-stat:hover { box-shadow: var(--shadow-md); border-top-color: var(--color-primary-dark); transform: translateY(-1px); }
.wu-admin-stat-icon  { font-size: 1.3rem; line-height: 1; margin-bottom: .3rem; }
.wu-admin-stat-value { font-size: 1.6rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.wu-admin-stat-label { font-size: .75rem; color: var(--color-text-muted); margin-top: .3rem; }

/* ── Admin Aktivitäts-Grid ─────────────────────────────────── */
.wu-admin-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.wu-admin-activity-card { margin: 0; }
.wu-admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .85rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--color-border);
}
.wu-admin-card-link { font-size: .8rem; font-weight: 400; color: var(--color-primary); text-decoration: none; }
.wu-admin-card-link:hover { text-decoration: underline; }
.wu-admin-empty { padding: .5rem 0; font-size: .88rem; }

/* Nutzer-Liste */
.wu-admin-user-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.wu-admin-user-row  { display: flex; align-items: center; gap: .6rem; }
.wu-admin-user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.wu-admin-user-info { flex: 1; min-width: 0; }
.wu-admin-user-name { display: block; font-size: .875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wu-admin-user-date { display: block; font-size: .72rem; color: var(--color-text-muted); }

/* Nachrichten/Aktivitäts-Liste */
.wu-admin-msg-list { list-style: none; padding: 0; }
.wu-admin-msg-row  {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .35rem .6rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--color-border);
    align-items: baseline;
    font-size: .85rem;
}
.wu-admin-msg-row:last-child { border-bottom: none; }
.wu-admin-msg-unread { background: rgba(99,102,241,.06); border-radius: var(--radius-sm); padding-left: .5rem; }
.wu-admin-msg-from  { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.wu-admin-msg-subj  { color: var(--color-text-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wu-admin-msg-time  { font-size: .72rem; color: var(--color-text-muted); white-space: nowrap; }

/* Schnell-Aktionen */
.wu-admin-quicklinks  { margin: 0; }
.wu-admin-ql-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .6rem;
}
.wu-admin-ql {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: .6rem .9rem;
    font-size: .875rem;
    color: var(--color-text);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.wu-admin-ql:hover { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary); }

/* ── Tabellen (Admin) ──────────────────────────────────────── */
.wu-table-wrap { overflow-x: auto; }
.wu-table      { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wu-table th, .wu-table td {
    padding: .65rem .875rem; text-align: left; border-bottom: 1px solid var(--color-border);
}
.wu-table th   { font-weight: 600; background: var(--color-bg); white-space: nowrap; }
.wu-table tbody tr:hover { background: rgba(99,102,241,.06); }
.wu-table tbody tr:last-child td { border-bottom: none; }

/* ── Drag & Drop Sortierung ────────────────────────────────── */
.wu-sort-handle         { cursor: grab; user-select: none; color: var(--color-text-muted); font-size: 1rem; padding: 0 .25rem; }
.wu-sort-handle:active  { cursor: grabbing; }
.wu-sort-dragging       { opacity: .45; background: var(--color-primary-light) !important; }
.wu-sort-over           { outline: 2px dashed var(--color-primary); outline-offset: -2px; background: rgba(99,102,241,.12) !important; }
.wu-sort-over-body      { outline: 2px dashed var(--color-primary); outline-offset: -4px; background: rgba(99,102,241,.04); }

/* ═══════════════════════════════════════════════════════════════
   EINHEITLICHES FRONTEND DESIGN-SYSTEM
   Gilt für ALLE Seiten / Module – kein Modul weicht davon ab.
   ═══════════════════════════════════════════════════════════════ */

/* ── Eintrags-Liste (flex column) ──────────────────────────── */
.wu-entry-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ── Eintrags-Karte (jedes Content-Item) ────────────────────── */
.wu-entry-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-left-color .15s, box-shadow .15s;
    position: relative;
}
.wu-entry-card:hover {
    border-left-color: var(--color-primary);
    box-shadow: var(--shadow);
}
.wu-dismiss-btn {
    position: absolute;
    top: .6rem;
    right: .7rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .2rem;
    border-radius: 3px;
    transition: color .15s, background .15s;
}
.wu-dismiss-btn:hover {
    color: var(--color-text);
    background: var(--color-border);
}

/* Titel innerhalb einer Entry-Card */
.wu-entry-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .45rem;
    line-height: 1.35;
}
.wu-entry-title a {
    color: var(--color-text);
    text-decoration: none;
}
.wu-entry-title a:hover { color: var(--color-primary); }

/* Muted Meta-Zeile (Datum, Autor, Größe …) */
.wu-entry-meta {
    font-size: .8rem;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    margin-bottom: .6rem;
}
.wu-entry-meta span::before { content: '·'; margin-right: .35rem; opacity: .5; }
.wu-entry-meta span:first-child::before { display: none; }

/* Teaser / Beschreibung */
.wu-entry-desc {
    color: var(--color-text);
    font-size: .93rem;
    line-height: 1.65;
    margin: 0 0 .75rem;
}

/* Fußzeile mit Aktions-Buttons */
.wu-entry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .85rem;
    padding-top: .75rem;
    border-top: 1px solid var(--color-border);
}
.wu-entry-footer-left  { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.wu-entry-footer-right { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ── Abschnitts-Trennlinie (Kategorie-Überschrift) ─────────── */
.wu-section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 1.75rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.wu-section-heading:first-child { margin-top: 0; }

/* ── Manage-Button (Admin-Aktion in page-header) ────────────── */
/* Alle "Verwalten/Bearbeiten"-Buttons sehen gleich aus */
.wu-btn-manage {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: .3rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: border-color .15s, color .15s, background .15s;
}
.wu-btn-manage:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(99,102,241,.06);
    text-decoration: none;
}

/* Leere-Seite Hinweis */
.wu-empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem 1rem;
    font-size: .95rem;
}
.wu-empty-state .wu-empty-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    opacity: .5;
}

/* ── News / Artikel (nutzt generisches System) ─────────────── */
/* Kein eigener Card-Override mehr – alle nutzen wu-entry-card direkt */
.wu-news-list   { /* alias für wu-entry-list, bleibt für templates */ display: flex; flex-direction: column; gap: .75rem; }

/* ── News Vollansicht ─────────────────────────────────────── */
.wu-article      { max-width: 100%; }
.wu-article-header { margin-bottom: 1.25rem; }
.wu-article-title  { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin-bottom: .5rem; }
.wu-article-meta   { font-size: .875rem; color: var(--color-text-muted); }
.wu-article-content { line-height: 1.75; }
.wu-article-content p  { margin-bottom: 1rem; }
.wu-article-content h2 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
.wu-article-content h3 { font-size: 1.1rem; margin: 1.25rem 0 .4rem; }
.wu-article-content img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }

/* ── Gästebuch & Kommentare ─────────────────────────────────── */
/* wu-gb-entry erbt wu-entry-card vollständig – kein Override nötig */
.wu-gb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
    flex-wrap: wrap;
    gap: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-border);
}
.wu-gb-author { font-weight: 700; color: var(--color-primary); }
.wu-gb-date   { font-size: .78rem; color: var(--color-text-muted); background: var(--color-bg); padding: .1rem .5rem; border-radius: 9999px; }
.wu-gb-msg    { line-height: 1.65; color: var(--color-text); font-size: .93rem; }
.wu-gb-form   { margin-bottom: 1.5rem; margin-top: 1.5rem; }  /* Karten-Basis: shared patterns */

/* ── Forum (WBB-Style) ──────────────────────────────────────── */

/* Kategorie-Block */
.wu-forum-category {
    margin-bottom: 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.wu-forum-cat-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, #3730a3 100%);
    color: #fff;
    padding: .65rem 1.1rem;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.wu-forum-cat-header-icon { font-size: 1rem; opacity: .85; }
.wu-forum-cat-title  { flex: 1; }
.wu-forum-cat-desc   { font-size: .78rem; font-weight: 400; opacity: .75; margin-left: .5rem; }

.wu-forum-boards-wrap {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-top: none;
}

/* Board-Zeile */
.wu-forum-board {
    display: grid;
    grid-template-columns: 3rem 1fr 110px 200px;
    align-items: stretch;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    transition: background .12s;
}
.wu-forum-board:last-child { border-bottom: none; }
.wu-forum-board:hover { background: var(--color-primary-light); }

.wu-forum-board-icon-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .85rem .5rem;
    border-right: 1px solid var(--color-border);
    font-size: 1.3rem;
    opacity: .7;
}
.wu-forum-board-info {
    padding: .75rem 1rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
}
.wu-forum-board-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}
.wu-forum-board-name:hover { text-decoration: underline; }
.wu-forum-board-desc { font-size: .8rem; color: var(--color-text-muted); }

.wu-forum-board-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .1rem;
    padding: .75rem .5rem;
    border-left: 1px solid var(--color-border);
    font-size: .78rem;
    color: var(--color-text-muted);
    text-align: center;
}
.wu-forum-board-stats strong { font-size: 1rem; font-weight: 700; color: var(--color-text); display: block; line-height: 1.2; }

.wu-forum-board-last {
    padding: .75rem 1rem;
    border-left: 1px solid var(--color-border);
    font-size: .78rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .15rem;
}
.wu-forum-board-last a { color: var(--color-primary); text-decoration: none; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.wu-forum-board-last a:hover { text-decoration: underline; }
.wu-forum-board-last-empty { display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: .78rem; height: 100%; }

/* Thread-Liste */
.wu-thread-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.wu-thread-item {
    display: grid;
    grid-template-columns: 3rem 1fr 120px;
    align-items: stretch;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    border-left: 4px solid transparent;
    transition: background .12s, border-left-color .12s;
}
.wu-thread-item:last-child { border-bottom: none; }
.wu-thread-item:hover { background: var(--color-primary-light); border-left-color: var(--color-primary); }
.wu-thread-item.wu-sticky { border-left-color: var(--color-primary); background: rgba(99,102,241,.06); }
.wu-thread-item.wu-locked  { opacity: .78; }

.wu-thread-icon-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .9rem .5rem;
    border-right: 1px solid var(--color-border);
    font-size: 1.1rem;
    opacity: .75;
}
.wu-thread-info {
    padding: .7rem 1rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
}
.wu-thread-title { font-size: .93rem; font-weight: 600; text-decoration: none; color: var(--color-text); }
.wu-thread-title:hover { color: var(--color-primary); }
.wu-thread-meta  { font-size: .76rem; color: var(--color-text-muted); }

.wu-thread-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .1rem;
    padding: .75rem .75rem;
    border-left: 1px solid var(--color-border);
    font-size: .75rem;
    color: var(--color-text-muted);
    text-align: center;
    min-width: 0;
}
.wu-thread-stats strong { font-size: .95rem; font-weight: 700; color: var(--color-text); display: block; }
.wu-thread-last-info { font-size: .72rem; color: var(--color-text-muted); }

/* Thread-Header (title + admin actions) */
.wu-thread-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.wu-thread-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    line-height: 1.4;
}
.wu-thread-admin-actions { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }

/* Forum-Post (WBB-Stil) */
.wu-post {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: .75rem;
    overflow: hidden;
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}
.wu-post-author {
    background: linear-gradient(180deg, #141929 0%, #1c2340 100%);
    padding: 1.1rem .85rem .9rem;
    text-align: center;
    border-right: 1px solid rgba(99,102,241,.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}
.wu-post-author-name  { font-weight: 700; font-size: .9rem; word-break: break-word; color: var(--color-primary); }
.wu-post-author-group { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .1rem; }
.wu-post-author-joined{ font-size: .68rem; color: rgba(255,255,255,.35); margin-top: .3rem; }
.wu-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 1rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    font-size: .78rem;
    color: var(--color-text-muted);
    gap: .5rem;
}
.wu-post-number { font-size: .72rem; color: var(--color-text-muted); padding: .1rem .4rem; background: var(--color-border); border-radius: var(--radius-sm); }
.wu-post-content { padding: 1rem 1.1rem; line-height: 1.8; flex: 1; font-size: .925rem; }
.wu-post-sig     { margin: 0 1.1rem .9rem; padding-top: .55rem; border-top: 1px dashed var(--color-border); font-size: .78rem; color: var(--color-text-muted); }

/* Breadcrumb */
.wu-breadcrumb       { font-size: .8rem; color: var(--color-text-muted); margin-bottom: .85rem; display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); padding: .4rem .75rem; }
.wu-breadcrumb a     { color: var(--color-primary); text-decoration: none; }
.wu-breadcrumb a:hover { text-decoration: underline; }
.wu-breadcrumb-sep   { color: var(--color-border); }

/* ── BBCode ────────────────────────────────────────────────── */
.wu-code      { background: #1e293b; color: #e2e8f0; padding: 1rem; border-radius: var(--radius); overflow-x: auto; font-size: .875rem; margin: .75rem 0; }
.wu-quote     { border-left: 3px solid var(--color-primary); padding: .5rem 1rem; margin: .75rem 0; background: var(--color-primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wu-quote cite{ font-size: .8rem; color: var(--color-text-muted); display: block; margin-bottom: .25rem; font-style: normal; font-weight: 600; }
.wu-bb-img    { max-width: 100%; max-height: 400px; border-radius: var(--radius-sm); cursor: pointer; }
.wu-bb-myimg  { max-width: 320px; max-height: 240px; border-radius: var(--radius-sm); cursor: pointer; display: inline-block; vertical-align: middle; margin: 2px; }
.wu-bb-myimg-link { display: inline-block; }
.wu-sz-1      { font-size: .75rem; }
.wu-sz-2      { font-size: .875rem; }
.wu-sz-3      { font-size: 1rem; }
.wu-sz-4      { font-size: 1.2rem; }
.wu-sz-5      { font-size: 1.5rem; }

/* ── FAQ ───────────────────────────────────────────────────── */
.wu-faq-item     { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: .5rem; overflow: hidden; background: var(--color-card); }
.wu-faq-question { width: 100%; background: none; border: none; padding: 1rem 1.25rem; font-size: .975rem; font-weight: 500; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background .15s; color: var(--color-text); }
.wu-faq-question:hover { background: var(--color-bg); }
.wu-faq-question::after { content: '+'; font-size: 1.25rem; color: var(--color-primary); flex-shrink: 0; transition: transform .2s; }
.wu-faq-item.wu-open .wu-faq-question::after { content: '−'; }
.wu-faq-answer   { display: none; padding: 0 1.25rem 1rem; line-height: 1.7; color: var(--color-text); }
.wu-faq-item.wu-open .wu-faq-answer { display: block; }

/* ── Galerie ──────────────────────────────────────────────── */
.wu-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}
.wu-gallery-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: .4rem;
}
.wu-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.wu-gallery-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.wu-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}
.wu-gallery-thumb:hover img { transform: scale(1.07); }
.wu-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .75rem;
    padding: .3rem .4rem;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity .15s;
}
.wu-gallery-thumb:hover .wu-gallery-overlay { opacity: 1; }
.wu-gallery-item-caption {
    font-size: .78rem;
    color: var(--color-text-muted);
    padding: .35rem .5rem;
}
.wu-gallery-item-actions { display: flex; gap: .25rem; margin-top: .35rem; }
.wu-gallery-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.wu-gallery-cat-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
}
.wu-gallery-cat-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow); text-decoration: none; }
.wu-gallery-cat-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg);
}
.wu-gallery-cat-cover--empty { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.wu-gallery-cat-info { padding: .75rem 1rem; }

/* ── Lightbox ──────────────────────────────────────────────── */
.wu-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
}
.wu-lightbox.wu-lightbox-open { display: flex; }
.wu-lightbox img {
    max-width: 92vw;
    max-height: 85vh;
    border-radius: .5rem;
    object-fit: contain;
    box-shadow: 0 4px 32px rgba(0,0,0,.8);
}
.wu-lightbox p {
    color: #e2e8f0;
    font-size: .9rem;
    margin: 0;
}
.wu-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: .8;
    transition: opacity .15s;
}
.wu-lightbox-close:hover { opacity: 1; }

/* ── Downloads ─────────────────────────────────────────────── */
.wu-dl-list    { gap: .75rem; }
/* wu-dl-item erbt wu-entry-card; grid-Layout obendrauf; kein Akzent-Border */
.wu-dl-item    { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: .5rem 1.25rem; border-left-color: transparent; margin-bottom: 0; padding: 1rem 1.25rem; }
.wu-dl-item:hover { border-left-color: var(--color-primary); }
.wu-dl-info    { grid-column: 1; grid-row: 1; }
.wu-dl-action  { grid-column: 2; grid-row: 1; align-self: center; }
.wu-dl-title   { font-weight: 600; margin-bottom: .25rem; }
/* .wu-dl-meta: font-size + color von shared patterns */
.wu-dl-cat-title { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--color-border); }
.wu-dl-screenshots { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: .4rem; }
.wu-dl-screenshots a { display: block; border-radius: calc(var(--radius) - 2px); overflow: hidden; border: 1px solid var(--color-border); cursor: zoom-in; }
.wu-dl-screenshots img { display: block; width: 120px; height: 80px; object-fit: cover; transition: opacity .15s; }
.wu-dl-screenshots a:hover img { opacity: .85; }

/* ── Umfragen ──────────────────────────────────────────────── */
.wu-poll-title  { font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.wu-poll-option { margin-bottom: .75rem; }
.wu-poll-option label { display: flex; align-items: baseline; gap: .5rem; cursor: pointer; font-size: .9rem; }
.wu-poll-bar-wrap { margin-top: .4rem; height: 8px; background: var(--color-border); border-radius: 4px; overflow: hidden; }
.wu-poll-bar    { height: 100%; background: var(--color-primary); border-radius: 4px; transition: width .4s; }
.wu-poll-pct    { font-size: .75rem; color: var(--color-text-muted); }

/* ── Umfragen-Übersicht (polls/index) ───────────────────────── */
.wu-poll-card {
    margin-bottom: 1.25rem;
    scroll-margin-top: 4.5rem;
}
.wu-poll-card.wu-poll-ended { opacity: .8; }
.wu-poll-card-head { margin-bottom: .85rem; }
.wu-poll-question {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    line-height: 1.35;
}
.wu-poll-meta {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    font-size: .82rem;
}
.wu-poll-votes    { color: var(--color-text-muted); }
.wu-poll-deadline { color: var(--color-warning, #f59e0b); }
.wu-badge-success { background: rgba(34,197,94,.15); color: #16a34a; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.wu-badge-muted   { background: var(--color-bg); color: var(--color-text-muted); padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; border: 1px solid var(--color-border); }
.wu-poll-results { display: flex; flex-direction: column; gap: .55rem; }
.wu-poll-result-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: .2rem .5rem;
}
.wu-poll-result-label {
    grid-column: 1;
    font-size: .88rem;
    display: flex;
    align-items: baseline;
    gap: .4rem;
}
.wu-poll-pct { margin-left: auto; color: var(--color-text-muted); font-size: .78rem; white-space: nowrap; }
.wu-poll-result-row .wu-poll-bar-wrap { grid-column: 1; }
.wu-poll-vote-count {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: .78rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    text-align: right;
    min-width: 38px;
}
.wu-poll-myvote .wu-poll-bar { background: var(--color-success); }
.wu-poll-myvote .wu-poll-result-label { font-weight: 700; }
.wu-poll-check { color: var(--color-success); font-weight: 700; flex-shrink: 0; }
.wu-poll-options { display: flex; flex-direction: column; gap: .45rem; margin: .5rem 0; }
.wu-poll-option-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    font-size: .9rem;
    padding: .5rem .65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: border-color .15s, background .15s;
}
.wu-poll-option-label:hover { border-color: var(--color-primary); background: rgba(99,102,241,.05); }
.wu-btn-ghost { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); }
.wu-btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ── Formular-Validierung (Live-Check Icons) ─────────────── */
.wu-field-wrap { position: relative; }
.wu-field-wrap input { padding-right: 2.2rem; }
.wu-field-icon {
    position: absolute; right: .55rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem; line-height: 1;
    display: none; pointer-events: none;
}
.wu-field-icon.ok  { display: block; color: var(--color-success); }
.wu-field-icon.err { display: block; color: var(--color-error); }
.wu-field-hint {
    font-size: .8rem; margin-top: .2rem;
    min-height: 1.1em; display: block;
}
.wu-field-hint.ok  { color: var(--color-success); }
.wu-field-hint.err { color: var(--color-error); }
.wu-field-hint:empty { visibility: hidden; }

/* ── Kontakt ───────────────────────────────────────────────── */
.wu-contact-info { font-size: .9rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* ── Tags / Chips ──────────────────────────────────────────── */
.wu-tag         { display: inline-block; padding: .15rem .6rem; background: var(--color-primary-light); color: var(--color-primary); border-radius: 9999px; font-size: .75rem; font-weight: 500; }

/* ── Weblinks ──────────────────────────────────────────────── */
.wu-weblinks-list  { gap: .6rem; margin-top: .5rem; }
/* wu-weblink-item erbt wu-entry-card */
.wu-weblink-item   { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 0; }
.wu-weblink-icon   { font-size: 1.15rem; line-height: 1.4; flex-shrink: 0; opacity: .7; }
.wu-weblink-body   { flex: 1; min-width: 0; }
.wu-weblink-title  { font-weight: 600; color: var(--color-primary); text-decoration: none; word-break: break-word; }
.wu-weblink-title:hover { text-decoration: underline; }
.wu-weblink-ext    { font-size: .7rem; opacity: .7; margin-left: .2rem; }
.wu-weblink-desc   { font-size: .83rem; color: var(--color-text-muted); margin: .2rem 0 0; line-height: 1.45; }
.wu-weblink-hits   { display: flex; flex-direction: column; align-items: center; gap: .1rem; flex-shrink: 0; color: var(--color-text-muted); font-size: .8rem; min-width: 36px; text-align: center; }
.wu-weblink-hits span { font-size: 1rem; font-weight: 600; color: var(--color-text); }

/* ── Responsive (Erweiterung) ──────────────────────────────── */
@media (max-width: 900px) {
    .wu-admin-wrap { grid-template-columns: 1fr; }
    .wu-admin-sidebar { position: static; }
}
@media (max-width: 640px) {
    .wu-post { grid-template-columns: 1fr; }
    .wu-post-author { border-right: none; border-bottom: 1px solid rgba(99,102,241,.25); flex-direction: row; text-align: left; padding: .75rem; }
    .wu-forum-board { grid-template-columns: 1fr; }
    .wu-forum-board-icon-cell, .wu-forum-board-stats, .wu-forum-board-last { display: none; }
    .wu-thread-item { grid-template-columns: 1fr; }
    .wu-thread-icon-cell, .wu-thread-stats { display: none; }
}

/* -- Badge-Farben -------------------------------------------- */
.wu-badge-green  { background: var(--color-success); }
.wu-badge-blue   { background: var(--color-primary); }
.wu-badge-gray   { background: var(--color-text-muted); }
.wu-badge-red    { background: var(--color-error); }
.wu-badge-yellow { background: var(--color-warning); }

/* -- Alert alias --------------------------------------------- */
.wu-alert-danger { background: var(--color-error-bg); border-color: var(--color-error); color: var(--color-error); }

/* -- Radio / Checkbox ---------------------------------------- */
.wu-radio, .wu-checkbox {
    display: flex; align-items: center; gap: .5rem;
    cursor: pointer; font-size: .95rem;
}
.wu-radio input[type=radio], .wu-checkbox input[type=checkbox] {
    width: auto; margin: 0; cursor: pointer;
}

/* -- Polls: voted-Markierung --------------------------------- */
.wu-poll-voted .wu-poll-bar { background: var(--color-success); }
.wu-poll-voted span:first-child { font-weight: 600; }

/* Forum-Board und Thread responsive overrides bereits oben definiert */

@media (max-width: 768px) {
    .wu-forum-board { grid-template-columns: 1fr; }
    .wu-forum-board-stats, .wu-forum-board-last { display: none; }
    .wu-thread-item { grid-template-columns: 1fr; }
    .wu-thread-icon-cell { display: none; }

    /* ── Mobile Navigation ── */
    .wu-nav-hamburger { display: flex; }

    .wu-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-card);
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: .5rem 0;
        z-index: 400;
    }
    .wu-nav.wu-nav-open { display: flex; }

    .wu-nav-link,
    .wu-nav-btn { border-radius: 0; padding: .65rem 1.25rem; width: 100%; text-align: left; display: block; }
    .wu-nav-logout-form { width: 100%; }
    .wu-nav-logout-form .wu-nav-btn { width: 100%; }

    .wu-nav-user-area {
        display: contents; /* Items fließen normal in die flex-column */
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }
    .wu-nav-user { flex-direction: row; }

    /* Mobile Dropdown: via JS-Klasse öffnen */
    .wu-nav-dropdown { position: static; }
    .wu-nav-submenu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: rgba(0,0,0,.12);
    }
    .wu-nav-submenu::before { display: none; }
    .wu-nav-dropdown.wu-dropdown-open .wu-nav-submenu { display: block; }
    .wu-nav-submenu-link { padding-left: 2.25rem; }
    .wu-nav-arrow { margin-left: auto; }

    /* Island auf Mobile: randlos */
    .wu-page-island {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    .wu-main { padding: 0 0 2rem; }
}

@media (max-width: 768px) {
    .wu-nav-search { display: none; }
    .wu-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    .wu-footer-powered { flex-direction: row; }
}

/* ── Sidebar-Widget-Layout ─────────────────────────────────── */
.wu-page-columns {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.wu-page-body {
    flex: 1;
    min-width: 0;
}

.wu-sidebar {
    width: 230px;
    flex-shrink: 0;
    align-self: flex-start;
}

/* ── Widget-Box ─────────────────────────────────────────────── */
.wu-widget {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-top: 2px solid rgba(99,102,241,.35);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.wu-widget-head {
    padding: .55rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: rgba(99,102,241,.06);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.wu-widget-body {
    padding: .75rem 1rem;
}

/* ── Community-Widget ───────────────────────────────────────── */
.wu-w-community-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--color-border);
}
.wu-w-community-name {
    font-weight: 600;
    font-size: .9rem;
}
.wu-w-community-meta { font-size: .75rem; color: var(--color-text-muted); }
.wu-w-community-links {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: .75rem;
}
.wu-w-community-links a {
    font-size: .82rem;
    padding: .25rem .5rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: background .12s, color .12s;
}
.wu-w-community-links a:hover {
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
}
.wu-w-community-logout { margin-top: .5rem; }

/* ── Navigation-Widget ──────────────────────────────────────── */
.wu-widget-body--nav { padding: .4rem 0; }
.wu-nav-widget { display: flex; flex-direction: column; }
.wu-nav-widget-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem 1rem;
    font-size: .85rem;
    color: var(--color-text);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .14s, color .14s, padding-left .14s;
}
.wu-nav-widget-item::before {
    content: '';
    width: .35rem; height: .35rem;
    border-radius: 50%;
    background: var(--color-text-muted);
    flex-shrink: 0;
    transition: background .14s, transform .14s;
}
.wu-nav-widget-item:hover,
.wu-nav-widget-item.active {
    background: rgba(99,102,241,.08);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 1.25rem;
    text-decoration: none;
}
.wu-nav-widget-item.active { font-weight: 600; }
.wu-nav-widget-item:hover::before,
.wu-nav-widget-item.active::before { background: var(--color-primary); }
.wu-nav-widget-item:hover::before { transform: scale(1.3); }
.wu-w-community-form .wu-w-input {
    width: 100%;
    padding: .45rem .65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: .875rem;
    margin-bottom: .4rem;
    transition: border-color .15s;
}
.wu-w-community-form .wu-w-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ── Statistik-Widget (PHPKIT-Stil) ─────────────────────────── */
.wu-w-stats-sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .28rem .75rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: rgba(99,102,241,.08);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.wu-w-stats-sec:first-of-type { border-top: none; }
.wu-w-stats-sec-online { color: var(--color-success); background: rgba(34,197,94,.07); }
.wu-w-stats-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .1rem .45rem;
    line-height: 1.4;
}
.wu-w-stats { padding: .15rem .75rem .35rem; }
.wu-w-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .26rem .1rem;
    font-size: .82rem;
    border-bottom: 1px solid rgba(255,255,255,.03);
    gap: .25rem;
}
.wu-w-stat-row:last-child { border-bottom: none; }
.wu-w-stat-row span    { color: var(--color-text-muted); white-space: nowrap; }
.wu-w-stat-row strong  { font-weight: 600; flex-shrink: 0; }
.wu-w-stat-highlight strong { color: var(--color-success); }
.wu-w-stat-admin strong { color: #e74c3c; }
.wu-w-stat-mod   strong { color: #2ecc71; }
.wu-w-stat-member strong { color: var(--color-primary); }
.wu-w-stat-muted { color: var(--color-text-muted); font-style: italic; font-size: .82rem; padding: .35rem .1rem; }
.wu-w-stat-up   { color: var(--color-success); }
.wu-w-stat-down { color: var(--color-danger,  #ef4444); }
.wu-w-stat-divider {
    border-top: 1px solid var(--color-border);
    margin: .3rem .1rem;
}
.wu-w-stat-subsec {
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    padding: .4rem .1rem .15rem;
    margin-top: .15rem;
    border-top: 1px solid rgba(255,255,255,.04);
}
.wu-w-stat-subsec:first-child { border-top: none; margin-top: 0; }

/* ── Online-User-Liste unter Admin/Mod/Mitglied ─────────────── */
.wu-w-online-users {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .35rem;
    padding: .1rem .85rem .3rem;
}
.wu-w-online-users a {
    font-size: .75rem;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}
.wu-w-online-users a:hover { text-decoration: underline; }

/* ── Details/Summary fuer klappbare Abschnitte ── */
.wu-w-details { border: none; }
.wu-w-details > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.wu-w-details > summary::-webkit-details-marker { display: none; }
.wu-w-details > summary::after {
    content: ' ▸';
    font-size: .7rem;
    opacity: .55;
    margin-left: .25rem;
}
.wu-w-details[open] > summary::after { content: ' ▾'; }

/* ── Zuletzt Online Block ── */
.wu-w-recent-block  { padding: .2rem 0 .4rem; }
.wu-w-recent-day {
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    padding: .3rem .75rem .1rem;
}
.wu-w-recent-online {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .45rem;
    padding: .15rem .75rem .35rem;
}
.wu-w-recent-online a {
    font-size: .80rem;
    color: var(--color-primary);
}
.wu-w-recent-online a:hover { text-decoration: underline; }

/* ── Robots ── */
.wu-w-robots {
    padding: .4rem .75rem .5rem;
    font-size: .78rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.wu-w-robots span + span::before { content: ', '; }

/* ── Listen-Widgets (News / Forum / DL / Links) ─────────────── */
.wu-w-list {
    list-style: none;
    padding: .25rem 0;
    margin: 0;
}
.wu-w-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .25rem;
    padding: .3rem .25rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: .82rem;
}
.wu-w-list li:last-child { border-bottom: none; }
.wu-w-list a {
    color: var(--color-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wu-w-list a:hover { color: var(--color-primary); }
.wu-w-date {
    font-size: .73rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.wu-w-footer {
    padding: .4rem .25rem 0;
    text-align: right;
    font-size: .78rem;
}

/* ── Widget Tabs ────────────────────────────────────────────── */
.wu-widget-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: rgba(99,102,241,.04);
}
.wu-tab-btn {
    flex: 1;
    padding: .38rem .5rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    letter-spacing: .02em;
}
.wu-tab-btn:hover { color: var(--color-text); }
.wu-tab-btn.wu-tab-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.wu-tab-panel > .wu-w-list { margin: 0; }
.wu-w-empty {
    font-size: .82rem;
    color: var(--color-text-muted);
    font-style: italic;
    padding: .4rem .75rem;
}

/* ── Umfragen-Widget ────────────────────────────────────────── */
.wu-w-poll-question {
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .6rem;
    line-height: 1.35;
}
.wu-w-poll-option {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .84rem;
    padding: .25rem 0;
    cursor: pointer;
}
.wu-w-poll-result {
    margin-bottom: .45rem;
}
.wu-w-poll-label {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    margin-bottom: .2rem;
}
.wu-w-poll-bar {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}
.wu-w-poll-bar > div {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width .3s;
}
.wu-w-poll-total {
    font-size: .75rem;
    color: var(--color-text-muted);
    margin-top: .4rem;
    text-align: right;
}

/* ── Shoutbox-Widget ────────────────────────────────────────── */
.wu-w-shout { padding: .5rem 0 0; }
.wu-w-shout-form { padding: 0 .75rem .5rem; }
.wu-w-shout-iam {
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-bottom: .35rem;
}
.wu-w-shout-name {
    width: 100%;
    margin-bottom: .35rem;
    font-size: .85rem;
    padding: .3rem .5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-input-bg, var(--color-bg));
    color: var(--color-text);
}
.wu-w-shout-row {
    display: flex;
    gap: .35rem;
}
.wu-w-shout-input {
    flex: 1;
    min-width: 0;
    font-size: .85rem;
    padding: .3rem .5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-input-bg, var(--color-bg));
    color: var(--color-text);
}
.wu-w-shout-input:focus,
.wu-w-shout-name:focus { outline: 2px solid var(--color-primary); border-color: var(--color-primary); }
.wu-w-shout-btn { flex-shrink: 0; }
.wu-w-shout-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
}
.wu-w-shout-entry {
    padding: .4rem .75rem;
    border-bottom: 1px solid var(--color-border);
    font-size: .82rem;
    line-height: 1.4;
}
.wu-w-shout-entry:last-child { border-bottom: none; }
.wu-w-shout-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: .1rem;
}
.wu-w-shout-nick { font-weight: 700; color: var(--color-primary); }
.wu-w-shout-time { font-size: .72rem; color: var(--color-text-muted); white-space: nowrap; }
.wu-w-shout-text { color: var(--color-text); word-break: break-word; }

/* ── Shoutbox-Archiv (Frontpage) ─────────────────────────────── */
.wu-shout-compose { margin-bottom: 1.25rem; }
.wu-shout-iam { font-size: .85rem; color: var(--color-text-muted); margin-bottom: .5rem; }
.wu-shout-compose-row {
    display: flex;
    gap: .5rem;
}
.wu-shout-compose-input { flex: 1; min-width: 0; }
.wu-shout-hint { font-size: .75rem; color: var(--color-text-muted); margin-top: .4rem; }
.wu-shout-archive {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.wu-shout-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: .6rem;
    font-size: .9rem;
    line-height: 1.45;
    /* Basis-Box: erbt wu-entry-card Struktur (border-left, radius, shadow) */
}
.wu-shout-left { display: flex; flex-direction: column; align-items: center; gap: .25rem; flex-shrink: 0; }
.wu-shout-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--color-bg); border: 1px solid var(--color-border); }
.wu-shout-avatar-placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--color-primary); font-weight: 700; border: 1px solid var(--color-border); flex-shrink: 0; }
.wu-shout-content { flex: 1; min-width: 0; }
.wu-shout-meta   { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .15rem; flex-wrap: wrap; }
.wu-shout-time   { font-size: .72rem; color: var(--color-text-muted); white-space: nowrap; background: var(--color-bg); padding: .05rem .35rem; border-radius: 9999px; }
.wu-shout-author { font-weight: 700; color: var(--color-primary); white-space: nowrap; font-size: .88rem; }
.wu-shout-sep    { display: none; }
.wu-shout-msg    { min-width: 0; word-break: break-word; color: var(--color-text); }
.wu-shout-del    { display: inline; margin-left: auto; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   KALENDER
   ═══════════════════════════════════════════════════════════════ */

/* ── Kalender-Island ─────────────────────────────────────────── */
.wu-cal-island {
    padding: 0 0 2.5rem;
    margin-bottom: 2rem;
    overflow: visible; /* Tooltips dürfen überstehen */
}

.wu-cal-island-head {
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.wu-cal-island-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: .75rem;
}

.wu-cal-island-h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--color-text);
}

.wu-cal-month-nav {
    justify-content: flex-start;
}

.wu-cal-alerts { margin-bottom: 1rem; }

/* ── Kalender-Seite ──────────────────────────────────────────── */
.wu-cal-page { padding-bottom: 3rem; }

.wu-cal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.wu-cal-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.wu-cal-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 200px;
    text-align: center;
}
.wu-cal-topbar-actions { display: flex; gap: .5rem; }

/* ── Gitter ───────────────────────────────────────────────────── */
.wu-cal-grid-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: visible;
    background: var(--color-surface);
    position: relative;
    z-index: 0;
}
.wu-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.wu-cal-head-row { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.wu-cal-head-cell {
    padding: .5rem .25rem;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}
.wu-cal-body { }

/* ── Tages-Zelle ─────────────────────────────────────────────── */
.wu-cal-day {
    position: relative;
    min-height: 80px;
    padding: .4rem .45rem .35rem;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    transition: background .12s;
    overflow: visible;
    z-index: 1;
}
.wu-cal-day:hover { z-index: 100; }
.wu-cal-day:nth-child(7n) { border-right: none; }
.wu-cal-day-empty { background: var(--color-bg); opacity: .45; }
.wu-cal-day.wu-cal-has-events { cursor: pointer; }
.wu-cal-day.wu-cal-has-events:hover { background: rgba(99,102,241,.05); }
.wu-cal-today {
    background: rgba(99,102,241,.08) !important;
}
.wu-cal-today .wu-cal-day-num {
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wu-cal-day-num {
    font-size: .82rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: .25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Event-Punkte ────────────────────────────────────────────── */
.wu-cal-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: .2rem;
}
.wu-cal-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.wu-cal-dot-more { font-size: .65rem; color: var(--color-text-muted); line-height: 8px; }

/* ── Hover-Tooltip ───────────────────────────────────────────── */
.wu-cal-tooltip {
    display: none;
    position: absolute;
    z-index: 999;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    max-width: 240px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: .5rem;
    pointer-events: none;
    white-space: normal;
    word-break: break-word;
}
.wu-cal-day:hover .wu-cal-tooltip { display: block; }
/* Ensure tooltip doesn't overflow right edge */
.wu-cal-grid .wu-cal-day:nth-child(7n-1) .wu-cal-tooltip,
.wu-cal-grid .wu-cal-day:nth-child(7n)   .wu-cal-tooltip {
    left: auto; right: 0;
}
.wu-cal-tooltip-item {
    font-size: .78rem;
    padding: .2rem .4rem;
    margin-bottom: .2rem;
    border-radius: 2px;
    display: flex;
    gap: .3rem;
    align-items: baseline;
    color: var(--color-text);
}
.wu-cal-tooltip-item:last-child { margin-bottom: 0; }

/* ── Legende ─────────────────────────────────────────────────── */
.wu-cal-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: .75rem;
    font-size: .8rem;
    color: var(--color-text-muted);
}
.wu-cal-legend-item { display: flex; align-items: center; gap: .35rem; }
.wu-cal-legend-island {
    padding-top: .75rem;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}

/* ── Modal ───────────────────────────────────────────────────── */
.wu-cal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.45);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.wu-cal-modal.wu-cal-modal-open { display: flex; }
.wu-cal-modal-box {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-md, var(--radius-sm));
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    max-width: 520px;
    width: 100%;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
}
.wu-cal-modal-close {
    position: absolute;
    top: .75rem; right: .75rem;
    background: none; border: none;
    font-size: 1.1rem; cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    padding: .2rem .4rem;
    border-radius: var(--radius-sm);
}
.wu-cal-modal-close:hover { background: var(--color-bg); }
.wu-cal-modal-date {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .75rem;
}
.wu-cal-modal-event {
    padding: .75rem 1rem;
    margin-bottom: .75rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
}
.wu-cal-modal-event:last-child { margin-bottom: 0; }
.wu-cal-modal-ev-head {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: .35rem;
}
.wu-cal-modal-time  { font-size: .82rem; color: var(--color-text-muted); }
.wu-cal-modal-meta  { font-size: .78rem; color: var(--color-text-muted); }
.wu-cal-modal-loc   { font-size: .85rem; color: var(--color-text-muted); margin-bottom: .3rem; }
.wu-cal-modal-desc  { font-size: .88rem; line-height: 1.55; margin-bottom: .4rem; }
.wu-cal-modal-rsvp  { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.wu-cal-modal-admin { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }

/* ── RSVP-Teilnehmerliste im Popup ───────────────────────────── */
.wu-cal-rsvp-lists { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; padding-top: .6rem; border-top: 1px solid var(--color-border); }
.wu-cal-rsvp-group { font-size: .8rem; }
.wu-cal-rsvp-group strong { display: block; margin-bottom: .35rem; font-size: .75rem; letter-spacing: .03em; text-transform: uppercase; }
.wu-cal-rsvp-att strong { color: var(--color-success); }
.wu-cal-rsvp-dec strong { color: var(--color-error); }
.wu-cal-rsvp-avatars { display: flex; flex-wrap: wrap; gap: .35rem; }
.wu-cal-rsvp-person {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: .1rem .45rem .1rem .1rem;
    white-space: nowrap;
    transition: border-color .12s;
}
.wu-cal-rsvp-person:hover { border-color: var(--color-primary); }
.wu-cal-rsvp-person img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.wu-btn-success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.wu-btn-success:hover { filter: brightness(1.1); }

/* ── Farb-Auswahl im Erstellformular ─────────────────────────── */
.wu-cal-color-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.wu-cal-color-opt { cursor: pointer; }
.wu-cal-color-opt input { display: none; }
.wu-cal-color-opt span {
    display: block;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color .15s, transform .1s;
}
.wu-cal-color-opt input:checked + span,
.wu-cal-color-opt span:hover {
    border-color: var(--color-text);
    transform: scale(1.15);
}

/* ── Kalender-Widget (Mini-Grid) ─────────────────────────────── */
.wu-w-cal-widget .wu-widget-body { padding: .4rem .5rem .5rem; }
.wu-w-cal-body-wrap { }

.wu-w-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .35rem;
}
.wu-w-cal-nbtn {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: .1rem .35rem;
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: background .12s, color .12s;
}
.wu-w-cal-nbtn:hover { background: var(--color-primary-light); color: var(--color-primary); }
.wu-w-cal-mlnk {
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    text-align: center;
}
.wu-w-cal-mlnk:hover { color: var(--color-primary); }

.wu-w-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.wu-w-cal-hd {
    background: var(--color-bg);
    text-align: center;
    font-size: .6rem;
    font-weight: 700;
    color: var(--color-text-muted);
    padding: .2rem 0;
    text-transform: uppercase;
}
.wu-w-cal-cell {
    background: var(--color-card);
    min-height: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .15rem 0;
    position: relative;
}
.wu-w-cal-mt { background: var(--color-bg); opacity: .5; }
.wu-w-cal-ct { background: rgba(99,102,241,.2) !important; }
.wu-w-cal-ct .wu-w-cal-dn { color: var(--color-primary); font-weight: 800; }
.wu-w-cal-ce:not(.wu-w-cal-mt) { cursor: pointer; }
.wu-w-cal-ce:not(.wu-w-cal-mt):hover { background: rgba(99,102,241,.07); }

.wu-w-cal-dn {
    font-size: .72rem;
    line-height: 1;
    color: var(--color-text);
    display: block;
    text-align: center;
}
.wu-w-cal-dlnk {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    padding: .15rem 0;
    gap: .1rem;
}
.wu-w-cal-dlnk .wu-w-cal-dn { color: var(--color-text); }
.wu-w-cal-dlnk:hover .wu-w-cal-dn { color: var(--color-primary); }
.wu-w-cal-drow {
    display: flex;
    gap: 1px;
    justify-content: center;
    flex-wrap: wrap;
}
.wu-w-cal-md {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    display: inline-block;
}
.wu-w-cal-ft {
    text-align: right;
    margin-top: .35rem;
    font-size: .75rem;
}
.wu-w-cal-ft a { color: var(--color-text-muted); text-decoration: none; }
.wu-w-cal-ft a:hover { color: var(--color-primary); }

/* ── Profil: Termine-Section ─────────────────────────────────── */
.wu-prof-events-list  { list-style: none; margin: 0; padding: 0; }
.wu-prof-event-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: .88rem;
}
.wu-prof-event-item:last-child { border-bottom: none; }
.wu-prof-event-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wu-prof-event-date { color: var(--color-text-muted); white-space: nowrap; min-width: 70px; }
.wu-prof-event-title { color: var(--color-text); text-decoration: none; }
.wu-prof-event-title:hover { color: var(--color-primary); text-decoration: underline; }

/* ── Responsive: Sidebars ausblenden ────────────────────────── */
@media (max-width: 1180px) {
    .wu-sidebar-left  { display: none; }
}
@media (max-width: 1380px) {
    .wu-sidebar-right { display: none; }
}
@media (max-width: 1380px) {
    .wu-page-columns { padding: 0; }
    .wu-page-body    { min-width: 100%; }
}
/* ── Inline-Formfelder (für Admin-Widget-Tabelle) ───────────── */
.wu-form-inline-select,
.wu-form-inline-input {
    padding: .3rem .5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: .85rem;
}
.wu-form-inline-select:focus,
.wu-form-inline-input:focus {
    outline: none;
    border-color: var(--color-primary);
}
/* 
   SUCHE  Suchleisten & Ergebnisseiten
    */

/* Suchleiste auf Such- und Forum-Suchseite */
.wu-search-bar {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
}
.wu-search-input {
    flex: 1;
    padding: .55rem .875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    outline: none;
    transition: border-color .15s;
}
.wu-search-input:focus { border-color: var(--color-primary); }

.wu-search-summary {
    font-size: .9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}
.wu-search-summary strong, .wu-search-summary em { color: var(--color-text); }

/* Hervorgehobener Suchbegriff */
mark {
    background: rgba(234,179,8,.25);
    color: inherit;
    border-radius: 2px;
    padding: 0 .1em;
}

/* Globale Suche  Gruppen */
.wu-search-group {
    margin-bottom: 2rem;
}
.wu-search-group-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: .75rem;
}
.wu-search-count {
    font-size: .75rem;
    font-weight: 600;
    background: var(--color-primary-light, rgba(99,102,241,.12));
    color: var(--color-primary);
    padding: .1rem .45rem;
    border-radius: 99px;
}

.wu-search-results { display: flex; flex-direction: column; gap: .65rem; }

.wu-search-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: .875rem 1rem;
}
.wu-search-item-title {
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    display: block;
    margin-bottom: .25rem;
}
.wu-search-item-title:hover { color: var(--color-primary); }

.wu-search-excerpt {
    font-size: .875rem;
    color: var(--color-text-muted);
    margin: .25rem 0 0;
    line-height: 1.5;
}
.wu-search-date {
    display: block;
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-top: .35rem;
}

/* Mobile: Nav-Suchfeld immer voll sichtbar */
@media (max-width: 768px) {
    .wu-nav-search { display: none; }
}
/* ── Profil (neu — wup-* Namespace) ───────────────────────── */

/* Full-Width Inhaltsbereich (kein Island-Wrapper, Sidebars bleiben) */
.wu-page-body--fullwidth {
    flex: 1;
    min-width: 0;
    /* Banner darf bis zu den Rändern des Content-Bereichs gehen */
    overflow: visible;
}
.wu-page-body--fullwidth .wup-banner {
    /* Bündig mit dem page-body, kein Überlauf nötig */
    margin-left: 0;
    margin-right: 0;
}

/* Banner */
.wup-banner {
    margin: 0;
    height: 220px;
    background: linear-gradient(135deg, #0f0c29 0%, #1e1b4b 25%, #302b63 55%, #4338ca 80%, #6366f1 100%);
    position: relative;
    overflow: hidden;
}
.wup-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(99,102,241,.35) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(139,92,246,.25) 0%, transparent 50%);
}
.wup-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.18));
}

/* Grid-Layout: Sidebar links, Content rechts */
.wup-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem 0 3rem;
    width: 100%;
    max-width: 100%;
}

/* Karten */
.wup-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
    margin-bottom: .875rem;
}
.wup-card:last-child { margin-bottom: 0; }
.wup-card-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-text-muted);
    margin: 0 0 .875rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-border);
}
.wup-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .875rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Avatar-Karte */
.wup-page-wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.wup-sidebar { min-width: 0; margin-top: -90px; /* überlappt Banner */ }
.wup-avatar-card { text-align: center; }
.wup-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: .875rem;
}
.wup-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-card);
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    display: block;
}
.wup-online-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid var(--color-card);
}
.wup-online-dot.is-online  { background: #34d399; }
.wup-online-dot.is-offline { background: #475569; }

.wup-avatar-del-form {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
}
.wup-avatar-del-btn {
    background: rgba(0,0,0,.65);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: .75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.wup-username {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .5rem;
}
.wup-badges {
    display: flex;
    gap: .4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.wup-rank {
    font-size: .78rem;
    font-weight: 600;
}
.wup-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .73rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 9999px;
    margin-bottom: .625rem;
}
.wup-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wup-status-pill.is-online  { background: rgba(52,211,153,.12); color: #34d399; }
.wup-status-pill.is-online .wup-status-dot  { background: #34d399; }
.wup-status-pill.is-offline { background: rgba(71,85,105,.2);  color: #94a3b8; }
.wup-status-pill.is-offline .wup-status-dot { background: #64748b; }

.wup-bio {
    font-size: .83rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: .25rem 0 .75rem;
    text-align: left;
}

/* Eigenes Profil Buttons */
.wup-own-actions {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .75rem;
}
.wup-own-actions-row {
    display: flex;
    gap: .4rem;
    justify-content: center;
}
.wup-own-actions-row .wu-btn { flex: 1; justify-content: center; }
.wup-danger-link {
    font-size: .75rem;
    color: var(--color-error, #ef4444);
    text-decoration: none;
    opacity: .65;
    transition: opacity .15s;
    margin-top: .15rem;
}
.wup-danger-link:hover { opacity: 1; }

/* Info-Liste */
.wup-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.wup-info-list li {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .83rem;
}
.wup-info-icon { font-size: .9rem; flex-shrink: 0; }
.wup-info-label {
    color: var(--color-text-muted);
    flex-shrink: 0;
    min-width: 90px;
}
.wup-info-val {
    color: var(--color-text);
    font-weight: 500;
    margin-left: auto;
    text-align: right;
    word-break: break-all;
}
.wup-info-link { color: var(--color-primary); text-decoration: none; }
.wup-info-link:hover { text-decoration: underline; }

/* Hauptbereich */
.wup-main { display: flex; flex-direction: column; gap: .875rem; }
.wup-main .wup-card { margin-bottom: 0; }
.wup-prose {
    font-size: .9rem;
    line-height: 1.85;
    color: var(--color-text);
    margin: 0;
}

/* Leere Galerie (eigenes Profil) */
.wup-empty-card {
    text-align: center;
    color: var(--color-text-muted);
    padding: 1.75rem;
}
.wup-empty-card p { margin: .4rem 0 .875rem; }

/* Galerie */
.wup-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    margin-top: .375rem;
}
.wup-gallery-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-bg);
}
.wup-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.wup-gallery-thumb:hover img { transform: scale(1.05); }

/* Termine */
.wup-subsection-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-muted);
    margin: 0 0 .35rem;
}
.wup-event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.wup-event-item { display: flex; align-items: center; gap: .5rem; font-size: .84rem; }
.wup-event-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wup-event-date { color: var(--color-text-muted); white-space: nowrap; }
.wup-event-title { color: var(--color-text); text-decoration: none; }
.wup-event-title:hover { color: var(--color-primary); }

/* Profil-Felder im Hauptbereich (Grid) */
.wup-fields-grid {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.wup-field-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: .5rem;
    padding: .35rem 0;
    border-bottom: 1px solid var(--color-border-subtle, rgba(0,0,0,.06));
}
.wup-field-item:last-child {
    border-bottom: none;
}
.wup-field-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-muted);
    font-weight: 600;
    flex: 0 0 140px;
    min-width: 0;
}
.wup-field-val {
    font-size: .875rem;
    color: var(--color-text);
    font-weight: 500;
    word-break: break-word;
    flex: 1;
}

/* Gästebuch */
.wup-gb-list { display: flex; flex-direction: column; gap: 1rem; margin-top: .625rem; }
.wup-gb-entry {
    display: flex;
    gap: .75rem;
}
.wup-gb-avatar-col { flex-shrink: 0; }
.wup-gb-body-col { flex: 1; min-width: 0; }
.wup-gb-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
    flex-wrap: wrap;
}
.wup-gb-author { font-weight: 600; font-size: .85rem; color: var(--color-text); text-decoration: none; }
.wup-gb-author:hover { color: var(--color-primary); }
.wup-gb-time { font-size: .75rem; color: var(--color-text-muted); }
.wup-gb-msg { font-size: .875rem; line-height: 1.65; color: var(--color-text); }
.wup-gb-more {
    text-align: center;
    margin-top: .5rem;
    font-size: .82rem;
    color: var(--color-text-muted);
}
.wup-gb-compose {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* Responsiv */
@media (max-width: 860px) {
    .wup-layout {
        grid-template-columns: 1fr;
    }
    .wup-sidebar {
        margin-top: -60px;
    }
    .wup-banner { height: 160px; }
    .wup-avatar { width: 96px; height: 96px; }
    .wup-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Alter .wu-profile-* Block (veraltet, noch gehalten für Rückwärtskompatibilität) */
.wu-profile-banner { display: none; }
.wu-profile-hero, .wu-profile-stats-bar,
.wu-profile-actions-bar, .wu-profile-content,
.wu-profile-sidebar { display: none; }


/* ── Avatare ───────────────────────────────────────────────── */
.wu-avatar-wrap { display: flex; justify-content: center; }

.wu-avatar,
.wu-avatar-placeholder {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wu-avatar-placeholder {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wu-avatar-xs, .wu-avatar-placeholder.wu-avatar-xs { width: 28px; height: 28px; font-size: .75rem; }
.wu-avatar-sm, .wu-avatar-placeholder.wu-avatar-sm { width: 40px; height: 40px; font-size: .9rem; }
.wu-avatar-lg, .wu-avatar-placeholder.wu-avatar-lg { width: 96px; height: 96px; font-size: 2rem; }

/* ── Badge ─────────────────────────────────────────────────── */
.wu-badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .02em;
}

/* ── Meta-Tabelle ──────────────────────────────────────────── */
.wu-meta-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wu-meta-table th,
.wu-meta-table td { padding: .5rem 0; border-bottom: 1px solid var(--color-border); text-align: left; }
.wu-meta-table th { width: 40%; font-weight: 500; color: var(--color-text-muted); }
.wu-meta-table tr:last-child th,
.wu-meta-table tr:last-child td { border-bottom: none; }

/* ── 404 ───────────────────────────────────────────────────── */
.wu-404-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: .5rem;
}

/* ── Utilities ─────────────────────────────────────────────── */
.wu-text-center  { text-align: center; }
.wu-text-muted   { color: var(--color-text-muted); }
.wu-mt-1         { margin-top: .25rem; }
.wu-mt-2         { margin-top: .5rem; }
.wu-mt-4         { margin-top: 1rem; }
.wu-hidden       { display: none !important; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .wu-hero h1         { font-size: 1.5rem; }
    .wu-form-row        { grid-template-columns: 1fr; }
    .wu-nav             { gap: 0; }
    .wu-narrow          { max-width: 100%; }
}

/* ============================================================
   Modul-Styles
   ============================================================ */

/* ── Captcha ───────────────────────────────────────────────── */
.wu-captcha { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.wu-captcha-img  { border: 1px solid var(--color-border); border-radius: var(--radius-sm); display: block; }
.wu-captcha-reload {
    background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    padding: .3rem .55rem; cursor: pointer; font-size: 1.1rem; color: var(--color-text-muted);
    transition: background .15s;
}
.wu-captcha-reload:hover { background: var(--color-bg); }
.wu-captcha-input { width: 120px !important; }

/* ── Pagination ────────────────────────────────────────────── */
.wu-pagination          { margin: 1.5rem 0; }
.wu-pagination ul       { display: flex; gap: .25rem; list-style: none; flex-wrap: wrap; padding: 0; }
.wu-page-link           {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 .5rem;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    color: var(--color-text); font-size: .875rem; text-decoration: none;
    transition: background .15s, border-color .15s;
}
.wu-page-link:hover     { background: var(--color-bg); border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.wu-page-active         { background: var(--color-primary); border-color: var(--color-primary); color: #fff !important; }
.wu-page-ellipsis       { display: inline-flex; align-items: center; padding: 0 .25rem; color: var(--color-text-muted); }

/* ── Admin Layout ──────────────────────────────────────────── */
a:hover    { text-decoration: underline; }
img        { max-width: 100%; height: auto; display: block; }
h1,h2,h3  { line-height: 1.25; }
p          { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout-Container ──────────────────────────────────────── */
.wu-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.wu-narrow { max-width: 480px; }

/* ── Header / Navigation ───────────────────────────────────── */
.wu-header {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 300;
    box-shadow: 0 1px 0 rgba(99,102,241,.18), var(--shadow-sm);
}

.wu-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1.5rem;
}

.wu-logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.wu-logo:hover { opacity: .85; text-decoration: none; }
.wu-logo-banner {
    max-height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
}
.wu-logo-tagline {
    font-size: .72rem;
    font-weight: 400;
    background: none;
    -webkit-text-fill-color: var(--color-text-muted);
    color: var(--color-text-muted);
    letter-spacing: .02em;
}

.wu-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
}

/* ── Dropdown-Container ──────────────────────────────────────── */
.wu-nav-dropdown {
    position: relative;
}
.wu-nav-has-dropdown {
    display: flex;
    align-items: center;
    gap: .3rem;
    cursor: pointer;
}
/* Dropdown-Trigger als Button (kein eigener Link) */
.wu-nav-btn {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: var(--radius-sm);
    padding: .375rem .75rem;
    margin: 0;
    font: inherit;
    color: var(--color-primary);
    letter-spacing: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.wu-nav-btn:hover {
    background: rgba(99,102,241,.16);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.wu-nav-arrow {
    font-size: .65rem;
    opacity: .85;
    transition: transform .2s;
    display: inline-block;
    color: var(--color-primary);
}
.wu-nav-dropdown:hover .wu-nav-arrow,
.wu-nav-dropdown.wu-dropdown-open .wu-nav-arrow {
    transform: rotate(180deg);
}

/* ── Dropdown-Panel ──────────────────────────────────────────── */
.wu-nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    min-width: 200px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 500;
    padding: .35rem 0;
    /* Kleines Dreieck oben */
    /* Verhindert Lücke zwischen Link und Menü */
}
.wu-nav-submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 16px;
    width: 10px;
    height: 10px;
    background: var(--color-card);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    transform: rotate(45deg);
}
/* Öffnen via Hover (Desktop) */
.wu-nav-dropdown:hover .wu-nav-submenu,
.wu-nav-dropdown:focus-within .wu-nav-submenu {
    display: block;
    animation: wuFadeIn .15s ease;
}
@keyframes wuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wu-nav-submenu-link {
    display: block;
    padding: .45rem 1rem;
    color: var(--color-text);
    font-size: .875rem;
    text-decoration: none;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.wu-nav-submenu-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
}

/* ── User-Bereich (rechts) ───────────────────────────────────── */
.wu-nav-user-area {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: .75rem;
    padding-left: .75rem;
    border-left: 1px solid var(--color-border);
}

/* ── Nav-Suchfeld ────────────────────────────────────────────── */
.wu-nav-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: .5rem;
}
.wu-nav-search-input {
    width: 0;
    min-width: 0;
    padding: .3rem .6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: .85rem;
    transition: width .25s ease, border-color .15s;
    outline: none;
}
.wu-nav-search-input:focus,
.wu-nav-search:focus-within .wu-nav-search-input {
    width: 180px;
    border-color: var(--color-primary);
}
.wu-nav-search-btn {
    padding: .3rem .6rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    transition: background .15s;
}
.wu-nav-search-btn:hover { background: var(--color-primary-dark, #4f46e5); }

.wu-nav-link {
    padding: .375rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}
.wu-nav-link:hover { background: var(--color-bg); color: var(--color-text); text-decoration: none; }

.wu-nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    font-weight: 500;
}
.wu-nav-cta:hover { background: var(--color-primary-dark); }

.wu-nav-admin {
    background: var(--color-error-bg);
    color: var(--color-error) !important;
    font-size: .8rem;
}
.wu-nav-admin:hover { background: rgba(248,113,113,.20); }

.wu-nav-user { display: flex; align-items: center; gap: .4rem; }

/* Logout-Formular als Nav-Button */
.wu-nav-logout-form { margin: 0; }
.wu-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    padding: .375rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.wu-nav-btn:hover { background: var(--color-bg); color: var(--color-text); }

/* ── Hamburger (Mobile) ──────────────────────────────────────── */
.wu-nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .45rem .55rem;
    cursor: pointer;
}
.wu-nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}
.wu-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wu-hamburger-open span:nth-child(2) { opacity: 0; }
.wu-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Radio-Buttons (Nav-Form) ────────────────────────────────── */
.wu-radio-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.wu-radio-btn input[type=radio] { display: none; }
.wu-radio-btn.active,
.wu-radio-btn:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

/* ── Main / Footer ─────────────────────────────────────────── */
.wu-main   { flex: 1; padding: 1.75rem 1.25rem 3rem; }

/* Einheitlicher Seitenkopf: Titel + optionaler Aktions-Button */
.wu-page-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.wu-page-header h1 { margin: 0; }

/* ── Schwebende Insel (Frontend-Content-Wrapper) ───────────── */
.wu-page-island {
    width: 100%;
    max-width: var(--max-width);
    margin: 2rem auto;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-top: 2px solid rgba(99,102,241,.25);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,.06), 0 20px 60px rgba(0,0,0,.35);
    padding: 2rem 0 2.5rem;
    overflow: hidden;
}

/* Sidebar-Layout innerhalb der Insel: kein eigenes max-width/padding nötig */
.wu-page-island .wu-page-columns {
    max-width: 100%;
    padding: 0 1rem;
}

/* Container innerhalb der Insel: Padding sorgt für Abstand */
.wu-page-island .wu-container {
    max-width: 100%;
}
.wu-footer {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.wu-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.wu-footer-col {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.wu-footer-brand {
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wu-footer-copy {
    font-size: .8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.wu-footer-links {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.wu-footer-links a {
    font-size: .85rem;
    color: var(--color-text-muted);
    transition: color .15s;
}
.wu-footer-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.wu-footer-powered {
    flex-direction: row;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--color-text-muted);
}

.wu-footer-cms {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: .9rem;
}

.wu-footer-bar {
    border-top: 1px solid var(--color-border);
    background: rgba(99,102,241,.04);
    padding: .6rem 1.5rem;
    font-size: .75rem;
    color: var(--color-text-muted);
    letter-spacing: .02em;
}

.wu-footer-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Sprach-Switcher ──────────────────────────────────────── */
.wu-lang-switcher {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.wu-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: .25rem;
    border: 1px solid transparent;
    text-decoration: none;
    opacity: .5;
    transition: opacity .15s, border-color .15s, background .15s;
    line-height: 0;
}

.wu-lang-flag:hover {
    opacity: 1;
    border-color: var(--color-border);
    background: rgba(255,255,255,.06);
}

.wu-lang-flag.is-active {
    opacity: 1;
    border-color: var(--color-primary);
    background: rgba(99,102,241,.12);
}

.wu-colorscheme-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .4rem;
    padding: 3px 10px;
    border-radius: .25rem;
    border: 1px solid var(--color-border);
    background: transparent;
    font-size: .8rem;
    color: inherit;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s, border-color .15s, background .15s;
}

.wu-colorscheme-btn:hover {
    opacity: 1;
    border-color: var(--color-primary);
    background: rgba(99,102,241,.12);
}


/* ── Discord ─────────────────────────────────────────────────────────── */
/* Button */
.wu-btn-discord {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
    font-weight: 600;
}
.wu-btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }

/* Hero-Banner auf der Frontpage */
.wu-dc-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}
.wu-dc-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    color: #5865F2;
}
.wu-dc-logo svg { width: 100%; height: 100%; }
.wu-dc-hero-info { flex: 1; min-width: 0; }
.wu-dc-server-name {
    margin: 0 0 .35rem;
    font-size: 1.6rem;
    color: var(--color-text);
}
.wu-dc-description { margin: 0 0 .75rem; color: var(--color-text-muted); }
.wu-dc-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    color: var(--color-text-muted);
}

/* Online-Dot */
.wu-dc-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #57f287;
    flex-shrink: 0;
}

/* Grid */
.wu-dc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Member list */
.wu-dc-member-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.wu-dc-member {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.wu-dc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.wu-dc-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5865F2;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}
.wu-dc-member-name { font-size: .9rem; }
.wu-dc-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
}
.wu-dc-status-online  { background: #57f287; }
.wu-dc-status-idle    { background: #fee75c; }
.wu-dc-status-dnd     { background: #ed4245; }
.wu-dc-status-offline { background: #747f8d; }

/* Channel list */
.wu-dc-channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.wu-dc-channel {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
}
.wu-dc-channel-icon { color: var(--color-text-muted); }
.wu-dc-channel-pos  { font-size: .75rem; color: var(--color-text-muted); margin-left: auto; }

/* Info table */
.wu-dc-info-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.wu-dc-info-table th, .wu-dc-info-table td {
    padding: .45rem .5rem;
    border-bottom: 1px solid var(--color-border-subtle);
    text-align: left;
    vertical-align: middle;
}
.wu-dc-info-table th { width: 40%; color: var(--color-text-muted); font-weight: 500; }
.wu-dc-info-table td code { font-size: .78rem; }

/* CTA box */
.wu-dc-cta {
    grid-column: 1 / -1;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.wu-dc-cta p { color: var(--color-text-muted); margin-bottom: 1.25rem; }

/* Cache hint */
.wu-dc-cache-hint {
    text-align: right;
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Widget */
.wu-w-discord { padding: .5rem .75rem; }
.wu-w-discord-info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.wu-w-discord-name { font-weight: 600; font-size: .92rem; }
.wu-w-discord-online {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    color: var(--color-text-muted);
}

/* ── TeamSpeak 3 ─────────────────────────────────────────────────────── */
.wu-btn-ts3 {
    background: #009587;
    color: #fff;
    border-color: #009587;
    font-weight: 600;
}
.wu-btn-ts3:hover { background: #007a6f; border-color: #007a6f; color: #fff; }

.wu-ts3-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}
.wu-ts3-logo {
    flex-shrink: 0;
    font-size: 3.5rem;
    line-height: 1;
}
.wu-ts3-hero-info { flex: 1; min-width: 0; }
.wu-ts3-server-name { margin: 0 0 .35rem; font-size: 1.6rem; color: var(--color-text); }
.wu-ts3-description { margin: 0 0 .75rem; color: var(--color-text-muted); }
.wu-ts3-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    color: var(--color-text-muted);
}
.wu-ts3-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #57f287;
    flex-shrink: 0;
}

/* Grid layout */
.wu-ts3-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
.wu-ts3-card-channels { grid-row: 1; grid-column: 1; }
.wu-ts3-sidebar        { grid-row: 1; grid-column: 2; }
.wu-ts3-cta            { grid-row: 2; grid-column: 1 / -1; text-align: center; }
@media (max-width: 700px) {
    .wu-ts3-grid { grid-template-columns: 1fr; }
    .wu-ts3-sidebar { grid-column: 1; }
}

/* Channel tree */
.wu-ts3-channels { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.wu-ts3-channel { border-bottom: 1px solid var(--color-border-subtle); }
.wu-ts3-channel-header {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .75rem;
    font-weight: 500;
}
.wu-ts3-channel-icon { color: var(--color-text-muted); font-size: .9rem; }
.wu-ts3-channel-name  { flex: 1; }
.wu-ts3-channel-count {
    font-size: .75rem;
    color: var(--color-text-muted);
    background: var(--color-border-subtle);
    padding: 1px 6px;
    border-radius: 9999px;
}
.wu-ts3-clients { list-style: none; margin: 0; padding: 0 0 .25rem; }
.wu-ts3-client {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .75rem .2rem 2rem;
    font-size: .82rem;
    color: var(--color-text-muted);
}
.wu-ts3-client-talking { color: #57f287 !important; }
.wu-ts3-client-name { flex: 1; }
.wu-ts3-all-clients { list-style: none; margin: 0; padding: 0; }
/* depth indentation */
.wu-ts3-channel-depth-1 .wu-ts3-channel-header { padding-left: 1.75rem; }
.wu-ts3-channel-depth-2 .wu-ts3-channel-header { padding-left: 3rem; }
.wu-ts3-channel-depth-3 .wu-ts3-channel-header { padding-left: 4.25rem; }
.wu-ts3-channel-depth-1 .wu-ts3-client { padding-left: 3rem; }
.wu-ts3-channel-depth-2 .wu-ts3-client { padding-left: 4.25rem; }
.wu-ts3-channel-depth-3 .wu-ts3-client { padding-left: 5.5rem; }

/* Info table */
.wu-ts3-info-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.wu-ts3-info-table th, .wu-ts3-info-table td {
    padding: .4rem .75rem;
    border-bottom: 1px solid var(--color-border-subtle);
    text-align: left;
    vertical-align: middle;
}
.wu-ts3-info-table th { width: 45%; color: var(--color-text-muted); font-weight: 500; }

/* CTA */
.wu-ts3-cta {
    grid-column: 1 / -1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}
.wu-ts3-cta p { color: var(--color-text-muted); }

/* Cache hint */
.wu-ts3-cache-hint {
    text-align: right;
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Widget */
.wu-w-ts3 { padding: .5rem .75rem; }
.wu-w-ts3-info { display: flex; flex-direction: column; gap: .2rem; }
.wu-w-ts3-name { font-weight: 600; font-size: .92rem; }
.wu-w-ts3-online {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    color: var(--color-text-muted);
}
/* Widget v2 – Channel/User tree */
.wu-w-ts3-header {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem;
    font-size: .88rem;
}
.wu-w-ts3-name   { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wu-w-ts3-count  { font-size: .75rem; color: var(--color-text-muted); white-space: nowrap; }
.wu-w-ts3-offline { font-size: .82rem; color: var(--color-text-muted); }

.wu-w-ts3-tree {
    list-style: none;
    margin: 0 0 .5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 280px;
    overflow-y: auto;
}
.wu-w-ts3-ch {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .18rem .25rem;
    border-radius: 3px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 1.3;
}
.wu-w-ts3-ch--active { color: var(--color-text); }
.wu-w-ts3-ch-icon { flex-shrink: 0; font-size: .75rem; opacity: .7; }
.wu-w-ts3-ch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wu-w-ts3-slots { font-size: .7rem; color: var(--color-text-muted); font-weight: 400; flex-shrink: 0; }

.wu-w-ts3-user {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem .25rem;
    border-radius: 3px;
    font-size: .78rem;
    color: var(--color-text);
    line-height: 1.3;
}
.wu-w-ts3-user-icon { flex-shrink: 0; font-size: .72rem; }
.wu-w-ts3-user-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wu-w-ts3-talking { animation: ts3-pulse .9s ease-in-out infinite alternate; }
.wu-w-ts3-talking-name { color: var(--color-primary); font-weight: 600; }
@keyframes ts3-pulse { from { opacity: .6; } to { opacity: 1; } }

/* ── PM-Center ─────────────────────────────────────────────────────────────── */
.wu-pm-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 640px) {
    .wu-pm-layout { grid-template-columns: 1fr; }
}

/* Sidebar */
.wu-pm-sidebar {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    position: sticky;
    top: 5rem;
}
.wu-pm-nav-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .75rem;
    border-radius: var(--radius);
    font-size: .9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background .15s;
}
.wu-pm-nav-link:hover { background: var(--color-border-subtle); }
.wu-pm-nav-link.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}
.wu-pm-compose-btn { margin-top: .5rem; text-align: center; }
.wu-pm-unread-badge { margin-left: auto; }

/* Main */
.wu-pm-title { margin: 0 0 1rem; font-size: 1.3rem; }

.wu-pm-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}
.wu-pm-empty p { margin: .5rem 0 0; font-size: .9rem; }

/* Message list */
.wu-pm-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.wu-pm-row {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
}
.wu-pm-row:hover { border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wu-pm-row--unread { border-left: 3px solid var(--color-primary); }

.wu-pm-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.wu-pm-avatar-sm { width: 22px; height: 22px; vertical-align: middle; margin-right: .3rem; }
.wu-pm-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}

.wu-pm-row-body { flex: 1; min-width: 0; }
.wu-pm-row-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-bottom: .2rem;
}
.wu-pm-row-from { font-weight: 600; color: var(--color-text); }
.wu-pm-row-date { margin-left: auto; white-space: nowrap; }
.wu-pm-row-subject {
    display: block;
    font-weight: 600;
    font-size: .92rem;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wu-pm-row-subject:hover { color: var(--color-primary); }
.wu-pm-row-preview {
    font-size: .78rem;
    color: var(--color-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wu-pm-row-actions {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex-shrink: 0;
}

/* Read view */
.wu-pm-read-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: .5rem;
    flex-wrap: wrap;
}
.wu-pm-read-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.wu-pm-read-card { padding: 1.5rem; }
.wu-pm-read-subject { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.wu-pm-read-meta-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .88rem; }
.wu-pm-read-meta-table th,
.wu-pm-read-meta-table td { padding: .35rem .5rem; border-bottom: 1px solid var(--color-border-subtle); text-align: left; }
.wu-pm-read-meta-table th { width: 6rem; color: var(--color-text-muted); font-weight: 500; }
.wu-pm-read-body {
    background: var(--color-input-bg);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: .93rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Compose form */
.wu-pm-compose-form { max-width: 640px; }
.wu-textarea { resize: vertical; min-height: 180px; }

/* Empfänger-Autocomplete */
.wu-autocomplete { position: relative; }
.wu-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    margin-top: .2rem;
    padding: .25rem 0;
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
}
.wu-autocomplete-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .75rem;
    cursor: pointer;
    font-size: .9rem;
}
.wu-autocomplete-item:hover,
.wu-autocomplete-item[aria-selected="true"] { background: var(--color-hover, rgba(255,255,255,.06)); }
.wu-autocomplete-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.wu-autocomplete-names { display: flex; flex-direction: column; line-height: 1.25; }
.wu-autocomplete-username { font-weight: 600; }
.wu-autocomplete-display  { font-size: .78rem; color: var(--color-text-muted); }

/* Reply quote */
.wu-pm-quote {
    background: var(--color-input-bg);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .85rem;
}
.wu-pm-quote-from { color: var(--color-text-muted); margin-bottom: .4rem; font-size: .78rem; }
.wu-pm-quote-body { color: var(--color-text-muted); }

/* Widget */
.wu-w-pm { padding: .5rem .75rem; }
.wu-w-pm-count {
    font-size: .85rem;
    color: var(--color-text-muted);
    padding: .4rem 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.wu-w-pm-count--unread { color: var(--color-text); font-weight: 600; }
.wu-w-pm-links { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.wu-w-pm-link { text-align: center; }


.wu-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    align-items: center;
    justify-content: center;
}
.wu-footer-links a {
    font-size: .82rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: .2rem .55rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
}
.wu-footer-links a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(99,102,241,.06);
}


/* ── Cards ─────────────────────────────────────────────────── */
.wu-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(99,102,241,.2);
}
/* Karten innerhalb der Island etwas heller für Tiefenwirkung */
.wu-page-island .wu-card {
    background: var(--color-surface);
}
.wu-card-sm    { padding: 1.25rem; }
.wu-card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.25rem; }

.wu-card-footer-text {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: .9rem;
}

/* ── Hero ──────────────────────────────────────────────────── */
.wu-hero {
    padding: 3rem 1.25rem 2.5rem;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.15) 0%, transparent 70%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* Hero innerhalb der Island: obere border-radius entfernen da Island das übernimmt */
.wu-page-island .wu-hero {
    border-radius: 0;
    padding-top: 2.5rem;
}
.wu-hero h1     { font-size: 2.25rem; font-weight: 700; margin-bottom: .75rem; letter-spacing: -.02em; }
.wu-hero-sub    { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.wu-hero-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────── */
.wu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem 1.375rem;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}
.wu-btn:hover { text-decoration: none; }

.wu-btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 16px rgba(129,140,248,.3);
}
.wu-btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 0 20px rgba(129,140,248,.45); }

.wu-btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}
.wu-btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.wu-btn-danger  { background: var(--color-error); color: #fff; }
.wu-btn-danger:hover { background: #dc2626; }

.wu-btn-sm  { padding: .4rem .9rem; font-size: .875rem; }
.wu-btn-xs  { padding: .25rem .6rem; font-size: .8rem; }

/* ── Formulare ─────────────────────────────────────────────── */
.wu-form-group  { margin-bottom: 1.1rem; }
.wu-form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.wu-form-group label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: .375rem;
    color: var(--color-text);
}

.wu-form-group input,
.wu-form-group textarea,
.wu-form-group select {
    width: 100%;
    padding: .6rem .875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: .95rem;
    background: var(--color-card);
    color: var(--color-text);
    transition: border-color .15s, box-shadow .15s;
}

.wu-form-group input:focus,
.wu-form-group textarea:focus,
.wu-form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(129,140,248,.2);
}

.wu-form-hint {
    display: block;
    margin-top: .3rem;
    font-size: .8rem;
    color: var(--color-text-muted);
}

.wu-form-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.wu-required { color: var(--color-error); }

/* ── Alerts ────────────────────────────────────────────────── */
.wu-alert {
    padding: .875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: .9rem;
    border-left: 4px solid;
}
.wu-alert p           { margin-bottom: .25rem; }
.wu-alert p:last-child { margin-bottom: 0; }

.wu-alert-success {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    color: var(--color-success);
}
.wu-alert-error {
    background: var(--color-error-bg);
    border-color: var(--color-error);
    color: var(--color-error);
}
.wu-alert-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning);
    color: var(--color-warning);
}



/* ═══════════════════════════════════════════════════════════════
   NOVA PEP — Glow, Float & Shine Effects
   ══════════════════════════════════════════════════════════════ */

/* ── Glow-Variablen ── */
:root {
    --glow-primary:   rgba(59,130,246,.40);
    --glow-secondary: rgba(139,92,246,.30);
    --glow-strong:    rgba(59,130,246,.70);
}

/* ── Keyframes ── */
@keyframes nova-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}
@keyframes nova-glow-pulse {
    0%, 100% { box-shadow: 0 0 12px var(--glow-primary), 0 0 28px rgba(59,130,246,.15); }
    50%       { box-shadow: 0 0 24px var(--glow-strong),  0 0 48px rgba(59,130,246,.30); }
}
@keyframes nova-shimmer {
    0%   { left: -120%; }
    100% { left: 140%; }
}
@keyframes nova-border-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Header: animierter Regenbogen-Glow-Streifen unten ── */
.nova-header {
    overflow: visible;
}
.nova-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary) 20%,
        var(--secondary) 50%,
        var(--primary) 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: nova-border-flow 4s ease infinite;
    opacity: .75;
    pointer-events: none;
}

/* ── Logo: Glow + sanftes Float ── */
.nova-logo {
    transition: text-shadow .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nova-logo:hover {
    text-shadow: 0 0 14px var(--glow-primary), 0 0 32px rgba(59,130,246,.25);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none !important;
}

/* ── Nav-Links: Glow-Hintergrund ── */
.nova-nav a {
    position: relative;
}
.nova-nav a:hover,
.nova-nav a.active {
    background: rgba(59,130,246,.12);
    color: var(--primary);
    box-shadow: 0 0 14px rgba(59,130,246,.22), inset 0 0 8px rgba(59,130,246,.07);
    text-decoration: none;
}

/* ── Login-Button: Glow ── */
.nova-btn-login {
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .2s;
}
.nova-btn-login:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 18px var(--glow-primary), 0 4px 14px rgba(59,130,246,.3);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none !important;
}

/* ── Primary Buttons: Shimmer + Float + Glow ── */
.nova-btn-primary,
.wu-btn-primary,
.btn-primary,
button[type="submit"].wu-btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .2s;
}
.nova-btn-primary::before,
.wu-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}
.nova-btn-primary:hover::before,
.wu-btn-primary:hover::before {
    animation: nova-shimmer .55s ease forwards;
}
.nova-btn-primary:hover,
.wu-btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px var(--glow-primary), 0 6px 18px rgba(59,130,246,.28);
    text-decoration: none !important;
}
.nova-btn-primary:active,
.wu-btn-primary:active {
    transform: translateY(0) scale(.97);
    box-shadow: 0 0 8px var(--glow-primary);
}

/* ── Nova Cards: Float + Glow-Schatten ── */
.nova-card {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.nova-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(59,130,246,.18), 0 2px 8px rgba(0,0,0,.07), 0 0 0 1px rgba(59,130,246,.12);
}

/* ── wu-entry-card / Content-Cards: Float + Glow ── */
.wu-entry-card,
.wu-news-card {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.wu-entry-card:hover,
.wu-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59,130,246,.18), 0 2px 6px rgba(0,0,0,.06);
}

/* ── Admin Stat-Kacheln: Float + Glow ── */
.wu-admin-stat {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-top-color .2s;
}
.wu-admin-stat:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 40px rgba(59,130,246,.22), 0 3px 10px rgba(0,0,0,.07);
    border-top-color: var(--primary);
}

/* ── Admin Quick-Links: Float + Glow ── */
.wu-admin-quicklink {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.wu-admin-quicklink:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(59,130,246,.2), 0 2px 6px rgba(0,0,0,.06);
    text-decoration: none !important;
}

/* ── Galerie-Karten: Float + Glow ── */
.wu-gallery-cat-card {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .2s;
}
.wu-gallery-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 34px rgba(59,130,246,.22);
    border-color: var(--primary);
    text-decoration: none !important;
}

/* ── Widgets: sanfter Float ── */
.nova-widget {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.nova-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(59,130,246,.14), 0 1px 4px rgba(0,0,0,.05);
}

/* ── User-Avatar: Glow-Ring ── */
.nova-user-avatar {
    transition: box-shadow .3s ease, transform .3s ease;
}
.nova-user-avatar:hover {
    box-shadow: 0 0 0 3px var(--primary), 0 0 16px var(--glow-primary);
    transform: scale(1.1);
}

/* ── Profilbild auf Profilseite: Glow + Float ── */
.wup-avatar img {
    transition: box-shadow .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.wup-avatar img:hover {
    box-shadow: 0 0 0 4px var(--primary), 0 0 28px var(--glow-primary), 0 8px 20px rgba(0,0,0,.15);
    transform: translateY(-4px) scale(1.03);
}

/* ── wu-page-island: subtiles Ambient-Glow ── */
.wu-page-island {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,.06), 0 0 60px rgba(59,130,246,.06);
}

/* ── Form-Inputs: Glow beim Fokus ── */
input:focus,
textarea:focus,
select:focus,
.nova-form-input:focus,
.nova-form-textarea:focus,
.nova-form-select:focus,
.wu-form-input:focus,
.wu-form-textarea:focus,
.wu-form-select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.18), 0 0 14px rgba(59,130,246,.12) !important;
}

/* ── Forum-Threads: sanfter Glow-Hover ── */
.wu-thread-item:hover {
    background: rgba(59,130,246,.04);
    box-shadow: inset 4px 0 0 var(--primary), 0 2px 10px rgba(59,130,246,.1);
}

/* ── Stylischer Scrollbar ── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--secondary));
    box-shadow: 0 0 6px var(--glow-primary);
}

/* ── Body: ganz subtiles Hintergrund-Glow oben ── */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 400px;
    background: radial-gradient(ellipse at center,
        rgba(59,130,246,.07) 0%,
        rgba(139,92,246,.04) 50%,
        transparent 70%);
    pointer-events: none;
    z-index: -1;
}


/* ═══════════════════════════════════════════════════════════════
   NOVA DARK MODE  —  [data-theme="dark"]
   ══════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
    --primary:          #818cf8;
    --primary-dark:     #6366f1;
    --primary-light:    #a5b4fc;
    --secondary:        #a78bfa;
    --accent:           #fbbf24;
    --success:          #34d399;
    --warning:          #fbbf24;
    --error:            #f87171;
    --info:             #60a5fa;

    /* Grautöne invertiert */
    --gray-50:   #1a1f2e;
    --gray-100:  #1e2535;
    --gray-200:  #252d3d;
    --gray-300:  #2d3748;
    --gray-400:  #4a5568;
    --gray-500:  #718096;
    --gray-600:  #a0aec0;
    --gray-700:  #cbd5e0;
    --gray-800:  #e2e8f0;
    --gray-900:  #f7fafc;

    /* Semantische Farben */
    --bg-body:    #0f1117;
    --bg-alt:     #1a1f2e;
    --bg-card:    #161b2e;
    --text-primary:   #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted:     #718096;
    --border-color:   #2d3748;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
    --shadow:    0 2px 6px rgba(0,0,0,.6);
    --shadow-md: 0 4px 12px rgba(0,0,0,.7);
    --shadow-lg: 0 10px 24px rgba(0,0,0,.8);

    /* Glow-Variablen für Dark Mode */
    --glow-primary:   rgba(129,140,248,.45);
    --glow-secondary: rgba(167,139,250,.30);
    --glow-strong:    rgba(129,140,248,.75);
}

/* Header im Dark Mode leicht dunkler */
[data-theme="dark"] .nova-header {
    background: #0d1117;
    border-bottom-color: #252d3d;
}

/* Cards */
[data-theme="dark"] .nova-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Footer */
[data-theme="dark"] .nova-footer {
    background: #0d1117;
}

/* wu-page-island im Dark Mode */
[data-theme="dark"] .wu-page-island {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Admin */
[data-theme="dark"] .wu-admin-sidebar {
    background: var(--bg-card);
    border-color: var(--border-color);
}
[data-theme="dark"] .wu-admin-stat {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Inputs */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-alt);
    color: var(--text-primary);
    border-color: var(--border-color);
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(129,140,248,.2), 0 0 14px rgba(129,140,248,.1) !important;
}

/* ── Dark-Mode Toggle Button ── */
.nova-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}

.nova-darkmode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background .2s ease, box-shadow .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
}
.nova-darkmode-toggle:hover {
    background: rgba(255,255,255,.15);
    box-shadow: 0 0 14px var(--glow-primary);
    transform: scale(1.12) rotate(15deg);
}
.nova-darkmode-toggle:active {
    transform: scale(.93);
}
