/* Grundlegendes Styling (unverändert) */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

h1, h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section {
    padding: 60px 20px;
    border-bottom: 1px solid #e4e4e4;
}

/* Hero Section Styling (unverändert) */
.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 80vh;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 90%;
}

.hero-content h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-content p {
    color: white;
    font-size: 1.5em;
}

/* About Me Section Styling (unverändert bis auf .about-me-content) */
.about-me-section {
    background-color: #fff;
    text-align: center;
}

.about-me-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-me-section img {
    max-width: 200px;
    border-radius: 50%;
    margin-top: 20px;
}

#more-about-text.hidden {
    display: none;
}

.toggle-button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.toggle-button i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}


/* Links Section Styling (unverändert) */
.links-section {
    background-color: #f9f9f9;
    text-align: center;
}

.link-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.link-item {
    background-color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.link-item:hover {
    transform: translateY(-5px);
}

.link-item a {
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.link-item a i {
    margin-right: 10px;
    color: #007bff;
}

/* Gallery Section Styling */
.gallery-section {
     background-color: #fff;
     text-align: center;
}

.gallery-preview-container {
    width: 100%;
    height: calc(100vh / 3); /* Höhe auf ein Drittel des Viewports setzen */
    overflow: hidden; /* Scrollbar ausblenden */
    position: relative; /* Für absolute Positionierung des inneren Containers */
}

.gallery-preview {
    display: flex;
    /* white-space: nowrap; /* Verhindert Umbruch der Bilder */
    gap: 15px;
    padding: 10px 0; /* Kleines Padding oben/unten */
     /* Animation wird hier angewendet */
    animation: scroll-left 30s linear infinite; /* 30s Dauer, linear, unendlich wiederholen */
     /* Stellt sicher, dass der Container breit genug ist */
    width: max-content;
}

.gallery-preview img {
    height: calc(100vh / 3 - 20px); /* Höhe der Bilder angepasst an Containerhöhe - Padding */
    width: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

/* Keyframes für die Scrolling Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Verschiebt den Container um die Hälfte seiner Breite nach links */
        /* Da Bilder dupliziert sind, entsteht ein Endlos-Effekt */
        transform: translateX(-50%);
    }
}


/* Styling für die volle Galerie-Gitteransicht */
.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 0 20px;
}

.gallery-full-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.gallery-full-grid.hidden {
    display: none;
}


/* Sponsors Section Styling (unverändert) */
.sponsors-section {
    text-align: center;
    background-color: #fff;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.sponsor-logos img {
    max-height: 50px;
}

/* Contact & Social Media Section Styling (unverändert) */
.contact-section {
    text-align: center;
    background-color: #f9f9f9;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: #007bff;
}

.social-media-links a {
    font-size: 1.5em;
    margin: 0 10px;
    color: #333;
    transition: color 0.3s ease;
}

.social-media-links a:hover {
    color: #007bff;
}

.social-media-links a i {
     margin-right: 5px;
}


/* Footer Styling (unverändert) */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    font-size: 0.9em;
}

/* Gallery Modal Styling */
.gallery-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    flex-direction: column;
}

.gallery-modal.hidden { display: none; }

.gallery-modal-img {
    max-width: 90vw;
    max-height: 80vh;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 20px #000;
}

.gallery-close {
    position: absolute;
    top: 30px; right: 40px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1010;
}

.gallery-nav {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 20px;
    margin: 0 20px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-prev { left: 40px; }
.gallery-next { right: 40px; }

/* Personal Sponsor Section Styling */
.personal-sponsor-section h2,
.personal-sponsor-content {
    text-align: center;
}
.personal-sponsor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive Design (angepasst) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

     .about-me-content {
        max-width: 95%;
    }

    .link-container {
        flex-direction: column;
        align-items: center;
    }

    .link-item {
        width: 80%;
    }

    .sponsor-logos img {
        max-height: 40px;
    }

    .social-media-links a {
        font-size: 1.2em;
    }

     .gallery-preview img {
        height: calc(100vh / 4); /* Etwas kleinere Höhe auf kleinen Bildschirmen */
    }
    .gallery-preview-container {
        height: calc(100vh / 4); /* Angepasste Containerhöhe */
    }
}