* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f5f7fb;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.16), transparent 35%),
        #0b1120;
}

.page {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 55px 0 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 38px;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 46px);
    letter-spacing: -1.5px;
}

.subtitle {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 16px;
}

.clock {
    text-align: right;
}

#time {
    font-size: 26px;
    font-weight: 700;
}

#date {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 14px;
}

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.service {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 145px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.service:hover {
    transform: translateY(-3px);
    background: rgba(41, 54, 75, 0.88);
    border-color: rgba(148, 163, 184, 0.3);
}

.service img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-right: 24px;
}

.service-info {
    min-width: 0;
}

.service h2 {
    margin: 0 0 7px;
    font-size: 21px;
}

.description {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    font-size: 13px;
    color: #cbd5e1;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}

.info-box {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
}

.info-box p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 14px;
}

footer {
    margin-top: 26px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 720px) {
    .page {
        padding-top: 30px;
    }

    header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .clock {
        text-align: left;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .service {
        min-height: 120px;
        padding: 20px;
    }

    .service img {
        width: 58px;
        height: 58px;
        margin-right: 18px;
    }
}

/* Statusfarben */
.status.online .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.status.offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.status.starting .status-dot {
    background: #f59e0b;
}

.status.unknown .status-dot {
    background: #64748b;
}

.service {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.service:active {
    transform: scale(0.985);
}


/* Smartphone-Optimierung */
@media (max-width: 720px) {

    body {
        min-height: 100dvh;
    }

    .page {
        width: calc(100% - 20px);
        padding:
            22px
            0
            calc(24px + env(safe-area-inset-bottom));
    }

    header {
        gap: 12px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .subtitle {
        margin-top: 5px;
        font-size: 14px;
    }

    #time {
        font-size: 22px;
    }

    #date {
        font-size: 13px;
    }

    .services {
        gap: 12px;
    }

    .service {
        min-height: 104px;
        padding: 16px;
        border-radius: 16px;
    }

    .service img {
        width: 52px;
        height: 52px;
        margin-right: 16px;
        flex-shrink: 0;
    }

    .service h2 {
        margin-bottom: 4px;
        font-size: 18px;
    }

    .description {
        font-size: 13px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .status {
        margin-top: 9px;
        font-size: 12px;
    }

    .info-box {
        margin-top: 18px;
        padding: 16px;
        border-radius: 16px;
    }

    .info-box p {
        font-size: 13px;
    }

    footer {
        margin-top: 20px;
    }
}

@media (max-width: 380px) {

    .page {
        width: calc(100% - 16px);
    }

    .service {
        padding: 14px;
    }

    .service img {
        width: 46px;
        height: 46px;
        margin-right: 13px;
    }
}
