.header {
    width: 100%;
    height: 90px;
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    position: fixed;
    top: -90px;
    z-index: 1000;
    pointer-events: none;
}

#header.reveal {
    top: 0;
    pointer-events: auto;
}

.header .center,
.header .center a {
    text-decoration: none;
    color: var(--mkpi-text-primary-dark);
}

.hero-section {
    width: 100%;
    height: 61.8dvh;
    display: grid;
    grid-template-rows: 90px 1fr 90px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.full-view-height {
    height: 100dvh;
}

.hero-section-header {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    height: 90px;
}

.hero-section-content {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
}

.hero-section-footer {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    height: 90px;
    border-top: var(--mkpi-grid-line)
}

.center {
    height: 100%;
}

.center-border {
    border-left: var(--mkpi-grid-line);
    border-right: var(--mkpi-grid-line);
}

.right {
    width: 90px;
}

.header .left,
.hero-section-header .left {
    width: 90px;
    height: 90px;
    background-color: var(--mkpi-bg-primary);
    box-sizing: border-box;
}

.header .center,
.hero-section-header>.center,
.hero-section>.center {
    display: grid;
    grid-template-columns: 90px 1fr 90px;

}

.hero-section-content>.center-small,
.hero-section-content>.center-large {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-content: center;
}

.logo {
    width: 100%;
    height: 100%;
}

.keywords {
    padding: 0px 0px 0px 10px;
    align-self: center;
    color: var(--mkpi-text-primary-dark);
    text-transform: uppercase;
    line-height: 1rem;
}

.phone,
.menu,
.arrow {
    width: 90px;
    height: 90px;
    display: grid;
    justify-items: center;
}

.header i,
.hero-section i {
    font-size: 2rem;
    line-height: 90px;
    color: var(--mkpi-text-primary-dark);
}

.hero-section i:hover {
    color: var(--mkpi-accent);
}

.hero-section-footer .center {
    height: 100%;
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    justify-items: center;
}

.portrait {
    height: 150px;
    aspect-ratio: 1/1;
    border-radius: 100%;
}

.portrait-text {
    color: var(--mkpi-text-primary-dark);
}

.environment-stat {
    transition: transform var(--mkpi-transition-slow);
}

.environment-stat:hover {
    transform: translateY(-5px);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-s);
}

.contact-item i {
    font-size: 1.2rem;
}

.contact-item a,
.contact-item address {
    text-decoration: none;
    margin: 0;
}

/* Sticky Footer: flexbox statt JS */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

site {
    flex: 1;
    overflow-x: clip;
}

.site-footer {
    margin-top: auto;
}

.site-footer .container {
    padding-left: 0;
    padding-right: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
    margin: 0 auto;
    gap: var(--space-l);
    padding-right: calc(var(--bs-gutter-x)* 0.5);
    padding-left: calc(var(--bs-gutter-x)* 0.5);
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: var(--mkpi-weight-semibold);
    margin-bottom: var(--space-l);
    position: relative;
    padding-bottom: var(--space-xs);
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--mkpi-text-primary-dark);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}


.footer-social {
    display: flex;
    gap: var(--space-m);
}


.divider {
    border-top: 1px solid var(--mkpi-bg-dark) !important;
}

@media (max-width: 768px) {
    #about-us {
        text-align: center;
    }

    #about-us + hr.divider {
        display: none;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .footer-section h4 {
        display: inline-block;
    }

    .footer-section h4::after {
        width: 100%;
        left: 0;
        transform: none;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 1400px) {
    .header {
        height: 80px;
        grid-template-columns: 80px 1fr 80px;
    }

    .hero-section {
        grid-template-rows: 80px 1fr 80px;

    }

    .hero-section-header {
        grid-template-columns: 80px 1fr 80px;
        height: 80px;
    }

    .hero-section-content {
        grid-template-columns: 80px 1fr 80px;
    }

    .hero-section-footer {
        grid-template-columns: 80px 1fr 80px;
        height: 80px;
    }

    .right {
        width: 80px;
    }

    .header .left,
    .hero-section-header .left {
        width: 80px;
        height: 80px;
    }

    .header .center,
    .hero-section-header>.center,
    .hero-section>.center {
        grid-template-columns: 80px 1fr 80px;
    }

    .hero-section-content>.center-large {
        grid-template-rows: 38.2dvh auto 1fr;
    }

    .phone,
    .menu,
    .arrow {
        width: 80px;
        height: 80px;
    }

    .header i,
    .hero-section i {
        line-height: 80px;
    }

    .hero-section-footer .center {
        grid-template-columns: 80px 1fr 80px;
    }

    .hero-section-footer {
        height: 80px;
    }
}

