:root {
    --primary-color: #40b3cabb;
    --secondary-color: #52a60dbb;
    --accent-color: #DF382Fbb;
    --background-color: #f5f5f5;
    --text-color: #1d1d1d;
}
html {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin; /* Firefox */
}
body {
    margin: 0;
}
::-webkit-scrollbar {
    width: 8px; /* Chrome, Safari, Opera */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 1rem;
    text-align: center;
    a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: bold;
        transition: text-decoration 0.2s ease-in-out;
    }
    a:hover {
        text-decoration: underline;
    }
    
}
#openNav {
    z-index: 3;
     display: none;
    
}
.openNav {
    z-index: 10;
    cursor: pointer;
    
    width: 50px;
    height: 60px;
        position: absolute;
        top:10px;
        right: 0px;
  

}
nav {
    position: absolute;
    top: 82px;
    right: 0px;
    z-index: 4;
    display: none;
    justify-content: flex-end;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: var(--secondary-color);
    border-radius: 0 0 0 5px;
    
    padding: 20px 30px;
}

#openNav:checked ~ nav, nav a  {
        animation: all 0.3s ease-in-out;
        display: flex;
}
@keyframes all {
        0% {
            opacity: 0;
            transform: translateX(120px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

hero {
    background-image: url('./img/wir-Back.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90vh;
    .logo {
        width: 25vw;
        height: 25vw;
        max-width: 25vw;
        max-height: 25vw;
        margin-bottom: 2rem;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    img {
        max-width: 112%;
        height: auto;
    }
    h2 {
        font-size: 1.7rem;
        margin: 0;
        color: var(--text-color);
        text-shadow: 1px 1px 5px rgb(255, 255, 255);
    }
    p {
        font-size: 1.2rem;
        color: var(--text-color);
        text-shadow: 1px 1px 5px rgb(255, 255, 255);
    }
    a {
        background-color: #ff5b53;
        color: var(--text-color);
        padding: 0.5rem 1rem;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.2s ease-in-out;
        
        text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.3);
    }
    a:hover {
        color: rgba(255, 255, 255, 0.882);
        transform: scale(1.03);
        transition: transform 0.2s ease-in-out;
    }
}
#hero2{
    height: 50vh;
    h2 {
        background-color: rgba(255, 255, 255, 0.5);
        padding: 1rem;
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 10px;
    }
}
main {
    
    .überUns {
        margin: 0.5rem 1rem;
        background-color: rgba(214, 214, 214, 0.962);
        padding: 2rem;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
        p {
            font-size: 1.2rem;
            line-height: 1.5;
            max-width: 800px;
        }
    }
    .brief {
        display: flex;
        flex-direction: row;
        justify-content: center;
        max-height: 600px;
        overflow: hidden;
        min-width: 100%;
        img {
            width: 30%;
            min-width: 250px;
            height: auto;
            object-fit: cover;   
        }
        overflow-x: scroll;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* Internet Explorer 10+ */
    }
    .brief::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
        gap: 1rem;
        
    }
}
@media (max-width: 1000px) {
    header {
        h1 {
            font-size: 1.5rem;
        }
    }
    hero {
        .logo {
            width: 40vw;
            height: 40vw;
            max-width: 40vw;
            max-height: 40vw;
        }
        h2 {
            font-size: 1.5rem;
        }
        p {
            font-size: 1rem;
        }
    }
    .brief {
        overflow: hidden;
        max-width: 95vw;
        gap: 0.5rem;
        img {
            
            height: auto;
        }
        scrollbar-width: thin; /* Firefox */
    }
}  
@media (max-width: 450px) {
    hero {
        .logo {
            width: 60vw;
            height: 60vw;
            max-width: 60vw;
            max-height: 60vw;
        }
        h2 {
            font-size: clamp(0.9rem, calc(7vw - 10px), 40px);
        }
        p {
            font-size:  clamp(0.6rem, calc(6vw - 10px), 30px);
        }
    }
}
#events {
    margin-top: 2rem;
    max-width: 100%;
    .next {
      display: flex;
      flex-direction: row;
      justify-content: center;
      max-width: 100%;
      padding: 2rem;
      gap: 1rem;
      background-color: var(--primary-color);
      button {
        background-color: #2d8192bb;
        color: var(--text-color);
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
        a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: bold;
            transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
        }
      }
      button:hover {
        background-color: #1d5c6abb;
        a {
            color: rgb(215, 215, 215);
            
        }
      }
      .newsletter{
        width: 40%;
        padding: 1rem;
       
      }
      .next-event{
        width: 40%;
        background-color: #03030327;
        padding: 1rem;
        border-radius: 5px;
        img {
            width: 80%;
            height: auto;
            object-fit: cover;
            border-radius: 5px;
        }
      }
    }
    .projekte {
        padding: 0 2rem;
        #projektListe {
            min-height: 20px;
            width: 90%;
            background-color: rgba(214, 214, 214, 0.962);
            padding: 1rem;
            border-radius: 10px;
        }
    }
}
#kontakt {
    margin-top: 2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    .mitglied {
        margin: 0 2rem;
        background-color: var(--accent-color);
        padding: 1rem;
        border-radius: 10px;
        max-width: 90%;
        
    }
    .Kontakt-daten {
        padding: 1rem;
        border-radius: 10px;
        min-width: 30%;
        max-width: 90%;
    }
    .Kontakt-formular {
        margin: 0 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 30%;
        margin: 0 auto;
        max-width: 90%;
        input, textarea {
            width: 100%;
            padding: 0.5rem;
            border-radius: 5px;
            border: 1px solid #ccc;
            font-size: 1rem;
        }
        button {
            background-color: var(--accent-color);
            color: var(--text-color);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out;
        }
        button:hover {
            background-color: #b32f2fbb;
        }
    }
    a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: bold;
        transition: text-decoration 0.2s ease-in-out;
    }
    a:hover {
        text-decoration: underline;
    }
}
@media (max-width: 600px) {
    #events {
        .next {
            flex-direction: column;
            gap: 1rem;
            .newsletter, .next-event {
                width: 90%;
                margin: 0 auto;
            }
        }
    }
    #kontakt {
        flex-direction: column;
        gap: 1rem;
        .Kontakt-formular {
            width: 90%;
            margin: 0 auto;
        }
    }
}

