h3 {
    margin-top: 10px;
}

.hero-section {
    background-color: #333;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    padding-top: 60px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;   /* Bild füllt den Bereich aus */
    background-position: center; /* Bild zentrieren */
    background-repeat: no-repeat;
    opacity: 0;               /* Standardmäßig unsichtbar */
    transition: opacity 1.5s ease-in-out; /* Weicher Übergang */
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
}

.logo img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 5px auto;
}

h1.event-title {
    font-family: 'HelveticaNeueBold', Helvetica, Arial, sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 5px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

p.slogan {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

p.date {
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    color: white;
    margin-bottom: 5px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    max-width: 500px;
    width: 100%;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    flex: 1;
    min-width: 70px;
    color: white;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Anton', sans-serif;
    line-height: 1.2;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.cta-button {
    margin-top: 15px;
}

.info-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
    color: #333;
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-col {
    flex: 1;
}

.info-img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.info-text p {
    line-height: 1.5;
    font-weight: 300;
    margin: 0;
}

/* --- LOGISTICS --- */
.logistics-section {
    background-color: #222;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.logistics-title {
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.slide-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    margin-top: 0;
    text-align: left;
    background-color: #333;
    border-radius: 8px;
}

.slide-content.open {
    max-height: 1000px;
    opacity: 1;
    margin-top: 30px;
    padding: 20px;
}

/* --- SPONSORS --- */
.sponsors-section {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.sponsors-title {
    margin-bottom: 20px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border: 1px solid #e0e0e0;
}

.sponsor-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    padding: 10px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.sponsor-item:nth-child(6n) {
    border-right: none;
}

.sponsor-item:nth-last-child(-n+6) {
    border-bottom: none;
}

.sponsor-img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sponsor-item:hover .sponsor-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- ANREISE MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal-btn {
    width: 100%;
    display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    h1.event-title {
        font-size: 2rem;
    }

    p.slogan {
        font-size: 0.9rem;
    }

    p.date {
        font-size: 1.2rem;
    }

    .info-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }

    .info-row.reversed {
        flex-direction: column-reverse;
    }

    .info-img {
        width: 100%;
        max-height: 250px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

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

    .sponsor-item {
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }

    .sponsor-item:nth-child(2n) {
        border-right: none;
    }

    .sponsor-item:nth-child(6n) {
        border-right: 1px solid #e0e0e0;
    }

    .sponsor-item:nth-child(2n):nth-last-child(1) {
        border-right: none;
    }
}

#accommodation-content a:link,
#accommodation-content a:visited {
    color: #1952c8;
}

#accommodation-content a:active,
#accommodation-content a:hover {
    color: #3063ce;
}