/* Tablet-Landscape: Grid-Linien ausblenden.
   iPad Pro 11" Landscape = 1210px, iPad Pro 12.9" = 1366px.
   Erkennung: min-width (>1200 = kein kleines Mobile),
   max-width (<1400 = kein Desktop), min-aspect-ratio (Landscape). */
@media (min-width: 1201px) and (max-width: 1400px) and (min-aspect-ratio: 1/1) {
    .hero-section-content {
        grid-template-columns: 1fr !important;
    }

    .hero-section-content > .left,
    .hero-section-content > .right {
        display: none !important;
    }

    .center-border {
        border-left: none !important;
        border-right: none !important;
    }

    .hero-section-content > .center-large {
        padding: 0 clamp(2rem, 5vw, 4rem);
    }
}

@media (max-width: 1200px) {

    .header {
        height: 50px;
        grid-template-columns: 50px 1fr 50px;
    }

    .hero-section {
        grid-template-rows: 50px 1fr 50px;

    }

    .hero-section-header {
        grid-template-columns: 50px 1fr 50px;
        height: 50px;
    }

    .hero-section-content {
        grid-template-columns: 1fr;
    }

    .hero-section-content>.left,
    .hero-section-content>.right {
        display: none;
    }

    .hero-section-footer {
        grid-template-columns: 50px 1fr 50px;
        height: 50px;
    }

    .center,
    .center-border {
        border-left: none;
        border-right: none;
    }

    .right {
        width: 50px;
    }

    .header .left,
    .hero-section-header .left {
        width: 50px;
        height: 50px;
    }

    .header .center,
    .hero-section-header>.center,
    .hero-section>.center {
        grid-template-columns: 50px 1fr 50px;
    }

    .hero-section-content>.center-large {
        padding: 0px 20px;
        grid-template-rows: 38.2vh max-content auto;
    }

    .keywords {
        display: none;
    }

    .phone {
        display: none;
    }

    .menu,
    .arrow {
        width: 50px;
        height: 50px;
    }

    .header i,
    .hero-section i {
        font-size: 1.75rem;
        line-height: 50px;
    }

    .hero-section-footer .center {
        grid-template-columns: 50px 1fr 65px;
    }

    .hero-section-footer {
        height: 50px;
    }

}

@media (min-width: 769px) and (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, auto);
        justify-content: space-around;
        gap: 3rem 4rem;
    }
}

@media only screen and (max-width: 1200px) and (orientation: landscape) {
    .hero-section-content>.center-large {
        grid-template-rows: auto max-content max-content;
    }
}

@media only screen and (max-height: 992px) and (orientation: landscape) {
    .hero-button {
        display: none !important;
    }
}

@media only screen and (max-height: 768px) and (orientation: landscape) {
    .hero-section-content>.center-large {
        grid-template-rows: 30dvh max-content max-content;
    }

    .hero-button {
        display: none !important;
    }
}

@media only screen and (max-height: 768px) and (orientation: portrait) {
    .hero-button {
        display: none !important;
    }
}

@media only screen and (max-width: 576px) and (orientation: portrait) {
    .hero-section-content>.center-large {
        grid-template-rows: 38.2dvh max-content max-content;
    }
}

@media only screen and (max-height: 576px) and (orientation: portrait) {
    .hero-section-content>.center-large {
        grid-template-rows: 30dvh max-content max-content;
    }

    .hero-button {
        display: none !important;
    }
}

@media only screen and (max-width: 576px) and (orientation: portrait),
only screen and (max-height: 576px) and (orientation: portrait),
only screen and (max-height: 576px) and (orientation: landscape) {
    .hero-section-content>.center-large {
        grid-template-rows: auto max-content max-content;
    }

    .hero-button {
        margin-bottom: 20px !important;
    }

}