:root, [data-theme="dark"] {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #0ea5e9;
    --info-light: #e0f2fe;

    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #24344d;
    --bg-input: #0b1120;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    --role-admin: #ec4899;
    --role-sl: #8b5cf6;
    --role-spieler: #3b82f6;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   HELLERES THEME (LIGHT MODE)
   ========================================== */
[data-theme="light"], body.theme-light {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #0284c7;
    --info-light: #e0f2fe;

    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --role-admin: #db2777;
    --role-sl: #7c3aed;
    --role-spieler: #2563eb;

    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* ==========================================
   FANTASY ERDTÖNE THEME (HELLE ERDFARBEN)
   ========================================== */
[data-theme="fantasy_earth"], body.theme-fantasy_earth {
    --primary: #b45309;
    --primary-hover: #92400e;
    --primary-light: #fef3c7;
    --secondary: #78716c;
    --secondary-hover: #57534e;
    --success: #2e7d32;
    --success-light: #e8f5e9;
    --warning: #c2410c;
    --warning-light: #ffedd5;
    --danger: #b91c1c;
    --danger-light: #fee2e2;
    --info: #0284c7;
    --info-light: #e0f2fe;

    --bg-main: #fbf7ee;
    --bg-card: #fffef9;
    --bg-card-hover: #f5eedf;
    --bg-input: #ffffff;
    --border-color: #dfd2c0;
    --text-main: #291e14;
    --text-muted: #786c5e;
    --text-inverse: #ffffff;

    --role-admin: #9f1239;
    --role-sl: #7c2d12;
    --role-spieler: #1e40af;

    --shadow: 0 10px 15px -3px rgba(60, 40, 20, 0.07), 0 4px 6px -4px rgba(60, 40, 20, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(60, 40, 20, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (min-width: 861px) {
    .navbar-brand-row {
        width: auto;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}

.brand i {
    color: var(--primary);
    font-size: 1.4rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-height: 42px;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.navbar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    min-height: 40px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(99, 102, 241, 0.12);
}

.nav-user-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 9999px;
    line-height: 1.2;
}

.badge-admin { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-moderator { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.35); }
.badge-sl { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-spieler { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-secondary { background: rgba(100, 116, 139, 0.25); color: #cbd5e1; }

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1;
    width: 100%;
}

/* Buttons (Touch-Optimized) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px; /* Touch-Target */
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    min-height: 38px;
}

.btn-primary { background-color: var(--primary); color: #ffffff; }
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-secondary { background-color: var(--secondary); color: #ffffff; }
.btn-secondary:hover { background-color: var(--secondary-hover); }

.btn-success { background-color: var(--success); color: #ffffff; }
.btn-success:hover { background-color: #059669; }

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

.btn-block {
    width: 100%;
}

/* Cards & Layout */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.stats-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.stats-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    flex-shrink: 0;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forms (Mobile-friendly inputs) */
.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem; /* Prevents auto-zoom on iOS Safari */
    outline: none;
    transition: var(--transition);
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 600px;
}

.data-table th, .data-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.25);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Game Round Card */
.round-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
}

.round-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.round-system-pill {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
}

.round-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.round-meta-item i {
    width: 16px;
    color: var(--primary);
}

/* Room Matrix / Capacity Planner */
.matrix-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.75rem;
    min-width: 700px;
}

.matrix-table th {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.matrix-cell {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    vertical-align: top;
    min-width: 250px;
}

.matrix-cell.overbooked {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.capacity-meter {
    margin: 0.5rem 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--success);
    transition: width 0.3s ease;
}

.capacity-fill.high { background: var(--warning); }
.capacity-fill.full { background: var(--danger); }

/* Modal (Touch & Mobile Optimized) */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-backdrop.show .modal-dialog {
    transform: scale(1);
}

.modal-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.modal-body {
    padding: 1.25rem;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-close:hover {
    color: var(--text-main);
}

/* Toast Alerts (Responsive) */
.toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: calc(100vw - 2.5rem);
}

.toast {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    box-shadow: var(--shadow);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    animation: slideIn 0.3s ease;
}

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-info { border-left: 4px solid var(--info); }
.toast.toast-warning { border-left: 4px solid var(--warning); }

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

/* Auth Page Standalone */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-top: 0.5rem;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-text h1 {
    font-size: 1.85rem;
    margin-bottom: 0.4rem;
}

.hero-text p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Event Day Images (2 Bilder pro Tag) */
.day-images-wrapper {
    display: flex;
    gap: 0.85rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.day-image-thumb {
    width: 140px;
    height: 95px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    background-color: rgba(0, 0, 0, 0.3);
}

.day-image-thumb:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.day-image-banner {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* Image Upload Preview Box in Modals */
.image-upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .image-upload-row {
        grid-template-columns: 1fr;
    }
}

.image-upload-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    text-align: center;
    position: relative;
}

.image-upload-card:hover {
    border-color: var(--primary);
}

.image-upload-card img {
    max-width: 100%;
    max-height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-top: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Lightbox Modal */
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

/* Raumpläne UI */
.plan-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.plan-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.plan-tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
    border-color: var(--primary);
}

.plan-tab-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}

.plan-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ==========================================
   SMARTPHONE & MOBILE BREAKPOINTS (< 860px)
   ========================================== */
@media (max-width: 860px) {
    .navbar {
        padding: 0.6rem 1rem;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .nav-menu-wrapper {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
        gap: 0.75rem;
    }

    .nav-menu-wrapper.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
    }

    .nav-item {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .nav-user-area {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 0.5rem 0.25rem 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-banner {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-banner > div:last-child {
        width: 100%;
    }

    .hero-banner .btn {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 1.45rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .grid-cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    .stats-card {
        padding: 0.85rem;
    }

    .stats-number {
        font-size: 1.25rem;
    }

    .modal-backdrop {
        padding: 0.5rem;
        align-items: flex-end; /* Bottom sheet feeling on smartphones */
    }

    .modal-dialog {
        max-height: 94vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   HELLERES THEME KOMPONENTEN-ANPASSUNGEN
   ========================================== */
[data-theme="light"] .navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .nav-item {
    color: #64748b;
}

[data-theme="light"] .nav-item:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

[data-theme="light"] .nav-item.active {
    color: #4f46e5;
    background-color: #eef2ff;
}

[data-theme="light"] .hero-banner {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #e0e7ff;
}

[data-theme="light"] .round-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .round-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .round-system-pill {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

[data-theme="light"] .badge-admin { 
    background: #fdf2f8; 
    color: #db2777; 
    border: 1px solid #fbcfe8; 
}

[data-theme="light"] .badge-moderator { 
    background: #e0f2fe; 
    color: #0284c7; 
    border: 1px solid #bae6fd; 
}

[data-theme="light"] .badge-sl { 
    background: #f5f3ff; 
    color: #7c3aed; 
    border: 1px solid #ddd6fe; 
}

[data-theme="light"] .badge-spieler { 
    background: #eff6ff; 
    color: #2563eb; 
    border: 1px solid #bfdbfe; 
}

[data-theme="light"] .badge-success { 
    background: #ecfdf5; 
    color: #059669; 
    border: 1px solid #a7f3d0; 
}

[data-theme="light"] .badge-warning { 
    background: #fffbeb; 
    color: #d97706; 
    border: 1px solid #fde68a; 
}

[data-theme="light"] .badge-danger { 
    background: #fef2f2; 
    color: #dc2626; 
    border: 1px solid #fecaca; 
}

[data-theme="light"] .badge-secondary { 
    background: #f1f5f9; 
    color: #475569; 
    border: 1px solid #e2e8f0; 
}

[data-theme="light"] .btn-outline {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

[data-theme="light"] .btn-outline:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

[data-theme="light"] .data-table th {
    background-color: #f8fafc;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

[data-theme="light"] .data-table tbody tr:hover {
    background-color: #f8fafc;
}

[data-theme="light"] .matrix-table th {
    background: #e2e8f0;
    color: #334155;
}

[data-theme="light"] .matrix-cell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .matrix-cell.overbooked {
    border-color: var(--danger);
    background: #fef2f2;
}

[data-theme="light"] .capacity-meter {
    background: #e2e8f0;
}

[data-theme="light"] .stats-icon {
    background: #eef2ff;
    color: #4f46e5;
}

[data-theme="light"] .plan-tab-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

[data-theme="light"] .plan-tab-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #4f46e5;
}

[data-theme="light"] .plan-tab-btn.active {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4f46e5;
}

[data-theme="light"] .modal-backdrop {
    background-color: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .modal-dialog {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .image-upload-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

[data-theme="light"] .day-image-thumb {
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
}

[data-theme="light"] .auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   FANTASY ERDTÖNE KOMPONENTEN-ANPASSUNGEN
   ========================================== */
[data-theme="fantasy_earth"] .navbar {
    background-color: #fffefb;
    border-bottom: 1px solid #dfd2c0;
}

[data-theme="fantasy_earth"] .nav-item {
    color: #786c5e;
}

[data-theme="fantasy_earth"] .nav-item:hover {
    color: #291e14;
    background-color: #f7efe2;
}

[data-theme="fantasy_earth"] .nav-item.active {
    color: #92400e;
    background-color: #fdf2d8;
}

[data-theme="fantasy_earth"] .hero-banner {
    background: linear-gradient(135deg, #fdf5e6 0%, #f6ebd8 100%);
    border: 1px solid #e5d5be;
}

[data-theme="fantasy_earth"] .round-card {
    background: #fffef9;
    border: 1px solid #dfd2c0;
    box-shadow: 0 4px 6px -1px rgba(60, 40, 20, 0.05), 0 2px 4px -2px rgba(60, 40, 20, 0.03);
}

[data-theme="fantasy_earth"] .round-card:hover {
    border-color: #b45309;
    box-shadow: 0 10px 15px -3px rgba(60, 40, 20, 0.09), 0 4px 6px -4px rgba(60, 40, 20, 0.05);
}

[data-theme="fantasy_earth"] .round-system-pill {
    background: #fdf2d8;
    color: #92400e;
    border: 1px solid #eed9b0;
}

[data-theme="fantasy_earth"] .badge-admin { 
    background: #fdf2f4; 
    color: #9f1239; 
    border: 1px solid #fecdd3; 
}

[data-theme="fantasy_earth"] .badge-moderator { 
    background: #f0fdfa; 
    color: #0f766e; 
    border: 1px solid #99f6e4; 
}

[data-theme="fantasy_earth"] .badge-sl { 
    background: #fef3eb; 
    color: #9a3412; 
    border: 1px solid #fed7aa; 
}

[data-theme="fantasy_earth"] .badge-spieler { 
    background: #eff6ff; 
    color: #1e40af; 
    border: 1px solid #bfdbfe; 
}

[data-theme="fantasy_earth"] .badge-success { 
    background: #f0fdf4; 
    color: #166534; 
    border: 1px solid #bbf7d0; 
}

[data-theme="fantasy_earth"] .badge-warning { 
    background: #fffbeb; 
    color: #b45309; 
    border: 1px solid #fde68a; 
}

[data-theme="fantasy_earth"] .badge-danger { 
    background: #fef2f2; 
    color: #991b1b; 
    border: 1px solid #fecaca; 
}

[data-theme="fantasy_earth"] .badge-secondary { 
    background: #f5f0e6; 
    color: #63584c; 
    border: 1px solid #dfd2c0; 
}

[data-theme="fantasy_earth"] .btn-outline {
    background-color: #fffef9;
    border: 1px solid #d5c3ac;
    color: #3c2a1e;
}

[data-theme="fantasy_earth"] .btn-outline:hover {
    background-color: #f5ede0;
    border-color: #b45309;
    color: #291e14;
}

[data-theme="fantasy_earth"] .data-table th {
    background-color: #f6eedf;
    color: #574838;
    border-bottom: 2px solid #dfd2c0;
}

[data-theme="fantasy_earth"] .data-table tbody tr:hover {
    background-color: #fbf5eb;
}

[data-theme="fantasy_earth"] .matrix-table th {
    background: #eee3d1;
    color: #3c2a1e;
}

[data-theme="fantasy_earth"] .matrix-cell {
    background: #fffef9;
    border: 1px solid #dfd2c0;
}

[data-theme="fantasy_earth"] .matrix-cell.overbooked {
    border-color: var(--danger);
    background: #fef2f2;
}

[data-theme="fantasy_earth"] .capacity-meter {
    background: #ebdcc8;
}

[data-theme="fantasy_earth"] .stats-icon {
    background: #fdf2d8;
    color: #b45309;
}

[data-theme="fantasy_earth"] .plan-tab-btn {
    background: #fffef9;
    border: 1px solid #dfd2c0;
    color: #6b5d4d;
}

[data-theme="fantasy_earth"] .plan-tab-btn:hover {
    background: #f7efe2;
    color: #291e14;
    border-color: #b45309;
}

[data-theme="fantasy_earth"] .plan-tab-btn.active {
    background: #fdf3df;
    border-color: #b45309;
    color: #92400e;
}

[data-theme="fantasy_earth"] .modal-backdrop {
    background-color: rgba(45, 30, 15, 0.5);
}

[data-theme="fantasy_earth"] .modal-dialog {
    background-color: #fffef9;
    border: 1px solid #dfd2c0;
    box-shadow: 0 20px 25px -5px rgba(60, 40, 20, 0.15), 0 8px 10px -6px rgba(60, 40, 20, 0.1);
}

[data-theme="fantasy_earth"] .modal-header {
    background: #fffef9;
    border-bottom: 1px solid #dfd2c0;
}

[data-theme="fantasy_earth"] .image-upload-card {
    background: #fbf7ee;
    border: 1px dashed #d5c3ac;
}

[data-theme="fantasy_earth"] .day-image-thumb {
    background-color: #f5ede0;
    border: 2px solid #dfd2c0;
}

[data-theme="fantasy_earth"] .auth-card {
    background: #fffef9;
    border: 1px solid #dfd2c0;
    box-shadow: 0 10px 15px -3px rgba(60, 40, 20, 0.08), 0 4px 6px -4px rgba(60, 40, 20, 0.04);
}

/* Theme Toggle & Picker */
.theme-toggle-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 38px;
    min-height: 38px;
    transition: var(--transition);
}

.theme-card-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    margin-bottom: 0.85rem;
    text-align: left;
    width: 100%;
}

.theme-card-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-card-option.active {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.theme-palette-preview {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.theme-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}


