/* ============================================
   FoxiRadio V1 - Internet-Radio Design
   Studio-Look: On-Air-Rot + Magenta, dunkel als Standard
   Radio-Bausteine (Player, Sendeplan, Charts …) am Dateiende
   + Backend-Styles
   + Helpdesk-Fix (alle Geräte)
   + Ads-Styles
   + Widgets automatisch auf ALLEN Endgeräten
   ============================================ */

:root {
    /* Studio-Farben: On-Air-Rot, Magenta, VU-Bernstein */
    --primary: #ff2d55;
    --primary-dark: #d90f3c;
    --primary-light: #ff6b88;
    --secondary: #b5179e;
    --accent: #ffb020;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    /* RGB-Werte für transparente Varianten – werden vom Style-Wechsler (themes.php) gesetzt */
    --primary-rgb: 255, 45, 85;
    --secondary-rgb: 181, 23, 158;
    --accent-rgb: 255, 176, 32;

    --bg-gradient-start: #1d1036;
    --bg-gradient-end: #0b0a12;
    --card-bg: #ffffff;
    --text-primary: #14121f;
    --text-secondary: #3b3850;
    --text-muted: #6f6b85;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --border-color: #e6e4ef;
    --input-bg: #ffffff;
    --input-border: #dcd9ea;
    --table-bg: #ffffff;
    --table-header-bg: #f6f5fb;
    --table-border: #e6e4ef;
    --table-hover-bg: #f6f5fb;
    --shadow-color: rgba(10, 8, 20, 0.12);
    --shadow-color-hover: rgba(var(--primary-rgb), 0.22);
    --stats-card-bg: #ffffff;
    --progress-bg: #e6e4ef;
    --news-category-bg: #ff2d55;
    --news-card-bg: #ffffff;
    --news-meta-bg: #f6f5fb;
    --news-border: #e6e4ef;

    /* Bühne (Player, Leiste) – in beiden Designs dunkel */
    --stage-bg: #0d0b16;
    --stage-panel: #16132280;
    --stage-line: rgba(255, 255, 255, 0.1);
    --stage-text: #f5f4fa;
    --stage-muted: #a7a3c2;
    --font-display: 'Outfit', 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --radio-bar-height: 76px;

    --body-max-width: clamp(320px, 88vw, 1400px);
    --widgets-col-width: clamp(200px, 22vw, 320px);
    --widgets-col-gap: clamp(8px, 1.5vw, 24px);
}

[data-theme="dark"] {
    --bg-gradient-start: #160d2a;
    --bg-gradient-end: #06050a;
    --card-bg: #12101c;
    --text-primary: #f5f4fa;
    --text-secondary: #d6d3e4;
    --text-muted: #9a96b3;
    --nav-bg: rgba(12, 10, 20, 0.92);
    --border-color: #262238;
    --input-bg: #1b182a;
    --input-border: #332e4a;
    --table-bg: #12101c;
    --table-header-bg: #1b182a;
    --table-border: #2b2740;
    --table-hover-bg: #1b182a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-color-hover: rgba(var(--primary-rgb), 0.28);
    --stats-card-bg: #171425;
    --progress-bg: #262238;
    --news-category-bg: #d90f3c;
    --news-card-bg: #171425;
    --news-meta-bg: #1b182a;
    --news-border: #2b2740;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    padding-top: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 12% 18%, rgba(var(--primary-rgb), 0.20) 0%, transparent 38%),
        radial-gradient(circle at 88% 78%, rgba(var(--secondary-rgb), 0.18) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

body.backend-body { padding-top: 0; }

body.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 50px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 70px var(--shadow-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.main-container {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 25px 70px var(--shadow-color);
    overflow: hidden;
    margin: 20px 0 30px 0;
    width: 100%;
    max-width: var(--body-max-width);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.main-container:hover {
    box-shadow: 0 30px 80px var(--shadow-color-hover);
}

.backend-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.navbar-main {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px var(--shadow-color);
    padding: 12px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    border-bottom: 2px solid rgba(220, 38, 38, 0.15);
    transition: all 0.3s ease;
}

body.backend-body .navbar-main {
    position: relative;
    top: auto;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px 0;
    position: relative;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.navbar-brand i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
}

.nav-link {
    font-weight: 600;
    padding: 12px 20px !important;
    border-radius: 10px;
    margin: 0 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary) !important;
    position: relative;
    font-size: 0.95rem;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-link:hover::before { width: 200px; height: 200px; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 70%; }

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(220, 38, 38, 0.08);
}

.nav-icon {
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

.dark-mode-toggle {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: 15px;
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.dark-mode-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    border-color: var(--primary);
    color: white;
}

.dark-mode-toggle:hover::before { width: 100px; height: 100px; }

.hero-section {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.97), rgba(220, 38, 38, 0.95));
    color: white;
    padding: 90px 0;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
    margin-bottom: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.08" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5%); }
    100% { transform: translateX(0); }
}

.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    font-weight: 900;
    letter-spacing: -1px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .glass-effect {
    background: rgba(28, 25, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 10px 35px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px var(--shadow-color-hover);
    border-color: var(--primary);
}

.feature-card:hover::before { transform: translateX(0); }

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.feature-card:hover::after { transform: scale(2); opacity: 0; }

.feature-card-highlight {
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.feature-icon {
    width: 90px; height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.4);
}

.stats-card {
    background: var(--stats-card-bg);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 35px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-color-hover);
    border-color: var(--primary);
}

.stats-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: countUp 2s ease-out;
}

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

.stats-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
}

.calculator-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 50px var(--shadow-color);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.calculator-card:hover::before {
    opacity: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-foxi {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-foxi::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-foxi:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.5);
    color: white;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.btn-foxi:hover::before { width: 300px; height: 300px; }

.btn-foxi:active { transform: translateY(-2px) scale(1.02); }

.form-control, .form-select {
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-label {
    color: var(--text-primary);
}

.form-check-label {
    color: var(--text-primary);
}

.input-group-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 14px 20px;
}

.progress {
    height: 15px;
    border-radius: 10px;
    background-color: var(--progress-bg);
    overflow: hidden;
    box-shadow: inset 0 1px 3px var(--shadow-color);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer { 100% { transform: translateX(100%); } }

.table-custom {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--table-border);
    background: var(--table-bg);
    color: var(--text-primary);
}

.table-custom thead th {
    background: var(--table-header-bg);
    border-bottom: 2px solid var(--table-border);
    padding: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.table-custom tbody td {
    padding: 18px;
    border-bottom: 1px solid var(--table-border);
    vertical-align: middle;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.table-custom tbody tr:last-child td { border-bottom: none; }
.table-custom tbody tr { transition: all 0.3s ease; }

.table-custom tbody tr:hover {
    background: var(--table-hover-bg);
    transform: scale(1.01);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.table {
    color: var(--text-primary);
}

.table thead th {
    color: var(--text-primary);
    border-color: var(--table-border);
    background: var(--table-header-bg);
}

.table td {
    color: var(--text-primary);
    border-color: var(--table-border);
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--table-hover-bg);
    color: var(--text-primary);
}

.cookie-consent {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    animation: slideIn 0.5s ease-out;
}

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

.cookie-content {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
    color: var(--text-primary);
}

.cookie-icon {
    font-size: 3rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cookie-text { flex: 1; }
.cookie-text h5 { margin-bottom: 5px; color: var(--text-primary); }
.cookie-text p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.announcement-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.35);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.announcement-icon {
    font-size: 2.5rem;
    animation: ring 2s infinite;
}

@keyframes ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50%, 100% { transform: rotate(0); }
}

.announcement-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-close-white {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close-white:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.announcement-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.announcement-item-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px var(--shadow-color-hover);
}

.news-card {
    background: var(--news-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-color);
    border: 1px solid var(--news-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color-hover);
    border-color: var(--primary);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--news-card-bg), transparent);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-category {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.news-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.news-excerpt {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.news-list-item {
    background: var(--news-card-bg);
    border: 1px solid var(--news-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-list-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow-color-hover);
}

.news-list-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .news-list-image {
        margin-right: 0;
        margin-bottom: 15px;
        height: 120px;
    }
}

.news-list-meta { margin-bottom: 10px; }

.news-list-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.news-list-title a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.news-list-title a:hover {
    color: var(--primary);
    text-decoration: underline !important;
}

.news-list-excerpt {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-detail-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.news-detail-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.news-detail-meta {
    background: var(--news-meta-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--news-border);
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .news-detail-title { font-size: 1.8rem; }
    .news-detail-image { height: 250px; }
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.news-detail-content p { margin-bottom: 25px; }

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.news-category-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 10px;
    background: var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category-badge:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.35);
}

.news-category-badge.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.empty-state {
    text-align: center;
    padding: 80px 30px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: 20px;
    border: 3px dashed var(--border-color);
    transition: all 0.3s ease;
}

.empty-state:hover {
    border-color: var(--primary);
    background: rgba(220, 38, 38, 0.03);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.empty-state:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary);
    opacity: 1;
}

.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.45);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.floating-widget:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.65);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-color: rgba(255, 255, 255, 0.4);
}

.badge-foxi {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.25);
    transition: all 0.3s ease;
}

.badge-foxi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
}

.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    border-radius: 2px;
    animation: widthPulse 3s infinite;
}

@keyframes widthPulse {
    0%, 100% { width: 80px; }
    50% { width: 130px; }
}

.comment-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
}

.comment-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-primary);
}

.comment-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px var(--shadow-color-hover);
    transform: translateX(3px);
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.comment-author {
    color: var(--text-primary);
    font-size: 1rem;
    display: block;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 58px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

@media (max-width: 576px) {
    .comment-text { padding-left: 0; }
    .comment-avatar { width: 38px; height: 38px; font-size: 1rem; }
}

.nav-pills .nav-link {
    color: var(--text-primary) !important;
    border-radius: 10px;
    margin: 3px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: transparent;
}

.nav-pills .nav-link:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--primary) !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.35);
}

.tooltip-custom {
    position: fixed;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px var(--shadow-color);
    z-index: 9999;
    pointer-events: none;
    border: 1px solid var(--border-color);
    animation: fadeInTooltip 0.2s ease;
}

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

.online-stats-card {
    position: relative;
    border: 2px solid var(--success);
}

.online-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    margin-left: 6px;
    animation: onlinePulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes onlinePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.online-icon-pulse {
    animation: iconPulse 2s infinite;
    color: var(--success) !important;
    -webkit-text-fill-color: var(--success) !important;
}

@keyframes iconPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.share-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.share-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

.share-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-title i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    pointer-events: none;
}

.share-btn:hover::before { width: 300px; height: 300px; }

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.share-btn:active { transform: translateY(-1px); }
.share-btn > i { font-size: 1.05rem; flex-shrink: 0; }
.share-btn > span { display: inline-block; }

.share-btn-x { background: linear-gradient(135deg, #000000, #1a1a1a); }
.share-btn-x:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.share-btn-facebook { background: linear-gradient(135deg, #1877f2, #0c5dc7); }
.share-btn-facebook:hover { box-shadow: 0 12px 30px rgba(24, 119, 242, 0.4); }
.share-btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.share-btn-whatsapp:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }
.share-btn-telegram { background: linear-gradient(135deg, #0088cc, #006699); }
.share-btn-telegram:hover { box-shadow: 0 12px 30px rgba(0, 136, 204, 0.4); }
.share-btn-linkedin { background: linear-gradient(135deg, #0a66c2, #004182); }
.share-btn-linkedin:hover { box-shadow: 0 12px 30px rgba(10, 102, 194, 0.4); }
.share-btn-email { background: linear-gradient(135deg, #ea4335, #c5221f); }
.share-btn-email:hover { box-shadow: 0 12px 30px rgba(234, 67, 53, 0.4); }
.share-btn-copy { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.share-btn-copy:hover { box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4); }
.share-btn-native { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.share-btn-native:hover { box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4); }
.share-btn.copied { background: linear-gradient(135deg, #10b981, #059669) !important; }

.icon-picker-wrapper { position: relative; }

.icon-picker-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.icon-picker-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.icon-picker-toggle .icon-preview {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 8px;
    font-size: 1rem;
}

.icon-picker-toggle .icon-name {
    flex: 1;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.icon-picker-toggle .chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.icon-picker-toggle.open .chevron { transform: rotate(180deg); }

.icon-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px var(--shadow-color);
    z-index: 1050;
    max-height: 420px;
    overflow: hidden;
    animation: slideDown 0.25s ease;
}

.icon-picker-dropdown.open {
    display: flex;
    flex-direction: column;
}

.icon-picker-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.icon-picker-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
}

.icon-picker-search input:focus { border-color: var(--primary); }

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.icon-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: var(--text-primary);
    font-size: 1.3rem;
    position: relative;
}

.icon-picker-item span {
    font-size: 0.55rem;
    margin-top: 4px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-family: monospace;
}

.icon-picker-item:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: var(--primary);
    transform: scale(1.1);
}

.icon-picker-item.selected {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.35);
}

.icon-picker-item.selected span { color: rgba(255,255,255,0.8); }

.icon-picker-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--card-bg);
}

.icon-picker-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
}

.stat-dashboard-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.stat-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px var(--shadow-color-hover);
    border-color: var(--primary);
}

.stat-dashboard-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.stat-dashboard-value {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-dashboard-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-dashboard-sub {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.custom-page-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.footer-custom {
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    color: var(--text-primary);
}

.footer-custom.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-custom.solid {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.footer-custom.gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.footer-custom.gradient a { color: white; }

.ad-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-box-popup {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    border: 2px solid var(--primary);
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--text-primary);
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ad-popup-overlay .ad-close,
.ad-sticky-bottom .ad-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.ad-popup-overlay .ad-close:hover,
.ad-sticky-bottom .ad-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.ad-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.ad-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ad-content {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.ad-image {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
    object-fit: cover;
}

.ad-cta {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(220,38,38,0.35);
}

.ad-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220,38,38,0.5);
    color: white !important;
}

.ad-box-inline {
    background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(249,115,22,0.05));
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    color: var(--text-primary);
}

.ad-box-inline .ad-title { font-size: 1.3rem; }

.ad-box-topbanner,
.ad-box-bottombanner,
.ad-box-belowheader,
.ad-box-abovefooter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 20px;
}

.ad-box-topbanner .ad-inner,
.ad-box-bottombanner .ad-inner,
.ad-box-belowheader .ad-inner,
.ad-box-abovefooter .ad-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ad-box-topbanner .ad-title,
.ad-box-bottombanner .ad-title,
.ad-box-belowheader .ad-title,
.ad-box-abovefooter .ad-title {
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.ad-box-topbanner .ad-content,
.ad-box-bottombanner .ad-content,
.ad-box-belowheader .ad-content,
.ad-box-abovefooter .ad-content {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.ad-box-topbanner .ad-label,
.ad-box-bottombanner .ad-label,
.ad-box-belowheader .ad-label,
.ad-box-abovefooter .ad-label {
    color: rgba(255,255,255,0.7) !important;
    margin-bottom: 0;
}

.ad-box-topbanner .ad-cta,
.ad-box-bottombanner .ad-cta,
.ad-box-belowheader .ad-cta,
.ad-box-abovefooter .ad-cta {
    background: white;
    color: var(--primary) !important;
    padding: 8px 20px;
    font-size: 0.85rem;
}

.ad-box-sidebar {
    background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(249,115,22,0.05));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.ad-box-sidebar .ad-title { font-size: 1.2rem; }
.ad-box-sidebar .ad-content { font-size: 0.9rem; }
.ad-box-sidebar .ad-image img { max-height: 200px; }

.ad-box-homepagemiddle {
    background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(249,115,22,0.08));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    color: var(--text-primary);
}

.ad-box-newsdetail {
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(217,119,6,0.05));
    border: 2px dashed var(--accent);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
    color: var(--text-primary);
}

.ad-sticky-bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9997;
    background: var(--card-bg);
    border-top: 3px solid var(--primary);
    padding: 15px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    animation: slideUpSticky 0.4s ease;
}

@keyframes slideUpSticky {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.ad-sticky-bottom .ad-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.ad-sticky-bottom .ad-title {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.ad-sticky-bottom .ad-content {
    font-size: 0.9rem;
    margin-bottom: 0;
    flex: 1;
}

.ad-sticky-bottom .ad-label { margin-bottom: 0; }

.ad-sticky-bottom .ad-close {
    position: absolute;
    top: 50%; right: 15px;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    font-size: 0.9rem;
}

body.has-sticky-ad { padding-bottom: 100px; }

/* ============================================
   LAYOUT MIT WIDGETS – AUTOMATISCHE ANPASSUNG
   AUF ALLEN ENDGERÄTEN
   ============================================ */

.page-with-left-widgets {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 0 clamp(8px, 2vw, 20px);
    gap: clamp(8px, 1.5vw, 24px);
    box-sizing: border-box;
}

.page-with-left-widgets .main-body-container {
    width: 100%;
    max-width: var(--body-max-width);
    min-width: 0;
    margin: 0 auto;
    flex: 1 1 auto;
}

.left-widgets-column {
    display: none;
    flex: 0 0 var(--widgets-col-width);
    width: var(--widgets-col-width);
    min-width: 0;
    pointer-events: none;
    z-index: 5;
}

.left-widgets-column .left-widgets-inner {
    pointer-events: auto;
    width: 100%;
}

@media (min-width: 1280px) {
    .left-widgets-column {
        display: block;
    }
    .ad-zone-sidebar-mobile {
        display: none !important;
    }
}

@media (max-width: 1279px) {
    .page-with-left-widgets {
        flex-direction: column;
        align-items: stretch;
    }
    .left-widgets-column {
        display: none;
    }
    .ad-zone-sidebar-mobile {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .page-with-left-widgets {
        padding: 0 8px;
        gap: 0;
    }
    .page-with-left-widgets .main-body-container {
        max-width: 100%;
    }
    .ad-zone-sidebar-mobile {
        display: block;
    }
}

/* ============================================
   HELPDESK
   ============================================ */
.helpdesk-fab {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(16,185,129,0.4);
    z-index: 10100;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

.helpdesk-fab:hover {
    transform: scale(1.12) rotate(-8deg);
    box-shadow: 0 16px 45px rgba(16,185,129,0.6);
}

.helpdesk-fab:active { transform: scale(0.95); }

.helpdesk-fab-offline {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 12px 35px rgba(239,68,68,0.4);
}
.helpdesk-fab-offline:hover {
    box-shadow: 0 16px 45px rgba(239,68,68,0.6);
}
.helpdesk-offline-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #dc2626;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ef4444;
}

.hd-status-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}
.hd-status-online { color: #d1fae5; }
.hd-status-offline { color: #fecaca; }
.hd-status-online i, .hd-status-offline i { font-size: 0.6rem; }

.helpdesk-panel-offline .helpdesk-header {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.helpdesk-offline-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 25px;
    background: var(--table-header-bg);
    color: var(--text-primary);
}
.helpdesk-offline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(239,68,68,0.35);
}
.helpdesk-offline-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.helpdesk-offline-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 8px;
    max-width: 300px;
}

.helpdesk-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
    pointer-events: none;
}

.helpdesk-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 60px);
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    z-index: 10200;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--primary);
    color: var(--text-primary);
}

