:root {
    --bg-dark: #0a0a14;
    --text-glow: #a4c2ff; /* Ein helles, kühles Blau für gute Beamer-Sichtbarkeit */
    --accent-color: #4d8bff;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace; /* Monospace verhindert Springen */
    color: white;
}

/* --- Canvas für Schnee --- */
#snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Klicks gehen durch */
    z-index: 5;
}

/* --- Elaborate Background Effect (Aurora) --- */
.aurora-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, #1a1a3a 0%, #0a0a14 70%);
    opacity: 0.8;
    z-index: 1;
    overflow: hidden;
}

.aurora-bg::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: conic-gradient(from 0deg at 50% 50%, #0a0a14 0deg, #1e1e44 120deg, #0a0a14 240deg);
    animation: aurora-spin 60s linear infinite;
    opacity: 0.4;
    filter: blur(100px);
}

@keyframes aurora-spin {
    100% { transform: rotate(360deg); }
}

/* --- Main Content Layout --- */
.content-container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- Clock & Date Styling --- */
.beamer-clock {
    /* Responsive Größe basierend auf Viewport Width, aber mit Minimum */
    font-size: max(12vw, 120px); 
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 30px var(--text-glow), 0 0 60px rgba(77, 139, 255, 0.4);
    letter-spacing: 0.05em;
    line-height: 1;
}

.beamer-date {
    font-size: max(2vw, 24px);
    margin-top: 2vh;
    color: var(--text-glow);
    opacity: 0.8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.status-indicator {
    position: absolute;
    top: 20px;
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.7;
    letter-spacing: 1px;
}

/* --- Fullscreen Button (Top Right) --- */
#fullscreen-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 20;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-glow);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#fullscreen-btn:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px var(--text-glow);
}

.hidden {
    display: none !important;
}

/* --- Bottom Left Controls Box --- */
.controls-box {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 20;
    padding: 15px 25px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(77, 139, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Custom Toggle Switch Styling --- */
.switch-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 1.1rem;
    user-select: none;
}

.switch-container .snow-icon {
    margin-right: 10px;
    color: var(--text-glow);
}

.label-text {
    margin-right: 15px;
    color: #eee;
}

.switch-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark.switch {
    position: relative;
    display: inline-block;
    height: 24px;
    width: 44px;
    background-color: #2a2a4a;
    border-radius: 34px;
    transition: 0.4s;
}

.checkmark.switch:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy Effekt */
}

input:checked + .checkmark.switch {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

input:checked + .checkmark.switch:before {
    transform: translateX(20px);
}
:root {
    --primary-cyan: #00f2ff;
    --deep-bg: #020205;
    --text-white: #ffffff;
}

body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: var(--deep-bg);
    color: var(--text-white);
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
}

/* Aurora Hintergrund */
.aurora-bg {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #0a1020 0%, #020205 100%);
    z-index: 1;
}

.aurora-bg::before {
    content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, #0044ff11, transparent);
    animation: rotate 30s linear infinite;
    filter: blur(100px);
}

@keyframes rotate { 100% { transform: rotate(360deg); } }

#snow-canvas {
    position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none;
}

.main-ui {
    position: relative; z-index: 10;
    height: 100%; display: flex; justify-content: center; align-items: center;
}

.timer-section { text-align: center; width: 80%; }

.label {
    font-size: 1.5vw; letter-spacing: 0.5em; color: var(--primary-cyan);
    opacity: 0.6; margin-bottom: 0;
}

.countdown-display {
    font-size: 22vh; font-weight: bold; line-height: 1;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

/* Fortschrittsbalken */
.progress-container {
    width: 60%; height: 12px; background: rgba(255,255,255,0.05);
    margin: 4vh auto; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.progress-fill {
    height: 100%; width: 0%; 
    background: linear-gradient(90deg, #0044ff, var(--primary-cyan));
    box-shadow: 0 0 20px var(--primary-cyan);
    transition: width 1s linear;
}

.mini-clock { font-size: 6vh; opacity: 0.8; }
.mini-date { font-size: 1.2vw; opacity: 0.5; letter-spacing: 2px; }

.status-indicator {
    position: absolute; top: 20px; font-size: 0.8rem; opacity: 0.4;
}

/* Controls */
#fullscreen-btn {
    position: absolute; top: 20px; right: 20px; z-index: 100;
    background: none; border: none; cursor: pointer; opacity: 0.3; transition: 0.3s;
}
#fullscreen-btn:hover { opacity: 1; }

.snow-control {
    position: absolute; bottom: 20px; left: 20px; z-index: 100;
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.4); padding: 10px 15px; border-radius: 50px;
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1);
}

.hidden { display: none; }

/* Toggle Slider */
.switch { position: relative; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .4s; border-radius: 20px;
}
.slider:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-cyan); }
input:checked + .slider:before { transform: translateX(20px); }

/* Navigation Steuerung Rechts Unten */
.nav-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-cyan);
}

.nav-button svg {
    opacity: 0.8;
}

/* Verhindert, dass der Fullscreen-Button mit der Navigation kollidiert */
#fullscreen-btn {
    top: 20px; /* Bleibt oben rechts */
}
/* --- Übergangs-Effekt --- */
/* --- Optimierter Übergangs-Effekt --- */
.transition-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Volle Breite */
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-cyan) 45%, 
        var(--primary-cyan) 55%, 
        var(--deep-bg) 100%);
    z-index: 9999;
    pointer-events: none;
    transform: translateX(-105%); /* Startet versteckt links */
    will-change: transform;
}

/* Animation beim Betreten der Seite (Vorhang zieht nach rechts ab) */
.slide-in {
    animation: wipeIn 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

/* Animation beim Verlassen der Seite (Vorhang kommt von links rein) */
.slide-out {
    animation: wipeOut 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes wipeIn {
    0% { transform: translateX(0); }      /* Start: Bildschirm bedeckt */
    100% { transform: translateX(105%); } /* Ende: Komplett rechts raus */
}

@keyframes wipeOut {
    0% { transform: translateX(-105%); }  /* Start: Ganz links draußen */
    100% { transform: translateX(0); }    /* Ende: Bildschirm bedeckt */
}
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: auto;
    z-index: 100;
}