/* Allgemeine Stile */
body {
    font-family: 'avenir';
    margin: 0;
    padding: 0;
    background-color: #e1e1e1;  /* Hintergrundfarbe hellgrau */
    color: #000; /* Textfarbe schwarz */
    overflow-x: hidden; /* Verhindert horizontalen Scrollbalken */
}

@font-face {
    font-family: 'avenir';
    src: url('avenir-light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Hintergrundbild als normales Bild */
.background-img {
    position: fixed;
    top: 53%; /* Setzt das Bild mittig auf der Y-Achse */
    left: 50%; /* Setzt das Bild mittig auf der X-Achse */
    width: 50%; /* Macht das Bild kleiner (hier auf 50% der Bildschirmbreite) */
    height: 100dvh; /* Hält das Seitenverhältnis bei */
    object-fit: contain; /* Skaliert das Bild, behält das Seitenverhältnis bei */
    object-position: center center; /* Zentriert das Bild */
    transform: translate(-50%, -50%); /* Verschiebt das Bild, damit es perfekt mittig ist */
    z-index: -1; /* Hintergrundbild nach hinten verschieben */
    opacity: 1; /* Volle Deckkraft */
    transition: opacity 0.2s ease; /* Sanfte Übergänge */
}

/* Header fixiert oben */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #e1e1e1;
    padding: 8px 20px;
    color: rgb(0, 0, 0);
    z-index: 1000; /* Ganz oben */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


/* Logo */
.logo {
    font-family: 'avenir';
    font-size: 80px;
    text-align: center;
    flex: 1;
}


/* Menü fixiert */
.menu {
    font-family: 'avenir';
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e1e1e1;
    box-shadow: 0px 8px 8px #e1e1e1;
    width: 100%;
    position: fixed;
    top: 95px; /* Abstand zum Logo */
    left: 0;
    right: 0;
    z-index: 1000; /* Menü soll über dem Hintergrundbild bleiben */
    padding-top: 5px;
    padding-bottom: 20px;
}

.menu ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 20px;
}

.menu a:hover {
    text-decoration: none;
    color: rgb(121, 121, 121);
}

.logo a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.logo a:hover {
    text-decoration: none;
}

/* PNG Icons */
.social-icon img {
    width: 25px; /* Größe der Icons */
    height: auto;
    margin-left: 0px;
    margin-top: -2px;
}

h2 {
    font-family: 'avenir';
    font-weight: 500;
    font-size: 20px;
}

p {
    font-size: 20px;
    letter-spacing: 0.2px;
    line-height: 30px;
}

b {
    font-family: 'avenir';
    font-weight: 900;
    letter-spacing: 0.3px;
}

.schriftcenter {
    text-align: center;
}







.abstand-anfang {
    padding-top: 15vh;
}


.abstand-desktop {
    padding-top: 22vh;
}

.abstand-smart {
    padding-top: 12vh;
}

.abstand-desktop-unten {
    padding-top: 45vh;
}
    
.abstand-smart-unten {
    padding-bottom: 35vh;
}

.abstand {
    padding-bottom: 100vh;
}

hr {
    border-width: 0px;
    margin-top: 200px;
}

.klein {
    margin-top: 40px;
}

.halbeseite {
    margin-top: 40vh;
}






/* Content Container ohne Hintergrundfarbe */
.content {
    max-width: 800px; /* Maximalbreite für den Content */
    margin: 0 auto; /* Zentriert den Content horizontal */
    padding: 10px;
    padding-top: 0vh;
    padding-bottom: 30px;
    position: relative; /* Damit der Inhalt über dem Hintergrundbild angezeigt wird */
    z-index: 1; /* Stellt sicher, dass der Inhalt über dem Hintergrundbild bleibt */
}

/* Inhalt Sections */
.content-section {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: left; /* Text linksbündig */
    background-color: transparent; /* Kein Hintergrund */
}

.content-section img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 10px 0;
}

.content-section:nth-child(even) {
    background-color: transparent; /* Kein Hintergrund */
}

