body, html {
    height: 100%;
    margin: 0;
    padding-top: 90px;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #f0f0f0;
}

/* Hintergrund-Hände, jetzt mit position: fixed */
.background-hands {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 0;
    opacity: 0.5;
    flex-wrap: nowrap;
}

.hand-wrapper {
    position: relative;
    width: 15%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    animation: pulse 2s infinite ease-in-out;
}

.hand-wrapper:nth-child(2) { animation-delay: 0.1s; }
.hand-wrapper:nth-child(3) { animation-delay: 0.2s; }
.hand-wrapper:nth-child(4) { animation-delay: 0.3s; }
.hand-wrapper:nth-child(5) { animation-delay: 0.4s; }
.hand-wrapper:nth-child(6) { animation-delay: 0.5s; }
.hand-wrapper:nth-child(7) { animation-delay: 0.6s; }

.hand-img {
    position: absolute;
    bottom: 0;
    width: auto;
    height: 100%;
    transform-origin: bottom center;
    object-fit: contain;
}

.hand-wrapper:nth-child(1) { height: 80%; }
.hand-wrapper:nth-child(2) { height: 65%; }
.hand-wrapper:nth-child(3) { height: 70%; }
.hand-wrapper:nth-child(4) { height: 90%; }
.hand-wrapper:nth-child(5) { height: 75%; }
.hand-wrapper:nth-child(6) { height: 60%; }
.hand-wrapper:nth-child(7) { height: 85%; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    position: fixed; 
    height: 90px;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(240, 240, 240, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #ddd;
    transition: transform 0.3s ease-in-out; 
}

.header-hidden {
    transform: translateY(-100%); 
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.burger-menu {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger-menu div {
    width: 100%;
    height: 3px;
    background-color: #333;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
    padding: 20px;
}

.main-content-wrapper {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.main-content-wrapper h1,
.main-content-wrapper .title {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.main-content-wrapper h1 span {
    font-size: inherit;
}

.main-content-wrapper h2 {
    font-size: 1.5em;
    color: #555;
    margin-top: 30px;
    margin-bottom: 10px;
}

.main-content-wrapper h3 {
    font-size: 1.2em;
    color: #444;
    margin-top: 25px;
    margin-bottom: 5px;
}

.main-content-wrapper p {
    font-size: 1.1em;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-image-placeholder {
    position: relative;
    width: 100%;
    background-color: #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 1.2em;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.event-image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Spezifische Seitenverhältnisse für jedes Bild */
.radeln-placeholder {
    padding-top: 57.75%;
}

.schinkel-placeholder {
    padding-top: 192.18%;
}

.openair-placeholder {
    padding-top: 166.5%;
}

.filmabend-placeholder {
    padding-top: 140.9%;
}

/* Neue Styles für die Veranstaltungskarten */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.event-card h3 {
    margin-top: 0;
}

footer {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    text-align: center;
}

footer a {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
    margin: 0;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    background-color: #f1f1f1;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    font-size: 20px;
    color: #818181;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.sidenav .sidenav-close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    color: #333;
    text-decoration: none;
}

/* --- Carousel Styling --- */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.carousel-slide {
    display: none;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Vorherige und Nächste Pfeile --- */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.8);
    border: none;
    z-index: 2;
}

/* Position der "Nächste"-Pfeile rechts */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Position der "Vorherige"-Pfeile links */
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

/* Effekt beim Hovern über die Pfeile */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,1);
}

@media (max-width: 768px) {
    .main-content-wrapper {
        padding: 20px;
    }
    
    .main-content-wrapper h1,
    .main-content-wrapper .title {
        font-size: 1.8em;
    }
    
    .main-content-wrapper h2 {
        font-size: 1.3em;
    }
    
    .main-content-wrapper p {
        font-size: 1em;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .background-hands {
        justify-content: space-around;
    }
    
    .hand-wrapper:nth-child(n+4) {
        display: none;
    }
    
    .hand-wrapper {
        width: 30%;
    }

    @media (max-width: 768px) {
    .main-content-wrapper {
        padding: 20px;
    }
    
    .main-content-wrapper h1,
    .main-content-wrapper .title {
        font-size: 1.8em;
    }
    
    .main-content-wrapper h2 {
        font-size: 1.3em;
    }
    
    .main-content-wrapper p {
        font-size: 1em;
    }

    .logo {
        width: 60px; /* Logo-Größe für mobile Geräte erhöht */
        height: 60px; /* Logo-Größe für mobile Geräte erhöht */
    }

    .background-hands {
        justify-content: space-around;
    }
    
    .hand-wrapper:nth-child(n+4) {
        display: none;
    }
    
    .hand-wrapper {
        width: 30%;
    }
}