/* Grundlegende Variablen für das moderne Dark-Design */
:root {
    --primary: #8b5cf6;
    --secondary: #ec4899;
    --bg: #0b0f1a;
    --card: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top right, #1e1b4b, #0b0f1a);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Logo */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 2px;
    /* Animationen: 3s für den Glanz, 4s für das Schweben */
    animation: simpleFloat 4s ease-in-out infinite;
}

.logo span {
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
    /* Der Glanz läuft jetzt dauerhaft */
    animation: shineText 3s linear infinite;
}

@keyframes shineText {
    to { background-position: 200% center; }
}

@keyframes simpleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Header etwas dunkler für mehr Kontrast zum Logo */
header {
    background: #0f172a; 
    padding: 1rem 5%;
    border-bottom: 2px solid var(--primary); /* Farblicher Akzent unten */
}

/* Main Container */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Nav & Buttons */
.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Game Cards (Startseite) */
.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--card);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* WOP Spielbereich */
.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.player-turn-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Suche die .task-card und stelle sicher, dass sie so aussieht: */
.task-card {
    background: var(--card);
    width: 100%;
    min-height: 250px; /* Etwas höher für mehr Platz */
    display: flex;
    flex-direction: column; /* Alles untereinander */
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    border-radius: 32px;
    border: 2px solid var(--glass-border);
    text-align: center;
    gap: 1.5rem; /* Erzeugt automatisch Abstände zwischen allen Elementen in der Karte */
    transition: all 0.3s ease;
}

/* Spezieller Abstand für Texte in der Karte */
.task-card h3 {
    margin: 0;
    font-size: 1.8rem;
}

.task-card p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}
/* Die großen runden Buttons */
.btn-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.choice-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    color: white;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.choice-btn.wahrheit { background: linear-gradient(135deg, #10b981, #059669); }
.choice-btn.pflicht { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.choice-btn:hover { transform: scale(1.15) rotate(5deg); }

.level-select {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.level-btn {
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    background: var(--card);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.level-btn.soft:hover { border-color: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.level-btn.party:hover { border-color: var(--primary); box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); }
.level-btn.extrem:hover { border-color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }

.hero-slider {
    padding: 60px 20px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.game-icon { font-size: 3rem; margin-bottom: 15px; }

.play-tag {
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.animate-pulse {
    animation: pulse-green 2s infinite;
}

.section-title { margin-bottom: 30px; font-size: 1.5rem; }

/* Fullscreen Loader Container */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* Der Spinner Effekt */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Verstecken-Klasse */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

#game-container {
    opacity: 1; /* Standardmäßig sichtbar */
    transition: opacity 0.3s ease;
    min-height: 200px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Spieler-Manager */
.setup-area { background: var(--card); padding: 2rem; border-radius: 24px; }
.input-group { display: flex; gap: 10px; margin-bottom: 20px; }
input { 
    flex: 1; padding: 15px; border-radius: 12px; border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2); color: white;
}
#player-list { list-style: none; padding: 0; }
#player-list li { 
    background: rgba(255,255,255,0.05); margin-bottom: 8px; padding: 12px 20px; 
    border-radius: 12px; display: flex; justify-content: space-between;
}