/* Bild mittig */
.content-section.image-center {
    text-align: center;
}

.content-section.image-center img {
    max-width: 450px;
    margin: 0 auto;
    display: block;
}


/* Bild mittig - Größer */
.content-section.image-center-big {
    text-align: center;
}

.content-section.image-center-big img {
    max-width: 530px;
    margin: 0 auto;
    display: block;
}

/* Text und Bild nebeneinander */
.content-section.text-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-section.text-image img {
    max-width: 45%;
    margin-left: 20px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 10px 30px;
    max-width: 800px;
    margin: 0 auto; /* Zentriert die Galerie */
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}


/* Footer - fixiert und transparent */
footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(228, 80, 80, 0); /* Transparenter Hintergrund */
    color: rgba(255, 215, 215, 0);
    text-align: center;
    padding: 35px 0;
    z-index: 1000;
}

footer a {
    font-size: 22px;
    color: #000;
    text-decoration: none;
}

footer a:hover {
    color: #4d2aad;
}

.test-fest img {
    width: 120px; 
    height: 120px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: none;
}

/* Burger-Icon */
.burger-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.burger-icon .bar {
    width: 30px;
    height: 2.5px;
    background-color: rgb(0, 0, 0);
    transition: all 0.3s;
}

/* Kein Scrollen bei aktivem Menü */
body.no-scroll {
    overflow: hidden;
}





/* unvisited link */
a:link {
    color: rgb(0, 0, 0);
    text-underline-offset: 5px;
  }
  
  /* visited link */
  a:visited {
    color: rgb(0, 0, 0);
  }
  
  /* mouse over link */
  p a:hover {
    color: rgb(121, 121, 121);
  }
  
  /* selected link */
  a:active {
    color: rgb(113, 113, 113);
  }





/* Mobile Ansicht */
@media (max-width: 900px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 20px;
        box-shadow: 0px 10px 10px #e1e1e1;
    }

    .logo {
        font-size: 30px;
        text-align: left;
        margin-top: -1px;
        flex: 1;
    }

    .background-img {
        width: 100%; /* Macht das Bild kleiner (hier auf 50% der Bildschirmbreite) */
        top: 50%; /* Setzt das Bild mittig auf der Y-Achse */
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: #e1e1e1;
        position: fixed;
        top: 0px; /* Abstand zum Logo */
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh; /* Menü geht über den gesamten Bildschirm */
        justify-content: center;
        align-items: center;
        z-index: 999; /* Menü wird oben angezeigt */
    }

    .menu.active {
        display: flex;
    }

    .burger-icon {
        display: flex;
        position: absolute;
        top: 25px;
        right: 20px;
    }

    /* Burger Icon Kreuz beim Öffnen */
    .burger-icon.active .bar:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
        position: absolute;
    }


    .burger-icon.active .bar:nth-child(2) {
        transform: rotate(-45deg);
        top: 10px;
        position: absolute;
    }

    /* Menüpunkte untereinander und mittig */
    .menu ul {
        flex-direction: column;
        align-items: center;  /* Menüpunkte mittig */
        justify-content: center;
    }

    /* Alle Menu Items mittig */
    .menu li {
        margin: 10px 0;
        text-align: center;
    }

    /* Menüpunkte untereinander im mobilen Menü */
    .menu a {
        font-size: 30px;
        padding: 10px;
    }

    /* Icons nebeneinander im mobilen Menü */
    .menu .social-icon {
        display: inline-block;
        margin: 0 10px;
    }

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

    .test-fest img {
        width: 90px; 
        height: 90px;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 100;
        display: none;
    }
    
    .abstand-desktop {
        display:none;
        }
    
    .abstand-desktop-unten {
        display:none;
        }
        
}

@media (min-width: 901px) and (max-width: 1300px) {
    .background-img {
        width: 75%; /* Macht das Bild kleiner (hier auf 50% der Bildschirmbreite) */
    }
   

}

@media (min-width: 901px) {
    .abstand-smart {
        display:none;
    }

    .abstand-smart-unten {
        display:none;
    }
 
}