/* ===== Modern UI Style for 0nly 4 Huf (Bright Dark Edition) ===== */

:root {
    --bg-main: #1e293b;
    --bg-card: #1f2937;
    --bg-hover: #334155;

    --primary: #60a5fa;
    --accent: #4ade80;

    --text-main: #f1f5f9;
    --text-muted: #cbd5f5;

    --border: rgba(255,255,255,0.12);
    --radius: 14px;
    --blur: blur(12px);
    --shadow: 0 8px 24px rgba(0,0,0,0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e293b, #020617 75%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px 80px;
}

/* ===== Title ===== */

.title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Navigation ===== */

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.nav a {
    text-decoration: none;
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
    transition: background 0.25s ease, color 0.25s ease;
}

.nav a:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* ===== Clock Widget ===== */

.clock-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 40px;
    padding: 22px 20px;
    text-align: center;

    /* exakt wie Nav, aber Card-Form */
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    /* kein Blur -> Text bleibt scharf */
    backdrop-filter: none;

    box-shadow: 0 3px 10px rgba(0,0,0,0.28);
}

.clock-time {
    font-size: 2.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.1;

    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.clock-date {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

/* ===== Content ===== */

.content h2 {
    margin: 40px 0 20px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== Grid ===== */

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* ===== Link Cards ===== */

.link-item {
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.link-item:hover {
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(
        180deg,
        rgba(96,165,250,0.18),
        rgba(74,222,128,0.12)
    );
    border-color: rgba(96,165,250,0.45);
}

.link-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

.link-item span {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

/* ===== Disabled Links ===== */

.link-item.disabled {
    background: rgba(15,23,42,0.55);
    border-color: rgba(148,163,184,0.18);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.link-item.disabled span {
    color: #94a3b8;
}

.link-item.disabled img {
    filter: grayscale(100%) brightness(55%)
        drop-shadow(0 2px 4px rgba(0,0,0,0.35));
    opacity: 0.7;
}

.link-item.disabled:hover {
    transform: none;
    background: rgba(15,23,42,0.55);
    border-color: rgba(148,163,184,0.18);
}

/* =========================
   MOBILE OPTIMIERUNG
   ========================= */

@media (max-width: 768px) {

    body {
        align-items: flex-start;
    }

    .container {
        padding: 30px 16px 60px;
    }

    .title {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .nav {
        gap: 12px;
        margin-bottom: 30px;
    }

    .nav a {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .clock-time {
        font-size: 2.3rem;
    }

    .clock-card {
        padding: 20px 16px;
    }

    .content h2 {
        font-size: 1.4rem;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr); /* immer mindestens 2 Spalten */
        gap: 12px;
    }
}

@media (max-width: 480px) {

    .title {
        font-size: 1.9rem;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav a {
        width: 100%;
        text-align: center;
    }

    .clock-time {
        font-size: 2.1rem;
    }

    .clock-card {
        padding: 18px 14px;
    }

    .link-item {
        padding: 18px 12px;
    }

    .link-item img {
        width: 42px;
        height: 42px;
    }

    .link-item span {
        font-size: 0.9rem;
    }
    
    .link-grid {
        grid-template-columns: repeat(2, 1fr); /* mindestens 2 Spalten */
        gap: 12px;
    }

}
