@font-face {
    font-family: "bawue";
    src: url("./bawue.woff2") format("woff2"),
         url("./bawue.woff") format("woff"),
         url("./bawue.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

body {
    font-family: "BaWue Sans", sans-serif;
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 16px;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body {
    height: 100%;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;

    flex: 1;
}

h1, h2, h3 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3.375rem;
    line-height: 1.5;
    font-family: "BaWue Serif", serif;
    font-weight: bold;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

address {
    font-style: normal;
    line-height: 1.5;
}

section {
    margin-bottom: 3rem;
}

details summary::marker {
    display: none;
}

.chevron {
    transition: transform 0.3s ease;
}

details {
    border-bottom: 1px solid black;
    border-inline: 0;
}

details details {
    margin-inline: 1.5rem 2.5rem;
    border-top: 1px solid black;
    margin-block: 1rem;
}

details:first-of-type {
    border-top: 1px solid black;
}

details[open] > summary > .chevron {
    transform: rotate(180deg);
}

details summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

summary {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.150s ease;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] > summary {
    background-color: #F4F3F1;
}

ul {
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

li:not(:last-child) {
    margin-bottom: 8px;
}

.logo-digitalpakt {
    height: 200px;
    width: auto;
}

.logo {
    height: 80px;
    border-bottom: 2px solid #0000;
    margin: 5px;
    padding: 5px;
}

.m-0 {
    margin: 0;
}

svg.logo text.vf {
    stroke: #2E928D;
    stroke-width: 8px;
    font-size: 300px;
    font-weight: bold;
    font-family: monospace;
    dominant-baseline: middle;
    text-anchor: middle;
    transform: translate(16%, 80%);
}

.logo:hover {
    border-color: black;
}

.grid-container {
    display: grid;
    grid-template-areas:
    "header header"
    "menu content"
    "menu footer";
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto 1fr;
    min-height: calc(100vh - 80px); /* 80px is the height of zeheader */
}

ze-menu {
    grid-area: menu;
}

main {
    grid-area: content;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 130px;
    background-color: #FFFC00;
    position: relative;

    height: 342px;

    & h1 {
        font-size: 60px;
        margin: 0;
    }

    & .hero-image-human {
        position: absolute;
        bottom: 0;
        left: 26px;
    }

    & .hero-image-cloud {
        position: absolute;
        top: 26px;
        right: 0;
    }

    & .button-login {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 230px;
        padding: 12px 24px;
        background-color: #ffffff;
        color: #2A2623;
        border: 1px solid #524942;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 3px;
        transition: all 0.2s ease-in-out;
        text-decoration: none;

        &:hover {
            background-color: #F4F3F1;
            outline: 1px solid #524942;

            & .button-login-info {
                background-color: #CBC6BD;
            }
        }

        &:focus-visible {
            outline: 2px solid #6E0BCC;
            outline-offset: 2px;
        }

        &:active {
            background-color: #ffffff;
            outline: 1px solid #524942;
        }

        &:disabled {
            color: #5E554A;
            border: 1px solid #968A79;
            cursor: not-allowed;
            pointer-events: none;
        }
    }

    & .button-login-info {
        display: flex;
        width: max-content;
        font-size: 12px;
        font-weight: bold;
        color: #2A2623;
        background-color: #E4E1DC;
        padding: 2px 4px;
        border-radius: 3px;
        transition: all 0.2s ease-in-out;
    }

    & .button-login-content {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
}

checkbw-footer {
    grid-area: footer;
    background-color: #2A2623;
    height: 80px;
    display: flex;
    justify-content: center;
    padding-inline: 40px;
    position: relative;
    padding-block: 2rem;

    & .footer-links {
        display: flex;
        align-items: center;
        gap: 1em;
    }

    & a {
        color: white;
        text-decoration: none;
        font-size: 14px;
    }

    & .checkbw-footer-logo {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 1360px) {
    .hero {
        flex-direction: column;
        gap: 40px;
        justify-content: center;
        align-items: flex-start;
        padding: 40px 60px;
        height: auto;

        & .hero-image-human {
            left: 475px;
            bottom: 0;
            width: 155px;
            height: auto;
        }

        & .hero-image-cloud {
            width: 190px;
            height: auto;
        }
    }

    checkbw-footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        gap: 28px;
        padding-block: 20px;

        & .checkbw-footer-logo {
            position: static;
            transform: unset;
        }
    }
}

.main-grid {
    display: grid;
    grid-template-areas:
    'heading heading'
    'left right';
    gap: 16px;
    margin-inline: clamp(16px, 5vw, 15%);
    margin-block: 0;
}

.heading {
    grid-area: heading;
    text-align: center;
}

.left {
    grid-area: left;
    text-align: center;
    display: flex;
}

.right {
    grid-area: right;
    text-align: center;
}

/* mobile ready main-grid */
@media (max-width: 1280px) {
    .main-grid {
        grid-template-areas:
        'heading'
        'left right'
        'footer';
        margin: 0;

        & ul {
            padding: 0;
        }
    }

    .logo {
        height: 60px;
    }

    .left, .right {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-areas:
        'heading'
        'left'
        'right'
        'footer';
        margin: 0;

        & ul {
            padding: 0;
        }
    }
}