/* Globale Stile & Fonts */
:root {
    --primary-color: #E44D26; /* Ein kräftiges Orange/Rot - typisch für Sport/Energie */
    --secondary-color: #333;
    --text-color: #555;
    --light-grey: #f4f4f4;
    --dark-grey: #222;
    --white: #fff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn:hover {
    background: #c73c1c; /* Etwas dunkler */
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #444;
}

/* Hero Section (Header) */
.hero-section {
    background: url('images/placeholder_hero.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1; /* Für die Überlagerung */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dunkle Überlagerung für bessere Lesbarkeit */
    z-index: -1;
}

.hero-content {
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-grey);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Navigation */
.main-nav {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Für kleinere Bildschirme */
}

.main-nav ul li {
    margin: 0 1rem;
}

.main-nav ul li a {
    color: var(--white);
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 5px;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section:nth-child(even) {
    background-color: var(--light-grey);
}

.section h2 {
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* About Section */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.about-content p {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.achievement-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.achievement-item ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.achievement-item ul li i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Media Section */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.media-section p {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Sponsors Section */
.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.sponsor-logos img {
    max-height: 80px;
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.sponsor-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    align-self: center; /* Button zentrieren */
    width: auto;
    min-width: 200px;
}

.social-media {
    margin-top: 2rem;
}

.social-media a {
    font-size: 2.5rem;
    margin: 0 1rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 0.5rem 0;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .achievements-grid,
    .media-gallery {
        grid-template-columns: 1fr;
    }

    .video-container {
        max-width: 100%;
    }

    .sponsor-logos {
        gap: 2rem;
    }

    .sponsor-logos img {
        max-height: 60px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }

    .social-media a {
        font-size: 2rem;
        margin: 0 0.8rem;
    }
}
/* Side-by-side Videos */
.side-by-side-videos {
    display: flex;
    flex-wrap: wrap; /* Für kleinere Bildschirme untereinander anordnen */
    justify-content: center; /* Zentriert die Videos in der Breite */
    gap: 1rem; /* Abstand zwischen den Videos */
    margin-top: 2rem;
}

.video-item {
    flex: 0 1 calc(50% - 1rem); /* Nimmt auf größeren Bildschirmen etwa die Hälfte der Breite ein */
    margin-bottom: 1rem; /* Abstand nach unten */
    text-align: center; /* Zentriert den Video-Container und die Beschreibung */
}

.video-item video {
    max-width: 100%; /* Macht die Videos responsiv */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-item p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Anpassung für sehr kleine Bildschirme (optional) */
@media (max-width: 600px) {
    .video-item {
        flex-basis: 100%; /* Auf sehr kleinen Bildschirmen volle Breite */
    }
}


/* FIS Results Embed (iFrame) */
.fis-results-embed {
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.fis-results-embed h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.iframe-container {
    position: relative;
    width: 60%; /* Setze die Breite auf 60% */
    margin: 0 auto; /* Zentriert das Element horizontal */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.iframe-container iframe {
    display: block;
    width: 100%;
    height: 600px; /* Behalte die gleiche Höhe wie im HTML oder passe sie hier an */
    border: none;
}

.fis-results-embed p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Anpassung der Höhe für kleinere Bildschirme (optional) */
@media (max-width: 768px) {
    .iframe-container {
        width: 80%; /* Auf kleineren Bildschirmen etwas breiter */
    }
    .iframe-container iframe {
        height: 800px;
    }
}

@media (max-width: 480px) {
    .iframe-container {
        width: 95%; /* Auf sehr kleinen Bildschirmen fast volle Breite */
    }
    .iframe-container iframe {
        height: 1000px;
    }
}