:root {
    --bg-primary: #050814;
    --accent: #55c7ff;
    --text-main: #f5f5f7;
    --text-muted: #a1a1aa;
    --border-subtle: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.75);
    --radius-lg: 28px;
    --radius-md: 20px;
    --blur-strong: 26px;
    --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-main);
    color: var(--text-main);
    background: #020617;
    overflow: hidden; /* Desktop: keine Scrollbar */
}

.background-gradient {
    position: fixed;
    inset: -40%;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.32) 0, transparent 56%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9) 0, transparent 62%),
        linear-gradient(135deg, #020617 0%, #111827 45%, #020617 100%);
    opacity: 0.9; /* etwas deutlicher */
    z-index: -3;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.06;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1600 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* Haupt-Screen */

.screen {
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shell {
    max-width: 1100px;
    width: 100%;
    height: 440px; /* Platz für große Status-Box */
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 26px;
    margin-bottom: 10px;
}

.glass-shell {
    border-radius: 34px;
    padding: 24px 30px;
    background: radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.12),
            transparent 60%
        ),
        rgba(10, 16, 32, 0.86);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
}

/* LINKS */

.left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.logo-wrap {
    max-width: 260px;
    margin-bottom: 4px;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
}

.tagline {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.left h1 {
    font-size: 32px;
    margin: 6px 0 6px;
    letter-spacing: -0.04em;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    padding: 9px 20px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
        border-color 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, #55c7ff, #ffffff);
    color: #020617;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 1);
}

/* RECHTS */

.right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.glass-card {
    border-radius: var(--radius-md);
    background: radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.12),
            transparent 60%
        ),
        rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-subtle);
    padding: 22px 22px 22px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.glass-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 14px; /* Abstand zwischen Punkt und Text */
    margin-bottom: 12px;
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #64748b;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    transition: all 0.2s ease;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.25);
}

.status-dot.offline {
    background: #f97373;
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.25);
}

.status-text {
    font-size: 13px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.status-grid .label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.status-grid .value {
    font-size: 14px;
    font-weight: 500;
}

.motd {
    margin: 0;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
}

/* FOOTER */

.footer {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    padding: 0 30px; /* gleiche Innenbreite wie glass-shell */
}

.footer-left {
    max-width: 70%;
}

.footer-right {
    font-size: 10px;
    opacity: 0.85;
    white-space: nowrap;
}

/* Mobile / kleine Screens: Scroll erlauben */

@media (max-width: 900px), (max-height: 600px) {
    body {
        overflow: auto;
    }

    .screen {
        height: auto;
        padding: 16px;
    }

    .shell {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .logo-wrap {
        max-width: 220px;
    }

    .glass-shell {
        padding: 18px;
    }

    .footer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 0 16px;
    }

    .footer-left {
        max-width: 100%;
    }

    .footer-right {
        white-space: normal;
    }
}
