

.body {
    align-items: center;
    margin: 0;
    border: 0;
    padding: 0;
    box-sizing: border-box;
}



.header {
    background-image: url(../img/BG1.gif);
    background-size: 80vw;
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: bottom;
    z-index: 0;
    position: relative;
    top: 0;
    left: 0;
    background-color: #ffffff;
    box-sizing: border-box;
    width: calc(100vw - 1.3rem);
    padding: 0 1.3rem 1.1rem;
    font-family: Arial, Roboto, sans-serif;
    animation: Ani linear 1.5s forwards 1;
    border-bottom: white solid 0.8rem;

}

        /* Erzwingt, dass der Header auch im Querformat mitscrollt */
        @media (orientation: landscape) {
            .header {
                position: initial !important; /* oder static / relative */
            }
        }

     
		
@media screen and (max-height: 600px) {
  .header {
    background-image: url(../img/BG1.gif);
    background-size: 80vw;
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: bottom;
    z-index: 0;
    position: relative;
    top: 0;
    left: 0;
    background-color: #ffffff;
    box-sizing: border-box;
    width: calc(100vw - 1.3rem);
    padding: 0 1.3rem 1.1rem;
    font-family: Arial, Roboto, sans-serif;
    animation: Ani linear 1.5s forwards 1;
    border-bottom: white solid 0.8rem;

  }  
}

@media screen and (min-width: 748px) {
    .header {
        background-image: url(../img/BG1.gif);
        background-size: 40rem;
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        z-index: 2;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #ffffff;
        box-sizing: border-box;
        width: calc(100vw - 1.3rem);
        padding: 0 1.3rem 1.1rem;
        font-family: Arial, Roboto, sans-serif;
        animation: Ani linear 1.5s forwards 1;
        border-bottom: white solid 0.8rem;

    }
}

.header-left {
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    flex-wrap: wrap;
    width: max-content;
}

.header h1 {
    opacity: 0;
    /* Start invisible */
    transition: opacity 1s ease-in-out;
    /* General transition */
}

.DavidHilt {
    width: max-content;
    border-width: 0px;
    font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, DejaVu Sans Mono, monospace;
    font-size: 2rem;
    font-variant-caps: all-petite-caps;
    font-weight: 700;
    letter-spacing: 0.08rem;
    margin: 0;
    padding: 0.5rem 0;
    padding-right: 0.5rem;
    animation: Ani linear 2.5s forwards 1;
    background-color: rgb(255, 255, 255);
}


.DesignVisualisierung {
    /* width: max-content; */
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 1;
    border: 0px;
    font-family: Arial, Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    outline-width: 0px;
    padding: 0;
    padding-right: 0.3rem;
    animation: Ani linear 3s forwards 1;
    /* display: inline-block; */
    background-color: rgb(255, 255, 255);
}


.DiplomDesigner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: max-content;
    flex-shrink: minimum;
    border: 0;
    box-sizing: border-box;
    font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, DejaVu Sans Mono, monospace;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 22.65px;
    margin: 0;
    margin-top: 19px;
    outline-width: 0px;
    padding: 0;
    padding-right: 0.3rem;
    animation: Ani linear 3.5s forwards 1;
    background-color: rgb(255, 255, 255);
}

ul.nav {
    /* background-color: #ffffff; */
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 0 right;
    padding: 0;
    gap: 0rem;
    animation: Ani linear 4s forwards 1;
    /* width: max-content; */
}

.nav a {
    background-color: #ffffff;
    padding-right: 1em;
    font-family: Arial, Roboto, sans-serif;
    font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, DejaVu Sans Mono, monospace;
    font-weight: 700;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    text-decoration: none;
}

.nav a:hover {
    font-weight: bold;
    font-size: 1rem;
    text-decoration: underline;
}

.nav a:visited {
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
}

@keyframes Ani {

    0%,
    70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.content {
    z-index: 0;
    margin-top: 1rem;    
}
@media (min-width: 748px) {
.content {
    z-index: -1;
    margin-top: 0rem;    
}
}
.ReferenzenMessebau {
    width: calc(100vw - 1.3rem);
    border-width: 0px;
    box-sizing: border-box;
    font-family: Arial, Roboto, sans-serif;
    font-size: 16px;
    line-height: 19px;
    outline-width: 0px;
    padding: 0 1.3rem 2rem;
    animation: Ani linear 4.5s forwards 1;
}

.Messebau_DKV {
    box-sizing: border-box;
    color: rgb(0, 0, 0);
    font-family: Arial, Roboto, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 27px;
    border-style: dashed;
    border-width: 0 0 1px 0;
    text-align: start;

}

.Unzaehlige {
    box-sizing: border-box;
    color: rgb(0, 0, 0);
    font-family: Arial, Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    margin-bottom: 1rem;
    margin-top: 20px;
    outline-width: 0px;
}

.Planer {
    box-sizing: border-box;
    color: rgb(0, 0, 0);
    font-family: Arial, Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
}

.Liste {
    list-style-type: none;
    font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, DejaVu Sans Mono, monospace;
    font-weight: 700;
    margin: 0;
    outline: 0;
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 100vw-1.3em;
    gap: 0.5em;
}

.Spalten {
    background-color: #ffffff;
    padding: 0;
    border: 0;
    margin: 0;
}

@media (min-width: 500px) {
    .Liste {
        grid-template-columns: 1fr 1fr;
        gap: 1em;
    }
}

@media (min-width: 748px) {
    .Liste {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 1em;
    }
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.6rem;
    padding: 1.3rem;
    order: 2;
}



.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 1.8s ease-in-out;
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: none;
    object-position: center;
    transition: transform 1.8s ease-in-out, box-shadow 1.8s ease-in-out;
}

.gallery-item.expanded {
    grid-column: span 2;
    grid-row: span 2;
    z-index: 1;
}

.gallery-item.expanded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Responsiver Fallback für Touch-Geräte */
@media (hover: none) {
    .gallery-item:active img {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    }
}

footer {
    box-sizing: border-box;
    width: calc(100vw - 1.3rem);
    padding: 2rem 1.3rem;
    position: relative;
    font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, DejaVu Sans Mono, monospace;
}

.kontakt {
    width: minmax(30rem, 50rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    padding-bottom: 1rem;
    border: 0;
}

.buero {
    margin: 0;
    border: 0;
    padding: 0;
}

.tel {
    margin: 0;
    border: 0;
    padding: 0;
}

.mail {
    margin: 0;
    border: 0;
    padding: 0;
}

.datenschutzerklaerung {
    padding-bottom: 1rem;
}

/* .impressum {
    padding-top: 1rem;
} */