.helpdesk-panel.open {
    display: flex;
    animation: slideUp 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.helpdesk-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.helpdesk-header .hd-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.helpdesk-header .hd-title { flex: 1; }
.helpdesk-header .hd-title strong { display: block; font-size: 1.05rem; }
.helpdesk-header .hd-title small { opacity: 0.85; font-size: 0.78rem; }

.helpdesk-header .hd-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.helpdesk-header .hd-close:hover {
    background: rgba(255,255,255,0.35);
    transform: rotate(90deg);
}

.helpdesk-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: var(--table-header-bg);
    -webkit-overflow-scrolling: touch;
}

.helpdesk-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hd-msg {
    max-width: 82%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.hd-msg.visitor {
    align-self: flex-end;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-bottom-right-radius: 4px;
}

.hd-msg.admin {
    align-self: flex-start;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.hd-msg-time {
    font-size: 0.68rem;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.helpdesk-form {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    flex-shrink: 0;
}

.helpdesk-form textarea {
    resize: none;
    border-radius: 12px;
    font-size: 16px;
}

.helpdesk-form .form-control { padding: 10px 14px; }
.helpdesk-form .btn { border-radius: 12px; }

.hd-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.hd-status-open { background: #fef3c7; color: #92400e; }
.hd-status-answered { background: #d1fae5; color: #065f46; }
.hd-status-closed { background: #e5e7eb; color: #374151; }

.helpdesk-intro {
    text-align: center;
    padding: 10px 5px;
}

.helpdesk-intro i {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 10px;
}

.helpdesk-intro p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.helpdesk-intro h6 { color: var(--text-primary); }

.helpdesk-disabled-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 12px;
    padding: 15px;
    color: var(--danger);
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .helpdesk-fab {
        bottom: 90px;
        right: 15px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        z-index: 10100;
    }
    .helpdesk-panel {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        z-index: 10200;
    }
    .helpdesk-header {
        padding: 15px;
        padding-top: max(15px, env(safe-area-inset-top));
        flex-shrink: 0;
    }
    .helpdesk-header .hd-close {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .helpdesk-body {
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }
    .helpdesk-form {
        padding: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    .helpdesk-form textarea { font-size: 16px !important; }
    .helpdesk-form .btn {
        min-width: 48px;
        min-height: 48px;
    }
    .hd-msg {
        max-width: 88%;
        font-size: 0.92rem;
    }
    .helpdesk-offline-body { padding: 25px 20px; }
}

@media (max-width: 380px) {
    .helpdesk-panel {
        width: 100vw;
        height: 100dvh;
    }
    .hd-msg { max-width: 95%; }
}

@media (max-width: 768px) {
    .ad-sticky-bottom { padding: 10px 45px 10px 15px; }
    .ad-sticky-bottom .ad-title { font-size: 0.95rem; }
    .ad-sticky-bottom .ad-content { font-size: 0.8rem; }
    .ad-sticky-bottom .ad-image { display: none; }
    body.has-sticky-ad { padding-bottom: 80px; }
}

.mail-log-item {
    background: var(--table-header-bg);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
}

.mail-log-item.error { border-left-color: var(--danger); }
.mail-log-item.success { border-left-color: var(--success); }

.editor-wrapper {
    border-radius: 12px;
    overflow: visible;
    border: 2px solid var(--input-border);
    transition: border-color 0.3s ease;
    background: var(--card-bg);
    position: relative;
}

.editor-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.ql-toolbar.ql-snow {
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: var(--table-header-bg);
    padding: 12px;
    border-radius: 10px 10px 0 0;
}

.ql-container.ql-snow {
    border: none;
    font-size: 1rem;
    min-height: 300px;
    font-family: 'Inter', sans-serif;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 0 0 10px 10px;
}

.ql-editor {
    min-height: 300px;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: normal;
    word-wrap: break-word;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: italic;
}

.ql-snow .ql-stroke { stroke: var(--text-primary); }
.ql-snow .ql-fill { fill: var(--text-primary); }
.ql-snow .ql-picker { color: var(--text-primary); }

.ql-snow .ql-picker-options {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.ql-snow .ql-tooltip {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.ql-snow .ql-tooltip input[type=text] {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
}

.ql-snow .ql-tooltip a.ql-action,
.ql-snow .ql-tooltip a.ql-remove {
    color: var(--primary);
}

.emoji-panel {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 15px 40px var(--shadow-color);
    z-index: 1000;
    width: 320px;
    max-height: 350px;
    overflow-y: auto;
}

.emoji-panel.open { display: block; animation: slideDown 0.2s ease; }

.emoji-panel .emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.emoji-panel .emoji-grid button {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.emoji-panel .emoji-grid button:hover {
    background: rgba(220, 38, 38, 0.12);
    transform: scale(1.3);
}

.editor-toolbar-extra {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 15px;
    background: var(--table-header-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    border-radius: 10px 10px 0 0;
}

.editor-toolbar-extra button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.editor-toolbar-extra button:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.editor-toolbar-extra button i { font-size: 1rem; }

.image-upload-progress {
    display: none;
    margin-top: 8px;
    height: 6px;
    background: var(--progress-bg);
    border-radius: 3px;
    overflow: hidden;
}

.image-upload-progress.active { display: block; }

.image-upload-progress .bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.ql-editor blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 15px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.ql-editor a {
    color: var(--primary);
    text-decoration: underline;
}

.ql-editor pre {
    background: var(--table-header-bg);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
}

[data-theme="dark"] .card {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .card-header {
    border-color: var(--border-color);
}

[data-theme="dark"] .alert {
    color: var(--text-primary);
}

[data-theme="dark"] .alert-info {
    background: rgba(220, 38, 38, 0.12);
    border-color: var(--primary);
    color: var(--text-primary);
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: var(--text-primary);
}

[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--text-primary);
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
    color: var(--text-primary);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .list-group-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--table-header-bg);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    body.backend-body { padding-top: 0; }
    .navbar-brand { font-size: 1.4rem; }
    .nav-link { padding: 10px 15px !important; }
    .hero-section { padding: 50px 0; }
    .hero-section h1 { font-size: 2rem; }
    .calculator-card { padding: 25px; }
    .stats-number { font-size: 2.2rem; }
    .cookie-consent {
        left: 15px;
        right: 15px;
        max-width: none;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .announcement-content {
        flex-direction: column;
        text-align: center;
    }
    .floating-widget {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    .news-detail-meta .badge-foxi {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    .share-btn {
        min-width: 120px;
        height: 44px;
        padding: 0 16px;
        font-size: 0.82rem;
    }
    .share-btn > i { font-size: 0.95rem; }
    .share-section { padding: 20px; }
    .emoji-panel { width: 280px; }
    .editor-toolbar-extra button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .backend-container { padding: 10px; }
}

@media (max-width: 576px) {
    .stats-card { padding: 20px; }
    .stats-number { font-size: 2rem; }
    .feature-card { padding: 25px 15px; }
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .table-custom { font-size: 0.85rem; }
    .table-custom th,
    .table-custom td { padding: 12px; }
    .news-list-item { padding: 15px !important; }
    .news-list-title { font-size: 1.2rem; }
    .calculator-card { padding: 20px; }
    .stat-dashboard-card { padding: 18px; }
    .stat-dashboard-value { font-size: 2rem; }
}

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    border: 3px solid var(--card-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

::selection {
    background: var(--primary);
    color: white;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.ad-zone { width: 100%; }

.ad-sticky-bottom .ad-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .ad-sticky-bottom { padding: 10px 50px 10px 15px; }
    .ad-sticky-bottom .ad-title { font-size: 0.95rem; }
    .ad-sticky-bottom .ad-content { font-size: 0.8rem; }
    .ad-sticky-bottom .ad-image { display: none; }
    body.has-sticky-ad { padding-bottom: 90px; }
}

body.backend-body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding-top: 0;
}

body.backend-body .navbar-main {
    position: relative;
    top: auto;
    border-radius: 0 0 16px 16px;
    margin-bottom: 20px;
}

body.backend-body .backend-container {
    max-width: 1600px;
}

body.backend-body .table-responsive {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--table-border);
    background: var(--table-bg);
}

body.backend-body .table > :not(caption) > * > * {
    background: var(--table-bg);
    color: var(--text-primary);
    border-color: var(--table-border);
}

body.backend-body .table > thead > tr > th {
    background: var(--table-header-bg);
    color: var(--text-primary);
    font-weight: 600;
}

body.backend-body .table > tbody > tr:hover > * {
    background: var(--table-hover-bg);
}

body.backend-body .badge.bg-info {
    background: var(--info) !important;
    color: #fff !important;
}

body.backend-body .badge.bg-warning {
    color: #1c1917 !important;
}

[data-theme="dark"] body.backend-body .input-group-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
}

body.backend-body .nav-pills {
    gap: 4px;
}

.admin-header-nav {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    scrollbar-width: thin;
}

.admin-header-nav .nav-link {
    color: var(--text-primary) !important;
    border-radius: 8px;
    margin: 0;
    padding: 8px 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: transparent;
    white-space: nowrap;
}

.admin-header-nav .nav-link:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: var(--primary);
    color: var(--primary) !important;
}

.admin-header-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.admin-header-nav::-webkit-scrollbar {
    height: 6px;
}

.admin-header-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   WIDGET CARDS (Frontend Sidebar)
   ============================================ */
.widget-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.widget-card:hover {
    box-shadow: 0 15px 35px var(--shadow-color-hover);
    border-color: var(--primary);
}

.widget-card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.widget-card-body {
    padding: 18px;
}

.widget-calendar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-calendar-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-calendar-item:last-child { border-bottom: none; }

.widget-calendar-date {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    line-height: 1;
}

.widget-calendar-date .wd-day { font-size: 1.2rem; }
.widget-calendar-date .wd-month { font-size: 0.65rem; text-transform: uppercase; }

.widget-cal-color-primary { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.widget-cal-color-success { background: linear-gradient(135deg, #10b981, #059669); }
.widget-cal-color-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.widget-cal-color-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.widget-cal-color-info { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.widget-cal-color-secondary { background: linear-gradient(135deg, #64748b, #475569); }

.widget-calendar-info { flex: 1; min-width: 0; }
.widget-calendar-title { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.widget-calendar-time { font-size: 0.78rem; color: var(--text-muted); display: block; }
.widget-calendar-loc { font-size: 0.78rem; color: var(--text-muted); display: block; }

.widget-weather-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.widget-weather-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.widget-weather-temp {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.widget-weather-condition { font-size: 0.9rem; font-weight: 600; }
.widget-weather-city { font-size: 0.8rem; color: var(--text-muted); }

.widget-weather-details {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.widget-weather-forecast {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.widget-weather-fc-item {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    background: var(--table-header-bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.widget-weather-fc-item .fc-day { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.widget-weather-fc-item .fc-temp { font-size: 0.72rem; }

.widget-ad-image { margin-bottom: 12px; border-radius: 10px; overflow: hidden; }
.widget-ad-image img { width: 100%; height: auto; display: block; }
.widget-ad-content { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

.widget-news-list { list-style: none; padding: 0; margin: 0; }
.widget-news-list li { padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.widget-news-list li:last-child { border-bottom: none; }
.widget-news-link { color: var(--text-primary); text-decoration: none; font-size: 0.9rem; display: block; transition: color 0.2s; }
.widget-news-link:hover { color: var(--primary); }

.widget-popular-list { padding-left: 20px; margin: 0; }
.widget-popular-list li { padding: 6px 0; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.widget-popular-list li a { color: var(--text-primary); text-decoration: none; flex: 1; }
.widget-popular-list li a:hover { color: var(--primary); }
.widget-badge-count { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.widget-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-cat-badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 6px; background: var(--table-header-bg); color: var(--text-primary); font-size: 0.8rem; text-decoration: none; transition: all 0.25s; }
.widget-cat-badge:hover { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.widget-cat-badge .cat-count { margin-left: 6px; font-size: 0.7rem; opacity: 0.8; }

.widget-comment-item { padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; }
.widget-comment-item:last-child { border-bottom: none; }
.widget-comment-head { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; margin-bottom: 3px; }

.widget-online-box { text-align: center; padding: 10px 0; }
.widget-online-number { font-size: 2.4rem; font-weight: 800; background: linear-gradient(135deg, #10b981, #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.widget-online-label { font-size: 0.85rem; color: var(--text-muted); }

.widget-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.widget-stat-item { text-align: center; padding: 10px 6px; background: var(--table-header-bg); border-radius: 10px; }
.widget-stat-num { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.widget-stat-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.widget-stat-icon { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

.widget-announcement-inner { background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(249,115,22,0.05)); border-left: 4px solid var(--primary); padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; }

.widget-nav-list { list-style: none; padding: 0; margin: 0; }
.widget-nav-list li { padding: 5px 0; }
.widget-nav-list li a { color: var(--text-primary); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.widget-nav-list li a:hover { color: var(--primary); }

/* ============================================
   RESPONSIVE FEINSCHLIFF FÜR WIDGETS
   ============================================ */
@media (max-width: 1599px) {
    .widget-card-header { font-size: 0.9rem; padding: 12px 15px; }
    .widget-card-body { padding: 15px; }
    .widget-weather-icon { font-size: 2.5rem; }
    .widget-weather-temp { font-size: 1.7rem; }
    .widget-online-number { font-size: 2rem; }
    .widget-stat-num { font-size: 1.2rem; }
}

@media (max-width: 1279px) {
    .widget-card-header { font-size: 0.85rem; padding: 10px 12px; }
    .widget-card-body { padding: 12px; }
    .widget-weather-icon { font-size: 2.2rem; }
    .widget-weather-temp { font-size: 1.5rem; }
    .widget-online-number { font-size: 1.8rem; }
    .widget-calendar-date { width: 42px; height: 42px; }
    .widget-calendar-date .wd-day { font-size: 1rem; }
    .widget-calendar-date .wd-month { font-size: 0.55rem; }
}

@media (max-width: 767px) {
    .widget-card-header { font-size: 0.9rem; padding: 10px 15px; }
    .widget-card-body { padding: 15px; }
    .widget-weather-icon { font-size: 2.5rem; }
    .widget-weather-temp { font-size: 1.8rem; }
    .widget-online-number { font-size: 2rem; }
    .widget-stat-num { font-size: 1.3rem; }
    .widget-stats-grid { gap: 8px; }
    .widget-cat-badge { padding: 4px 10px; font-size: 0.75rem; }
    .widget-calendar-title { font-size: 0.85rem; }
    .widget-news-link { font-size: 0.85rem; }
}

/* ============================================
   CLOUD SYSTEM STYLES
   ============================================ */
.cloud-dashboard { padding: 10px 0; }
.cloud-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}
.cloud-user-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cloud-logo-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(220,38,38,0.35);
}
.cloud-login-card { max-width: 450px; margin: 0 auto; }
.cloud-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.cloud-file-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
    color: var(--text-primary);
    text-decoration: none;
}
.cloud-file-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--shadow-color-hover);
    transform: translateY(-4px);
    color: var(--text-primary);
}
.cloud-file-icon { font-size: 2.5rem; color: var(--primary); }
.cloud-folder-item .cloud-file-icon { color: #f59e0b; }
.cloud-file-name {
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
}
.cloud-file-size { font-size: 0.72rem; color: var(--text-muted); }
.cloud-file-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.cloud-file-actions .btn-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--table-header-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.cloud-file-actions .btn-icon:hover {
    background: var(--primary);
    color: #fff;
}
.cloud-dropzone {
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin: 15px 0;
    transition: all 0.3s ease;
    background: var(--table-header-bg);
    color: var(--text-primary);
}
.cloud-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(220,38,38,0.08);
    transform: scale(1.01);
}
.cloud-dropzone > i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.cloud-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cloud-empty > i { font-size: 4rem; margin-bottom: 15px; opacity: 0.5; }
.cloud-path-breadcrumb {
    padding: 8px 12px;
    background: var(--table-header-bg);
    border-radius: 10px;
    font-size: 0.85rem;
}
.cloud-path-breadcrumb a { color: var(--text-primary); text-decoration: none; }
.cloud-path-breadcrumb a:hover, .cloud-path-breadcrumb a.active { color: var(--primary); font-weight: 600; }
.cloud-activity-list { display: flex; flex-direction: column; gap: 8px; }
.cloud-activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--table-header-bg);
    border-radius: 12px;
    align-items: flex-start;
}
.cloud-activity-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.cloud-activity-icon.cloud-act-upload { background: #10b981; }
.cloud-activity-icon.cloud-act-delete, .cloud-activity-icon.cloud-act-delete_permanent { background: #ef4444; }
.cloud-activity-icon.cloud-act-share { background: #8b5cf6; }
.cloud-activity-icon.cloud-act-login, .cloud-activity-icon.cloud-act-logout { background: #dc2626; }
.cloud-activity-content { flex: 1; min-width: 0; }
.cloud-widget-login, .cloud-widget-logged-in { padding: 4px; }
.widget-cloud-login .widget-card-header { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
@media (max-width: 768px) {
    .cloud-file-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .cloud-file-item { padding: 10px; }
    .cloud-file-icon { font-size: 2rem; }
}

/* ============================================
   CLOUD SYSTEM STYLES (v2 – kompakt & modern)
   ============================================ */
.cloud-dashboard { padding: 4px 0; }

.cloud-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.cloud-user-info { display: flex; align-items: center; gap: 10px; }
.cloud-user-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}
.cloud-user-avatar-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 0.9rem; }
.cloud-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.cloud-username { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.cloud-usage { font-size: 0.75rem; color: var(--text-muted); }
.cloud-topbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cloud-page-title { font-size: 1.15rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-primary); }
.cloud-page-title i { color: var(--primary); }

.cloud-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}
.cloud-btn i { font-size: 0.85rem; }
.cloud-btn:hover { transform: translateY(-1px); }
.cloud-btn:active { transform: translateY(0); }

.cloud-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(220,38,38,0.25);
}
.cloud-btn-primary:hover { box-shadow: 0 5px 16px rgba(220,38,38,0.4); color: #fff !important; }

.cloud-btn-soft {
    background: var(--table-header-bg);
    color: var(--text-primary) !important;
    border-color: var(--border-color);
}
.cloud-btn-soft:hover { background: rgba(220,38,38,0.08); border-color: var(--primary); color: var(--primary) !important; }

.cloud-btn-ghost { background: transparent; color: var(--primary) !important; border-color: var(--border-color); }
.cloud-btn-ghost:hover { background: rgba(220,38,38,0.08); }

.cloud-btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff !important; box-shadow: 0 3px 10px rgba(239,68,68,0.25); }
.cloud-btn-danger:hover { box-shadow: 0 5px 16px rgba(239,68,68,0.4); color: #fff !important; }

.cloud-btn-danger-soft { background: rgba(239,68,68,0.08); color: #ef4444 !important; border-color: rgba(239,68,68,0.2); }
.cloud-btn-danger-soft:hover { background: rgba(239,68,68,0.15); color: #ef4444 !important; }

.cloud-btn-success-soft { background: rgba(16,185,129,0.08); color: #10b981 !important; border-color: rgba(16,185,129,0.2); }
.cloud-btn-success-soft:hover { background: rgba(16,185,129,0.15); color: #10b981 !important; }

.cloud-btn-primary-soft { background: rgba(220,38,38,0.08); color: var(--primary) !important; border-color: rgba(220,38,38,0.2); }
.cloud-btn-primary-soft:hover { background: rgba(220,38,38,0.15); color: var(--primary) !important; }

.cloud-btn-sm { padding: 7px 12px; font-size: 0.78rem; border-radius: 9px; }
.cloud-btn-xs { padding: 5px 10px; font-size: 0.72rem; border-radius: 8px; }
.cloud-btn-lg { padding: 12px 20px; font-size: 0.92rem; border-radius: 12px; }
.cloud-btn-block { width: 100%; }

.cloud-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px;
    background: rgba(220,38,38,0.15);
    color: var(--primary);
    font-size: 0.68rem; font-weight: 700;
    margin-left: 2px;
}

.cloud-storage { margin-bottom: 16px; }
.cloud-storage-bar {
    height: 8px; border-radius: 8px;
    background: var(--progress-bg);
    overflow: hidden;
    margin-bottom: 6px;
}
.cloud-storage-bar-sm { height: 6px; margin: 8px 0 4px; }
.cloud-storage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 8px;
    transition: width 0.6s ease;
}
.cloud-storage-info {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 6px;
    font-size: 0.74rem; color: var(--text-muted);
}
.cloud-storage-info i { color: var(--primary); }

.cloud-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
    margin-bottom: 12px;
}
.cloud-toolbar-group { display: flex; gap: 6px; flex-wrap: wrap; }
.cloud-search { flex: 0 1 240px; min-width: 160px; }
.cloud-search-input {
    position: relative;
    display: flex; align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 10px;
    transition: border-color 0.2s;
}
.cloud-search-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.cloud-search-input > i { color: var(--text-muted); font-size: 0.8rem; }
.cloud-search-input input {
    flex: 1; border: none; background: transparent; outline: none;
    padding: 8px 8px; font-size: 0.82rem; color: var(--text-primary);
    font-family: inherit; min-width: 0;
}
.cloud-search-clear {
    color: var(--text-muted); text-decoration: none; font-size: 0.75rem;
    padding: 4px; border-radius: 50%; transition: all 0.2s;
}
.cloud-search-clear:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

.cloud-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    margin: 10px 0 14px;
    background: var(--table-header-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.cloud-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(220,38,38,0.08);
    transform: scale(1.005);
}
.cloud-dropzone-inner > i { font-size: 1.6rem; color: var(--primary); display: block; margin-bottom: 6px; }
.cloud-dropzone-inner p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.cloud-link-btn {
    background: none; border: none; color: var(--primary); font-weight: 600;
    cursor: pointer; text-decoration: underline; font-size: inherit; padding: 0; font-family: inherit;
}
.cloud-upload-progress { margin-top: 10px; }
.cloud-progress-track { height: 6px; background: var(--progress-bg); border-radius: 4px; overflow: hidden; }
.cloud-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0%; transition: width 0.2s; }

.cloud-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    padding: 6px 10px;
    background: var(--table-header-bg);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.78rem;
}
.cloud-crumb { color: var(--text-secondary); text-decoration: none; padding: 3px 6px; border-radius: 6px; transition: all 0.15s; }
.cloud-crumb:hover, .cloud-crumb.active { color: var(--primary); background: rgba(220,38,38,0.08); font-weight: 600; }
.cloud-crumb-sep { font-size: 0.6rem; color: var(--text-muted); }

.cloud-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.cloud-file-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    min-height: 120px;
}
.cloud-file-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(220,38,38,0.12);
    transform: translateY(-2px);
    color: var(--text-primary);
}
.cloud-file-item.dragging { opacity: 0.4; }
.cloud-file-item.drop-target {
    border-color: var(--primary);
    background: rgba(220,38,38,0.08);
    border-style: dashed;
}
.cloud-file-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(220,38,38,0.1);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.cloud-file-icon-wrap > i { font-size: 1.3rem; color: var(--primary); }
.cloud-file-type-image .cloud-file-icon-wrap,
.cloud-file-icon-wrap.cloud-file-type-image { background: rgba(16,185,129,0.1); }
.cloud-file-type-image > i { color: #10b981; }
.cloud-file-type-video { background: rgba(139,92,246,0.1); }
.cloud-file-type-video > i { color: #8b5cf6; }
.cloud-file-type-audio { background: rgba(245,158,11,0.1); }
.cloud-file-type-audio > i { color: #f59e0b; }
.cloud-file-type-pdf { background: rgba(239,68,68,0.1); }
.cloud-file-type-pdf > i { color: #ef4444; }
.cloud-file-type-text { background: rgba(100,116,139,0.1); }
.cloud-file-type-text > i { color: #64748b; }
.cloud-preview-hint {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem;
    border: 2px solid var(--card-bg);
    opacity: 0;
    transition: opacity 0.2s;
}
.cloud-file-item:hover .cloud-preview-hint { opacity: 1; }
.cloud-folder-item .cloud-file-icon-wrap { background: rgba(245,158,11,0.1); }
.cloud-folder-item .cloud-file-icon-wrap > i { color: #f59e0b; }
.cloud-back-item .cloud-file-icon-wrap { background: var(--table-header-bg); }
.cloud-back-item .cloud-file-icon-wrap > i { color: var(--text-muted); }

.cloud-file-name {
    font-size: 0.76rem;
    font-weight: 600;
    word-break: break-word;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    max-width: 100%;
    line-height: 1.3;
}
.cloud-file-size { font-size: 0.68rem; color: var(--text-muted); }

.cloud-file-actions {
    display: flex; gap: 2px; flex-wrap: wrap; justify-content: center;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}
.cloud-file-item:hover .cloud-file-actions { opacity: 1; }
.cloud-icon-btn {
    width: 24px; height: 24px;
    border-radius: 6px;
    border: none;
    background: var(--table-header-bg);
    color: var(--text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.62rem;
    transition: all 0.15s;
    text-decoration: none;
    flex-shrink: 0;
}
.cloud-icon-btn:hover { background: var(--primary); color: #fff; }
.cloud-icon-btn-close:hover { background: var(--danger); color: #fff; }

.cloud-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.cloud-empty > i { font-size: 2.8rem; margin-bottom: 10px; opacity: 0.4; display: block; }
.cloud-empty h5 { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 4px; }
.cloud-empty p { font-size: 0.82rem; margin: 0; }

.cloud-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-color); background: var(--table-bg); }
.cloud-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cloud-table thead th {
    background: var(--table-header-bg);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.cloud-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}
.cloud-table tbody tr:last-child td { border-bottom: none; }
.cloud-table tbody tr:hover { background: var(--table-hover-bg); }
.cloud-td-icon { color: var(--primary); margin-right: 6px; }
.cloud-td-actions { white-space: nowrap; display: flex; gap: 4px; flex-wrap: wrap; }
.cloud-badge-role {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    font-size: 0.68rem; font-weight: 600;
    background: var(--table-header-bg); color: var(--text-muted);
}
.cloud-badge-primary { background: rgba(220,38,38,0.12); color: var(--primary); }
.cloud-badge-danger { background: rgba(239,68,68,0.12); color: #ef4444; }
.cloud-badge-success { background: rgba(16,185,129,0.12); color: #10b981; }

.cloud-activity-list { display: flex; flex-direction: column; gap: 6px; }
.cloud-activity-item {
    display: flex; gap: 10px; padding: 10px 12px;
    background: var(--table-header-bg);
    border-radius: 10px;
    align-items: flex-start;
}
.cloud-activity-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 0.78rem;
}
.cloud-activity-icon.cloud-act-upload { background: #10b981; }
.cloud-activity-icon.cloud-act-delete,
.cloud-activity-icon.cloud-act-delete_permanent,
.cloud-activity-icon.cloud-act-trash { background: #ef4444; }
.cloud-activity-icon.cloud-act-share { background: #8b5cf6; }
.cloud-activity-icon.cloud-act-login,
.cloud-activity-icon.cloud-act-logout { background: #dc2626; }
.cloud-activity-icon.cloud-act-move { background: #f59e0b; }
.cloud-activity-content { flex: 1; min-width: 0; font-size: 0.82rem; }
.cloud-activity-content strong { display: block; color: var(--text-primary); margin-bottom: 2px; word-break: break-word; }
.cloud-activity-meta { font-size: 0.7rem; color: var(--text-muted); }

.cloud-login-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 18px;
    padding: 28px 26px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px var(--shadow-color);
    color: var(--text-primary);
}
.cloud-login-header { text-align: center; margin-bottom: 20px; }
.cloud-logo-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(220,38,38,0.3);
}
.cloud-login-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.cloud-login-subtitle { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.cloud-login-form { display: flex; flex-direction: column; gap: 12px; }
.cloud-form-group { display: flex; flex-direction: column; gap: 4px; }
.cloud-form-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.cloud-input-wrap {
    display: flex; align-items: center; gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    transition: all 0.18s;
}
.cloud-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.cloud-input-wrap > i { color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; }
.cloud-input {
    flex: 1; border: none; background: transparent; outline: none;
    padding: 10px 0; font-size: 0.88rem; color: var(--text-primary);
    font-family: inherit; min-width: 0;
}
.cloud-login-footer {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--text-muted);
}

.cloud-alert {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.cloud-alert-danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); color: #ef4444; }
.cloud-alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); color: #10b981; }

.cloud-preview-modal { position: fixed; inset: 0; z-index: 10500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cloud-preview-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); animation: cloudFadeIn 0.2s ease; }
.cloud-preview-dialog {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    animation: cloudPopIn 0.25s cubic-bezier(0.68,-0.55,0.265,1.55);
    color: var(--text-primary);
}
@keyframes cloudFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cloudPopIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cloud-preview-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--table-header-bg);
    flex-shrink: 0;
}
.cloud-preview-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; min-width: 0; color: var(--text-primary); }
.cloud-preview-title i { color: var(--primary); flex-shrink: 0; }
.cloud-preview-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-preview-actions { display: flex; gap: 4px; flex-shrink: 0; }
.cloud-preview-body {
    flex: 1;
    overflow: auto;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: var(--table-header-bg);
    min-height: 200px;
}
.cloud-preview-body img { max-width: 100%; max-height: 75vh; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.cloud-preview-body video { max-width: 100%; max-height: 75vh; border-radius: 8px; background: #000; }
.cloud-preview-body audio { width: 100%; max-width: 500px; }
.cloud-preview-body iframe { width: 100%; height: 75vh; border: none; border-radius: 8px; background: #fff; }
.cloud-preview-body pre {
    width: 100%; max-height: 75vh; overflow: auto;
    background: var(--card-bg); padding: 16px; border-radius: 8px;
    font-size: 0.82rem; line-height: 1.5;
    white-space: pre-wrap; word-break: break-word;
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin: 0;
}
.cloud-preview-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.85rem; }
.cloud-preview-loading i { font-size: 2rem; color: var(--primary); animation: cloudSpin 1s linear infinite; }
@keyframes cloudSpin { to { transform: rotate(360deg); } }
.cloud-preview-error { text-align: center; color: var(--text-muted); padding: 30px; }
.cloud-preview-error i { font-size: 2.5rem; margin-bottom: 10px; color: var(--danger); }

.cloud-toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10600; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.cloud-toast {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    display: flex; align-items: center; gap: 8px;
    animation: cloudToastIn 0.25s ease;
    pointer-events: auto;
    max-width: 360px;
}
.cloud-toast-success { border-left: 3px solid #10b981; }
.cloud-toast-success i { color: #10b981; }
.cloud-toast-error { border-left: 3px solid #ef4444; }
.cloud-toast-error i { color: #ef4444; }
.cloud-toast-info { border-left: 3px solid var(--primary); }
.cloud-toast-info i { color: var(--primary); }
@keyframes cloudToastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.cloud-share-page { text-align: center; }
.cloud-share-icon-wrap { margin-bottom: 16px; }
.cloud-share-icon { font-size: 3.5rem; color: var(--primary); }
.cloud-share-icon-danger { color: #ef4444; }
.cloud-share-expiry { font-size: 0.8rem; color: var(--text-muted); }

.cloud-admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cloud-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.cloud-stat-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.cloud-stat-green { background: linear-gradient(135deg, #10b981, #059669); }
.cloud-stat-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cloud-stat-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cloud-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 2px; }
.cloud-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

.cloud-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.cloud-card-header { padding: 10px 14px; background: var(--table-header-bg); border-bottom: 1px solid var(--border-color); }
.cloud-card-header h5 { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.cloud-card-header h5 i { color: var(--primary); }
.cloud-card-body { padding: 14px; }
.cloud-muted { color: var(--text-muted); font-size: 0.82rem; }

.cloud-widget-logged-in, .cloud-widget-login { padding: 2px; }
.cloud-widget-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cloud-widget-usage { font-size: 0.7rem; color: var(--text-muted); }
.cloud-widget-stats { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }
.cloud-widget-text { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.widget-cloud-login .widget-card-header { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

@media (max-width: 768px) {
    .cloud-file-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
    .cloud-file-item { padding: 10px 6px; min-height: 100px; }
    .cloud-file-icon-wrap { width: 36px; height: 36px; }
    .cloud-file-icon-wrap > i { font-size: 1.1rem; }
    .cloud-file-name { font-size: 0.7rem; }
    .cloud-file-actions { opacity: 1; }
    .cloud-icon-btn { width: 22px; height: 22px; font-size: 0.58rem; }
    .cloud-preview-dialog { max-width: 100%; max-height: 100vh; border-radius: 0; height: 100dvh; }
    .cloud-preview-modal { padding: 0; }
    .cloud-preview-body iframe, .cloud-preview-body pre { max-height: 85vh; }
    .cloud-search { flex: 1 1 100%; }
    .cloud-toolbar-group { width: 100%; }
    .cloud-toolbar-group .cloud-btn { flex: 1 1 auto; }
    .cloud-login-card { padding: 22px 18px; }
}

/* ============================================
   SOCIAL FOLLOW WIDGET
   ============================================ */
.social-follow-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.social-follow-subtitle {
    font-size: 0.82rem;
    margin-bottom: 10px;
}
.social-follow-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--table-header-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}
.social-follow-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--social-color, var(--primary));
    transition: width 0.25s ease;
}
.social-follow-btn:hover {
    background: var(--social-color, var(--primary));
    color: #fff !important;
    border-color: var(--social-color, var(--primary));
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.social-follow-btn:hover::before { width: 0; }
.social-follow-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--social-color, var(--primary));
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.22s ease;
}
.social-follow-btn:hover .social-follow-icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.social-follow-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.social-follow-style-icons .social-follow-wrap {
    flex-direction: row;
    flex-wrap: wrap;
}
.social-follow-style-icons .social-follow-btn {
    flex-direction: column;
    padding: 10px;
    flex: 0 0 auto;
    width: auto;
}
.social-follow-style-icons .social-follow-label {
    display: none;
}

/* ============================================
   KONTAKTFORMULAR WIDGET
   ============================================ */
.contact-form-widget-form .form-control {
    font-size: 0.85rem;
    border-radius: 8px;
}
.contact-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 3px;
}
.contact-form-subtitle {
    font-size: 0.82rem;
}
.contact-form-intro {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}
.contact-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    border: 1px solid transparent;
}
.contact-alert-success {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.3);
    color: #10b981;
}
.contact-alert-error {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
    color: #ef4444;
}
.widget-contact-form .widget-card-header {
    background: linear-gradient(135deg, #10b981, #059669);
}
.widget-social-follow .widget-card-header {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
/* ============================================
   ============================================
   INTERNET-RADIO
   ============================================
   ============================================ */
h1, h2, h3, h4, h5, .navbar-brand, .section-title, .stats-number, .stat-dashboard-value { font-family: var(--font-display); }
.navbar-brand { letter-spacing: -0.5px; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; }
.navbar-brand i { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; }
.navbar-brand-sub { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; -webkit-text-fill-color: var(--text-muted); margin-left: 6px; }
.navbar-main { border-bottom: 1px solid var(--border-color); }
[data-theme="dark"] .navbar-toggler { border-color: var(--border-color); }
[data-theme="dark"] .navbar-toggler-icon { filter: invert(1); }
.nav-link { padding: 10px 14px !important; font-size: 0.9rem; }
.nav-icon { margin-right: 4px; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; }
.main-container { border: 1px solid var(--border-color); }
[data-theme="dark"] .main-container { background: rgba(18, 16, 28, 0.86); }
.section-title { font-size: 1.6rem; }
.section-title::after { background: linear-gradient(90deg, var(--primary), var(--secondary)); animation: none; width: 56px; }
.btn-foxi { background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.3); }
.btn-foxi:hover { background: linear-gradient(135deg, var(--primary-dark), var(--secondary)); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.42); }
.btn-ghost { border: 2px solid var(--border-color); color: var(--text-primary); padding: 13px 30px; border-radius: 50px; font-weight: 700; background: transparent; transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.stats-card { background: var(--stats-card-bg); }
.news-card, .news-list-item, .calculator-card { border-color: var(--border-color); }
[data-theme="dark"] .calculator-card { background: transparent; box-shadow: none; border: none; padding: 20px 6px; }
[data-theme="dark"] .backend-container > .calculator-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 32px; }
.footer-custom { border-top: 1px solid var(--border-color); border-radius: 0; margin-top: 30px; }
.footer-custom.glass { background: transparent; border-left: 0; border-right: 0; border-bottom: 0; backdrop-filter: none; }

/* ---------- Jetzt-hören-Knopf in der Navigation ---------- */
.nav-listen { display: inline-flex; align-items: center; gap: 10px; border: none; border-radius: 50px; padding: 10px 20px 10px 14px; font-weight: 700; font-size: 0.9rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.35); cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.nav-listen i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.nav-listen:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.5); }
.nav-listen.is-playing { background: var(--stage-bg); box-shadow: inset 0 0 0 2px var(--primary); }

/* ---------- On-Air-Abzeichen, Equalizer, Chips ---------- */
.onair-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 50px; font-size: 0.72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); white-space: nowrap; }
.onair-badge .onair-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: onairPulse 1.8s infinite; }
.onair-badge.is-live { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.55); }
.onair-badge.is-live .onair-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
.onair-badge.is-off { background: rgba(255, 255, 255, 0.06); color: var(--stage-muted); }
.onair-badge.is-off .onair-dot { background: #6b7280; animation: none; }
.onair-badge-sm { padding: 4px 10px; font-size: 0.62rem; letter-spacing: 1.2px; }
.backend-body .onair-badge:not(.is-live), .radio-admin-strip .onair-badge:not(.is-live) { background: var(--stage-bg); }
@keyframes onairPulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.radio-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; vertical-align: middle; margin-left: 6px; }
.radio-eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--primary); }
.radio-playing .radio-eq i { animation: radioEq 0.9s ease-in-out infinite; }
.radio-eq i:nth-child(2) { animation-delay: -0.3s !important; height: 70%; }
.radio-eq i:nth-child(3) { animation-delay: -0.6s !important; height: 45%; }
.radio-eq i:nth-child(4) { animation-delay: -0.15s !important; height: 90%; }
.radio-eq i:nth-child(5) { animation-delay: -0.45s !important; height: 55%; }
@keyframes radioEq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.radio-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; color: var(--stage-muted); background: rgba(255, 255, 255, 0.06); }
.radio-chip i { color: var(--accent); }
.radio-label { display: inline-flex; align-items: center; font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); }
.radio-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; background: var(--table-header-bg); color: var(--text-muted); border: 1px solid var(--border-color); }
.radio-tag-live { background: var(--primary); border-color: var(--primary); color: #fff; }
.radio-tag-now { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: #10b981; }
.radio-tag-now .radio-eq { margin: 0 4px 0 0; height: 10px; }
.radio-tag-now .radio-eq i { background: #10b981; }

/* ---------- Play-Knopf ---------- */
.radio-play { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; border: none; color: #fff; font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45); transition: transform .2s, box-shadow .2s; }
.radio-play .fa-play { margin-left: 3px; }
.radio-play:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.6); }
.radio-play:focus-visible, .radio-icon-btn:focus-visible, .nav-listen:focus-visible, .radio-vote:focus-visible, .radio-daytab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.radio-play:disabled { opacity: 0.4; cursor: not-allowed; }
.radio-play-xl { width: 84px; height: 84px; font-size: 1.7rem; }
.radio-play.is-playing { box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.18), 0 8px 28px rgba(var(--primary-rgb), 0.5); }

/* ---------- Cover ---------- */
.radio-cover { position: relative; flex-shrink: 0; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #2a1f4d, #171226); display: inline-flex; align-items: center; justify-content: center; }
.radio-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.radio-cover img[hidden] { display: none; }
.radio-cover-fallback { color: rgba(255, 255, 255, 0.4); font-size: 1.1rem; }
.radio-cover-sm { width: 48px; height: 48px; border-radius: 10px; }
.radio-cover-md { width: 120px; height: 120px; border-radius: 16px; }
.radio-cover-md .radio-cover-fallback { font-size: 2.4rem; }
.radio-cover-round { width: 46%; aspect-ratio: 1; border-radius: 50%; }
.radio-cover-round .radio-cover-fallback { font-size: 2rem; }

/* ---------- Großer Player (Startseite) ---------- */
.radio-hero { position: relative; overflow: hidden; border-radius: 28px; margin: -4px 0 26px; color: var(--stage-text); background: var(--stage-bg); border: 1px solid var(--stage-line); isolation: isolate; }
.radio-hero-glow { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(60% 90% at 8% 20%, rgba(var(--primary-rgb), 0.42), transparent 62%),
    radial-gradient(55% 80% at 95% 85%, rgba(var(--secondary-rgb), 0.42), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 14px); }
.radio-hero-inner { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 4.5vw, 56px); }
.radio-vinyl { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: repeating-radial-gradient(circle at center, #0a0910 0 2px, #17151f 2px 4px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08); animation: radioSpin 9s linear infinite; animation-play-state: paused; }
.radio-playing .radio-vinyl { animation-play-state: running; }
.radio-vinyl::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 40deg, rgba(255, 255, 255, 0.09) 60deg, transparent 80deg 200deg, rgba(255, 255, 255, 0.07) 230deg, transparent 260deg); }
.radio-vinyl-hole { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50%; background: var(--stage-bg); z-index: 2; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
@keyframes radioSpin { to { transform: rotate(360deg); } }
.radio-hero-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.radio-hero-station { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1; letter-spacing: -1.5px; margin: 0 0 8px; }
.radio-hero-slogan { color: var(--stage-muted); font-size: 1.02rem; margin: 0 0 26px; }
.radio-hero-slogan span { opacity: 0.8; }
.radio-hero-now { display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stage-line); backdrop-filter: blur(8px); }
.radio-hero-track { min-width: 0; }
.radio-track-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 4px 0 2px; color: var(--stage-text); overflow-wrap: anywhere; text-shadow: none; animation: none; }
.radio-track-artist { margin: 0; color: var(--stage-muted); font-weight: 500; overflow-wrap: anywhere; }
.radio-hero-show { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--stage-muted); font-size: 0.92rem; }
.radio-hero-show > i { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.radio-hero-show strong { color: var(--stage-text); margin-right: 6px; }
.radio-hero-showtime { margin-left: 8px; opacity: 0.75; }
.radio-hero-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.radio-link { color: var(--stage-muted); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.radio-link i { margin-right: 5px; color: var(--primary-light); }
.radio-link:hover { color: #fff; }
.radio-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 34px; }
.radio-cta-badge { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.radio-cta-badge i { color: var(--accent); margin-right: 6px; }
.radio-cta-badge:hover { color: var(--primary); }

/* ---------- Panels & Listen ---------- */
.radio-panel { background: var(--stats-card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; color: var(--text-primary); }
.radio-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.radio-panel-head h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.radio-panel-head h2 i { color: var(--primary); margin-right: 8px; }
.radio-more { font-size: 0.82rem; font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }
.radio-more:hover { color: var(--secondary); }
.radio-more i { margin-left: 4px; transition: transform .2s; }
.radio-more:hover i { transform: translateX(3px); }
.radio-empty { color: var(--text-muted); font-size: 0.9rem; margin: 0; list-style: none; }
.radio-empty i { margin-right: 6px; }
.radio-empty-box { padding: 28px; border: 2px dashed var(--border-color); border-radius: 16px; text-align: center; }
.radio-thumb { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background-size: cover; background-position: center; background-color: var(--table-header-bg); }
.radio-thumb.is-icon { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.radio-thumb-lg { width: 72px; height: 72px; border-radius: 16px; font-size: 1.4rem; }
.radio-uplist, .radio-tracklist, .radio-widget-list, .radio-playlist, .radio-charts, .radio-widget-charts, .radio-hints, .radio-dj-shows { list-style: none; margin: 0; padding: 0; }
.radio-uplist li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border-color); }
.radio-uplist li:last-child, .radio-tracklist li:last-child { border-bottom: none; }
.radio-uplist-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.radio-uplist-text span, .radio-uplist-time { font-size: 0.8rem; color: var(--text-muted); }
.radio-uplist-time { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.radio-tracklist li { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border-color); }
.radio-tracklist-time { flex-shrink: 0; font-variant-numeric: tabular-nums; font-size: 0.78rem; font-weight: 700; color: var(--primary); }
.radio-tracklist-text { min-width: 0; display: flex; flex-direction: column; }
.radio-tracklist-text strong { font-size: 0.93rem; line-height: 1.3; }
.radio-tracklist-text em { font-style: normal; font-size: 0.8rem; color: var(--text-muted); }
.radio-tracklist-sm li { padding: 7px 0; gap: 10px; }

/* ---------- Feste Player-Leiste ---------- */
body.has-radio-bar { padding-bottom: calc(var(--radio-bar-height) + 12px); }
.radio-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10050; color: var(--stage-text); background: rgba(13, 11, 22, 0.94); backdrop-filter: blur(18px); border-top: 1px solid var(--stage-line); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45); }
.radio-bar::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); opacity: 0.35; transition: opacity .3s; }
.radio-playing .radio-bar::before { opacity: 1; }
.radio-bar-inner { max-width: 1400px; margin: 0 auto; height: var(--radio-bar-height); padding: 0 clamp(12px, 2.5vw, 28px); display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); }
.radio-bar-track { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.radio-bar-track strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-bar-track span { font-size: 0.8rem; color: var(--stage-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-bar-show { flex: 0 1 280px; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.radio-bar-showname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-bar-showname em { font-style: normal; color: var(--stage-muted); }
.radio-bar-listeners { font-size: 0.82rem; font-weight: 700; color: var(--stage-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.radio-bar-listeners i { color: var(--accent); margin-right: 4px; }
.radio-icon-btn { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.08); color: var(--stage-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: background .2s; }
.radio-icon-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.radio-volume { display: flex; align-items: center; gap: 8px; }
.radio-volume input[type="range"] { --fill: 80%; -webkit-appearance: none; appearance: none; width: 96px; height: 4px; border-radius: 4px; cursor: pointer; background: linear-gradient(90deg, var(--primary) var(--fill), rgba(255, 255, 255, 0.2) var(--fill)); }
.radio-volume input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.radio-volume input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: none; border-radius: 50%; background: #fff; }
.radio-quality { background: rgba(255, 255, 255, 0.08); color: var(--stage-text); border: 1px solid var(--stage-line); border-radius: 10px; padding: 6px 8px; font-size: 0.78rem; max-width: 150px; }
.radio-quality option { color: #111; }
.radio-bar-msg { text-align: center; font-size: 0.8rem; padding: 6px 12px; background: rgba(var(--accent-rgb), 0.16); color: #ffd58a; }
body.has-radio-bar .floating-widget { bottom: calc(var(--radio-bar-height) + 22px); width: 52px; height: 52px; font-size: 1.2rem; }
body.has-radio-bar .helpdesk-fab { bottom: calc(var(--radio-bar-height) + 88px); width: 52px; height: 52px; font-size: 1.25rem; }
body.has-radio-bar .cookie-consent { bottom: calc(var(--radio-bar-height) + 20px); }
body.has-radio-bar .ad-sticky-bottom { bottom: var(--radio-bar-height); }
body.has-radio-bar.has-sticky-ad { padding-bottom: calc(var(--radio-bar-height) + 100px); }

/* ---------- Unterseiten ---------- */
.radio-page { padding: 8px 4px 20px; color: var(--text-primary); }
.radio-page-head { margin-bottom: 28px; }
.radio-page-head h1 { font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -1px; margin: 0 0 6px; }
.radio-page-head h1 i { color: var(--primary); margin-right: 10px; font-size: 0.8em; }
.radio-page-head p { color: var(--text-muted); margin: 0; max-width: 62ch; }

.radio-daytabs { gap: 8px; margin-bottom: 22px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.radio-daytab { border: 1px solid var(--border-color); background: var(--stats-card-bg); color: var(--text-primary); border-radius: 14px; padding: 10px 18px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s; }
.radio-daytab small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); }
.radio-daytab:hover { border-color: var(--primary); }
.radio-daytab.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: transparent; color: #fff; }
.radio-daytab.active small { color: rgba(255, 255, 255, 0.85); }
.radio-slot { display: flex; gap: 18px; align-items: flex-start; padding: 18px; margin-bottom: 12px; border-radius: 18px; background: var(--stats-card-bg); border: 1px solid var(--border-color); }
.radio-slot.is-now { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 14px 40px rgba(var(--primary-rgb), 0.16); }
.radio-slot-time { flex: 0 0 64px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.radio-slot-time strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.radio-slot-time span { font-size: 0.82rem; color: var(--text-muted); }
.radio-slot-body { min-width: 0; flex: 1; }
.radio-slot-body h3 { font-size: 1.2rem; font-weight: 800; margin: 6px 0 4px; }
.radio-slot-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-slot-dj { font-size: 0.88rem; color: var(--text-secondary); margin: 0 0 6px; }
.radio-slot-dj i { color: var(--primary); margin-right: 6px; }
.radio-slot-dj a { color: inherit; font-weight: 700; }
.radio-slot-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.radio-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.radio-dj { border-radius: 22px; overflow: hidden; background: var(--stats-card-bg); border: 1px solid var(--border-color); scroll-margin-top: 110px; transition: transform .25s, border-color .25s; }
.radio-dj:hover, .radio-dj:target { transform: translateY(-4px); border-color: var(--primary); }
.radio-dj-photo { aspect-ratio: 4 / 3; background-size: cover; background-position: center top; }
.radio-dj-photo.is-icon { display: flex; align-items: center; justify-content: center; font-size: 3.4rem; color: rgba(255, 255, 255, 0.5); background: linear-gradient(135deg, #2a1f4d, var(--secondary)); }
.radio-dj-body { padding: 20px; }
.radio-dj-body h3 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.radio-dj-role { color: var(--primary); font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin: 2px 0 10px; }
.radio-dj-genres, .radio-dj-bio { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 10px; }
.radio-dj-genres i { color: var(--accent); margin-right: 6px; }
.radio-dj-shows li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--border-color); font-size: 0.86rem; }
.radio-dj-shows span { color: var(--text-muted); font-size: 0.78rem; }
.radio-dj-social { display: flex; gap: 8px; margin-top: 12px; }
.radio-dj-social:empty { display: none; }
.radio-dj-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--table-header-bg); color: var(--text-primary); text-decoration: none; transition: background .2s, color .2s; }
.radio-dj-social a:hover { background: var(--primary); color: #fff; }

.radio-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 0.9rem; border: 1px solid transparent; }
.radio-alert-ok { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); color: #0f9f72; }
.radio-alert-err { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #e5484d; }
.radio-alert-info { background: var(--table-header-bg); border-color: var(--border-color); color: var(--text-secondary); margin-bottom: 0; }
[data-theme="dark"] .radio-alert-ok { color: #5eead4; }
[data-theme="dark"] .radio-alert-err { color: #fca5a5; }
.radio-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.radio-request-form .form-label { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.radio-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 14px; border-radius: 14px; background: var(--table-header-bg); border: 1px solid var(--border-color); }
.radio-switch label { margin: 0; cursor: pointer; }
.radio-switch input { position: absolute; opacity: 0; pointer-events: none; }
.radio-switch span { display: block; text-align: center; padding: 8px 6px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); transition: background .2s, color .2s; }
.radio-switch input:checked + span { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.radio-switch input:focus-visible + span { outline: 3px solid var(--accent); }
.radio-studio-card { background: var(--stage-bg); color: var(--stage-text); border-color: var(--stage-line); background-image: radial-gradient(80% 80% at 100% 0%, rgba(var(--secondary-rgb), 0.35), transparent 60%); }
.radio-studio-card h2 { font-size: 1.5rem; font-weight: 800; margin: 6px 0 2px; }
.radio-studio-card p { color: var(--stage-muted); margin: 0 0 6px; }
.radio-hints { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--stage-line); }
.radio-hints li { font-size: 0.86rem; color: var(--stage-muted); padding: 4px 0; }
.radio-hints i { color: #34d399; margin-right: 8px; }

.radio-chart { display: grid; grid-template-columns: 56px 62px 1fr auto auto; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 10px; border-radius: 16px; background: var(--stats-card-bg); border: 1px solid var(--border-color); }
.radio-chart-pos { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; line-height: 1; color: var(--text-muted); text-align: center; }
.radio-chart.is-top .radio-chart-pos { background: linear-gradient(135deg, var(--accent), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 2.1rem; }
.radio-chart-trend { font-size: 0.74rem; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
.radio-chart-trend.trend-up { color: #10b981; }
.radio-chart-trend.trend-down { color: #ef4444; }
.radio-chart-trend.trend-new { color: var(--accent); }
.radio-chart-text { min-width: 0; display: flex; flex-direction: column; }
.radio-chart-text strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.radio-chart-text em { font-style: normal; font-size: 0.86rem; color: var(--text-muted); }
.radio-chart-meta { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; }
.radio-vote { border: 1px solid var(--border-color); background: transparent; color: var(--text-primary); border-radius: 50px; padding: 8px 16px; font-weight: 700; font-size: 0.88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s, color .2s; }
.radio-vote i { color: var(--primary); }
.radio-vote:hover:not(:disabled) { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.08); }
.radio-vote.is-voted { background: var(--primary); border-color: var(--primary); color: #fff; cursor: default; }
.radio-vote.is-voted i { color: #fff; }
.radio-vote.just-voted i { animation: radioHeart 0.5s ease; }
@keyframes radioHeart { 40% { transform: scale(1.6); } }

.radio-playlist li { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-bottom: 1px solid var(--border-color); }
.radio-playlist-day { font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); padding-top: 22px !important; }
.radio-playlist-time { flex: 0 0 48px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.radio-playlist-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.radio-playlist-text em { font-style: normal; font-size: 0.84rem; color: var(--text-muted); }
.radio-playlist-show { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; }

/* ---------- Popup-Player ---------- */
.radio-popup-body { padding: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--stage-bg); background-image: radial-gradient(70% 50% at 0% 0%, rgba(var(--primary-rgb), 0.38), transparent 60%), radial-gradient(70% 50% at 100% 100%, rgba(var(--secondary-rgb), 0.38), transparent 60%); }
.radio-popup-body::before { display: none; }
.radio-popup { width: 100%; max-width: 380px; padding: 22px 24px 28px; text-align: center; color: var(--stage-text); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.radio-popup-head { width: 100%; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); margin-bottom: 8px; }
.radio-popup-head i { color: var(--primary); margin-right: 6px; }
.radio-vinyl-popup { width: 220px; margin: 6px 0 12px; }
.radio-popup-show, .radio-popup-listeners { color: var(--stage-muted); font-size: 0.86rem; margin: 0; }
.radio-popup-show i, .radio-popup-listeners i { color: var(--accent); margin-right: 6px; }
.radio-popup-show em { font-style: normal; }
.radio-popup .radio-play-xl { margin: 12px 0 8px; }
.radio-volume-popup input[type="range"] { width: 170px; }
.radio-popup .radio-bar-msg { border-radius: 10px; }

/* ---------- Widgets ---------- */
.widget-card { border-radius: 20px; }
.widget-card-header { background: transparent; color: var(--text-primary); padding: 18px 20px 0; font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.widget-card-header i { color: var(--primary); }
.widget-cloud-login .widget-card-header { background: transparent; }
.widget-card-body { padding: 14px 20px 20px; }
.radio-widget-player { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.radio-widget-player strong { margin-top: 10px; overflow-wrap: anywhere; }
.radio-widget-player > span { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 10px; }
.radio-widget-onair { display: flex; gap: 14px; align-items: center; }
.radio-widget-onair > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.radio-widget-onair span, .radio-widget-onair small { font-size: 0.82rem; color: var(--text-muted); }
.radio-widget-next { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border-color); font-size: 0.82rem; color: var(--text-secondary); }
.radio-widget-next span { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); }
.radio-widget-list li { display: flex; gap: 12px; align-items: baseline; padding: 7px 10px; border-radius: 10px; font-size: 0.88rem; }
.radio-widget-list li span { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 0.8rem; }
.radio-widget-list li.is-now { background: rgba(var(--primary-rgb), 0.1); }
.radio-widget-list li.is-now span { color: var(--primary); }
.radio-widget-charts li { display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border-color); }
.radio-widget-charts li:last-child { border-bottom: none; }
.radio-widget-charts li > span { flex: 0 0 26px; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--primary); text-align: center; }
.radio-widget-charts div { min-width: 0; display: flex; flex-direction: column; }
.radio-widget-charts strong { font-size: 0.88rem; line-height: 1.25; }
.radio-widget-charts em { font-style: normal; font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Backend ---------- */
.radio-admin-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 18px; color: var(--stage-text); background: var(--stage-bg); background-image: radial-gradient(60% 140% at 0% 0%, rgba(var(--primary-rgb), 0.35), transparent 60%), radial-gradient(50% 140% at 100% 100%, rgba(var(--secondary-rgb), 0.3), transparent 60%); }
.radio-admin-now { display: flex; align-items: center; gap: 16px; min-width: 0; }
.radio-admin-now div { display: flex; flex-direction: column; min-width: 0; }
.radio-admin-now span:not(.onair-badge):not(.onair-dot) { color: var(--stage-muted); font-size: 0.86rem; }
.radio-admin-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-admin-facts a { color: var(--stage-text); text-decoration: none; font-size: 0.84rem; font-weight: 600; padding: 8px 14px; border-radius: 50px; background: rgba(255, 255, 255, 0.08); }
.radio-admin-facts a:hover { background: rgba(255, 255, 255, 0.18); }
.radio-admin-facts i { color: var(--accent); margin-right: 6px; }
.radio-admin-days { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-admin-days label { margin: 0; cursor: pointer; }
.radio-admin-days input { position: absolute; opacity: 0; }
.radio-admin-days span { display: inline-block; min-width: 46px; text-align: center; padding: 10px 8px; border-radius: 12px; font-weight: 700; border: 2px solid var(--input-border); color: var(--text-primary); background: var(--input-bg); }
.radio-admin-days input:checked + span { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: transparent; color: #fff; }
.radio-admin-days input:focus-visible + span { outline: 3px solid var(--accent); }
.radio-admin-request { display: flex; gap: 16px; align-items: flex-start; padding: 16px; margin-bottom: 10px; border-radius: 16px; background: var(--table-header-bg); border-left: 4px solid var(--primary); color: var(--text-primary); }
.radio-admin-request.status-played { border-left-color: #10b981; opacity: 0.75; }
.radio-admin-request.status-rejected { border-left-color: #6b7280; opacity: 0.6; }
.radio-admin-request-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.radio-admin-request-body { flex: 1; min-width: 0; }
.radio-admin-request-body strong { font-size: 1.05rem; }
.radio-admin-request-body p { margin: 4px 0; font-size: 0.92rem; }
.radio-admin-request-body small { color: var(--text-muted); }
.radio-admin-request-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.backend-body .card-header.bg-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)) !important; }
.backend-body .btn-primary { background: var(--primary); border-color: var(--primary); }
.backend-body .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.backend-body .btn-outline-primary, .radio-site .btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.backend-body .btn-outline-primary:hover, .radio-site .btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.text-primary { color: var(--primary) !important; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 991.98px) {
    .nav-listen { margin: 10px 0; }
    .radio-bar-show { display: none; }
}
@media (max-width: 767.98px) {
    :root { --radio-bar-height: 66px; }
    .radio-hero { border-radius: 22px; }
    .radio-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .radio-hero-disc { width: 190px; max-width: 60%; margin: 0 auto; }
    .radio-hero-top, .radio-hero-links, .radio-hero-show { justify-content: center; }
    .radio-hero-now { flex-direction: column; text-align: center; }
    .radio-play-xl { width: 72px; height: 72px; }
    .radio-cta-badge { margin-left: 0; width: 100%; }
    .radio-bar .radio-volume, .radio-bar-listeners, .radio-bar [data-radio-popup], .radio-bar .radio-quality { display: none; }
    .radio-play { width: 46px; height: 46px; }
    .radio-slot { flex-wrap: wrap; gap: 12px; }
    .radio-slot .radio-thumb-lg { display: none; }
    .radio-chart { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 12px; }
    .radio-chart-trend, .radio-chart-meta { display: none; }
    .radio-playlist-show { display: none; }
    .radio-admin-request { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .radio-vinyl, .radio-eq i, .onair-badge .onair-dot, body::before, .hero-section h1, .feature-card-highlight { animation: none !important; }
    .radio-play, .radio-dj, .btn-foxi, .nav-listen { transition: none; }
}

/* ---------- Feinschliff ---------- */
.radio-panel-head h2, .radio-slot-body h3, .radio-dj-body h3, .radio-page-head h1 { color: var(--text-primary); }
.radio-studio-card h2 { color: var(--stage-text); }
.left-widgets-column { margin-top: 20px; }
.cookie-consent { max-width: 460px; }
.cookie-content { flex-wrap: wrap; }
.cookie-text { min-width: 200px; }
.cookie-text h5 { font-size: 1rem; }

/* ============================================
   ============================================
   COMMUNITY
   ============================================
   ============================================ */
.c-page, .c-home-wrap { color: var(--text-primary); }
.c-page { padding: 8px 4px 20px; }
.c-page a, .c-home a, .c-latest a { color: inherit; }
.c-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.c-head h1 { font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.8px; margin: 0 0 4px; color: var(--text-primary); overflow-wrap: anywhere; }
.c-head h1 > i { color: var(--primary); margin-right: 8px; font-size: 0.8em; }
.c-head p { margin: 0; color: var(--text-muted); max-width: 62ch; }
.c-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-sm.btn-foxi, .btn-sm.btn-ghost { padding: 8px 18px; font-size: 0.85rem; }
.c-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; margin-bottom: 14px; color: var(--text-muted); }
.c-crumbs a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.c-crumbs a:hover { color: var(--primary); }
.c-crumbs > i { font-size: 0.6rem; opacity: 0.6; }
.c-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 0.92rem; border: 1px solid transparent; }
.c-alert-ok { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); color: #0f9f72; }
.c-alert-err { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #e5484d; }
[data-theme="dark"] .c-alert-ok { color: #5eead4; }
[data-theme="dark"] .c-alert-err { color: #fca5a5; }
.c-prompt { text-align: center; padding: 34px 20px; margin-top: 20px; border: 2px dashed var(--border-color); border-radius: 18px; color: var(--text-muted); }
.c-prompt > i { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.c-prompt p { margin: 0 0 14px; }
.c-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 800; }
.c-icon-btn { width: 32px; height: 32px; flex-shrink: 0; border: none; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.c-icon-btn:hover { background: var(--table-header-bg); color: var(--primary); }
.c-search { display: flex; gap: 4px; align-items: center; }
.c-search input { min-width: 200px; border-radius: 50px; padding: 8px 16px; }
.c-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.c-tabs a { padding: 10px 16px; font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.c-tabs a:hover { color: var(--text-primary); }
.c-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.c-pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 22px 0 6px; }
.c-pager a, .c-pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 700; font-size: 0.88rem; text-decoration: none; color: var(--text-primary); border: 1px solid var(--border-color); background: var(--stats-card-bg); }
.c-pager span { border: none; background: none; color: var(--text-muted); }
.c-pager a:hover { border-color: var(--primary); }
.c-pager a.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: transparent; color: #fff; }

/* ---------- Avatare, Namen, Abzeichen ---------- */
.c-avatar { --h: 340; position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h), 70%, 52%), hsl(calc(var(--h) + 40), 70%, 38%)); color: #fff; font-family: var(--font-display); font-weight: 800; }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.c-avatar-xs { width: 28px; height: 28px; font-size: 0.75rem; }
.c-avatar-sm { width: 38px; height: 38px; font-size: 0.95rem; }
.c-avatar-md { width: 52px; height: 52px; font-size: 1.25rem; }
.c-avatar-lg { width: 72px; height: 72px; font-size: 1.7rem; }
.c-avatar-xl { width: 120px; height: 120px; font-size: 2.8rem; }
.c-online-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 2px var(--card-bg); }
.c-avatar .c-online-dot { position: absolute; right: 4%; bottom: 4%; width: 22%; height: 22%; min-width: 9px; min-height: 9px; }
.c-user { font-weight: 700; text-decoration: none; color: var(--text-primary); }
a.c-user:hover { color: var(--primary); }
.c-user-gone { font-weight: 500; font-style: italic; color: var(--text-muted); }
.c-badge { display: inline-block; padding: 2px 9px; border-radius: 50px; font-family: 'Inter', sans-serif; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; vertical-align: middle; background: var(--table-header-bg); color: var(--text-muted); }
.c-badge-admin { background: var(--primary); color: #fff; }
.c-badge-moderator { background: var(--secondary); color: #fff; }
.c-badge-dj, .c-badge-editor { background: var(--accent); color: #1a1205; }
.c-badge-banned { background: #6b7280; color: #fff; }
.c-rank { display: block; font-size: 0.74rem; font-weight: 700; color: var(--primary); }

/* ---------- Navigation ---------- */
.c-nav-guest { display: flex; align-items: center; gap: 6px; margin-left: 10px; white-space: nowrap; }
.c-nav-login { padding: 9px 14px; font-weight: 700; font-size: 0.88rem; color: var(--text-primary); text-decoration: none; }
.c-nav-login:hover { color: var(--primary); }
.c-nav-register { padding: 9px 16px; border-radius: 50px; font-weight: 700; font-size: 0.88rem; color: var(--primary); border: 2px solid var(--primary); text-decoration: none; }
.c-nav-register:hover { background: var(--primary); color: #fff; }
.c-nav-user { margin-left: 10px; }
.c-nav-userbtn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 50px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.c-nav-userbtn:hover { border-color: var(--primary); }
.c-nav-userbtn > i { font-size: 0.6rem; color: var(--text-muted); }
.c-nav-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-menu { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 8px; min-width: 230px; box-shadow: 0 20px 50px var(--shadow-color); }
.c-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 12px; color: var(--text-primary); font-weight: 600; font-size: 0.9rem; }
.c-menu .dropdown-item i { width: 18px; color: var(--primary); }
.c-menu .dropdown-item:hover, .c-menu .dropdown-item:focus { background: var(--table-header-bg); color: var(--text-primary); }
.c-menu .dropdown-item .c-count { margin-left: auto; }
.c-menu .dropdown-divider { border-color: var(--border-color); }

/* ---------- Startseite ---------- */
.c-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 3.5vw, 40px); margin-bottom: 26px; border-radius: 24px; color: var(--stage-text); background: var(--stage-bg); border: 1px solid var(--stage-line); background-image: radial-gradient(60% 120% at 0% 0%, rgba(var(--primary-rgb), 0.38), transparent 60%), radial-gradient(50% 120% at 100% 100%, rgba(var(--secondary-rgb), 0.38), transparent 60%); }
.c-hero h2 { font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.8px; margin: 8px 0; color: var(--stage-text); }
.c-hero p { color: var(--stage-muted); max-width: 56ch; margin: 0 0 18px; }
.c-hero-big { padding: clamp(28px, 6vw, 72px) clamp(22px, 4vw, 56px); }
.c-hero-big h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); letter-spacing: -1.5px; line-height: 1.05; }
.c-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.c-hero-ghost { color: var(--stage-text); border-color: rgba(255, 255, 255, 0.25); }
.c-hero-ghost:hover { color: #fff; border-color: #fff; }
.c-hero-faces { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; flex-shrink: 0; }
.c-hero-faces .c-avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.c-hero-faces .c-avatar:nth-child(even) { transform: translateY(14px); }
.c-latest { list-style: none; margin: 0; padding: 0; }
.c-latest li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-color); }
.c-latest li:last-child { border-bottom: none; }
.c-latest li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-latest li > div > a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.c-latest li > div > a:hover { color: var(--primary); }
.c-latest li > div > span { font-size: 0.8rem; color: var(--text-muted); }
.c-latest li > div > span .c-user { font-weight: 600; color: var(--text-muted); }
.c-latest-count { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.c-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 14px 8px; }
.c-faces a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; min-width: 0; }
.c-faces a span:last-child { font-size: 0.74rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-faces-sm { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Shoutbox ---------- */
.c-shout-list { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
.c-shout-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.c-shout-list li > div { flex: 1; min-width: 0; }
.c-shout-meta { display: block; font-size: 0.8rem; }
.c-shout-meta time { color: var(--text-muted); font-size: 0.72rem; margin-left: 4px; }
.c-shout-text { display: block; font-size: 0.9rem; overflow-wrap: anywhere; color: var(--text-secondary); }
.c-shout-empty, .c-shout-login { color: var(--text-muted); font-size: 0.86rem; }
.c-shout-login { margin: 10px 0 0; }
.c-shout-login a { color: var(--primary); font-weight: 700; }
.c-shout-form { display: flex; gap: 8px; margin-top: 12px; }
.c-shout-form input { border-radius: 50px; padding: 9px 16px; }
.c-shout-send { width: 40px; height: 40px; font-size: 0.85rem; box-shadow: none; }

/* ---------- Forum ---------- */
.c-cat { margin-bottom: 26px; }
.c-cat h2 { font-size: 0.74rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin: 0 0 10px 4px; font-family: 'Inter', sans-serif; }
.c-board { display: grid; grid-template-columns: 52px 1fr 90px minmax(160px, 240px); align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 8px; border-radius: 16px; text-decoration: none; background: var(--stats-card-bg); border: 1px solid var(--border-color); transition: border-color .2s, transform .2s; }
.c-board:hover { border-color: var(--primary); transform: translateX(3px); }
.c-board-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.c-board-text, .c-board-last { display: flex; flex-direction: column; min-width: 0; }
.c-board-text strong { font-family: var(--font-display); font-size: 1.1rem; }
.c-board em, .c-board-count { font-style: normal; font-size: 0.82rem; color: var(--text-muted); }
.c-board-count { text-align: center; }
.c-board-count strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); }
.c-board-last strong { font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-stats { display: grid; grid-template-columns: repeat(3, 120px) 1fr; gap: 12px; margin-top: 8px; }
.c-stats > div { padding: 16px; border-radius: 16px; background: var(--stats-card-bg); border: 1px solid var(--border-color); }
.c-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.c-stats span { font-size: 0.8rem; color: var(--text-muted); }
.c-stats-online p { margin: 6px 0 0; font-size: 0.86rem; line-height: 1.7; }
.c-stats-online p .c-user { margin-right: 6px; }
.c-rules-link { margin: 16px 4px 0; font-size: 0.84rem; }
.c-rules-link a { color: var(--text-muted); }
.c-topics { list-style: none; margin: 0; padding: 0; }
.c-topic { display: grid; grid-template-columns: 38px 1fr 80px 80px 130px; align-items: center; gap: 14px; padding: 13px 16px; margin-bottom: 6px; border-radius: 14px; background: var(--stats-card-bg); border: 1px solid var(--border-color); }
.c-topic.is-pinned { border-left: 3px solid var(--accent); }
.c-topic-main { min-width: 0; display: flex; flex-direction: column; }
.c-topic-main > a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.c-topic-main > a:hover { color: var(--primary); }
.c-topic-main > a i { color: var(--accent); font-size: 0.8em; }
.c-topic-main > span, .c-topic-last span { font-size: 0.78rem; color: var(--text-muted); }
.c-topic-main > span .c-user, .c-topic-last .c-user { font-weight: 600; color: var(--text-muted); }
.c-topic-num { text-align: center; font-size: 0.72rem; color: var(--text-muted); }
.c-topic-num strong { display: block; font-size: 1rem; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.c-topic-last { display: flex; flex-direction: column; text-align: right; font-size: 0.82rem; }
.c-topic-last a { text-decoration: none; font-weight: 600; }
.c-modbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.c-modbar .form-select { width: auto; padding: 6px 30px 6px 10px; border-radius: 50px; font-size: 0.82rem; }
.c-post { display: grid; grid-template-columns: 170px 1fr; margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: var(--stats-card-bg); border: 1px solid var(--border-color); scroll-margin-top: 100px; }
.c-post:target { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.c-post-author { padding: 20px 14px; text-align: center; background: var(--table-header-bg); border-right: 1px solid var(--border-color); }
.c-post-authorinfo { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; overflow-wrap: anywhere; }
.c-post-stat { font-size: 0.72rem; color: var(--text-muted); }
.c-post-body { padding: 16px 22px 12px; min-width: 0; display: flex; flex-direction: column; }
.c-post-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--border-color); }
.c-post-meta a { color: var(--text-muted); text-decoration: none; font-weight: 700; }
.c-text { line-height: 1.7; overflow-wrap: anywhere; color: var(--text-secondary); }
.c-text a { color: var(--primary); }
.c-quote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: var(--table-header-bg); font-size: 0.92em; }
.c-quote cite { display: block; font-style: normal; font-weight: 700; font-size: 0.8rem; color: var(--primary); margin-bottom: 4px; }
.c-code { margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: #0d0b16; color: #e5e3f5; font-size: 0.85rem; white-space: pre-wrap; overflow-x: auto; }
.c-mention { font-weight: 700; text-decoration: none; }
.c-edited { margin: 12px 0 0; font-size: 0.74rem; font-style: italic; color: var(--text-muted); }
.c-signature { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border-color); font-size: 0.8rem; color: var(--text-muted); }
.c-post-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: auto; padding-top: 14px; }
.c-post-actions form { margin: 0; }
.c-action, .c-like, .c-report > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 50px; border: none; background: transparent; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; cursor: pointer; text-decoration: none; list-style: none; }
.c-report > summary::-webkit-details-marker { display: none; }
.c-action:hover, .c-like:hover:not(:disabled), .c-report > summary:hover { background: var(--table-header-bg); color: var(--primary); }
.c-like { border: 1px solid var(--border-color); font-variant-numeric: tabular-nums; }
.c-like:disabled { cursor: default; }
.c-like.is-liked { background: var(--primary); border-color: var(--primary); color: #fff; }
.c-like.is-liked:hover:not(:disabled) { background: var(--primary-dark); color: #fff; }
.c-report { position: relative; margin-left: auto; }
.c-report[open] > form { position: absolute; right: 0; bottom: 110%; z-index: 20; display: flex; gap: 6px; width: min(320px, 80vw); padding: 10px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 16px 40px var(--shadow-color); }
.c-profile-actions .c-report[open] > form { bottom: auto; top: 110%; }
.c-reply h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 12px; color: var(--text-primary); }
.c-reply { margin-top: 20px; scroll-margin-top: 100px; }
.c-editor-bar { display: flex; gap: 2px; padding: 6px; border: 2px solid var(--input-border); border-bottom: none; border-radius: 12px 12px 0 0; background: var(--table-header-bg); }
.c-editor-bar button { width: 34px; height: 32px; border: none; border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; }
.c-editor-bar button:hover { background: var(--card-bg); color: var(--primary); }
.c-editor textarea { border-radius: 0 0 12px 12px; }
.c-editor textarea:focus { transform: none; }

/* ---------- Mitglieder & Profil ---------- */
.c-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.c-member { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; border-radius: 18px; text-align: center; text-decoration: none; background: var(--stats-card-bg); border: 1px solid var(--border-color); transition: border-color .2s, transform .2s; }
.c-member:hover { border-color: var(--primary); transform: translateY(-3px); }
.c-member strong { margin-top: 8px; font-family: var(--font-display); font-size: 1.05rem; overflow-wrap: anywhere; }
.c-member-meta { font-size: 0.74rem; color: var(--text-muted); }
.c-profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: clamp(20px, 3vw, 34px); margin-bottom: 24px; border-radius: 24px; color: var(--stage-text); background: var(--stage-bg); border: 1px solid var(--stage-line); background-image: radial-gradient(60% 140% at 0% 0%, rgba(var(--primary-rgb), 0.35), transparent 60%), radial-gradient(50% 140% at 100% 100%, rgba(var(--secondary-rgb), 0.32), transparent 60%); }
.c-profile-avatar .c-avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); }
.c-profile-info { flex: 1; min-width: 220px; }
.c-profile-info h1 { font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -1px; margin: 0; color: var(--stage-text); overflow-wrap: anywhere; }
.c-profile-status { margin: 4px 0 12px; font-size: 0.88rem; color: var(--stage-muted); }
.c-profile-status .c-online-dot { box-shadow: none; margin-right: 4px; }
.c-profile-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86rem; color: var(--stage-muted); }
.c-profile-facts i { color: var(--accent); margin-right: 5px; }
.c-profile-facts a { color: var(--stage-text); }
.c-profile-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.c-profile-actions form { margin: 0; }
.c-profile-actions .btn { width: 100%; }
.c-profile-actions .btn-ghost { color: var(--stage-text); border-color: rgba(255, 255, 255, 0.25); }
.c-profile-actions .c-report > summary { color: var(--stage-muted); justify-content: center; }
.c-wall-form { padding-bottom: 14px; border-bottom: 1px solid var(--border-color); }
.c-wall-post { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.c-wall-post:last-child { border-bottom: none; padding-bottom: 0; }
.c-wall-post > div { flex: 1; min-width: 0; }
.c-wall-post form { margin: 0; }
.c-avatar-edit { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.c-avatar-edit > div { flex: 1; min-width: 200px; }
.c-danger > summary { cursor: pointer; font-weight: 700; color: var(--danger); }
.c-friendlist { list-style: none; margin: 0; padding: 0; }
.c-friendlist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.c-friendlist li:last-child { border-bottom: none; }
.c-friendlist li strong { flex: 1; min-width: 0; }
.c-friendlist form { margin: 0; }

/* ---------- Nachrichten & Benachrichtigungen ---------- */
.c-msglist, .c-notes { list-style: none; margin: 0; padding: 0; }
.c-msglist li a, .c-notes li > a, .c-notes li > div { display: flex; align-items: center; gap: 14px; padding: 13px 16px; margin-bottom: 6px; border-radius: 14px; text-decoration: none; background: var(--stats-card-bg); border: 1px solid var(--border-color); }
.c-msglist li a:hover, .c-notes li > a:hover { border-color: var(--primary); }
.c-msglist li.is-unread a, .c-notes li.is-unread > a, .c-notes li.is-unread > div { border-left: 3px solid var(--primary); }
.c-msglist li.is-unread strong { color: var(--primary); }
.c-msg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-msg-main em { font-style: normal; font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-msglist time, .c-notes time { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; }
.c-notes li i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--table-header-bg); color: var(--primary); }
.c-notes li span { flex: 1; min-width: 0; font-size: 0.92rem; }
.c-message header { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.c-message header h2 { font-size: 1.25rem; font-weight: 800; margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }
.c-message header span { font-size: 0.82rem; color: var(--text-muted); }
.c-message form { margin: 0; }

/* ---------- Anmelden & Registrieren ---------- */
.c-auth { display: flex; justify-content: center; padding: 10px 0 20px; }
.c-auth-card { width: 100%; max-width: 460px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--stats-card-bg); border: 1px solid var(--border-color); }
.c-auth-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #fff; font-size: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.35); }
.c-auth-card h1 { text-align: center; font-weight: 900; font-size: 1.7rem; letter-spacing: -0.6px; margin: 0; color: var(--text-primary); }
.c-auth-sub { text-align: center; color: var(--text-muted); margin: 4px 0 22px; }
.c-auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; font-size: 0.86rem; }
.c-auth-links a { color: var(--primary) !important; font-weight: 700; text-decoration: none; }
.c-auth-note { margin: 14px 0 0; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Widgets ---------- */
.c-widget-user { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.c-widget-user div { display: flex; flex-direction: column; min-width: 0; }
.c-widget-user span { font-size: 0.78rem; color: var(--primary); font-weight: 700; }
.c-widget-links { display: flex; flex-direction: column; gap: 2px; }
.c-widget-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--text-primary); }
.c-widget-links a:hover { background: var(--table-header-bg); }
.c-widget-links a i { width: 16px; color: var(--primary); }
.c-widget-links .c-count { margin-left: auto; }
.c-widget-online { font-size: 0.88rem; margin: 0 0 10px; }
.widget-community-latest .c-latest li { padding: 8px 0; }
.widget-community-latest .c-latest-count { display: none; }
.widget-community-shoutbox .c-shout-list { max-height: 240px; }

@media (max-width: 991.98px) {
    .c-nav-guest, .c-nav-user { margin: 10px 0; }
    .c-board { grid-template-columns: 52px 1fr 70px; }
    .c-board-last { display: none; }
    .c-topic { grid-template-columns: 38px 1fr 70px; }
    .c-topic-num:nth-of-type(3), .c-topic-last { display: none; }
    .c-stats { grid-template-columns: repeat(3, 1fr); }
    .c-stats-online { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .c-hero { flex-direction: column; align-items: flex-start; }
    .c-hero-faces { display: none; }
    .c-post { grid-template-columns: 1fr; }
    .c-post-author { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; border-right: none; border-bottom: 1px solid var(--border-color); }
    .c-post-author .c-avatar-lg { width: 44px; height: 44px; font-size: 1.1rem; }
    .c-post-authorinfo { margin: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
    .c-post-stat { display: none; }
    .c-post-body { padding: 14px 16px 10px; }
    .c-action span, .c-report > summary span { display: none; }
    .c-board { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; }
    .c-board-icon { width: 44px; height: 44px; }
    .c-board-count { display: none; }
    .c-topic { grid-template-columns: 1fr auto; }
    .c-topic > .c-avatar { display: none; }
    .c-profile-head { flex-direction: column; text-align: center; }
    .c-profile-facts { justify-content: center; }
    .c-profile-actions { width: 100%; }
    .c-search input { min-width: 0; width: 100%; }
    .c-search { width: 100%; }
}

/* ---------- Navigation: Platz für viele Menüpunkte + Konto ---------- */
.radio-site .navbar-main > .container { max-width: min(1560px, 97vw); }
.radio-site .navbar-brand { font-size: clamp(1.1rem, 1.5vw, 1.6rem); max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 12px; }
.radio-site .navbar-nav { flex-wrap: nowrap; }
.radio-site .navbar-nav .nav-link { padding: 9px 10px !important; margin: 0 1px; font-size: 0.86rem; white-space: nowrap; }
.radio-site .dark-mode-toggle { width: 40px; height: 40px; margin-left: 10px; flex-shrink: 0; }
.nav-listen { flex-shrink: 0; }
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .nav-listen { padding: 8px; }
    .nav-listen [data-radio-toggle-label] { display: none; }
    .radio-site .navbar-nav .nav-icon { display: none; }
    .c-nav-name { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .c-nav-register { display: none; }
    .radio-site .navbar-nav .nav-link { padding: 9px 7px !important; font-size: 0.82rem; }
}
@media (max-width: 1199.98px) {
    .nav-listen, .c-nav-guest, .c-nav-user { margin: 10px 0; }
    .radio-site .navbar-nav { flex-wrap: wrap; }
    .radio-site .navbar-nav .nav-link { padding: 10px 12px !important; }
}

/* ============================================
   ============================================
   BACKEND: Seitenleiste, Kopfzeile, Dashboard
   ============================================
   ============================================ */
:root { --adm-bg: #f4f3f9; --adm-side-w: 268px; }
[data-theme="dark"] { --adm-bg: #0b0a12; }
body.adm-layout { background: var(--adm-bg); padding-left: var(--adm-side-w); min-height: 100vh; }
body.adm-layout::before { display: none; }
.adm-side { position: fixed; top: 0; left: 0; bottom: 0; width: var(--adm-side-w); z-index: 1040; display: flex; flex-direction: column; background: var(--card-bg); border-right: 1px solid var(--border-color); }
.adm-brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; text-decoration: none; color: var(--text-primary); }
.adm-brand-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3); }
.adm-brand > span:last-child { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.adm-brand strong { font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-brand small { font-size: 0.66rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.adm-filter { position: relative; margin: 0 14px 10px; }
.adm-filter i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; color: var(--text-muted); }
.adm-filter input { width: 100%; padding: 9px 12px 9px 34px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--adm-bg); color: var(--text-primary); font-size: 0.86rem; outline: none; }
.adm-filter input:focus { border-color: var(--primary); }
.adm-menu { flex: 1; overflow-y: auto; padding: 4px 10px 14px; scrollbar-width: thin; }
.adm-link, .adm-group > summary { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; font-size: 0.89rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; cursor: pointer; list-style: none; }
.adm-group > summary::-webkit-details-marker { display: none; }
.adm-link > i:first-child, .adm-group > summary > i:first-child { width: 18px; text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.adm-link > span, .adm-group > summary > span { flex: 1; min-width: 0; }
.adm-link:hover, .adm-group > summary:hover { background: var(--adm-bg); color: var(--text-primary); }
.adm-link.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.28); }
.adm-link.active > i:first-child { color: #fff; }
.adm-link:focus-visible, .adm-group > summary:focus-visible, .adm-icon:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.adm-group { margin-top: 2px; }
.adm-group > summary { font-weight: 700; color: var(--text-primary); }
.adm-group > summary > i:first-child { color: var(--primary); }
.adm-group > .adm-link { margin-left: 14px; padding-left: 14px; border-left: 0; font-size: 0.86rem; }
.adm-caret { font-size: 0.6rem; color: var(--text-muted); transition: transform .2s; }
.adm-group[open] > summary .adm-caret { transform: rotate(180deg); }
.adm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 800; }
.adm-link.active .adm-badge { background: rgba(255, 255, 255, 0.28); }
.adm-nohit { padding: 14px 12px; font-size: 0.84rem; color: var(--text-muted); }
.adm-side-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-color); font-size: 0.86rem; font-weight: 700; color: var(--text-secondary); text-decoration: none; }
.adm-side-foot:hover { color: var(--primary); }
.adm-top { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 14px; height: 66px; padding: 0 clamp(14px, 2.4vw, 32px); background: color-mix(in srgb, var(--adm-bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-color); }
.adm-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; color: var(--text-primary); }
.adm-title small { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); }
.adm-title strong { font-family: var(--font-display); font-size: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-top-actions { display: flex; align-items: center; gap: 8px; }
.adm-top-actions form { margin: 0; }
.adm-icon, .adm-burger { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.adm-icon:hover, .adm-burger:hover { border-color: var(--primary); color: var(--primary); }
.adm-icon-danger:hover { border-color: var(--danger); color: var(--danger); }
.adm-burger { display: none; }
.adm-user { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: var(--text-primary); }
.adm-user > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.adm-user strong { font-size: 0.88rem; }
.adm-user small { font-size: 0.72rem; color: var(--text-muted); }
.adm-overlay { display: none; }

/* Inhalt: ruhiger, einheitlicher */
.adm-layout .backend-container { max-width: 1500px; padding: clamp(16px, 2.4vw, 32px) !important; }
.adm-layout .backend-container > .calculator-card { background: transparent; border: none; box-shadow: none; padding: 0; overflow: visible; }
.adm-layout .backend-container > .calculator-card::before { display: none; }
.adm-layout .backend-container > .calculator-card > h4 { font-size: 1.05rem; font-weight: 700; color: var(--text-muted); }
.adm-layout .backend-container > .calculator-card > h4 i { color: var(--primary); }
.adm-layout .card { border-radius: 18px; border: 1px solid var(--border-color); background: var(--card-bg); box-shadow: none; overflow: hidden; color: var(--text-primary); }
.adm-layout .card.glass-effect { backdrop-filter: none; }
.adm-layout .card-header { padding: 16px 22px; border-bottom: 1px solid var(--border-color); }
.adm-layout .card-header.bg-primary, .adm-layout .card-header.bg-secondary, .adm-layout .card-header.bg-success, .adm-layout .card-header.bg-info, .adm-layout .card-header.bg-dark { background: transparent !important; color: var(--text-primary) !important; }
.adm-layout .card-header h5, .adm-layout .card-header h6 { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.adm-layout .card-header h5 i, .adm-layout .card-header h6 i { color: var(--primary); }
.adm-layout .card-body { padding: 22px; }
.adm-layout .form-control, .adm-layout .form-select { padding: 10px 14px; border-width: 1px; border-radius: 11px; font-size: 0.93rem; }
.adm-layout .form-control:focus, .adm-layout .form-select:focus { transform: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14); }
.adm-layout .form-control-sm, .adm-layout .form-select-sm { padding: 7px 11px; font-size: 0.84rem; }
.adm-layout .form-label { font-size: 0.86rem; margin-bottom: 5px; }
.adm-layout .btn-foxi { padding: 11px 26px; font-size: 0.92rem; }
.adm-layout .btn-foxi.btn-sm { padding: 8px 18px; font-size: 0.84rem; }
.adm-layout .table-custom { border-radius: 16px; }
.adm-layout .table-custom thead th { padding: 13px 16px; font-size: 0.74rem; }
.adm-layout .table-custom tbody td { padding: 13px 16px; font-size: 0.92rem; }
.adm-layout .table-custom tbody tr:hover { transform: none; box-shadow: none; }
.adm-layout .stat-dashboard-card { padding: 20px; box-shadow: none; }
.adm-layout .stat-dashboard-card::before { display: none; }
.adm-layout .stat-dashboard-card:hover { transform: none; box-shadow: none; }
.adm-layout .stat-dashboard-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; box-shadow: none; }
.adm-layout .stat-dashboard-value { font-size: 1.9rem; }
.adm-layout .alert { border-radius: 14px; border: 1px solid transparent; }
.adm-layout .empty-state { padding: 48px 24px; border-width: 2px; }
.adm-layout .empty-state i { font-size: 2.6rem; margin-bottom: 14px; }
.adm-layout .nav-pills .nav-link { padding: 8px 14px; font-size: 0.86rem; }

/* Dashboard-Bausteine */
.adm-hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-hello h2 { font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.8px; margin: 0; color: var(--text-primary); }
.adm-hello p { margin: 2px 0 0; color: var(--text-muted); }
.adm-card { position: relative; padding: 22px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-primary); }
.adm-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.adm-card-head h3 { font-size: 1.02rem; font-weight: 800; margin: 0; color: var(--text-primary); }
.adm-card-head h3 i { color: var(--primary); margin-right: 8px; }
.adm-section { font-size: 0.74rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin: 30px 0 14px; font-family: 'Inter', sans-serif; }
.adm-hint { font-size: 0.88rem; color: var(--text-muted); }
.adm-hint a, .adm-more { color: var(--primary); font-weight: 700; text-decoration: none; }
.adm-more { display: inline-block; margin-top: 14px; font-size: 0.84rem; }
.adm-more i { margin-left: 4px; }
.adm-empty { margin: 0; padding: 18px 0; color: var(--text-muted); font-size: 0.9rem; }
.adm-empty i { margin-right: 8px; color: var(--primary); }
.adm-todo { margin-bottom: 20px; }
.adm-allgood { margin: 0; color: #10b981; font-weight: 700; }
.adm-allgood i { margin-right: 8px; }
.adm-todo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.adm-todo-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; background: var(--adm-bg); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 0.9rem; font-weight: 600; }
.adm-todo-list a:hover { border-color: var(--primary); }
.adm-todo-list a > span:nth-child(2) { flex: 1; }
.adm-todo-list a > i { color: var(--text-muted); }
.adm-todo-count { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 800; }
.adm-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 24px; }
.adm-quick a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; text-decoration: none; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-primary); font-weight: 700; font-size: 0.9rem; transition: border-color .2s, transform .2s; }
.adm-quick a:hover { border-color: var(--primary); transform: translateY(-2px); }
.adm-quick a i { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(var(--primary-rgb), 0.12); color: var(--primary); }
.adm-now { display: flex; flex-direction: column; margin: 0 0 14px; }
.adm-now strong { font-family: var(--font-display); font-size: 1.25rem; overflow-wrap: anywhere; }
.adm-now span { color: var(--text-muted); font-size: 0.9rem; }
.adm-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.adm-figures > div { padding: 12px 14px; border-radius: 14px; background: var(--adm-bg); min-width: 0; }
.adm-figures strong { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-figures span { font-size: 0.76rem; color: var(--text-muted); }
.adm-figures-lg > div { padding: 18px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 18px; }
.adm-figures-lg strong { font-size: 1.9rem; }
.adm-chart { width: 100%; height: auto; margin-top: 14px; display: block; }
.adm-chart-grid { stroke: var(--border-color); stroke-width: 1; }
.adm-chart-label { fill: var(--text-muted); font-size: 11px; font-family: 'Inter', sans-serif; }
.adm-chart-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.adm-live.is-live { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.adm-live form { margin: 0; }
.adm-live-now { margin: 0 0 14px; }
.adm-usage { margin-bottom: 12px; }
.adm-usage-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; margin-bottom: 5px; }
.adm-usage-label span { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }
.adm-usage-bar { height: 8px; border-radius: 8px; background: var(--adm-bg); overflow: hidden; }
.adm-usage-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.adm-usage-bar.is-full i { background: var(--danger); }
.adm-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.adm-tools > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--adm-bg); }
.adm-tools span { font-size: 0.84rem; color: var(--text-muted); flex: 1; }
.adm-fold > summary { cursor: pointer; font-weight: 700; list-style: none; }
.adm-fold > summary::-webkit-details-marker { display: none; }
.adm-fold > summary i { color: var(--primary); margin-right: 8px; }
.adm-layout .radio-admin-request { background: var(--card-bg); border: 1px solid var(--border-color); border-left: 4px solid var(--primary); }
.adm-layout .radio-admin-request-body form { margin: 0; }

@media (max-width: 991.98px) {
    body.adm-layout { padding-left: 0; }
    .adm-side { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(0, 0, 0, 0.4); }
    .adm-side.open { transform: none; }
    .adm-overlay.open { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(0, 0, 0, 0.5); }
    .adm-burger { display: inline-flex; }
    .adm-user > span:last-child { display: none; }
}
@media (max-width: 575.98px) {
    .adm-top-actions .onair-badge, .adm-top-actions > a.adm-icon:first-of-type { display: none; }
}

/* ============================================
   Titel-Bewertung, Umfragen, Gästebuch (Website)
   ============================================ */
.radio-rate { display: inline-flex; gap: 6px; flex-shrink: 0; }
.radio-rate button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 50px; border: 1px solid var(--stage-line); background: rgba(255, 255, 255, 0.06); color: var(--stage-muted); font-size: 0.78rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.radio-rate button:hover:not(:disabled) { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.radio-rate button:disabled { cursor: default; opacity: 0.75; }
.radio-rate button.is-mine { background: var(--primary); border-color: var(--primary); color: #fff; opacity: 1; }
.radio-hero-rate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 0.84rem; color: var(--stage-muted); }
.c-poll-q { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin: 0 0 14px; color: var(--text-primary); }
.c-poll-opt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--border-color); cursor: pointer; font-size: 0.92rem; }
.c-poll-opt:hover { border-color: var(--primary); }
.c-poll-opt input { accent-color: var(--primary); }
.c-poll-row { margin-bottom: 10px; }
.c-poll-label { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; margin-bottom: 4px; }
.c-poll-bar { height: 8px; border-radius: 8px; background: var(--table-header-bg); overflow: hidden; }
.c-poll-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.c-poll-meta { margin: 12px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.c-poll-meta a { color: var(--primary); font-weight: 700; }
.c-gb { display: flex; gap: 14px; padding: 18px; margin-bottom: 10px; border-radius: 18px; background: var(--stats-card-bg); border: 1px solid var(--border-color); }
.c-gb > div { flex: 1; min-width: 0; }
.c-gb header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.c-gb time { font-size: 0.78rem; color: var(--text-muted); }
.c-gb p { margin: 0; line-height: 1.65; overflow-wrap: anywhere; color: var(--text-secondary); }
.c-gb-reply { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: var(--table-header-bg); font-size: 0.9rem; }
.c-gb-reply strong { display: block; font-size: 0.78rem; color: var(--primary); margin-bottom: 2px; }
@media (max-width: 767.98px) { .radio-bar .radio-rate { display: none; } }
.adm-layout h4, .adm-layout h5, .adm-layout h6 { color: var(--text-primary); }
.adm-layout .backend-container a:not(.btn):not(.adm-link):not(.adm-more):not(.nav-link):not(.badge) { color: var(--primary); }

/* ============================================
   ============================================
   CHAT
   ============================================
   ============================================ */
.page-chat .main-content { padding: 14px !important; }
.chat { --chat-h: clamp(460px, calc(100vh - 250px), 900px); display: grid; grid-template-columns: 210px minmax(0, 1fr) 220px; height: var(--chat-h); border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color); background: var(--stats-card-bg); color: var(--text-primary); position: relative; }
.chat-rooms, .chat-users { display: flex; flex-direction: column; min-height: 0; background: var(--table-header-bg); }
.chat-rooms { border-right: 1px solid var(--border-color); }
.chat-users { border-left: 1px solid var(--border-color); }
.chat-rooms h2, .chat-users h2 { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin: 0; padding: 18px 16px 10px; display: flex; align-items: center; gap: 8px; }
.chat-users h2 b { background: var(--primary); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 0.66rem; letter-spacing: 0; }
.chat-rooms nav { overflow-y: auto; padding: 0 8px 12px; }
.chat-rooms a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 2px; border-radius: 11px; text-decoration: none; color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; }
.chat-rooms a > i:first-child { width: 18px; text-align: center; color: var(--text-muted); }
.chat-rooms a > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-rooms a:hover { background: var(--stats-card-bg); color: var(--text-primary); }
.chat-rooms a.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.chat-rooms a.active > i { color: #fff !important; }
.chat-room-lock { font-size: 0.7rem; color: var(--text-muted); }
.chat-room-count { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.chat-rooms a.active .chat-room-count { color: rgba(255, 255, 255, 0.85); }
.chat-room-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.chat-head-title { flex: 1; min-width: 0; }
.chat-head-title h1 { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-title h1 i { color: var(--primary); margin-right: 4px; }
.chat-head-title p { margin: 0; font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-radio { display: flex; align-items: center; gap: 10px; max-width: 260px; min-width: 0; padding: 5px 12px 5px 5px; border-radius: 50px; background: var(--table-header-bg); }
.chat-radio .radio-play { width: 34px; height: 34px; font-size: 0.75rem; box-shadow: none; }
.chat-radio span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.chat-radio strong, .chat-radio em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; }
.chat-radio em { font-style: normal; color: var(--text-muted); font-size: 0.72rem; }
.chat-head-tools { display: flex; gap: 4px; }
.chat-head-tools .c-icon-btn.is-on { color: var(--primary); }
.chat-users-toggle { display: none; position: relative; }
.chat-users-toggle b { position: absolute; top: -2px; right: -4px; font-size: 0.6rem; background: var(--primary); color: #fff; border-radius: 8px; padding: 0 5px; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 6px 6px; scrollbar-width: thin; }
.chat-welcome { margin: 6px 12px 12px; padding: 10px 14px; border-radius: 12px; background: var(--table-header-bg); font-size: 0.84rem; color: var(--text-muted); }
.chat-welcome i { color: var(--accent); margin-right: 6px; }
.chat-older { display: block; margin: 4px auto 10px; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); border-radius: 50px; padding: 6px 16px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.chat-older:hover { color: var(--primary); border-color: var(--primary); }
.chat-list { list-style: none; margin: 0; padding: 0; }
.chat-msg { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 6px 10px; margin: 0 4px; border-radius: 12px; }
.chat-msg:hover { background: var(--table-header-bg); }
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 0.86rem; }
.chat-msg-head time { font-size: 0.7rem; color: var(--text-muted); }
.chat-msg-text { font-size: 0.93rem; line-height: 1.5; overflow-wrap: anywhere; color: var(--text-secondary); margin: 0; }
.chat-msg-text a { color: var(--primary); }
.chat-msg-text .c-quote { margin: 4px 0; padding: 6px 10px; }
.chat-msg.is-mine .chat-msg-head .c-user { color: var(--primary); }
.chat-msg.is-mention { background: rgba(var(--accent-rgb), 0.1); box-shadow: inset 3px 0 0 var(--accent); }
.chat-msg.is-me .chat-msg-text { color: var(--text-primary); }
.chat-msg.is-deleted .chat-msg-text { font-style: italic; color: var(--text-muted); font-size: 0.84rem; }
.chat-msg.is-system { justify-content: center; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-muted); padding: 4px 10px; }
.chat-msg.is-system:hover { background: none; }
.chat-msg.is-system i { color: var(--primary); }
.chat-msg.is-system time { font-size: 0.68rem; opacity: 0.8; }
.chat-msg-actions { position: absolute; right: 8px; top: -10px; display: none; gap: 2px; padding: 3px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 6px 18px var(--shadow-color); }
.chat-msg:hover .chat-msg-actions, .chat-msg:focus-within .chat-msg-actions { display: flex; }
.chat-msg-actions button, .chat-users li button { width: 28px; height: 28px; border: none; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.78rem; }
.chat-msg-actions button:hover, .chat-users li button:hover { background: var(--table-header-bg); color: var(--primary); }
.chat-jump { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 3; border: none; border-radius: 50px; padding: 7px 16px; font-size: 0.8rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35); cursor: pointer; }
.chat-typing { min-height: 22px; padding: 0 18px; font-size: 0.76rem; color: var(--text-muted); }
.chat-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 4px; }
.chat-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: chatDot 1.2s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: 0.2s; }
.chat-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-local { position: relative; margin: 0 14px 8px; padding: 10px 40px 10px 14px; border-radius: 12px; background: var(--table-header-bg); border: 1px solid var(--border-color); font-size: 0.84rem; }
.chat-local.is-error { border-color: rgba(239, 68, 68, 0.4); color: #e5484d; }
.chat-local > button { position: absolute; top: 4px; right: 4px; }
.chat-local dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 8px 0 0; }
.chat-local dt { font-family: monospace; font-weight: 600; color: var(--primary); }
.chat-local dd { margin: 0; color: var(--text-muted); }
.chat-form { padding: 0 14px 14px; }
.chat-muted { margin-bottom: 8px; font-size: 0.82rem; color: var(--danger); }
.chat-input { position: relative; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 8px; border-radius: 50px; border: 1px solid var(--input-border); background: var(--input-bg); }
.chat-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14); }
.chat-input input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--text-primary); font-size: 0.95rem; padding: 8px 4px; }
.chat-input input:disabled { opacity: 0.5; }
.chat-send { width: 40px; height: 40px; font-size: 0.85rem; box-shadow: none; }
.chat-emoji-pop { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; display: grid; grid-template-columns: repeat(6, 38px); gap: 2px; padding: 8px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 16px 40px var(--shadow-color); }
.chat-emoji-pop[hidden] { display: none; }
.chat-emoji-pop button { width: 38px; height: 38px; border: none; border-radius: 10px; background: transparent; font-size: 1.25rem; cursor: pointer; }
.chat-emoji-pop button:hover { background: var(--table-header-bg); }
.chat-guest { margin: 0 14px 14px; padding: 12px 16px; border-radius: 14px; background: var(--table-header-bg); font-size: 0.88rem; color: var(--text-muted); }
.chat-guest a { color: var(--primary); font-weight: 700; }
.chat-users ul { list-style: none; margin: 0; padding: 0 8px; overflow-y: auto; flex: 1; }
.chat-users li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 0.86rem; }
.chat-users li:hover { background: var(--stats-card-bg); }
.chat-users li > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-users li button { display: none; }
.chat-users li:hover button, .chat-users li:focus-within button { display: inline-block; }
.chat-users-empty { color: var(--text-muted); font-size: 0.82rem; }
.chat-users-hint { margin: 0; padding: 10px 16px 14px; font-size: 0.7rem; color: var(--text-muted); }
@media (max-width: 1199.98px) { .chat { grid-template-columns: 190px minmax(0, 1fr); } .chat-users { position: absolute; top: 0; right: 0; bottom: 0; width: 240px; z-index: 6; transform: translateX(100%); transition: transform .2s; box-shadow: -20px 0 40px var(--shadow-color); } .chat.show-users .chat-users { transform: none; } .chat-users-toggle { display: inline-flex; } }
@media (max-width: 767.98px) {
    .page-chat .main-content { padding: 6px !important; }
    .chat { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); --chat-h: calc(100vh - 190px); border-radius: 14px; }
    .chat-rooms { border-right: none; border-bottom: 1px solid var(--border-color); }
    .chat-rooms h2 { display: none; }
    .chat-rooms nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px; }
    .chat-rooms a { flex-shrink: 0; margin: 0; padding: 7px 12px; }
    .chat-radio { display: none; }
    .chat-msg-actions { display: flex; position: static; box-shadow: none; border: none; background: none; padding: 0; }
}

/* ============================================
   WARTUNGSMODUS
   ============================================ */
.mt-body { min-height: 100vh; margin: 0; padding: 24px; display: flex; align-items: center; justify-content: center; background: var(--stage-bg); background-image: radial-gradient(60% 50% at 10% 10%, rgba(var(--primary-rgb), 0.35), transparent 60%), radial-gradient(60% 50% at 90% 90%, rgba(var(--secondary-rgb), 0.35), transparent 60%); color: var(--stage-text); }
.mt-body::before { display: none; }
.mt-card { width: 100%; max-width: 560px; text-align: center; padding: clamp(28px, 5vw, 48px); border-radius: 28px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stage-line); backdrop-filter: blur(12px); }
.mt-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 26px; }
.mt-gear { position: relative; width: 90px; height: 70px; margin: 0 auto 18px; }
.mt-gear i { position: absolute; color: var(--primary); }
.mt-gear-a { font-size: 3.4rem; left: 6px; top: 0; animation: mtSpin 6s linear infinite; }
.mt-gear-b { font-size: 2.1rem; right: 4px; bottom: 0; color: var(--accent) !important; animation: mtSpin 4s linear infinite reverse; }
@keyframes mtSpin { to { transform: rotate(360deg); } }
.mt-card h1 { font-weight: 900; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -1px; margin: 8px 0 14px; color: var(--stage-text); }
.mt-text { color: var(--stage-muted); font-size: 1.02rem; line-height: 1.7; margin: 0 0 24px; }
.mt-countdown { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.mt-countdown div { min-width: 84px; padding: 14px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--stage-line); }
.mt-countdown strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.mt-countdown span { font-size: 0.72rem; color: var(--stage-muted); text-transform: uppercase; letter-spacing: 1px; }
.mt-until { font-size: 0.86rem; color: var(--stage-muted); margin: 0 0 22px; }
.mt-radio { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-align: left; margin: 0 auto 22px; padding: 10px 18px 10px 10px; border-radius: 50px; background: rgba(255, 255, 255, 0.07); max-width: 420px; }
.mt-radio > div:not(.radio-bar-msg) { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.mt-radio strong, .mt-radio em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-radio em { font-style: normal; font-size: 0.82rem; color: var(--stage-muted); }
.mt-radio .radio-bar-msg { width: 100%; border-radius: 10px; }
.mt-links { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
.mt-links a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); color: var(--stage-text); text-decoration: none; }
.mt-links a:hover { background: var(--primary); }
.mt-team { font-size: 0.78rem; color: var(--stage-muted); text-decoration: none; }
.mt-team:hover { color: #fff; }
.mt-teambar { position: fixed; left: 16px; bottom: 16px; z-index: 10060; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 14px; font-size: 0.84rem; color: #1a1205; background: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.mt-teambar a { font-weight: 800; color: #1a1205; white-space: nowrap; }
body.has-radio-bar .mt-teambar { bottom: calc(var(--radio-bar-height) + 16px); }
.mt-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; font-size: 0.9rem; background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.4); color: var(--text-primary); }
.mt-notice i { color: var(--accent); margin-top: 3px; }
/* Backend */
.adm-maint-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 800; text-decoration: none; color: #1a1205; background: var(--accent); }
.adm-maint-badge:hover { color: #1a1205; filter: brightness(1.05); }
.adm-side-foot small { margin-left: auto; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.mt-status { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.mt-status-main { display: flex; gap: 16px; align-items: center; flex: 1; min-width: 260px; }
.mt-status-main h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 2px; color: var(--text-primary); }
.mt-status-main p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.mt-status-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: #10b981; }
.mt-status.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mt-status.is-on .mt-status-icon { background: var(--accent); color: #1a1205; }
.mt-status.is-planned .mt-status-icon { background: var(--info); }
.mt-status-actions form { margin: 0; }
.mt-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mt-modes label { margin: 0; cursor: pointer; }
.mt-modes input { position: absolute; opacity: 0; }
.mt-modes span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px; border-radius: 14px; border: 2px solid var(--border-color); }
.mt-modes span i { color: var(--text-muted); }
.mt-modes span small { font-size: 0.76rem; color: var(--text-muted); }
.mt-modes input:checked + span { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.07); }
.mt-modes input:checked + span i { color: var(--primary); }
.mt-modes input:focus-visible + span { outline: 3px solid var(--accent); }
.mt-who { list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.88rem; }
.mt-who li { padding: 3px 0; }
.mt-who i { color: #10b981; margin-right: 8px; }
@media (max-width: 575.98px) { .mt-modes { grid-template-columns: 1fr; } .mt-countdown div { min-width: 70px; } .adm-maint-badge span { display: none; } }


/* ============================================
   STYLE-WECHSLER, SAISON-EFFEKTE, LIZENZ, UPDATER (Version 1.4)
   ============================================ */

/* ----- Effekte (Schnee, Feuerwerk …) ----- */
.foxi-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1029; }
@media print { .foxi-fx, .foxi-greet, .style-switch { display: none !important; } }

/* ----- Paletten-Knopf in der Navigation ----- */
.style-switch { position: relative; display: flex; align-items: center; }
.style-switch-btn i { background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.05rem; }
.style-switch-pop { position: absolute; top: calc(100% + 12px); right: 0; width: 320px; max-height: min(70vh, 560px); overflow-y: auto; background: var(--card-bg); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 18px; box-shadow: 0 20px 50px var(--shadow-color); padding: 14px; z-index: 1100; animation: stPop .18s ease; }
.style-switch-pop[hidden] { display: none; }
@keyframes stPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.style-switch-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.style-switch-head a { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-decoration: none; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border-color); }
.style-switch-head a.is-active, .style-switch-head a:hover { color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: transparent; }
.style-switch-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 10px 0 6px; }
.style-switch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.style-switch-grid a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border-radius: 12px; text-decoration: none; color: var(--text-primary); font-size: .72rem; font-weight: 600; text-align: center; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.style-switch-grid a:hover { background: var(--table-header-bg); }
.style-switch-grid a.is-active { border-color: var(--primary); background: rgba(var(--primary-rgb), .08); }
.st-swatch { display: inline-block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 3px 10px rgba(0,0,0,.25); flex-shrink: 0; }
.style-switch-fx { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-color); font-size: .8rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.style-switch-fx:hover { color: var(--primary); }
@media (max-width: 991px) {
    .style-switch { margin-top: 8px; }
    .style-switch-pop { position: fixed; top: 76px; left: 12px; right: 12px; width: auto; }
}

/* ----- Grußbanner ----- */
.foxi-greet { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 20px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, var(--primary), var(--secondary)); box-shadow: 0 10px 28px rgba(var(--primary-rgb), .3); position: relative; overflow: hidden; transition: opacity .3s, transform .3s; }
.foxi-greet::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform: translateX(-100%); animation: greetShine 5s ease-in-out infinite; pointer-events: none; }
@keyframes greetShine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.foxi-greet.is-hiding { opacity: 0; transform: translateY(-6px); }
.foxi-greet-icon { font-size: 1.4rem; color: var(--accent); filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); animation: greetBob 2.4s ease-in-out infinite; }
@keyframes greetBob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-3px) rotate(6deg); } }
.foxi-greet strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .01em; }
.foxi-greet-count { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.1rem; background: rgba(0,0,0,.25); padding: 4px 12px; border-radius: 10px; }
.foxi-greet-count.is-done { background: var(--accent); color: #1a1205; }
.foxi-greet-close { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.foxi-greet strong + .foxi-greet-close { margin-left: auto; }
.foxi-greet-close:hover { background: rgba(255,255,255,.32); }
.foxi-greet-christmas { background: linear-gradient(120deg, #b91c1c, #15803d); }
.foxi-greet-newyear { background: linear-gradient(120deg, #1e1b4b, #7c3aed 60%, #b45309); }
@media (prefers-reduced-motion: reduce) { .foxi-greet::after, .foxi-greet-icon { animation: none; } }
@media (max-width: 576px) { .foxi-greet { flex-wrap: wrap; } .foxi-greet-count { margin-left: 0; } }

/* ----- Backend: Styles & Saison ----- */
.st-now { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.st-now .st-swatch { width: 54px; height: 54px; }
.st-now h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 2px; }
.st-now p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.st-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--border-color); border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--card-bg); transition: border-color .2s, transform .2s, box-shadow .2s; margin: 0; }
.st-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px var(--shadow-color); }
.st-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25); }
.st-card input { position: absolute; opacity: 0; pointer-events: none; }
.st-card input:focus-visible + .st-preview { outline: 3px solid var(--primary); outline-offset: -3px; }
.st-preview { position: relative; height: 92px; display: block; }
.st-preview-bar { position: absolute; left: 12px; right: 12px; top: 12px; height: 12px; border-radius: 6px; }
.st-preview-btn { position: absolute; left: 12px; bottom: 14px; width: 64px; height: 22px; border-radius: 11px; }
.st-preview-dot { position: absolute; left: 84px; bottom: 18px; width: 14px; height: 14px; border-radius: 50%; }
.st-preview > i { position: absolute; right: 14px; bottom: 12px; font-size: 1.8rem; opacity: .9; }
.st-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.st-body strong { font-size: .95rem; }
.st-body small { color: var(--text-muted); font-size: .78rem; line-height: 1.35; }
.st-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.st-tags em { font-style: normal; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--table-header-bg); color: var(--text-secondary); }
.st-tags em.is-live { background: var(--success); color: #fff; }
.st-try { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; text-decoration: none; font-size: .8rem; }
.st-try:hover { background: rgba(0,0,0,.6); color: #fff; }

/* ----- Lizenz ----- */
.lic-box { max-width: 520px; }
.lic-state { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--table-header-bg); border: 1px solid var(--border-color); }
.lic-state > i { font-size: 1.4rem; margin-top: 2px; color: var(--info); }
.lic-state-bad > i { color: var(--danger); }
.lic-state p { margin: 2px 0 0; font-size: .88rem; color: var(--text-secondary); }
.lic-err { color: var(--danger) !important; font-size: .82rem !important; }
.lic-key-input { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.lic-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.lic-facts > div { background: var(--table-header-bg); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.lic-facts dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.lic-facts dd { margin: 2px 0 0; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.lic-facts-wide { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lic-fp { font-size: .78rem; word-break: break-all; }
.lic-hero, .upd-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 5px solid var(--success); }
.lic-hero h3, .upd-hero h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 2px; }
.lic-hero p, .upd-hero p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.lic-hero-icon, .upd-hero-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: var(--success); flex-shrink: 0; }
.lic-hero.is-warn, .upd-hero.is-warn { border-left-color: var(--warning); }
.lic-hero.is-warn .lic-hero-icon, .upd-hero.is-warn .upd-hero-icon { background: var(--warning); }
.lic-hero.is-bad { border-left-color: var(--danger); }
.lic-hero.is-bad .lic-hero-icon { background: var(--danger); }
.upd-hero.is-new { border-left-color: var(--primary); }
.upd-hero.is-new .upd-hero-icon { background: linear-gradient(135deg, var(--primary), var(--secondary)); }

/* ----- Updater ----- */
.upd-changelog { background: var(--table-header-bg); border-radius: 12px; padding: 14px 16px; font-size: .9rem; line-height: 1.6; max-height: 320px; overflow-y: auto; }
.upd-req { list-style: none; padding: 0; margin: 0; }
.upd-req li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-color); font-size: .9rem; }
.upd-req li:last-child { border-bottom: 0; }
.upd-req li i { margin-top: 3px; }
.upd-req li.is-ok i { color: var(--success); }
.upd-req li.is-bad i { color: var(--danger); }
.upd-req small { display: block; color: var(--text-muted); font-size: .78rem; }
