* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

/* Subtitle mit Logos */
.subtitle-with-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.subtitle-logo {
    display: none; /* Default: versteckt im Landscape */
    height: 35px;
    width: auto;
    opacity: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.subtitle-logo:hover {
    transform: scale(1.1);
}

.subtitle-with-logos .subtitle {
    margin-bottom: 0;
    white-space: nowrap;
}

/* Portrait: Logos neben Subtitle zeigen (weil oben links stört) */
@media (orientation: portrait) {
    .subtitle-logo {
        display: block;
        height: 30px;
    }

    .subtitle-with-logos {
        gap: 15px;
    }
}

/* Portrait + sehr schmale Screens: Kleinere Logos */
@media (orientation: portrait) and (max-width: 400px) {
    .subtitle-logo {
        height: 24px;
    }

    .subtitle-with-logos {
        gap: 10px;
    }

    .subtitle-with-logos .subtitle {
        font-size: 1rem;
    }
}

.game-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.game-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        /* Goldener Rahmen mit mehrschichtigen Schatten */
        0 0 0 3px #d4af37,           /* Basis-Gold */
        0 0 0 4px #f4e5c2,           /* Helles Gold */
        0 0 0 5px #c9a961,           /* Mittleres Gold */
        0 0 8px 5px rgba(212, 175, 55, 0.3); /* Gold-Glow */
    position: relative;
    overflow: hidden;
}

/* Premium Gold-Glanz-Effekt */
.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 235, 150, 0.2) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    pointer-events: none;
    transition: transform 0.6s ease;
}

.game-card:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

/* Goldener Rahmen-Gradient (als ::after für perfekte Rundung) */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 3px;
    background: linear-gradient(
        135deg,
        #d4af37 0%,    /* Gold */
        #f9e79f 15%,   /* Helles Gold */
        #c9a961 30%,   /* Mittleres Gold */
        #ffd700 50%,   /* Reines Gold */
        #b8941e 70%,   /* Dunkles Gold */
        #e6cc7a 85%,   /* Helles Gold */
        #d4af37 100%   /* Gold */
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        /* Intensiverer goldener Rahmen beim Hover */
        0 0 0 3px #ffd700,           /* Reines Gold */
        0 0 0 4px #ffeb99,           /* Helles Gold */
        0 0 0 5px #d4af37,           /* Basis-Gold */
        0 0 20px 5px rgba(255, 215, 0, 0.5), /* Stärkerer Gold-Glow */
        inset 0 0 30px rgba(255, 235, 150, 0.1); /* Innerer Gold-Schimmer */
}

/* Intensiverer Gold-Gradient beim Hover */
.game-card:hover::after {
    background: linear-gradient(
        135deg,
        #ffd700 0%,
        #fff9e6 15%,
        #d4af37 30%,
        #ffe680 50%,
        #c9a961 70%,
        #fff4cc 85%,
        #ffd700 100%
    );
}

.game-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.game-card h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.game-card p {
    color: #666;
    font-size: 1rem;
}

/* ========================================
   Countdown Overlay Styles
   ======================================== */

#countdownOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
                url('/shared/images/bgpic.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.countdown-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 800px;
}

.countdown-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.countdown-content .event-date {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-box .number {
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.countdown-box .label {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.countdown-message {
    font-size: 20px;
    margin-top: 30px;
    line-height: 1.6;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .countdown-content h1 {
        font-size: 32px;
    }

    .countdown-content .event-date {
        font-size: 18px;
    }

    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .countdown-box .number {
        font-size: 48px;
    }

    .countdown-box .label {
        font-size: 14px;
    }

    .countdown-message {
        font-size: 16px;
    }
}

.countdown-logo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    max-width: 200px;
    height: auto;
    opacity: 0.9;
    z-index: 10000;
}

@media (max-width: 768px) {
    .countdown-logo {
        max-width: 120px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   Prize Card Styles (Gewinnspiel-Info)
   ======================================== */

.prize-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    margin: 30px 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        /* Goldener Rahmen mit mehrschichtigen Schatten */
        0 0 0 3px #d4af37,           /* Basis-Gold */
        0 0 0 4px #f4e5c2,           /* Helles Gold */
        0 0 0 5px #c9a961,           /* Mittleres Gold */
        0 0 8px 5px rgba(212, 175, 55, 0.3); /* Gold-Glow */
    position: relative;
    overflow: hidden;
    text-align: left;
}

/* Premium Gold-Glanz-Effekt */
.prize-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 235, 150, 0.15) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    pointer-events: none;
    animation: prizeShine 8s ease-in-out infinite;
}

@keyframes prizeShine {
    0%, 100% {
        transform: rotate(45deg) translate(-100%, -100%);
    }
    50% {
        transform: rotate(45deg) translate(100%, 100%);
    }
}

/* Goldener Rahmen-Gradient */
.prize-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 3px;
    background: linear-gradient(
        135deg,
        #d4af37 0%,    /* Gold */
        #f9e79f 15%,   /* Helles Gold */
        #c9a961 30%,   /* Mittleres Gold */
        #ffd700 50%,   /* Reines Gold */
        #b8941e 70%,   /* Dunkles Gold */
        #e6cc7a 85%,   /* Helles Gold */
        #d4af37 100%   /* Gold */
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.prize-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    position: relative;
    z-index: 2;
}

.prize-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-content {
    padding: 30px 40px 40px;
    position: relative;
    z-index: 2;
}

.prize-section {
    margin-bottom: 30px;
}

.prize-section:last-of-type {
    margin-bottom: 0;
}

.prize-section h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.prize-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prize-list li {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.prize-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
}

.prize-list li strong {
    color: #333;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.prize-detail {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.prize-motivation {
    background: linear-gradient(135deg, #ffd700 0%, #f9e79f 100%);
    color: #333;
    text-align: center;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 1.2rem;
    margin-top: 30px;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border: 2px solid #d4af37;
}

.prize-motivation strong {
    color: #764ba2;
    font-size: 1.3rem;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .prize-card {
        margin: 20px 10px;
    }

    .prize-header {
        padding: 20px 20px;
    }

    .prize-title {
        font-size: 1.5rem;
    }

    .prize-content {
        padding: 20px 20px 25px;
    }

    .prize-section h3 {
        font-size: 1.3rem;
    }

    .prize-list li {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .prize-list li strong {
        font-size: 1rem;
    }

    .prize-detail {
        font-size: 0.85rem;
    }

    .prize-motivation {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .prize-motivation strong {
        font-size: 1.1rem;
    }
}

/* ========================================
   Lectures Banner (Vorträge Lauf-Banner)
   ======================================== */

.lectures-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 20px 25px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 2px #764ba2,
        0 0 0 3px rgba(118, 75, 162, 0.3);
    overflow: hidden;
    position: relative;
}

.lectures-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.lectures-banner-title {
    text-align: center;
    color: #764ba2;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lectures-marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Fade-Effekt an den Rändern */
.lectures-marquee-container::before,
.lectures-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.lectures-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.lectures-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.lectures-marquee {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.lecture-item {
    color: #333;
    font-size: 0.95rem;
    padding: 8px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 0 5px;
    border: 1px solid rgba(118, 75, 162, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lecture-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lecture-item:hover strong {
    color: white;
}

.lecture-item strong {
    color: #764ba2;
    transition: color 0.3s ease;
}

.lecture-separator {
    color: #764ba2;
    font-size: 1.2rem;
    margin: 0 10px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .lectures-banner {
        margin: 15px 10px 20px;
        padding: 12px 15px;
    }

    .lectures-banner-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .lecture-item {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}
