/* Reset and Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    background-color: #7a4c78;
    color: #fff;
    line-height: 1.6;
    height: 100%;
    overflow: hidden; /* Disable scrolling for the entire page */
}

/* Color Variables */
:root {
    --primary-purple: #7a4c78;
    --hover-purple: #9b6d99;
    --light-beige: #d6c7b5;
    --header-purple: #a16fa1;
    --nav-purple: #926392;
    --amazon-orange-light: #ff9900;
    --amazon-orange-dark: #cc7a00;
}

/* Container and Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
    overflow-y: auto; /* Enable scrolling for the main container */
    height: calc(100vh - 160px); /* Adjust the height as needed */
}

/* Header Styles */
header {
    background-color: var(--header-purple);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 1px 0;
    height: 240px;
}

.logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Navigation Styles */
nav {
    background-color: var(--nav-purple);
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 5px;
    flex: 1;
    max-width: 150px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 5px;
    display: block;
    transition: all 0.3s ease;
    background-color: var(--primary-purple);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
}

nav a:not(.active):hover {
    background-color: var(--hover-purple);
    animation: pulse 2s ease-in-out infinite;
}

nav a.active {
    background-color: var(--light-beige);
    color: var(--primary-purple);
}

@keyframes pulse {
    0% { background-color: var(--primary-purple); }
    50% { background-color: var(--light-beige); }
    100% { background-color: var(--primary-purple); }
}

/* Wishlist Button */
.wishlist-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background: linear-gradient(145deg, var(--amazon-orange-light), var(--amazon-orange-dark));
    border: 1px solid #aa6d00;
    border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -3px -3px 8px rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.wishlist-button:hover {
    background: linear-gradient(145deg, var(--amazon-orange-dark), var(--amazon-orange-light));
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3), -2px -2px 6px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.wishlist-button:active {
    background: #b56800;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.4), inset -2px -2px 4px rgba(255, 255, 255, 0.2);
}

/* Geschichte Section */
.geschichte-wrap {
    position: relative;
}

.image-caption {
    float: left;
    max-width: 300px;
    margin-right: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.geschichte-float-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.image-caption h3 {
    background-color: var(--light-beige);
    border-radius: 10px;
    padding: 5px 10px;
    margin-top: 10px;
    color: var(--primary-purple);
}

.geschichte-text {
    text-align: justify;
}

/* Aktuelles Section */
.aktuelles-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.aktuelles-float-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Toggle */
#menu-toggle {
    display: none;
}

/* Vorstand Section */
.vorstand-section {
    padding: 2rem 0;
}

.vorstand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vorstand-card {
    background: rgba(161, 111, 161, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vorstand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: rgba(161, 111, 161, 0.4);
}

.vorstand-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 2px solid rgba(214, 199, 181, 0.3);
}

.vorstand-info {
    padding: 1.5rem;
    background: rgba(122, 76, 120, 0.5);
}

.vorstand-title {
    color: var(--light-beige);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.vorstand-name {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Gallery Styles */
.gallery-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* Seitenverhältnis anpassen */
    margin: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: calc(60vh - 50px); /* Maximale Höhe anpassen */
    border-radius: 20px; /* Abgerundeter Rahmen */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Schatten für den Rahmen */
    padding: 0; /* Entferne das Padding */
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Stelle sicher, dass das Bild den gesamten Rahmen ausfüllt */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    border-radius: 20px; /* Abgerundeter Rahmen */
}
.gallery-image.active {
    opacity: 1;
    z-index: 1;
    transform: translateX(0);
}

.gallery-image.next {
    transform: translateX(100%);
}

.gallery-image.prev {
    transform: translateX(-100%);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
    border: none;
    color: white;
    cursor: pointer;
    z-index: 3;
    display: none; /* Standardmäßig versteckt */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100px; /* Größe der Pfoten anpassen */
    height: 200px; /* Größe der Pfoten anpassen */
}

.nav-button.prev {
    left: 0%; /* Position links vom Bild */
    background-image: url('left-paw.png'); /* Pfad zu deinem linken Pfotenbild */
}

.nav-button.next {
    right: 0%; /* Position rechts vom Bild */
    background-image: url('right-paw.png'); /* Pfad zu deinem rechten Pfotenbild */
}

@media (min-width: 769px) {
    .nav-button {
        display: block;
    }
}

/* Global Styles */
main {
    margin-top: 40px;
    padding-bottom: 60px;
}

h1 {
    color: var(--light-beige);
    font-size: 2em;
    margin-bottom: 20px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--nav-purple);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

footer p {
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5em;
        cursor: pointer;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .container {
        max-width: 768px;
        height: calc(100vh - 160px);
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    nav.active ul {
        display: flex;
    }

    nav li {
        margin: 5px 0;
        width: 100%;
        max-width: none;
    }

    .vorstand-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .vorstand-header h1 {
        font-size: 2rem;
    }

    .vorstand-image {
        height: 400px;
    }

    .gallery-container {
        width: 100%;
        aspect-ratio: 9 / 16;
        margin: auto;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        max-height: calc(50vh + 50px);
        border-radius: 20px; /* Abgerundeter Rahmen */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Schatten für den Rahmen */
    }
}

/* Event Images Collage Styles */
.event-images-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(11, 150px);
    gap: 10px;
    margin-top: 20px;
    height: 1650px;
}

.event-image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Desktop asymmetric grid placement */
.event-image:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.event-image:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 4;
}

.event-image:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / span 3;
}

.event-image:nth-child(4) {
    grid-column: 1;
    grid-row: 4 / span 4;
}

.event-image:nth-child(5) {
    grid-column: 2;
    grid-row: 5 / span 3;
}

.event-image:nth-child(6) {
    grid-column: 3;
    grid-row: 4 / span 4;
}

@media (max-width: 768px) {
    .event-images-collage {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    .event-image {
        height: 600px; /* Fixed height for stacked images */
        width: 100%;
    }
}

@media (orientation: landscape) and (hover: none) {
   /* Logo-Container ausblenden */
   Header {
       display: none;
   }
   
   /* Footer-Container ausblenden */
   footer {
       display: none;
   }
   
   .gallery-container {
    max-height: calc(75vh - 40px); /* Maximale Höhe anpassen */
    
	}

}