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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2581c4;
    display: flex;
    align-items: center;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(37, 129, 196, 0.2);
    color: #2581c4;
}

nav a.active {
    background-color: #2581c4;
    color: white;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

.section h2 {
    color: #2581c4;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section h3 {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Hero section */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 8rem 0;
    overflow: hidden;
}

/* Background image gallery */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(255, 69, 0, 0.3));
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: backgroundSlideshow 20s infinite;
}

.hero-bg-image:nth-child(1) {
    background-image: url('pics/banner1.jpg');
    animation-delay: 0s;
}

.hero-bg-image:nth-child(2) {
    background-image: url('pics/banner2.jpg');
    animation-delay: 5s;
}

.hero-bg-image:nth-child(3) {
    background-image: url('pics/banner3.jpg');
    animation-delay: 10s;
}

.hero-bg-image:nth-child(4) {
    background-image: url('pics/banner4.jpg');
    animation-delay: 15s;
}

@keyframes backgroundSlideshow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #2581c4;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 129, 196, 0.3);
}

.cta-button:hover {
    background-color: #1e6aa0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 129, 196, 0.4);
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(37, 129, 196, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h4 {
    color: #2581c4;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Table container for responsive tables */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(37, 129, 196, 0.2);
    width: 100%;
}

/* Training schedule table */
.schedule-table {
    min-width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    table-layout: auto;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.schedule-table th {
    background-color: #1a1a1a;
    color: #2581c4;
    font-weight: bold;
}

.schedule-table tr:hover {
    background-color: #f8f9fa;
}

/* Group colors by days for training table */
.schedule-table.training-table tbody tr:nth-child(1) {
    background-color: rgba(37, 129, 196, 0.15); /* Montag */
}

.schedule-table.training-table tbody tr:nth-child(2) {
    background-color: rgba(37, 129, 196, 0.25); /* Dienstag */
}

.schedule-table.training-table tbody tr:nth-child(3),
.schedule-table.training-table tbody tr:nth-child(4),
.schedule-table.training-table tbody tr:nth-child(5) {
    background-color: rgba(37, 129, 196, 0.15); /* Freitag */
}

/* Group colors by Spieltag for match schedule */
.schedule-table:not(.training-table) tbody tr:nth-child(1),
.schedule-table:not(.training-table) tbody tr:nth-child(2) {
    background-color: rgba(37, 129, 196, 0.15); /* Spieltag 1 */
}

.schedule-table:not(.training-table) tbody tr:nth-child(3),
.schedule-table:not(.training-table) tbody tr:nth-child(4) {
    background-color: rgba(37, 129, 196, 0.25); /* Spieltag 2 */
}

.schedule-table:not(.training-table) tbody tr:nth-child(5),
.schedule-table:not(.training-table) tbody tr:nth-child(6) {
    background-color: rgba(37, 129, 196, 0.15); /* Spieltag 3 */
}

.schedule-table:not(.training-table) tbody tr:nth-child(7),
.schedule-table:not(.training-table) tbody tr:nth-child(8) {
    background-color: rgba(37, 129, 196, 0.25); /* Spieltag 4 */
}

.schedule-table:not(.training-table) tbody tr:nth-child(9),
.schedule-table:not(.training-table) tbody tr:nth-child(10) {
    background-color: rgba(37, 129, 196, 0.15); /* Spieltag 5 */
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #2581c4;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #2581c4;
}

.footer-bottom {
    border-top: 1px solid #2581c4;
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* GDPR Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: white;
    padding: 1rem;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cookie-accept {
    background-color: #2581c4;
    color: white;
}

.cookie-accept:hover {
    background-color: #1e6aa0;
}

.cookie-decline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-decline:hover {
    background-color: #ff4500;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Optimierte Animation für mobile Geräte */
    @keyframes backgroundSlideshow {
        0% { opacity: 0; }
        8% { opacity: 1; }
        25% { opacity: 1; }
        33% { opacity: 0; }
        100% { opacity: 0; }
    }

    .section h2 {
        font-size: 2rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .schedule-table {
        font-size: 0.9rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Sponsor Grid */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.sponsor-slot {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(37, 129, 196, 0.2);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sponsor-slot:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 129, 196, 0.3);
}

.sponsor-logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    padding: 10px;
}

.sponsor-slot h4 {
    color: #2581c4;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.sponsor-slot p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Responsive adjustments for sponsors */
@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .sponsor-slot {
        padding: 1rem;
    }
    
    .sponsor-logo {
        height: 80px;
    }
    
    .sponsor-slot h4 {
        font-size: 1rem;
    }
    
    .sponsor-slot p {
        font-size: 0.8rem;
    }
}

/* Accessibility Classes */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus Indicators */
*:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

.cta-button:focus,
.cookie-btn:focus,
nav a:focus,
.sponsor-slot:focus,
.skip-link:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    *:focus {
        outline: 4px solid #000000;
        outline-offset: 2px;
    }
}

/* Improved Color Contrast */
.cta-button {
    background-color: #1e5a96; /* Darker blue for better contrast */
}

.cta-button:hover {
    background-color: #164a82;
}

.footer-section a {
    color: #e0e0e0; /* Lighter gray for better contrast */
}

/* High Contrast Accessibility Mode */
.high-contrast {
    /* Body and base colors */
    background-color: #000000 !important;
    color: #ffffff !important;
}

.high-contrast header {
    background: #000000 !important;
    border-bottom: 3px solid #ffffff !important;
}

.high-contrast .logo {
    color: #ffff00 !important; /* High contrast yellow */
}

.high-contrast nav a {
    color: #ffffff !important;
    border: 2px solid transparent !important;
}

.high-contrast nav a:hover,
.high-contrast nav a.active {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

.high-contrast .hero {
    background: #000000 !important;
}

.high-contrast .hero-background::before {
    background: rgba(0, 0, 0, 0.9) !important;
}

.high-contrast .hero-bg-image {
    display: none !important; /* Hide background images */
}

.high-contrast .hero h1,
.high-contrast .hero p {
    color: #ffffff !important;
    text-shadow: none !important;
}

.high-contrast .section {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffffff !important;
}

.high-contrast .section:nth-child(even) {
    background-color: #1a1a1a !important;
}

.high-contrast .section h2 {
    color: #ffff00 !important;
}

.high-contrast .section h3,
.high-contrast .section h4 {
    color: #ffffff !important;
}

.high-contrast .section p {
    color: #ffffff !important;
}

.high-contrast .card {
    background: #1a1a1a !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.high-contrast .card h4 {
    color: #ffff00 !important;
}

.high-contrast .cta-button {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

.high-contrast .cta-button:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.high-contrast .schedule-table {
    background: #1a1a1a !important;
    border: 2px solid #ffffff !important;
}

.high-contrast .schedule-table th {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffffff !important;
}

.high-contrast .schedule-table td {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.high-contrast .schedule-table tbody tr:nth-child(odd) {
    background-color: #2a2a2a !important;
}

.high-contrast .schedule-table tbody tr:hover {
    background-color: #333333 !important;
}

.high-contrast footer {
    background-color: #000000 !important;
    border-top: 3px solid #ffffff !important;
}

.high-contrast .footer-section h4 {
    color: #ffff00 !important;
}

.high-contrast .footer-section p,
.high-contrast .footer-section a {
    color: #ffffff !important;
}

.high-contrast .footer-section a:hover {
    color: #ffff00 !important;
}

.high-contrast .cookie-banner {
    background-color: #000000 !important;
    border-top: 3px solid #ffffff !important;
    color: #ffffff !important;
}

.high-contrast .cookie-accept {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

.high-contrast .cookie-accept:hover {
    background-color: #ffffff !important;
}

.high-contrast .sponsor-slot {
    background: #1a1a1a !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.high-contrast .sponsor-slot h4 {
    color: #ffff00 !important;
}

.high-contrast .sponsor-logo {
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
}

/* Focus indicators in high contrast mode */
.high-contrast *:focus {
    outline: 4px solid #ffff00 !important;
    outline-offset: 2px !important;
}

/* Accessibility Toggle Button */
.accessibility-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2581c4;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(37, 129, 196, 0.3);
    z-index: 2000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-toggle:hover {
    background-color: #1e6aa0;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 129, 196, 0.4);
}

.accessibility-toggle:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

.high-contrast .accessibility-toggle {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

.high-contrast .accessibility-toggle:hover {
    background-color: #ffffff !important;
}

/* Mobile adjustments for toggle */
@media (max-width: 768px) {
    .accessibility-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Utility classes */
.text-center { text-align: center !important; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }