:root {
    --maincolor: #BE1C36;
    --white: #ffffff;
    --btnhover: #565656;
    --containercolor: #dddddd;
    --smallcontainercolor: #494949;
    --smallcontainercolorop: rgb(73, 73, 73, 0.9);

    --font: sans-serif;
}


html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: var(--font);

    scrollbar-width: none;
    /* Breite der Scrollbar anpassen */
}

h1,
span {
    display: flex;
    align-items: center;
}

.textdiv {
    display: table-cell;
    vertical-align: middle;
}

a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

main {
    height: 100vh;
}

#mobilenav {
    display: none;
}

.navbtnmobile {
    height: 50px;
    width: 50px;
    display: none;
    background-color: transparent;
    border: none;

}

.navbtnmobile svg path {
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.4));
}

header {
    width: 100%;
}

header nav {
    position: absolute;
    width: 100%;
    height: 70px;
    top: 50px;
    z-index: 5;
}

header nav .grid {
    height: 100%;
    margin-left: 200px;
    margin-right: 200px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 0 10px #777777;
}

header nav .navleft {
    display: flex;
    justify-content: left;
    align-items: center;
}

header nav .navmiddle {
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav .navright {
    display: flex;
    justify-content: right;
    align-items: center;
}

header nav img {
    margin-left: 50px;
    height: 50px;
}

header nav ul {
    padding: 0;
}

header nav ul li {
    display: inline-block;
    list-style: none;
    margin-left: 20px;
    margin-right: 20px;
}

li a {
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: var(--maincolor);
}

header nav .navright div {
    display: flex;
    align-self: center;
    margin-right: 50px;
}

.navright a {
    margin-left: 20px;
    font-size: 20px;
    color: black;
}

.navright svg {
    fill: var(--maincolor);
}

.headerimage {
    overflow: hidden;
    height: 100vh;
    display: flex;
    position: relative;
}

.headerimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobileimgcontainer {
    position: absolute;
    top: 50%;
}

.iconmobile {
    display: none;
}

.headerimage .imagecontainer {
    height: 400px;
    width: 400px;
    margin-left: 200px;
    display: grid;
    grid-template-rows: 100px auto 100px;
}

.imageheader {
    color: var(--maincolor);
    text-shadow: 0 0 10px #777777;
}

.imagecontainer p {
    color: var(--white);
    text-shadow: 0 0 10px #777777;
    font-size: 18px;
}

.btnaction {
    border: none;
    background-color: var(--maincolor);
    height: 40px;
    width: 200px;
    border-radius: 5px;
    color: var(--white);
    fill: var(--white);
    padding: 10px;
    display: flex;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 0 10px #777777;
}

.btnaction:hover {
    background-color: var(--btnhover);
}

.btnaction svg {
    margin-right: 20px;
}

@media (max-width: 1000px) {
    header nav {
        position: absolute;
        width: 100%;
        top: 0px;
    }

    #mobilenav {
        display: block;
    }

    .mobilenavcont {
        position: relative;
        padding: 20px;
        z-index: 10;
    }

    .backgrwhite {
        background-color: white;
    }

    #navbar {
        display: none;
    }

    .mobileimgcontainer {
        width: 100%;
        position: absolute;
        top: 50%;
        display: flex;
        justify-content: center;
        z-index: 10;
    }

    .headerimage .imagecontainer {
        height: auto;
        width: auto;
        margin-left: 0px;
        display: grid;
        grid-template-rows: 100px auto 100px;
    }

    .iconmobile {
        display: block;
        position: absolute;
        top: 20px;
        transform: translate(-50%, 0);
        left: calc(50% - 54px);
        height: 50px;
    }

    .navbtnmobile {
        position: relative;
        height: 50px;
        width: 50px;
        display: block;
        z-index: 10;
    }

    .mobilemenu {
        position: relative;
        height: 100vh;
        width: 100%;
        background-color: white;
        z-index: 10;
        display: none;
    }

    .mobilemenu ul li {
        margin-left: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        display: block;
        border-bottom: solid 1px #494949;
    }

    .menuvisible {
        display: block;
    }

    .mobilecontact {
        padding-top: 20px;
    }

    .contacttext {
        margin-top: 7px;
        margin-bottom: 7px;
        color: black;
        font-weight: bold;
    }

    .hidden {
        display: none;
        visibility: collapse;
    }

    .noscroll {
        overflow-y: hidden;
    }

    .mobilenavcontheader {
        display: flex;
    }

    .mobileimp {
        margin-top: 50px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.fullsizecontainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fullwidth {
    width: 100%;
}

#service {
    padding-top: 100px;
    padding-bottom: 100px;
}


