/* ISU Events Website Stylesheet */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #dc2626;
    --accent-color: #0ea5e9;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background-color: #ffffff;
    --background-light: #f8fafc;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-radius: 8px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="ice" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect fill="rgba(255,255,255,0.05)" width="20" height="20"/><circle fill="rgba(255,255,255,0.1)" cx="10" cy="10" r="2"/></pattern></defs><rect fill="url(%23ice)" width="100" height="100"/></svg>') repeat;
    opacity: 0.3;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.event-logo {
    max-height: 200px;
    width: auto;
}

.event-info h15 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.event-date {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.event-location {
    font-size: 1rem;
    opacity: 0.8;
}

/* Navigation */
.main-nav {
    background-color: white;
    box-shadow: var(--shadow);
    position: relative;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--background-light);
}

           /* Burger Button - versteckt auf Desktop */
        .burger-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 1rem;
            position: absolute;
            right: 1rem;
            top: 15px;
            transform: translateY(-50%);
            z-index: 1001;
        }

        .burger-btn span {
            display: block;
            width: 25px;
            height: 3px;
            background: black;
            margin: 5px 0;
            transition: 0.3s;
            transform-origin: center;
        }

        /* Burger Animation - Öffnen */
        .burger-btn.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .burger-btn.active span:nth-child(2) {
            opacity: 0;
        }

        .burger-btn.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Mobile Navigation - Verbessert für alle Geräte */
        @media screen and (max-width: 768px) {
            /* Burger Button anzeigen */
            .burger-btn {
                display: block !important;
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
            }

            /* Desktop Menü verstecken */
            .nav-menu {
                position: fixed !important;
                top: 0;
                right: -100%;
                width: 280px;
                height: 100vh;
                height: 100dvh; /* Für neuere Mobile Browser */
                background: white; /* Weiße Hintergrundfarbe */
                flex-direction: column;
                justify-content: flex-start;
                align-items: stretch;
                padding-top: 4rem;
                transition: right 0.3s ease-in-out;
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
                overflow-y: auto;
                -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
                z-index: 1000;
            }

            /* Menü geöffnet */
            .nav-menu.active {
                right: 0 !important;
                -webkit-transform: translateZ(0); /* iOS Performance */
                transform: translateZ(0);
            }

            .nav-menu li {
                width: 100%;
                border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Dunkle Border für weißen Hintergrund */
            }

            .nav-menu li:last-child {
                border-bottom: none;
            }

            .nav-menu a {
                padding: 1.25rem 2rem;
                text-align: left;
                font-size: 1.1rem;
                border: none;
                width: 100%;
                display: block;
                color: #01030a; /* Dunkle Textfarbe für weißen Hintergrund */
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
            }

            .nav-menu a:hover,
            .nav-menu a.active {
                background: #32baeb; /* Primary color als Hover-Hintergrund */
                color: white; /* Weiße Schrift bei Hover/Active */
                padding-left: 2.5rem;
            }

            /* Overlay für geschlossenes Menü */
            .nav-overlay {
                position: fixed !important;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                height: 100dvh;
                background: rgba(0, 0, 0, 0.5);
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s ease, visibility 0.3s ease;
                z-index: 999;
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
            }

            .nav-overlay.active {
                opacity: 1 !important;
                visibility: visible !important;
            }
        }

        /* Tablet-spezifische Anpassungen */
        @media (max-width: 1024px) and (min-width: 769px) {
            .nav-menu a {
                padding: 1rem 1rem;
                font-size: 0.95rem;
            }
        }

        /* Sehr kleine Bildschirme */
        @media (max-width: 480px) {
            .nav-menu {
                width: 100%;
                right: -100%;
                background: white; /* Auch hier weiße Hintergrundfarbe */
            }

            .nav-menu a {
                padding: 1.5rem 1.5rem;
                font-size: 1.2rem;
                color: #01030a; /* Dunkle Textfarbe */
            }
            
            .nav-menu a:hover,
            .nav-menu a.active {
                background: #32baeb;
                color: white;
            }
        }

        /* Accessibility - Focus States */
        .burger-btn:focus {
            outline: 2px solid rgba(255, 255, 255, 0.8);
            outline-offset: 2px;
        }

        .nav-menu a:focus {
            outline: 2px solid rgba(255, 255, 255, 0.8);
            outline-offset: -2px;
        }

        /* Smooth scrolling für bessere UX */
        @media (prefers-reduced-motion: no-preference) {
            .nav-menu,
            .nav-overlay,
            .burger-btn span {
                transition-duration: 0.3s;
            }
        }

        /* Für Users die reduced motion bevorzugen */
        @media (prefers-reduced-motion: reduce) {
            .nav-menu,
            .nav-overlay,
            .burger-btn span {
                transition: none;
            }
        }