#news {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    #news-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    .news-item {
        background-color: rgba(214, 214, 214, 0.962);
        padding: 1rem;
        border-radius: 10px;
        min-width: 90%;
        max-width: 800px;
        position: relative;
        .datum {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 0.8rem;
            color: #555;
        }
        h3 {
            margin-top: 0;
        }
        p {
            line-height: 1.5;
        }
    }
}
.news-item2 {
        background-color: rgba(214, 214, 214, 0.3);
        padding: 1rem;
        border-radius: 10px;
        min-width: 90%;
        max-width: 800px;
        position: relative;
        margin-bottom: 1rem;
        h3 {
            margin-top: 0;
        }
        p {
            line-height: 1.5;
        }
    }

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 5vh;
    z-index: 3;
    background-color: var(--secondary-color);
    min-height: 10vh;
    color: var(--background-color);
    text-align: center;
    padding: 20px;
    position: relative;
    font-size: 0.8em;
}
.footer-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-box a {
    color: black;
    text-decoration: none;
}
.footer-box a:hover {
     transition:  0.3s, color 0.3s;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 1);
    color: rgb(200, 200, 200);
}
@media (max-width: 600px) {
    footer {
        flex-direction: column;
        font-size: 0.7em;
        gap: 1.5rem;
    }
}

#admin {
    display: flex;
    flex-direction: column;
    align-items: center;
   #newsForm, #projekteForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
   }
   input, textarea {
    width: 90%;
    margin: 0.5rem 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
   }
   textarea {
    min-height: 100px;
   }
   label {
    margin-left: 1rem;
    font-weight: bold;
    
    min-width: 90%;
   }
   button {
    width: 300px;
    margin-bottom: 2rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
   }
    

}
@media (max-width: 500px) {

    #admin {
        #newsForm, #projekteForm {
        
        width: 90%;
    }
    }
}
.strich {
    width: 80%;
    height: 1px;
    background-color: rgba(128, 128, 128, 0.6);
    margin: 2rem 0;
}
#login {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(10px);
    z-index: 10;
   
    #loginForm {
        display: flex; 
        width: 40vw;
        height: 50vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.9);
        
        margin-top: 2rem;
        input {
            width: 300px;
            padding: 0.5rem;
            border-radius: 5px;
            border: 1px solid #9a9a9a;
        }
        button {
            
            width: 300px;
            padding: 0.5rem;
            border-radius: 5px;
            border: none;
            background-color: var(--accent-color);
            color: var(--text-color);
            font-weight: bold;
            cursor: pointer;
        }
    }
}

.IuD {
    margin-left: 20px;
}
.IuD li {
    font-size: 1.1em;
    font-weight: normal;
}
    .IuD a {
        color: black;
        text-decoration: none;
    }
    .IuD a:hover {
        text-decoration: underline;
    }