.containerheader {
    padding-left: 200px;
    padding-right: 200px;
}

.containerheader h1 {
    font-size: 48px;
    display: flex;
    justify-content: center;
    color: var(--maincolor);
}

.containerheader p {
    margin-top: 50px;
    font-size: 24px;
    display: flex;
    justify-content: center;
}


@media (max-width: 1000px) {
    .containerheader {
        padding-left: 20px;
        padding-right: 20px;
        width: calc(100% - 40px);
    }

    .containerheader p {
        margin-top: 50px;
        font-size: 24px;
        display: flex;
        justify-content: center;
    }


}

.containercontent {
    margin-top: 100px;
    display: flex;
    justify-content: center;
}

.containerinline {
    width: -moz-fit-content;
    width: fit-content;
    text-align: center;
}

.servicecontainer {
    display: inline-block;
    background-color: var(--white);
    height: 400px;
    width: 300px;
    max-height: 400px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.servicecontainer .grid {
    display: grid;
    grid-template-rows: 120px 90px auto;
}

.servicecontainerheader {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.servicecontainerheader div {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--maincolor);
    height: 60px;
    width: 60px;
    border-radius: 50%;
}

.servicecontainerheader svg {
    height: 40px;
    width: 40px;
    fill: var(--white);
}

.servicecontainer .serviceheader {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    padding-left: 25px;
    padding-right: 25px;
}

.servicecontainer .servicedescription {
    text-align: center;
    font-size: 18px;
    padding-left: 25px;
    padding-right: 25px;
    margin-top: 25px;
}



.smallcontainer {
    width: 100%;
    height: 200px;
    background-color: var(--smallcontainercolor);
    display: flex;
    justify-content: center;
}

.smallcontainercontent {
    margin-right: 100px;
    margin-left: 100px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: white;
    padding: 0;
    font-size: 36px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1000px) {
    .smallcontainercontent {
        margin-right: 50px;
        margin-left: 50px;
        margin-top: 30px;
        margin-bottom: 30px;
        color: #BE1C36;
        padding: 0;
        font-size: 26px;
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
}

#WhyMe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 50px;
    height: 100vh;
}

#WhyMe .containerleft {
    padding-left: 200px;
    height: 100%;
    display: grid;
    grid-template-rows: 200px auto;
}

#WhyMe .header {
    padding-top: 75px;
}

#WhyMe .headersmall {
    font-size: 26px;
}

#WhyMe .headerbig {
    margin-top: 5px;
    font-size: 42px;
    font-weight: bold;
}

#WhyMe .symbol {
    margin-left: 20px;
    font-size: 80px;
    font-weight: bold;
    color: var(--maincolor);
}

#WhyMe .containerright {
    display: flex;
    justify-content: center;
    height: 100%;
}

#WhyMe .containerright img {
    height: 100%;
    -webkit-filter: drop-shadow(0px 0px 10px #7777773f);
    filter: drop-shadow(0px 0px 30px #7777773f);
}

#WhyMe .header .line {
    display: inline-block;
}

.reasoncontainer {
    padding-top: 50px;
    padding-bottom: 75px;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
}

.reasongrid {
    display: grid;
    grid-template-columns: 50px auto;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.reasoncontent {
    margin-left: 10px;
}

.reasoncontent .reasonheader {
    font-size: 30px;
    font-weight: bold;
    height: 35px;
}

.reasongrid p {
    font-size: 22px;
}

.reasongrid .reasonicon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    background-color: var(--maincolor);
    fill: var(--white);
}

