/* ----------------------- Allgemeines ------------------------------------*/
      * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
            min-height: 100vh;
            color: #fff;
            overflow-x: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }

/* ----------------------- Allgemeines ------------------------------------*/
        .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 20px;
            position: relative;
            z-index: 1;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
            animation: glow 2s ease-in-out infinite alternate;
        }

        .logo {
            font-size: 2.5rem;
            font-weight: bold;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradient 3s ease infinite;
            margin-bottom: 10px;
        }

        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .subtitle {
            font-size: 1.2rem;
            color: #ccc;
            margin-bottom: 20px;
        }

        .game-screen {
            display: none;
            text-align: center;
            margin-top: 80px;
        }

        .game-screen.active {
            display: block;
        }

/* ----------------------- Buttons------------------------------------*/
        .btn {
            background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
            border: none;
            color: white;
            padding: 15px 30px;
            font-size: 1.1rem;
            border-radius: 50px;
            cursor: pointer;
            margin: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
            min-width: 200px;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-primary {
            background: linear-gradient(45deg, #ff6b6b 0%, #ffa500 100%);
        }

        .btn-secondary {
            background: linear-gradient(45deg, #4ecdc4 0%, #44a08d 100%);
        }

        .btn-third {
            background: linear-gradient(45deg, #45b7d1 0%, #8b5cf6 100%);
        }

        .btn-fourth {
            background: linear-gradient(45deg, #ff9ff3 0%, #feca57 100%);
        }

        .btn-danger {
            background: linear-gradient(45deg, #ff416c 0%, #ff4b2b 100%);
        }

        .btn-small {
            min-width: 100px;
            padding: 8px 16px;
            font-size: 0.9rem;
        }

        .menu-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            max-width: 400px;
            margin: 0 auto;
        }

        .card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            margin: 20px 0;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 0.6s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .challenge-card {
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .challenge-text {
            font-size: 1.3rem;
            line-height: 1.5;
            text-align: center;
            margin-bottom: 20px;
        }

        .category-badge {
            background: linear-gradient(45deg, #667eea, #764ba2);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-bottom: 15px;
            display: inline-block;
        }

        .player-setup {
            margin: 20px 0;
        }

        .player-input {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 25px;
            padding: 12px 20px;
            color: white;
            font-size: 1rem;
            margin: 10px 0;
            width: 100%;
            max-width: 300px;
        }

        .player-input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .player-list {
            margin: 20px 0;
        }

        .player-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            margin: 5px 0;
            border-radius: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .player-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            flex-grow: 1;
        }

        .player-name {
            font-size: 1.1rem;
            font-weight: bold;
        }

        .player-stats {
            font-size: 0.8rem;
            color: #ccc;
            margin-top: 3px;
        }

        .player-actions {
            display: flex;
            gap: 5px;
        }

        .current-player {
            background: linear-gradient(45deg, #ff6b6b, #ffa500);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
        }

        .eliminated {
            background: rgba(255, 0, 0, 0.2);
            opacity: 0.6;
        }

        .back-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 10px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 1rem;
        }

        .stats {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
            margin: 10px;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: bold;
            color: #4ecdc4;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #ccc;
        }

        .category-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin: 20px 0;
        }

        .category-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .category-btn.active {
            background: linear-gradient(45deg, #4ecdc4, #44a08d);
            box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
        }

        .timer {
            font-size: 3rem;
            font-weight: bold;
            color: #ff6b6b;
            margin: 20px 0;
        }

        .leaderboard {
            text-align: left;
            max-width: 400px;
            margin: 0 auto;
        }

        .leaderboard-item {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            margin: 5px 0;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        .rank {
            font-weight: bold;
            color: #ffa500;
        }

        .loading {
            text-align: center;
            padding: 40px;
        }

        .spinner {
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid #4ecdc4;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }


        .floating-particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: #4ecdc4;
            border-radius: 50%;
            animation: float 6s infinite linear;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-10vh) rotate(360deg);
                opacity: 0;
            }
        }

        .mode-description {
            font-size: 0.9rem;
            color: #ccc;
            margin-top: 5px;
            line-height: 1.3;
        }

        .power-ups {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin: 15px 0;
            flex-wrap: wrap;
        }

        .power-up {
            background: linear-gradient(45deg, #ff6b6b, #ffa500);
            border: none;
            color: white;
            padding: 8px 12px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all 0.3s ease;
        }

        .power-up:hover {
            transform: scale(1.05);
        }

        .power-up:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .countdown-container {
            text-align: center;
            color: white;
            padding-top: 1%;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
            animation: glow 2s ease-in-out infinite alternate;
            width: 30%;
            margin: 5% auto 0 auto;
            display: block;
            float: none;
        }


        /* Footer */
footer {
    background: linear-gradient(135deg, rgba(54, 54, 54, 0.9) 0%, rgba(26, 26, 46, 0.9) 10%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 15%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 119, 48, 0.05) 0%, transparent 50%);
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #ff7730);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #ff7730;
    transform: translateX(5px);
}

.footer-section {
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    padding: 24px 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 10px;
    transition: box-shadow 0.3s;
}

.footer-section:hover {
    box-shadow: 0 8px 32px rgba(78,205,196,0.18), 0 2px 8px #4ecdc4;
}

.footer-section h3 {
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(78,205,196,0.15);
}

.footer-links a {
    font-weight: 500;
    border-radius: 12px;
    padding: 6px 10px;
    background: linear-gradient(90deg, rgba(78,205,196,0.08), rgba(255,119,48,0.06));
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.footer-links a:hover {
    background: linear-gradient(90deg, #4ecdc4 0%, #ff7730 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,119,48,0.15);
    text-shadow: 0 2px 8px #ff7730;
}

.footer-bottom {
    background: rgba(10,10,35,0.15);
    border-radius: 12px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.footer-bottom p {
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(78,205,196,0.12);
}
.footer-bottom a {
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(78,205,196,0.12);
    color: rgb(156, 156, 156);
    text-decoration: none;
}
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link:hover {
    background: rgba(255, 119, 48, 0.1);
    border-color: rgba(255, 119, 48, 0.3);
    color: #ff7730;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff7730, #ffa500);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 119, 48, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 119, 48, 0.4);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}






/*------------------------------------------------------------------------*/
        /* Festival Title */
        .festival-title {
            font-size: 2em;
            font-weight: bold;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: rainbow 3s ease-in-out infinite;
        }
        @keyframes rainbow {
            0%,100% { background-position: 0% 50%;}
            50% { background-position: 100% 50%;}
        }
        .status-text {
            margin-bottom: 2%;
        }
        /* Timer Display */
        .timer-display {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .time-unit {
            background: rgba(255,255,255,0.15);
            padding: 10px;
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.3);
            min-width: 50px;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .time-unit:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        }
        .time-value {
            font-size: 2rem;
            font-weight: bold;
            display: block;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            animation: pulse 2s ease-in-out infinite;
        }
        @keyframes pulse {
            0%,100% { transform: scale(1);}
            50% { transform: scale(1.05);}
        }
        .time-label {
            font-size: 0.5em;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 5px;
        }

/* ------------------------ Bingo Grid ---------------------------------------- */
        .bingo-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            max-width: 650px;
            margin: 5% auto 40px auto;
            padding: 30px;
            background: rgba(10,10,35,0.1);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(0,255,255,0.3);
            box-shadow: 0 0 50px rgba(255,7,58,0.3), inset 0 0 50px rgba(0,255,255,0.1);
        }
        .bingo-cell {
            aspect-ratio: 1;
            background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05));
            border: 2px solid rgba(0,255,255,0.4);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: clamp(0.7rem, 1.5vw, 0.9rem);
            font-weight: 700;
            color: #fff;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
            position: relative;
            overflow: hidden;
            text-shadow: 0 0 5px rgba(0,0,0,0.8);
            user-select: none;
        }
        .bingo-cell::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
            transform: rotate(45deg);
            transition: all 0.5s;
            opacity: 0;
        }
        .bingo-cell:hover {
            transform: translateY(-5px) scale(1.05);
            border-color: #ff073a;
            box-shadow: 0 10px 25px rgba(255,7,58,0.4), 0 0 20px rgba(255,7,58,0.6), inset 0 0 20px rgba(255,255,255,0.1);
        }
        .bingo-cell:hover::before {
            opacity: 1;
            animation: shimmer 0.6s ease-out;
        }
        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg);}
            100% { transform: translateX(100%) translateY(100%) rotate(45deg);}
        }
        .bingo-cell.marked {
            background: linear-gradient(135deg, #ff073a, #ff6b35);
            border-color: #fff200;
            color: #fff;
            animation: markPulse 0.6s ease-out;
            box-shadow: 0 0 30px rgba(255,7,58,0.8), inset 0 0 20px rgba(255,255,255,0.2);
        }
        .bingo-cell.marked::after {
            content: '✓';
            position: absolute;
            font-size: 1.5em;
            color: #fff200;
            text-shadow: 0 0 10px rgba(255,255,0,0.8);
            animation: checkmark 0.5s ease-out 0.1s both;
        }
        @keyframes markPulse {
            0% { transform: scale(1);}
            50% { transform: scale(1.1);}
            100% { transform: scale(1);}
        }
        @keyframes checkmark {
            0% { opacity: 0; transform: scale(0) rotate(180deg);}
            100% { opacity: 1; transform: scale(1) rotate(0deg);}
        }
        .center-cell {
            background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
            border-color: #fff200 !important;
            font-weight: 900;
            font-size: 1.1em;
            animation: centerGlow 3s ease-in-out infinite;
        }
        @keyframes centerGlow {
            0%,100% { box-shadow: 0 0 20px rgba(139,92,246,0.6);}
            50% { box-shadow: 0 0 40px rgba(139,92,246,1), 0 0 60px rgba(168,85,247,0.8);}
        }

        /* Bingo Alert */
        .bingo-alert {
            position: fixed;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) scale(0);
            background: linear-gradient(135deg, #ff073a, #ff6b35);
            color: #fff;
            padding: 40px 60px;
            border-radius: 20px;
            font-size: 2rem;
            font-weight: 900;
            text-align: center;
            z-index: 1000;
            box-shadow: 0 0 100px rgba(255,7,58,0.8);
            border: 3px solid #fff200;
            animation: bingoAlert 3s ease-out;
        }
        @keyframes bingoAlert {
            0% { transform: translate(-50%, -50%) scale(0) rotate(180deg); opacity: 0;}
            20% { transform: translate(-50%, -50%) scale(1.2) rotate(0deg); opacity: 1;}
            80% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1;}
            100% { transform: translate(-50%, -50%) scale(0) rotate(-180deg); opacity: 0;}
        }   
        
/* ------------------ Bingo Controls ---------------------- */
        .controls {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
        }

/* ---------------- Bingo Stats ------------------ */
        .stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 30px;
        }
        .stat {
            text-align: center;
            padding: 20px;
            background: rgba(10,10,35,0.8);
            border-radius: 15px;
            border: 1px solid rgba(0,255,255,0.3);
            backdrop-filter: blur(5px);
            min-width: 120px;
        }
        .stat-number {
            font-size: 2rem;
            font-weight: 900;
            color: #ff073a;
            text-shadow: 0 0 10px rgba(255,7,58,0.8);
        }
        .stat-label {
            font-size: 0.9rem;
            color: #00ffff;
            margin-top: 5px;
        }
/* --------------------------- Utility Classes ------------------------------ */
        .fade-in {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s;
        }
        .fade-in.visible {
            opacity: 1;
        }

/* --------------------------- Share Buttons ------------------------------ */

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    text-align: center;
}

