body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    cursor: auto;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: black;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: 2;
    pointer-events: none;
}

.display-container {
    position: absolute;
    bottom: 40px;
    width: 100%;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 3;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Wetterbereich */
#weather-container {
    text-align: left;
    animation: subtle-move-left 60s infinite ease-in-out;
}

#temp-main {
    font-size: 10rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0.8;
}

#weather-desc {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.forecast-strip {
    display: flex;
    gap: 35px;
    margin-top: 15px;
    font-size: 2rem;
    opacity: 0.7;
}

.forecast-item {
    text-align: center;
}

/* Uhrzeitbereich */
#clock-container {
    text-align: right;
    animation: subtle-move-right 60s infinite ease-in-out;
}

#time {
    font-size: 15rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
    opacity: 0.8;
}

#date {
    font-size: 4rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes subtle-move-right {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-3px, -2px);
    }
}

@keyframes subtle-move-left {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(3px, -2px);
    }
}

.refresh-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

/* Service Bar */
#service-bar {
    position: absolute;
    top: -130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.1);
    padding: 20px 40px;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: top 0.4s ease-in-out;
}

#service-bar.visible {
    top: 0;
}

.service-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.refresh-btn:hover, .service-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Uniform bus label */
.bus-label {
    min-width: 2.5rem;
    text-align: center;
}/* ============ RESPONSIVE (Handy) — 29.08.2026 ============ */
@media (max-width: 900px) {
    body, html {
        cursor: auto;
    }
    .display-container {
        bottom: 16px;
        padding: 0 16px;
        flex-direction: column-reverse; /* Uhr oben, Wetter darunter */
        align-items: flex-start;
        justify-content: flex-end;
        gap: 14px;
    }
    /* Uhr */
    #clock-container {
        text-align: left;
        width: 100%;
    }
    #time {
        font-size: clamp(3.5rem, 17vw, 6.5rem);
        letter-spacing: -1px;
    }
    #date {
        font-size: clamp(1rem, 4vw, 1.6rem);
        letter-spacing: 1px;
        margin-top: 2px;
    }
    #play-pause-btn {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 10px !important;
    }
    #play-pause-btn svg {
        width: 30px !important;
        height: 30px !important;
    }
    /* Wetter */
    #weather-container {
        text-align: left;
        width: 100%;
        max-width: 100%;
    }
    #temp-main {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
    }
    #weather-desc {
        font-size: clamp(1rem, 4.5vw, 1.5rem);
        margin-bottom: 4px;
    }
    .forecast-strip {
        gap: 14px;
        margin-top: 8px;
        font-size: clamp(0.85rem, 3.5vw, 1.15rem);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    #bus-container {
        margin-bottom: 6px !important;
    }
    #bus-departures {
        font-size: clamp(0.75rem, 3vw, 0.95rem);
    }
    /* Service-Bar: von oben, umbrechend */
    #service-bar {
        top: -140px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        width: calc(100% - 24px);
        max-width: 420px;
        border-radius: 0 0 16px 16px;
    }
    .service-btn {
        font-size: 1rem;
        padding: 8px 12px;
        gap: 8px;
    }
    .service-icon, .service-icon svg {
        width: 32px;
        height: 32px;
    }
    .refresh-btn {
        top: 10px;
        left: 10px;
        padding: 8px;
    }
}

/* Sehr kleine Displays (< 380px) */
@media (max-width: 380px) {
    #time {
        font-size: clamp(3rem, 15vw, 4.2rem);
    }
    #temp-main {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }
    #weather-desc {
        font-size: 0.95rem;
    }
    .forecast-strip {
        font-size: 0.8rem;
    }
}
/* ============ MOBILE: Service-Bar nur Icons (29.08.2026) ============ */
@media (max-width: 900px) {
    .service-btn {
        font-size: 0;
        padding: 10px;
        gap: 0;
    }
    .service-btn span:last-child {
        display: none; /* Text ausblenden — nur Icons */
    }
    .service-icon, .service-icon svg {
        width: 36px !important;
        height: 36px !important;
    }
    #service-bar {
        width: auto;
        max-width: calc(100% - 16px);
        gap: 10px;
        padding: 10px 14px;
    }
}

/* Cursor nur im Vollbild ausblenden (29.08.2026) */
:fullscreen {
    cursor: none;
}
:-webkit-full-screen {
    cursor: none;
}
html:fullscreen body {
    cursor: none;
}

/* YouTube-Video nie sichtbar — nur als Audio-Quelle (29.08.2026) */
#youtube-player-container {
    opacity: 0;
}