/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 3rem 0;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-header h17 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Partner Logo Bar */
.partner-logobar {
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: -2rem;
    position: relative;
    overflow: hidden;
}

.partner-logobar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="partners" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect fill="rgba(0,0,0,0.01)" width="20" height="20"/><circle fill="rgba(30,58,138,0.03)" cx="10" cy="10" r="1"/></pattern></defs><rect fill="url(%23partners)" width="100" height="100"/></svg>') repeat;
    opacity: 0.5;
}

.logobar-content {
    position: relative;
    z-index: 1;
}

.logobar-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.logobar-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.logobar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1040px;
    margin: 0 auto;
}

.logobar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logobar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

.logobar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

/*.logobar-link:hover {
    transform: scale(1.05);
}*/

.logobar-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.9);
    transition: all 0.3s ease;
}

.logobar-item:hover .logobar-logo {
    filter: grayscale(0%) opacity(1);
}

/* Partner Logo Bar - Responsive Anpassungen */
@media (max-width: 1024px) {
    .logobar-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1.5rem;
    }
    
    .logobar-item {
        height: 90px;
        padding: 0.8rem;
    }
    
    .logobar-logo {
        max-height: 70px;
    }
}

@media (max-width: 768px) {
    .partner-logobar {
        padding: 2rem 0;
    }
    
    .logobar-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .logobar-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 1rem;
    }
    
    .logobar-item {
        height: 80px;
        padding: 0.6rem;
    }
    
    .logobar-logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .logobar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .logobar-item {
        height: 70px;
        padding: 0.5rem;
    }
    
    .logobar-logo {
        max-height: 50px;
    }
    
    .logobar-title {
        font-size: 1.3rem;
    }
}

/* Animation für Logo-Erscheinung */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logobar-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.logobar-item:nth-child(1) { animation-delay: 0.1s; }
.logobar-item:nth-child(2) { animation-delay: 0.2s; }
.logobar-item:nth-child(3) { animation-delay: 0.3s; }
.logobar-item:nth-child(4) { animation-delay: 0.4s; }
.logobar-item:nth-child(5) { animation-delay: 0.5s; }
.logobar-item:nth-child(6) { animation-delay: 0.6s; }

/* Falls mehr als 6 Logos, keine weitere Verzögerung */
.logobar-item:nth-child(n+7) { animation-delay: 0.6s; }

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.card-header h4 {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--primary-color);
}


/* Travel Page Specific */
.travel-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.travel-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.travel-card:hover {
    transform: translateY(-2px);
}

.travel-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.travel-card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.travel-card-content {
    padding: 1.5rem;
}

/* Program Page */
.program-day {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.program-day-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
}

.program-day-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.program-day-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.program-day-content {
    padding: 1.5rem;
}

/* Results Page */
.results-section {
    margin-bottom: 3rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.result-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.result-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.result-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.result-item a:hover {
    text-decoration: underline;
}

/* Press Page */
.press-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.press-item:last-child {
    border-bottom: none;
}

.press-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.press-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.press-content {
    color: var(--text-color);
    line-height: 1.6;
}

/* Livestream */
.livestream-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
}

.livestream-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin: 2rem 0;
}

.livestream-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #b91c1c;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
.main-footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;

}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    /*margin-bottom: 1rem;*/
    font-size: 1.2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.0rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .event-info h1 {
        font-size: 2rem;
    }

    .nav-menu {
        justify-content: flex-start;
        padding: 0 1rem;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .travel-options {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 400px;
    margin: 4rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--background-light);
    font-weight: 600;
    color: var(--primary-color);
}

.table tbody tr:hover {
    background-color: var(--background-light);
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}