/* === Global Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Mulish', sans-serif;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

main {
    flex: 1;
}

/* === Container === */
.container {
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    background-color: white;
    padding-left: clamp(10px, 8vw, 90px);
    padding-right: clamp(10px, 8vw, 90px);

}

.container_outer {
    
    width: 100%;
    margin: 0 auto;
 
    box-sizing: border-box;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background-color: white;
}

@media (min-width: 750px) {
    .container_outer {
   
    }
}

@media (min-width: 1200px) {
    .container_outer {
        max-width: 1150px;
  
    }
}

@media (max-width: 600px) {
    .container_outer {
        padding-left: 0;
        padding-right: 0;
    }
}
/* === Header === */
.header {
    background: linear-gradient(to right, #a9332b, #961f1e);
    color: whitesmoke;
    padding-right: 25px;
    margin-bottom: 2px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(5px, 2vw, 15px);
}

/* === Logo === */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: normal;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.logo-image {
    width: clamp(30px, 8vw, 50px);
}

@media (max-width: 320px) {
    .logo-text {
        display: none;
    }
}

/* === Navigation === */
.menu {
    margin: 0;

}

.menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.menu li a {
    color: whitesmoke;
    text-decoration: none;
    font-weight: 500;
}

/* === mobile menu === */
/* Desktop: normales Menü */
.menu {
    display: flex;
}

.mobile-toggle {
    display: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    /* Menü ist zu */
}

.mobile-nav.show {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    padding: 5px;
}

.mobile-menu-text {
    padding: 15px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.mobile-nav li a {
    color: white;
    text-decoration: none;
    padding: 5px 0;
}

/* Mobile: nur Dropdown */
@media (max-width: 1000px) {
    .menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        background-color: transparent;
        font-size: 30px;
        color: whitesmoke;
        border: none;
        cursor: pointer;
    }

    .mobile-nav a.active {
        display: block;
        /* ganze Zeile klickbar */
        width: 100%;
        /* ganze Breite */
        font-weight: bold;
    }

    .mobile-nav a:hover {
        font-weight: bold;
    }

    .mobile-nav a {
        transition: border 0.2s ease;
        display: block;
        width: 100%;
    }
}

/* === Hero Section === */
.hero-image {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(10px, 5vw, 60px);
    padding-right: clamp(10px, 5vw, 60px);
    text-align: center;

    background-color: #e6c28d;
    max-height: 500px;
}

.hero-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #e6c28d;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

.hero {
    font-weight: bold;
    font-size: large;
    text-align: center;
    padding-bottom: 15px;
    padding-top: 30px;
}

.intro-text {
    text-align: center;
    padding-bottom: 15px;
}

/* === Slideshow === */
.hero-image-slideshow {
    position: relative;
    height: 55vh;
    overflow: hidden;
}

@media (max-width: 500px) {
    .hero-image-slideshow {
        height: 22vh;
    }
}

.hero-image-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-image-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* === Slideshow Arrows === */
.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    background: transparent;

    color: white;
    border: none;
    font-size: 2rem;

    cursor: pointer;
    z-index: 2;

    transition: transform 0.3s ease;
    transform: translateY(-50%) scale(1);

}

.slideshow-prev:hover,
.slideshow-next:hover {
    transform: translateY(-50%) scale(1.2);
}

.slideshow-prev {
    left: 0px;
}

.slideshow-next {
    right: 0px;
}

/* === Socials === */
.socials ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.socials img {
    width: 30px;
}

.socials li {
    display: flex;
}

/* === Footer === */

.footer-container {
    padding: 15px;
    justify-content: space-between;
    font-size: 14px;
    color: whitesmoke;
    background: linear-gradient(to right, #a9332b, #961f1e);
    text-align: center;
    margin-top: 2px;
}

/* === Links allgemein === */
a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* === Mitgliederliste === */
.mitglieder {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

@media (min-width: 1400px) {
    .mitglieder {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.mitglieder li {
    text-align: center;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
}

.mitglieder img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.mitglieder-titel {
    color: black;
    font-weight: bold;
    display: inline-block;
    padding: 0.5px 8px;
    border-radius: 4px;
    margin-top: clamp(0.1rem, 0.5vw, 0.5rem);
    margin-bottom: clamp(0.1rem, 0.5vw, 0.5rem);
}

figure {
    position: relative;
    margin: 0;
    overflow: hidden;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
}

figcaption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #e6c28d;
    color: #404040;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
}

.main h1 {
    margin-bottom: 1rem;
}

/* === Kalender - Home === */
#next-event {
    padding: clamp(1rem, 3vw, 2rem);
    background: #f2f2f2;
    width: min(100%, 550px);
    margin: 2rem auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#next-event .event-list-heading {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #961f1e;
    margin-bottom: 1rem;
    text-align: center;
}

#next-event .event {
    margin-bottom: 2rem;
    padding: clamp(1rem, 3vw, 1rem);
    border-left: 10px solid #e6c28d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: white;
}

#next-event .event-date {
    font-weight: bold;
    color: #444;
    margin-bottom: 0.3rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

#next-event .event-title {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #222;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

#next-event .event-location {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: grey;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
}


/* === Kalender - More === */

#more-events .event-list-heading {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #961f1e;
    margin-bottom: 1rem;
}

#more-events .event {
    margin-bottom: 1rem;
    padding: clamp(1rem, 3vw, 1rem) clamp(1rem, 3vw, 1rem) 0 clamp(1rem, 3vw, 1rem);
    border-left: 10px solid #e6c28d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding-bottom: 1rem;
}

#more-events .event-date {
    font-weight: bold;
    color: #444;
    margin-bottom: 0.3rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

#more-events .event-title {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: black;
}

#more-events .event-location {
    color: grey;
    font-size: clamp(0.8em, 2vw, 0.9rem);
    margin-top: 0.3rem;
    
}

.month-heading {
    color: #961f1e;
    padding-bottom: 5px;
    margin-top: 1rem;
}

.event-button {
    margin-top: 10px;
    text-align: center;


}

.calendar-btn {
    background-color: #961f1e;
    color: white;
    border-radius: 4px;
    display: inline-block;
    padding: 8px 16px;
    font-size: clamp(1rem, 2vw, 1.1rem);

}

.calendar-btn:hover {
    background-color: #a9332b;
}

/* Optional: für sehr kleine Screens */
@media (max-width: 500px) {
    #next-event {
        padding: 1rem;
    }

    #next-event .event {
        padding: 0.5rem;
    }
}


.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    flex-direction: row;
}

.lightbox img {
    max-height: 80%;
    max-width: 80%;
}

.lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.hidden {
    display: none;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}