/* Header */
.header {
    width: 100%;
    height: 90px;
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    background-color: rgba(var(--main-color), 1.0);
    position: fixed;
    top: -90px;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
}

#header.reveal {
    top: 0;
    border-bottom: 1px solid rgba(var(--white), 0.2);
    box-shadow: 0 2px 3px -2px rgba(var(--grey), 0.75);
}

.header .center,
.header .center a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

/* Hero Section */
.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;
    border-bottom: var(--grid-white);
    background: none;
}

.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(--grid-white)
}

.center {
    height: 100%;
}

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

.right {
    width: 90px;
}

.header .left,
.hero-section-header .left {
    width: 90px;
    height: 90px;
    background-color: white;
    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;
    font-family: var(--hero-text);
    color: rgb(255, 255, 255);
    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: rgb(255, 255, 255);
}

.hero-section i:hover {
    color: rgba(var(--signal-color), 1.0);
}

.hero-section-footer .center {
    height: 100%; /* Verwendet die Höhe des Parent-Elements */
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    justify-items: center;
}

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

.portrait-text {
    color: rgba(var(--white), 1.0);
}

/* Counter */
.environment-stat {
    transition: transform 0.3s ease;
}

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

.counter-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}


/* Contact Items */

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: rgba(var(--white), 1.0);
}

.contact-item a,
.contact-item address {
    color: rgba(var(--white), 1.0);
    text-decoration: none;
    margin: 0;
    font-style: normal;
}

.contact-item a:hover {
    color: rgba(var(--signal-color), 1.0);
}

/* Footer & Layout */
/* Sticky Footer Layout - CSS-only Lösung ohne JavaScript */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

site {
    flex: 1;
}

.site-footer {
    background-color: rgba(var(--main-color), 1.0);
    color: rgba(var(--white), 1.0);
    margin-top: auto;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    margin: 0 auto;
    gap: 2rem;
    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: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(var(--white), 1.0);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(var(--white), 1.0);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: rgba(var(--signal-color), 1.0);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(var(--white), 1.0);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-social a:hover {
    color: rgba(var(--signal-color), 1.0);
}

.divider {
    border-top: 1px solid rgba(var(--main-color), 1.0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .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;
    }
}

/* Breakpoint 1200px and smaller*/
@media (max-width: 1200px) {
    .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;
    }
}

/* Breakpoint 992px and smaller*/
@media (max-width: 992px) {

    .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;
    }

    .footer-content {
        grid-template-columns: repeat(2, auto);
        justify-content: space-around;
        gap: 3rem 4rem;
    }
}

/* Small devices in landscape orientation */
@media only screen and (max-width: 992px) 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;
    }
}

/* Small devices in landscape orientation */
@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;
    }
}

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

/* Small devices in portrait orientation */
@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;
    }

}