@media (max-width: 1500px) {
    #WhyMe {
        display: flex;
        justify-content: center;
        padding-top: 50px;
        height: auto;
    }

    #WhyMe .header {
        padding-top: 0px;
        display: grid;
        grid-template-columns: auto 90px;
        width: calc(100% - 20px);
    }

    #WhyMe .containerleft {
        padding-left: 20px;
        padding-right: 20px;
        height: 100%;
        display: grid;
        grid-template-rows: 200px auto;
        width: calc(100% - 40px);
    }

    #WhyMe .containerright {
        display: none;
    }

    #WhyMe .symbol {
        margin-left: 0;
        font-size: 80px;
        font-weight: bold;
        color: var(--maincolor);
    }

    #WhyMe .header .line {
        width: calc(100% - 20px);
    }
}

.reasoncontainer {
    padding-top: 0px;
    padding-bottom: 75px;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    width: calc(100% - 10px);
}

.reasoncontent {
    margin-left: 10px;
    width: calc(100% - 10px);
}


.slide-pictures {
    background-size: contain;
    width: 100%;
    height: 75vh;
}

.overlay {
    height: 100%;
    width: 100%;
    background-color: var(--smallcontainercolorop);
}

.pictureitems {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.picturestd {
    display: inline-block;
    height: 450px;
    max-height: 450px;
    max-width: 800px;
}

.picturesmall {
    object-fit: cover;
    height: 150px;
    width: 325px;
    margin-left: 75px;
    margin-right: 75px;
    opacity: 0.5;
    display: inline-block;
}

@media (max-width: 1000px) {
    .picturesmall {
        display: none;
        visibility: collapse;
    }

    .picturestd {
        width: 100%;
        max-width: 800px;
        object-fit: contain;
    }
}

footer {
    padding: 20px;
    position: relative;
    height: 80px;
    width: calc(100% - 40px);
    background-color: #CA253C;
    left: 0;
    bottom: 0;
}

#footerdiv {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

}

.footertxt {
    margin-top: 7px;
    margin-bottom: 7px;
    color: white;
    font-weight: bold;
}

.footertxt a {
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 1000px) {
    footer {
        padding: 20px;
        position: relative;
        height: 80px;
        width: calc(100% - 40px);
        background-color: #CA253C;
        left: 0;
        bottom: 0;
        display: none;
    }
}

/* Über Uns */

.ubmobileimgcontainer {
    position: absolute;
    top: 25%;
}

.headerimage .ubimagecontainer {
    height: 400px;
    width: 600px;
    margin-left: 200px;
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.ubimagecontainer h1 {
    font-size: 50px;
    color: var(--maincolor);
    text-shadow: 0 0 10px white;
}

.ubimagecontainer h2 {
    font-size: 36px;
    color: var(--smallcontainercolor);
}

.ubimagecontainer p {
    margin-top: 100px;
    color: var(--smallcontainercolor);
    font-size: 26px;
}

#Me {
    display: grid;
    grid-template-columns: 0fr 1fr;
    padding-top: 50px;
    height: 100vh;
}


#Me .containerright {
    padding-left: 200px;
    height: 100%;
}

#Me .header {
    padding-top: 75px;
}

#Me .containerleft {
    display: flex;
    justify-content: center;
    height: 100%;
}

#Me .containerleft img {
    height: 100%;
    -webkit-filter: drop-shadow(0px 0px 10px #7777773f);
    filter: drop-shadow(0px 0px 30px #7777773f);
}

#Me .header .line {
    display: inline-block;
}

.medescriptionview {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: 20% 80%;
    margin-right: 150px;
}

.medescriptionview h1 {
    color: var(--maincolor);
    font-size: 50px;
}

.medescription {
    margin-top: 100px;
    border: none;
    resize: none;
    outline: none;
    font-family: var(--font);
    font-size: 28px;
}

.medescription {
    outline: none;
    cursor: default;
}

#contactus {
    height: 50vh;
    background-color: #494949;
}

.centercontainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.justify-center {
    display: flex;
    justify-content: center;
}

.timeline {
    width: 80%;
    height: 10px;
    border-radius: 25px;
    background-color: #B1B2B5;
    position: absolute;
    z-index: 2;
}

