:root {
    --bg-dark: #0a0a14;
    --text-glow: #a4c2ff;
    --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;
    color: white;
}

/* Wrapper für Icons links/rechts */
.status-wrapper,
.label-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.timer-label {
    opacity: 0.5;
    letter-spacing: 4px;
    font-size: 1rem;
    margin: 0;
}

#status {
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Restliche Styles */
#star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.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;
}

.content-container,
.main-ui {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.beamer-clock,
.countdown-display {
    font-size: max(10vw, 100px);
    font-weight: 700;
    text-shadow: 0 0 30px var(--text-glow);
    margin-bottom: 10px;
}

.beamer-date,
.timer-info {
    font-size: max(1.5vw, 20px);
    color: var(--text-glow);
    opacity: 0.7;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    z-index: 100;
    transition: 0.3s;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.2);
}

.copyright {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.6rem;
    color: white;
    opacity: 0.2;
    z-index: 50;
}

.control-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.status-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.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: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

.progress-container {
    width: 60%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin: 25px auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0044ff, #00f2ff);
    box-shadow: 0 0 15px #00f2ff;
    transition: width 1s linear;
}

.progress-animate {
    width: 30% !important;
    position: absolute;
    animation: move-bar 3s infinite ease-in-out;
}

@keyframes move-bar {
    0% {
        left: 0%;
    }

    50% {
        left: 70%;
    }

    100% {
        left: 0%;
    }
}

.nav-control {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    text-align: right;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.nav-button:hover {
    background: var(--accent-color);
}

/* ─── ENYA THEME ─────────────────────────────────────────────── */
.theme-enya {
    --bg-dark: #3a0a1e;
    --text-glow: #ffaad4;
    --accent-color: #e05599;
    background-color: #1e0010 !important;
}

.theme-enya .aurora-bg {
    background: radial-gradient(
        circle at 40% 60%,
        rgba(220, 60, 130, 0.45) 0%,
        rgba(140, 20, 80, 0.3) 35%,
        #1e0010 70%
    );
    opacity: 1;
}

.theme-enya .beamer-clock,
.theme-enya .countdown-display {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    text-shadow: 0 0 40px #ff80c0, 0 0 80px #e0559980;
    color: #ffe0f0;
}

.theme-enya .beamer-date,
.theme-enya .timer-info {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffaad4;
    opacity: 0.85;
}

.theme-enya #status {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffaad4;
}

.theme-enya .nav-button {
    border-color: rgba(255, 100, 180, 0.4);
    background: rgba(255, 100, 180, 0.12);
}

.theme-enya .nav-button:hover {
    background: var(--accent-color);
}

.theme-enya .slider {
    background-color: #6b1040;
}

.theme-enya input:checked + .slider {
    background-color: #e05599;
}

.enya-active {
    background: linear-gradient(135deg, #e05599, #ff80c0) !important;
    border-color: #ff80c0 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(224, 85, 153, 0.6);
}

/* ─── MÜHLE THEME ────────────────────────────────────────────── */
.theme-muhle {
    background-color: #000000 !important;
}

.theme-muhle .aurora-bg {
    background: #000000 !important;
    opacity: 1;
}

/* Alles ausblenden außer Uhrzeit + Datum + Mühle-Button */
.theme-muhle #star-canvas,
.theme-muhle .logo,
.theme-muhle .control-buttons,
.theme-muhle .status-wrapper,
.theme-muhle .nav-control,
.theme-muhle .copyright {
    display: none !important;
}

/* Im Mühle-Modus nur den Mühle-Button sichtbar lassen */
.theme-muhle .status-box span,
.theme-muhle .status-box .switch,
.theme-muhle #enya-btn {
    display: none !important;
}

.theme-muhle .beamer-clock {
    font-size: max(12vw, 110px);
    font-weight: 700;
    color: #ffffff;
    text-shadow: none;
    letter-spacing: 0.02em;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.theme-muhle .beamer-date {
    font-size: max(2vw, 24px);
    color: #ffffff;
    opacity: 1;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

#muhle-btn {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.muhle-active {
    background: #333333 !important;
    border-color: #666666 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}