/* Grundlayout */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: url('/static/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #f0f0f0;
}

/* Navigation */
.top-nav {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-center {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-center a {
    position: relative;
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-center a:hover {
    color: #00bcd4;
    text-shadow: 0 0 10px #00bcd4, 0 0 20px #00bcd4;
}

.nav-center a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,188,212,0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.nav-center a:hover::before {
    opacity: 1;
}

/* Hero-Bereich */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px #00bcd4;
}

.subtitle {
    font-size: 1.3rem;
    color: #cccccc;
}

/* Kachelbereich */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tile {
    position: relative;
    height: 220px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #00bcd4;
    border-radius: 12px;
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1.3rem;
    font-weight: bold;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.2rem;
}

.tile:hover {
    box-shadow: 0 0 25px 8px #00bcd4;
    transform: scale(1.03);
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,188,212,0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tile:hover::before {
    opacity: 1;
}

.tile span {
    position: relative;
    z-index: 1;
}

/* Responsives Verhalten */
@media (max-width: 600px) {
    .nav-center {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tile {
        height: 160px;
        font-size: 1rem;
    }
}

/* ---------- Modal (KjG Passwort) ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 1rem;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    width: min(520px, 100%);
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00bcd4;
    border-radius: 12px;
    padding: 1.2rem 1.2rem 1rem;
    box-shadow: 0 0 25px 8px rgba(0,188,212,0.25);
}

.modal-title {
    margin: 0 0 0.3rem 0;
    font-size: 1.4rem;
    text-shadow: 0 0 10px #00bcd4;
}

.modal-subtitle {
    margin: 0 0 1rem 0;
    color: #cccccc;
}

.modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(0,188,212,0.6);
    outline: none;
    background: rgba(0,0,0,0.6);
    color: #f0f0f0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(0,188,212,0.6);
    background: rgba(0,0,0,0.6);
    color: #f0f0f0;
    font-weight: bold;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    box-shadow: 0 0 15px 4px rgba(0,188,212,0.35);
    transform: scale(1.02);
}

.btn-primary {
    background: rgba(0,188,212,0.15);
}

.modal-error {
    margin: 0.8rem 0 0;
    color: #ffb4b4;
}