.h1-share-buttons {
    margin-top: 50px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #4ecdc4, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: festival-h1-gradient 4s linear infinite;
    text-shadow: 0 4px 24px rgba(255,255,255,0.2), 0 2px 8px #ff6b6b;
    margin-bottom: 1.5rem;
    text-align: center;
    filter: drop-shadow(0 0 10px #feca57);
}
.share-button {
    background: #444;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.share-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.share-button.whatsapp {
    background-color: #25D366;
}

/* --------------------------- Toast Buttons ------------------------------ */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 25px;
    padding: 1rem 2rem;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* --------------------------- Bestrafungsrad ------------------------------ */
       /* Rad Container */
        .wheel-screen {
            display: none;
            min-height: 100vh;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        .wheel-screen::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            animation: wheelBackground 6s ease-in-out infinite alternate;
        }

        @keyframes wheelBackground {
            0% { transform: rotate(0deg) scale(1); }
            100% { transform: rotate(10deg) scale(1.1); }
        }

        .wheel-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            position: relative;
            z-index: 2;
        }

        .wheel-title {
            font-size: 3rem;
            font-weight: bold;
            color: #ffffff;
            margin-bottom: 2rem;
            text-align: center;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
            animation: titleGlow 2s ease-in-out infinite alternate;
        }

        @keyframes titleGlow {
            0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
            100% { text-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6); }
        }

        .wheel-wrapper {
            position: relative;
            margin: 2rem 0;
        }

        .wheel {
            width: 400px;
            height: 400px;
            border-radius: 50%;
            position: relative;
            box-shadow: 
                0 0 50px rgba(255, 0, 255, 0.6),
                inset 0 0 30px rgba(0, 255, 255, 0.3);
            transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .wheel-segment {
            position: absolute;
            width: 50%;
            height: 50%;
            transform-origin: 100% 100%;
            clip-path: polygon(0 0, 100% 0, 0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.9rem;
            text-align: center;
            padding: 10px;
            transition: all 0.3s ease;
        }

        .wheel-segment:hover {
            filter: brightness(1.3);
            transform: scale(1.05);
        }

        .wheel-segment:nth-child(1) { transform: rotate(0deg); background: linear-gradient(45deg, #ff006e, #fb5607); }
        .wheel-segment:nth-child(2) { transform: rotate(45deg); background: linear-gradient(45deg, #fb5607, #ffbe0b); }
        .wheel-segment:nth-child(3) { transform: rotate(90deg); background: linear-gradient(45deg, #ffbe0b, #8ecae6); }
        .wheel-segment:nth-child(4) { transform: rotate(135deg); background: linear-gradient(45deg, #8ecae6, #219ebc); }
        .wheel-segment:nth-child(5) { transform: rotate(180deg); background: linear-gradient(45deg, #219ebc, #023047); }
        .wheel-segment:nth-child(6) { transform: rotate(225deg); background: linear-gradient(45deg, #023047, #7209b7); }
        .wheel-segment:nth-child(7) { transform: rotate(270deg); background: linear-gradient(45deg, #7209b7, #f72585); }
        .wheel-segment:nth-child(8) { transform: rotate(315deg); background: linear-gradient(45deg, #f72585, #ff006e); }

        .wheel-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #ffffff, #f0f0f0);
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
            z-index: 10;
        }

        .wheel-pointer {
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-bottom: 40px solid #ffffff;
            z-index: 11;
            filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
        }

        .spin-button {
            padding: 15px 30px;
            font-size: 1.5rem;
            font-weight: bold;
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 50px;
            cursor: pointer;
            margin: 2rem 0;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
        }

        .spin-button:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 15px 40px rgba(0, 255, 255, 0.6);
        }

        .spin-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .result-display {
            min-height: 80px;
            margin: 2rem 0;
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            text-align: center;
        }

        .result-text {
            font-size: 1.5rem;
            font-weight: bold;
            color: #ffffff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }

        .result-text.show {
            opacity: 1;
            transform: translateY(0);
        }

        .back-button {
            padding: 12px 25px;
            font-size: 1.2rem;
            font-weight: bold;
            color: #fff;
            background: linear-gradient(45deg, #ff4757, #ff006e);
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
        }

        .back-button:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 15px 40px rgba(255, 71, 87, 0.6);
        }

        @media (max-width: 768px) {
            .festival-title { font-size: 2.5rem; }
            .wheel-title { font-size: 2rem; }
            .wheel { width: 300px; height: 300px; }
            .wheel-segment { font-size: 0.8rem; }
        }

        .floating-particles {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            animation: float 6s infinite linear;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0px);
                opacity: 0;
            }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% {
                transform: translateY(-100px) translateX(100px);
                opacity: 0;
            }
        }

/* ------------------------ Responsive Design ---------------------------------------- */
        @media (max-width: 1400px) {
            .bingo-grid {
                max-width: 90vw;
                padding: 15px;
                gap: 8px;
            }
            .bingo-cell {
                font-size: clamp(0.7rem, 2vw, 1rem);
            }
            .timer-display { gap: 8px; }
            .time-unit { min-width: 30px; padding: 8px; }
            .time-value { font-size: 1.5rem; }
            .time-label { font-size: 0.7rem; }
            .festival-title { font-size: 1.6em; }

            .footer-content { grid-template-columns: 1fr; text-align: center; }
            .social-links { justify-content: center; }
            .festival-title {
                font-size: 1.6em;
            }

            .timer-display {
                gap: 8px;
            }
            
            .time-unit {
                min-width: 30px;
                padding: 8px;
            }
            
            .time-value {
                font-size: 1.5rem;
            }
            .time-label {
                font-size: 0.4rem;
            }
        }       
@media (max-width: 1024px) {
            .bingo-grid {
                max-width: 90vw;
                padding: 15px;
                gap: 8px;
            }
            .bingo-cell {
                font-size: clamp(0.7rem, 2vw, 1rem);
            }
            .timer-display { gap: 8px; }
            .time-unit { min-width: 30px; padding: 8px; }
            .time-value { font-size: 1.5rem; }
            .time-label { font-size: 0.7rem; }
            .festival-title { font-size: 1.6em; }
            .countdown-container { min-width: 80%; padding-top: 5%; }
            .footer-content { grid-template-columns: 1fr; text-align: center; }
            .social-links { justify-content: center; }
            .festival-title {
                font-size: 1.6em;
            }
            .countdown-container {
                min-width: 80%;
                padding-top: 5%;
            }
            .timer-display {
                gap: 8px;
            }
            
            .time-unit {
                min-width: 30px;
                padding: 8px;
            }
            
            .time-value {
                font-size: 1.5rem;
            }
            .time-label {
                font-size: 0.4rem;
            }
        }
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
            .logo { font-size: 2rem; }
            .btn { min-width: 140px; padding: 12px 20px; }
            .bingo-grid {
                grid-template-columns: repeat(5, 1fr);
                max-width: 98vw;
                padding: 8px;
                gap: 6px;
                margin-top: 10vw;
            }
            .bingo-cell {
                font-size: clamp(0.65rem, 3vw, 1.1rem);
                padding: 4px;
            }
            .btn-reset, .btn-new, .btn-back {
                font-size: 0.9rem;
                padding: 8px 18px;
                border-radius: 30px;
                min-width: 90px;
                box-shadow: 0 3px 10px rgba(0,0,0,0.18);
            }
            .timer-display { gap: 8px; }
            .time-unit { min-width: 30px; padding: 8px; }
            .time-value { font-size: 1.5rem; }
            .time-label { font-size: 0.7rem; }
            .festival-title { font-size: 1.6em; }
            .countdown-container { min-width: 80%; padding-top: 5%; }
            .footer-content { grid-template-columns: 1fr; text-align: center; }
            .social-links { justify-content: center; }
            .festival-title {
                font-size: 1.6em;
            }
            .countdown-container {
                min-width: 80%;
                padding-top: 5%;
            }
            .timer-display {
                gap: 8px;
            }
            
            .time-unit {
                min-width: 30px;
                padding: 8px;
            }
            
            .time-value {
                font-size: 1.5rem;
            }
            .time-label {
                font-size: 0.4rem;
            }
        
        }
        @media (max-width: 600px) {
            .bingo-grid {
                grid-template-columns: repeat(5, 1fr);
                padding: 2vw;
                gap: 3vw;
                max-width: 98vw;
                margin-top: 5vw;
            }
            .bingo-cell {
                font-size: clamp(0.4rem, 4vw, 0.5rem);
                min-width: 0;
                padding: 2px;
            }
            .btn-reset, .btn-new, .btn-back {
                font-size: 0.9rem;
                padding: 10px 14px;
                border-radius: 30px;
                min-width: 70px;
            }

        }
        @media (max-width: 400px) {
            .bingo-grid { padding: 1vw; gap: 2vw; }
            .bingo-cell { font-size: clamp(0.4rem, 4vw, 0.6rem); }
        }
        
