/* --- 1. CORE RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    --brand: #002366;
    --brand-light: #4da6ff;
    --yellow: #FFDE21;
    --white: #ffffff;
    --black: #050a14;
    --gray: #f8fafc;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
}

/* --- 2. CONTAINER SYSTEM --- */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-small {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.centered {
    text-align: center;
}

/* --- 3. MOBILE SPLASH (FIXIERTER VORHANG) --- */
.mobile-splash {
    display: none; /* Hide on Desktop */
}

@media (max-width: 768px) {
    /* Der Vorhang - nur auf Startseite sichtbar */
    .mobile-splash {
        display: none; /* Standardmäßig aus */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        z-index: 1;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 12dvh;
        text-align: center;
        color: white;
        overflow: hidden;
    }

    /* NUR auf der Startseite einblenden */
    body.is-home .mobile-splash {
        display: flex;
    }

    .splash-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0,35,102,0.7), rgba(0,0,0,0.9)), 
                    url('images/vorhang.webp') center/cover;
        z-index: -1;
    }

    .pre-title {
        display: block;
        color: var(--brand-light);
        text-transform: uppercase;
        letter-spacing: 4px;
        font-weight: 400;
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .main-title {
        font-size: 3.5rem;
        font-weight: 900;
        line-height: 1;
    }

    .sponsor-label {
        color: var(--yellow);
        position: absolute;
        top: 19dvh;
        left: 50%;
        transform: translateX(-50%);
        max-width: 100%;
        z-index: 10;
        text-align: center;
        font-size: 0.65rem;
        line-height: 1.1;
        font-weight: 500;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .timer-mob {
        margin-top: auto;
        margin-bottom: 12dvh;
    }

    .days-val {
        display: block;
        font-size: 6rem;
        font-weight: 900;
        color: var(--brand-light);
        line-height: 1;
    }

    .timer-mob label {
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .swipe-area {
        position: absolute;
        bottom: 3dvh;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%;
    }

    .arrow-up {
        font-size: 2.5rem;
        color: var(--white);
        animation: swipeUp 2s infinite ease-in-out;
        margin-bottom: 5px;
    }

    .swipe-text {
        display: block;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Page Wrapper - Standardmäßig KEIN margin-top */
    .page-wrapper {
        position: relative;
        z-index: 10;
        margin-top: 0;
        background: var(--white);
        min-height: auto;
    }

    /* NUR auf Startseite: margin-top + shadow */
    body.is-home .page-wrapper {
        margin-top: 100dvh;
        box-shadow: 0 -30px 60px rgba(0,0,0,0.4);
        min-height: 100dvh;
    }
}

/* Desktop Reset */
@media (min-width: 769px) {
    .mobile-splash {
        display: none !important;
    }
    .page-wrapper {
        margin-top: 0 !important;
        box-shadow: none !important;
    }
}

    .days-val {
        display: block;
        font-size: 6rem;
        font-weight: 900;
        color: var(--brand-light);
        line-height: 1;
    }

    .timer-mob label {
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
    }


    .arrow-up {
        font-size: 2.5rem;
        color: var(--white);
        animation: swipeUp 2s infinite ease-in-out;
        margin-bottom: 5px;
    }

    .swipe-text {
        display: block;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: 1px;
    }


/* --- 4. HEADER (SAUBER & MITTIG) --- */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--brand);
}

.logo span { color: var(--brand-light); }

.nav ul {
    display: flex;
    list-style: none; /* Keine Punkte! */
    gap: 35px;
}

.nav a {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .nav { display: none; }
}

/* --- 5. DESKTOP HERO (KOMPAKT) --- */
.hero-desktop {
    display: flex;
    justify-content: center;
    padding: 100px 0;
}

@media (max-width: 768px) {
    .hero-desktop { display: none; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1050px;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 0.85;
    color: var(--brand);
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.gradient {
    background: linear-gradient(45deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.countdown {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-light);
    margin-bottom: 30px;
}

.hero-img-stack {
    position: relative;
}

.main-img {
    width: 100%;
    border-radius: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 40px 100px rgba(0,35,102,0.12);
}

.glow {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 110%; height: 110%;
    background: radial-gradient(circle, rgba(0,68,204,0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

.stats-card {
    position: absolute;
    bottom: -20px; left: -40px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(25px);
    padding: 25px;
    border-radius: 25px;
    z-index: 3;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* --- 6. DIE 3 KARTEN --- */
/* === FLIP CARDS - MOBILE FIRST === */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.flip-card {
    height: 420px;
    perspective: 1500px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.flip-card:active {
    transform: scale(0.98);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 35, 102, 0.08);
}

/* FRONT CARD */
.card-front {
    background: white;
    display: flex;
    flex-direction: column;
}

.c-img {
    height: 60%;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.c-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Gradient Overlay - NUR auf Vorderseite */
.card-front .c-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(77, 166, 255, 0.15) 0%,
        rgba(77, 166, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Explizit KEIN Gradient auf Rückseite */
.card-back::after,
.card-back::before {
    display: none !important;
}

.flip-card:hover .c-img img {
    transform: scale(1.03);
}

.c-content {
    height: 40%;
    padding: 25px 25px 15px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.c-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.c-content p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

/* BACK CARD */
.card-back {
    background: var(--brand); /* Solides Blau statt Gradient */
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px 30px 30px;
    text-align: center;
    position: relative;
    z-index: 2; /* Höher als Vorderseite */
}

.card-back h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.card-back p {
    font-size: 1.15rem;
    line-height: 2;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 20px;
}

.card-back br {
    display: block;
    margin: 8px 0;
}

/* CARD HINT - Nur einmal im Content */
.card-hint {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.4;
    margin-top: auto;
    transition: opacity 0.3s ease;
}

.card-front .card-hint {
    color: var(--brand);
}

.card-back .card-hint {
    color: white;
    opacity: 0.5;
}

.flip-card:hover .card-hint {
    opacity: 0.7;
}

/* Tablet (ab 600px) */
@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Desktop (ab 900px) */
@media (min-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    .card-hint {
        font-size: 0.65rem;
    }
}

/* Large Desktop (ab 1200px) */
@media (min-width: 1200px) {
    .card-grid {
        gap: 40px;
    }
}
/* --- 7. FOOTER --- */
.footer {
    background: var(--brand);
    color: white;
    padding: 80px 20px 40px 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

.footer-nav {
    margin: 30px 0;
}

.footer-nav a {
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

.portfolio-wrap {
    margin-top: 40px;
}

.r3-button {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid var(--brand-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.r3-button:hover {
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.r3-txt {
    position: relative;
    z-index: 2;
}

.r3-flare {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    z-index: 1;
}

.r3-button:hover .r3-flare {
    left: 100%;
}

/* Mobile */
@media (max-width: 600px) {
    .footer {
        padding: 60px 20px 30px 20px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-nav a {
        display: inline-block;
        margin: 10px;
    }
}

/* --- ANIMATIONS --- */
@keyframes swipeUp {
    0% { transform: translateY(15px); opacity: 0; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-15px); opacity: 0; }
}

.section { padding: 100px 0; }
.gray { background: var(--gray); }
.section-title { font-size: 2.5rem; color: var(--brand); margin-bottom: 40px; }
.btn-primary { display: inline-block; padding: 18px 45px; background: var(--brand); color: white; text-decoration: none; border-radius: 12px; font-weight: 900; }
.btn-primary.full { width: 100%; border: none; cursor: pointer; }
.glass-form input { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 10px; }

@media (max-width: 768px) {
    /* Die Navigation ist standardmäßig unsichtbar und oben "geparkt" */
    .nav {
        display: none; /* Oder position: absolute; transform: translateY(-100%); */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 40px 20px;
        border-bottom: 2px solid var(--brand);
        z-index: 999;
    }

    /* WENN das Skript die Klasse .active hinzufügt, wird sie sichtbar */
    .nav.active {
        display: block;
    }

    /* BURGER ANIMATION: Zum X werden */
    .burger-btn.is-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .burger-btn.is-open span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.is-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
.hero {
    position: relative;
}

.title-wrap {
    position: relative;
    display: inline-block;
}

.pre-title {
    position: absolute;
    top: -1.2em;
    left: 0;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #4da3ff;
}

.main-title {
    position: relative;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.year {
    position: absolute;
    bottom: -1.2em;
    right: 0;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4da3ff;
}

.bottom-group {
    position: absolute;
    bottom: 20vh; /* Im unteren Drittel */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.days-big {
    display: block;
    font-size: 6rem; 
    font-weight: 900;
    color: var(--brand-light);
    line-height: 1;
    margin-bottom: 10px;
}

.timer-mob label {
    font-size: 1.2rem; /* Auch etwas größer */
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}
.swipe-area {
    position: absolute;
    bottom: 4vh; /* Ganz unten */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.arrow-up {
    font-size: 2.5rem;
    color: var(--white);
    animation: swipeUp 2s infinite ease-in-out;
    display: block;
    margin: 0 auto 20px auto; /* Zentriert + Abstand */
    line-height: 1;
    position: relative; /* WICHTIG: Kein absolute! */
}

.swipe-text {
    display: inline;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    font-weight: 400;
}

@keyframes swipeUp {
    0%, 100% { 
        transform: translateY(8px); 
        opacity: 0; 
    }
    50% { 
        transform: translateY(-8px); 
        opacity: 1; 
    }
}
/* Burger Button (nur auf Mobile) */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-btn span {
    width: 28px;
    height: 3px;
    background: var(--brand);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .burger-btn {
        display: flex; /* Zeige Burger auf Mobile */
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 40px 20px;
        border-bottom: 2px solid var(--brand);
        z-index: 999;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    /* BURGER ANIMATION: Zum X werden */
    .burger-btn.is-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .burger-btn.is-open span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.is-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
/* --- 8. PHILOSOPHY SECTION --- */

/* Mobile Base Styles */
.philosophy-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.phil-left .section-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 15px; /* Weniger Abstand */
    letter-spacing: -1px;
}

.phil-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-light);
    line-height: 1.3; /* Kompakter */
    margin-bottom: 0; /* Kein extra Margin */
}

.phil-right {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.phil-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

.phil-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.1), rgba(0, 35, 102, 0.05));
    border-radius: 15px;
    border-left: 4px solid var(--brand-light);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.4;
}

.cta-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Tablet (ab 600px) */
@media (min-width: 600px) {
    .philosophy-grid {
        gap: 35px;
    }
    
    .phil-left .section-title {
        font-size: 2.8rem;
        margin-bottom: 18px;
    }
    
    .phil-tagline {
        font-size: 1.2rem;
    }
    
    .phil-right {
        padding: 40px 30px;
    }
    
    .phil-text {
        font-size: 1.05rem;
    }
    
    .phil-cta {
        font-size: 1.1rem;
        padding: 22px;
    }
    
    .cta-icon {
        font-size: 1.8rem;
    }
}

/* Desktop (ab 900px) */
@media (min-width: 900px) {
    .philosophy-grid {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 60px;
        align-items: start;
    }
    
    .phil-left {
        position: sticky;
        top: 120px;
    }
    
    .phil-left .section-title {
        font-size: 3.2rem;
        letter-spacing: -2px;
        margin-bottom: 20px;
    }
    
    .phil-tagline {
        font-size: 1.25rem;
        line-height: 1.4;
        max-width: 280px; /* Begrenzt Breite für weniger Umbrüche */
    }
    
    .phil-right {
        padding: 50px 40px;
        border-radius: 25px;
    }
    
    .phil-text {
        font-size: 1.08rem;
        line-height: 1.8;
        margin-bottom: 22px;
    }
    
    .phil-cta {
        margin-top: 35px;
        padding: 25px;
        font-size: 1.15rem;
    }
    
    .cta-icon {
        font-size: 2rem;
    }
}

/* Large Desktop (ab 1200px) */
@media (min-width: 1200px) {
    .philosophy-grid {
        gap: 80px;
    }
    
    .phil-left .section-title {
        font-size: 3.5rem;
        margin-bottom: 25px;
    }
    
    .phil-tagline {
        font-size: 1.3rem;
        line-height: 1.5;
        max-width: 320px; /* Mehr Platz auf großen Screens */
    }
    
    .phil-right {
        padding: 60px;
        border-radius: 30px;
    }
    
    .phil-text {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .phil-cta {
        margin-top: 40px;
        font-size: 1.2rem;
    }
}
/* === ERGEBNISSE TABELLEN === */

.results-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    border-color: var(--brand-light);
    color: var(--brand);
}

.tab-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.2);
}

.results-wrap {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.tab-panel {
    animation: fadeIn 0.4s ease;
}

.tab-panel.is-hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tabelle */
.results {
    width: 100%;
    border-collapse: collapse;
}

.results thead {
    background: var(--gray);
}

.results th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand);
}

.results tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.results tbody tr:last-child {
    border-bottom: none;
}

.results tbody tr:hover {
    background: #f8f9ff;
    transform: translateX(5px);
}

.results td {
    padding: 18px 20px;
    color: #333;
}

/* Erste Spalte (Platz) */
.results td:first-child {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand);
    width: 80px;
}

/* Teamname */
.results td:nth-child(2) {
    font-weight: 600;
}

/* Zeit */
.results td:last-child {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-light);
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Medal Highlights - Top 3 */
.results tbody tr:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), transparent);
}

.results tbody tr:nth-child(1) td:first-child::before {
    content: '🥇 ';
}

.results tbody tr:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.08), transparent);
}

.results tbody tr:nth-child(2) td:first-child::before {
    content: '🥈 ';
}

.results tbody tr:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), transparent);
}

.results tbody tr:nth-child(3) td:first-child::before {
    content: '🥉 ';
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .results-wrap {
        padding: 20px 15px;
    }
    
    .results th,
    .results td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .results th {
        font-size: 0.75rem;
    }
    
    .results td:first-child {
        width: 60px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
/* === EVENT INFO BANNER === */

.event-info {
    background: linear-gradient(135deg, var(--brand) 0%, #003d99 100%);
    padding: 50px 0;
    color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.info-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

/* Klickbare Karte */
.info-item.clickable {
    cursor: pointer;
    position: relative;
}

.info-item.clickable:hover {
    background: rgba(77, 166, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.9;
    /* Macht Emojis einfarbig hell */
}

/* Alternativ: Unicode-Symbole in hellblau */
.info-item:nth-child(1) .info-icon::before {
    content: '📅';
    filter: none;
    color: var(--brand-light);
}

.info-item:nth-child(2) .info-icon::before {
    content: '⏰';
    filter: none;
    color: var(--brand-light);
}

.info-item:nth-child(3) .info-icon::before {
    content: '📍';
    filter: none;
    color: var(--brand-light);
}

.info-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    font-weight: 600;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 3px;
}

.info-hint {
    font-size: 0.8rem;
    color: var(--yellow);
    margin-top: 5px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-item.clickable:hover .info-hint {
    opacity: 1;
}

/* Tablet (ab 600px) */
@media (min-width: 600px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .info-icon {
        font-size: 3rem;
    }
    
    .info-value {
        font-size: 1.2rem;
    }
}
/* Mobile: Info-Items gleiche Höhe */
@media (max-width: 599px) {
    .info-item {
        min-height: 120px; /* Alle gleich hoch */
        display: flex;
        align-items: center;
    }
}

/* Desktop (ab 900px) */
@media (min-width: 900px) {
    .event-info {
        padding: 60px 0;
    }
    
    .info-item {
        padding: 35px 25px;
    }
    
    .info-icon {
    font-size: 2.5rem;
    color: var(--brand-light); /* Hellblau */
    flex-shrink: 0;
    width: auto; /* Wichtig */
    display: inline-block; /* Statt flex */
}

    .info-value {
        font-size: 1.4rem;
    }
}
/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 900;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--brand);
    color: white;
    border: 2px solid var(--brand);
}

.btn-primary:hover {
    background: var(--brand-light);
    border-color: var(--brand-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 35, 102, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn-secondary:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 35, 102, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
/* === LEGAL CONTENT (Impressum/Datenschutz) === */

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    line-height: 1.8;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: #333;
}

.legal-content strong {
    color: var(--brand);
    font-weight: 700;
}

.legal-content a {
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--brand);
}

@media (max-width: 600px) {
    .legal-content {
        padding: 30px 20px;
    }
}
/* === ANMELDEFORMULAR === */

.anmelde-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23002366' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 2px;
}

/* Mobile */
@media (max-width: 600px) {
    .anmelde-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-section-title {
        font-size: 1.2rem;
    }
}
/* FORM MOBILE FIX */
.anmelde-form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Verhindert das "Überstehen" */
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%; /* Wichtig! */
}

/* Der spezifische Fix für Datumsfelder & mobile Breiten */
input[type="text"],
input[type="email"],
input[type="date"],
select {
    width: 100% !important; 
    max-width: 100% !important;
    box-sizing: border-box !important; /* Padding wird in die Breite eingerechnet */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    background-color: #ffffff !important;
    -webkit-appearance: none; /* Entfernt Standard-Styling auf iOS */
    min-height: 45px;
}
/* Fix für Safari (iOS) speziell */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    cursor: pointer;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Stapelt Vorname/Nachname auf dem Handy */
        gap: 0;
    }
}

/* Error-Style */
.input-error {
    border-color: #ff4d4d !important;
    background-color: #fff5f5;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 5px;
}
/* === LEGAL CONTENT (Impressum/Datenschutz) === */

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    line-height: 1.8;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: #333;
}

.legal-content strong {
    color: var(--brand);
    font-weight: 700;
}

.legal-content a {
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    word-break: break-word; /* Bricht lange Links um */
    display: inline-block;
    max-width: 100%;
}

.legal-content a:hover {
    color: var(--brand);
}

@media (max-width: 600px) {
    .legal-content {
        padding: 30px 20px;
    }
    
    .legal-content a {
        font-size: 0.8rem; /* Etwas kleiner auf Mobile */
    }
}
.legal-content + * .section-title,
.container-small .section-title {
    font-size: 2rem;
}

@media (max-width: 600px) {
    .container-small .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
}

@media (max-width: 400px) {
    .container-small .section-title {
        font-size: 1.5rem;
    }
}
/* === SUCCESS POPUP === */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content h3 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand);
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.popup-content .btn-primary {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .popup-content {
        padding: 40px 30px;
    }
    
    .popup-icon {
        font-size: 3rem;
    }
    
    .popup-content h3 {
        font-size: 1.6rem;
    }
    
    .popup-content p {
        font-size: 1rem;
    }
}
/* --- 9. INFO PAGE STYLES --- */

/* Layout & Grid */
.info-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .info-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .info-content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Info Cards (Passend zum Flip-Card Style der Startseite) */
.info-card {
    background: white;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 35, 102, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-light);
    box-shadow: 0 15px 40px rgba(0, 35, 102, 0.1);
}

.info-card h3 {
    color: var(--brand);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Der blaue Punkt vor Listen-Elementen */
.info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--brand-light);
    border-radius: 50%;
}

/* Highlight Boxen (Warnungen/Wichtige Infos) */
.highlight-box {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.1) 0%, rgba(0, 35, 102, 0.05) 100%);
    border-left: 5px solid var(--brand-light);
    padding: 25px 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.highlight-box h3 {
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.highlight-box p {
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

/* Navigation Back Link */
.back-nav {
    margin-bottom: 40px;
}

.back-link {
    text-decoration: none;
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--brand-light);
}

/* Anpassung für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .info-card {
        padding: 25px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
}