:root {
    --bg-main: #07090e;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-glow: rgba(0, 240, 255, 0.2);
    --border-glow-hover: rgba(0, 240, 255, 0.6);
    
    --primary: #00f0ff; /* Neon Cyan */
    --primary-dark: #00adb5;
    --secondary: #7928ca; /* Cyber Purple */
    --accent: #ff007f; /* Laser Pink für Admin/Alerts */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Globaler Sci-Fi Look */
body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(121, 40, 202, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 40%);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Futuristic Header mit Glasmorphismus */
.main-header {
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glow);
    padding: 1rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.main-header nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.main-header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-header nav ul li a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.main-header nav ul li a:hover::after {
    width: 100%;
}

.admin-link {
    color: var(--accent) !important;
    font-weight: 700;
}

.admin-link:hover {
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.8) !important;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 40px 25px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Überschriften mit Neon-Akzent */
.modules-column h2, .calendar-column h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modules-column h2::before, .calendar-column h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 22px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    border-radius: 3px;
}

/* Module Grid & Cards */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.module-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow-hover);
    box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.15);
    background: var(--bg-card-hover);
}

.module-card:hover::before {
    opacity: 1;
}

.module-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 0.03em;
}

.module-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Sci-Fi Buttons */
.btn-vr, .btn-calendar, .auth-card button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #07090e;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.btn-vr:hover, .btn-calendar:hover, .auth-card button:hover {
    background: linear-gradient(135deg, #fff, var(--primary));
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    transform: scale(1.02);
}

/* Rechte Kalender-Spalte */
.calendar-column {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-glow);
    height: fit-content;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.sidebar-calendar-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Auth / Login / Register (Futuristische Cyber-Boxen) */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at center, rgba(121, 40, 202, 0.15) 0%, rgba(7, 9, 14, 0.9) 100%);
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 45px;
    border-radius: 16px;
    width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glow-hover);
    position: relative;
}

.auth-card h2 {
    margin-top: 0;
    color: var(--text-main);
    font-size: 1.7rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-card label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-card input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: rgba(7, 9, 14, 0.6);
    color: #fff;
    transition: all 0.3s ease;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    background-color: rgba(7, 9, 14, 0.9);
}

.auth-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 25px;
    margin-bottom: 0;
}

.auth-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-card a:hover {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.error { 
    color: #ff3366; 
    font-size: 0.85rem; 
    background: rgba(255, 51, 102, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #ff3366;
    margin-bottom: 20px;
}

.info { 
    color: #00ffcc; 
    font-size: 0.85rem; 
    background: rgba(0, 255, 204, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #00ffcc;
    margin-bottom: 20px;
}

/* Kalender & Admin Styles */
.sci-calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
}

.sci-calendar-table th, .sci-calendar-table td {
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
    vertical-align: top;
    height: 90px;
    width: 14.28%;
}

.sci-calendar-table th {
    background: rgba(0, 240, 255, 0.05);
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    height: auto;
}

.holiday-cell {
    background: rgba(255, 51, 102, 0.08) !important;
}

.holiday-cell .day-number {
    color: #ff3366;
    font-weight: bold;
}

.day-number {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.scheduled-badge {
    background: var(--primary);
    color: #07090e;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 3px;
    font-weight: 700;
}

.btn-add-module {
    background: transparent;
    border: 1px dashed var(--primary);
    color: var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.btn-add-module:hover {
    background: var(--primary);
    color: #07090e;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Admin Sections */
.admin-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-glow);
    margin-bottom: 25px;
}

.admin-section h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.sci-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.sci-table th, .sci-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.inline-form {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.inline-form input, .inline-form select {
    padding: 8px 12px;
    background: rgba(7,9,14,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 6px;
}

.btn-sm {
    background: var(--primary);
    color: #07090e;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.btn-sm-danger {
    background: #ff3366;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.mini-card {
    background: rgba(7,9,14,0.4);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}