/* Grund-Setup */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Das Logo als fixer Hintergrund */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('unnamed.jpg'); /* HIER DEIN BILD PFAD REIN */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Die graue Schicht über dem ganzen Bildschirm */
.login-overlay {
    height: 100%;
    width: 100%;
    background: rgba(40, 40, 40, 0.6); /* Dunkelgrau mit 60% Sichtbarkeit */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Die Login-Box in der Mitte */
.login-card {
    background: rgba(255, 255, 255, 0.1); /* Leicht transparent */
    backdrop-filter: blur(10px); /* Macht den Hintergrund leicht unscharf */
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 350px;
}

.logo-text {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* Eingabefelder */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box; /* Damit Padding das Feld nicht sprengt */
}

/* Login Button */
button {
    width: 100%;
    padding: 12px;
    background-color: #1a4a8e; /* Passend zum Blau im Bild */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background-color: #2664be;
}

.links {
    margin-top: 20px;
}

.links a {
    color: #ddd;
    font-size: 0.8rem;
    text-decoration: none;
    margin: 0 10px;
}

.links a:hover {
    color: white;
}


/* Animationen */
#login-screen, #dashboard {
    transition: opacity 0.5s ease-in-out;
}

.dashboard-overlay {
    height: 100%;
    width: 100%;
    background: rgba(20, 20, 25, 0.85); /* Dunkleres Grau für Admin-Look */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.welcome-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #1a4a8e;
    text-align: center;
    box-shadow: 0 0 50px rgba(26, 74, 142, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.logout-btn {
    margin-top: 30px;
    background-color: #ff4d4d !important;
}

/* Den Login-Screen weich ausfaden */
#login-screen {
    transition: opacity 0.5s ease;
    opacity: 1;
}

/* Das Dashboard vorbereiten */
#dashboard {
    display: none; /* Erstmal komplett weg */
    opacity: 0;    /* Und unsichtbar */
    transition: opacity 0.8s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* Grund-Setup */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

/* Fixes Hintergrundbild (wie im Login) */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('unnamed.jpg'); /* HIER BILDPFAD PRÜFEN */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Navigationsleiste */
.navbar {
    display: flex;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    align-items: center;
    border-bottom: 2px solid #1a4a8e;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #4fb9ff;
    letter-spacing: 1px;
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 5px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background: #1a4a8e;
    color: white;
}

.logout-link {
    color: #ff4d4d !important;
}

/* Inhalts-Bereich */
.content-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.content {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.section { display: none; }
.section.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welten-Design */
.world-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.world-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.world-card:hover {
    transform: scale(1.03);
    border-color: #1a4a8e;
    background: rgba(255, 255, 255, 0.1);
}

.world-preview {
    height: 150px;
    background: #333; /* Später durch Bilder ersetzbar */
    border-radius: 10px;
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.download-btn:hover {
    background: #218838;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}
/* Füge dies zu deiner bestehenden style.css hinzu oder ersetze die entsprechenden Teile */

.news-box {
    background: rgba(26, 74, 142, 0.2);
    border-left: 4px solid #1a4a8e;
    padding: 20px;
    margin-top: 25px;
    border-radius: 0 10px 10px 0;
}

.status-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.online-indicator {
    color: #4bb543;
    font-weight: bold;
    text-transform: uppercase;
}

/* Platzhalter für Vorschaubilder in den World-Cards */
.preview-s1 { background-image: url('img/s1_thumb.jpg'); background-size: cover; }
.preview-city { background-image: url('img/city_thumb.jpg'); background-size: cover; }
/* Container für das Medal-Video */
.medal-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Format */
    height: 0;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.medal-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sticker neben der Regeln-Überschrift */
.rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rules-sticker {
    width: 50px;
    height: 50px;
}

/* Sorgt dafür, dass die Karten schön nebeneinander liegen */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
/* Layout für die Clips-Sektion */
.clips-grid {
    display: grid;
    grid-template-columns: 1fr; /* Ein Clip pro Zeile, schön groß */
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 1000px) {
    .clips-grid {
        grid-template-columns: 1fr 1fr; /* Ab zwei Clips nebeneinander auf großen Bildschirmen */
    }
}

.medal-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 10px;
}

.medal-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Styling für die Clips-Karten */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.clip-card-premium {
    background: rgba(20, 20, 25, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(26, 74, 142, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clip-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(26, 74, 142, 0.3);
    border-color: #4fb9ff;
}

.clip-info {
    padding: 20px;
}

.clip-info h3 {
    margin: 0 0 10px 0;
    color: #4fb9ff;
}

.clip-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clip-info p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ddd;
    margin: 0;
}

.placeholder-clip {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #444;
    font-style: italic;
}
/* Spezielles Styling für die Musik-Karte */
.music-card {
    border: 1px solid #4fb9ff; /* Blauer Rahmen passend zum Thema */
    background: rgba(79, 185, 255, 0.05);
}

.music-container {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden; /* Rundet die Ecken des Players ab */
    background: white; /* Manche Player brauchen einen hellen Hintergrund, um lesbar zu sein */
}

/* Damit die Musik-Karte auf Handys nicht zu riesig wird */
@media (max-width: 600px) {
    .music-container iframe {
        height: 250px;
    }
}