.event {
    position: absolute;
    height: 100%;
    width: 100px;
    z-index: 0;
    color: white;
}

.event .eventline {
    width: 10px;
    height: 50px;
    background-color: var(--maincolor);
    border-radius: 25px;
}

.relative {
    position: relative;
}

.colorwhite {
    color: white;
}

.contactlink {
    text-decoration: none;
    color: white;
    font-size: 28px;
}

.flexcolum {
    flex-direction: column;
}

.pictureelement {
    height: 400px;
    width: 400px;
    display: inline-block;
    margin-left: 20px;
    margin-top: 20px;
    cursor: pointer;
}

.pictureelement img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    overflow: auto;
}

.popup-content {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.popup-image {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
}

.popup .close {
    color: #fff;
    font-size: 30px;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
}

#popup-description {
    color: white;
    font-size: 20px;
}

#overlay {
    display: none;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #494949;
    top: 0;
    opacity: 0.90;
    z-index: 20;
}

#galerie {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.active {
    display: block;
}

body.popup-open {
    overflow: hidden;
    /* Deaktiviert das Scrollen auf der Seite */
}

.popup-containercontent {
    display: flex;
    justify-content: center;
}

.popup-imageCollection {
    max-width: 1000px;
    /* Automatische Höhe, um das Seitenverhältnis beizubehalten */
}

.imgagegrid {
    display: grid;
    grid-template-columns: 75px auto 75px;
    width: 100%;
    overflow-x: auto;
    /* Horizontales Scrollen aktivieren, wenn die Bildgruppe breiter als das Popup ist */
}

.imagecontainer {
    display: flex;
    justify-content: center;
}

.imagedescriptioncontainer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.imagedescriptioncontainer span {
    color: white;
    font-size: 20px;
}

.navbutton {
    border: none;
    background-color: transparent;
    font-size: 20px;
    color: white;
    cursor: pointer;
    /* Zeigercursor hinzufügen */
    padding: 10px;
    /* Mehr Platz um die Schaltflächen für eine einfachere Bedienung */
}

.index {
    color: white;
    margin-top: 10px;
    /* Abstand über dem Index hinzufügen */
}

@media (max-width: 1000px) {

    .ubmobileimgcontainer {
        width: 100%;
        position: absolute;
        display: flex;
        justify-content: center;
        z-index: 10;
        top: 75px;
    }

    .headerimage .ubimagecontainer {
        height: auto;
        width: calc(100% - 40px);
        margin-left: 0px;
        display: grid;
        grid-template-rows: 100px auto 100px;
    }

    .popup-imageCollection {
        max-width: 100%;
        /* Maximale Breite des Bildes auf 100% des verfügbaren Platzes im Popup */
        height: auto;
        /* Automatische Höhe, um das Seitenverhältnis beizubehalten */
    }
}

@media (max-width: 1500px) {
    #Me {
        display: flex;
        justify-content: center;
        padding-top: 50px;
        height: 100%;
    }

    #Me .header {
        padding-top: 0px;
        display: grid;
        grid-template-columns: auto 90px;
        width: calc(100% - 20px);
    }

    #Me .containerright {
        padding-left: 20px;
        padding-right: 20px;
        height: 100%;
        display: grid;
        width: calc(100% - 40px);
    }

    #Me .containerleft {
        display: none;
    }

    #Me .symbol {
        margin-left: 0;
        font-size: 80px;
        font-weight: bold;
        color: var(--maincolor);
    }

    #Me .header .line {
        width: calc(100% - 40px);
    }

    #Me .medescriptionview {
        height: 100%;
        margin-right: 0px;
    }

    #Me #medescription {
        margin-top: 40px;
        font-size: 24px;
    }

    #contactusheader {
        width: calc(100% - 40px);
    }

    #contactusheadertext {
        text-align: center;
    }

    #contauscontent {
        width: calc(100% - 40px);
    }

    .contactlink {
        font-size: 24px;
    }
}

.banner {
    width: 100%;
    background-color: red;
}

.banner p,
.banner a {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    color: yellow;
}

.banner p {
    display: block;
    font-size: 24px;
}

.banner a {
    display: flex;
    justify-content: center;
    font-size: 24px;
}