:root {
    --bg: #010101df;
    --accent: #0b3d91;
    --muted: #6b6b6b;
    --company-color: rgb(130, 182, 237);
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    background: var(--bg);
    color: white;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.brand h1 {
    margin: 0;
    font-size: 28px;
}
.brand .tag {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.9;
}
.hero {
    padding: 60px 0;
    text-align: center;
}
.hero-title {
    font-size: 44px;
    margin: 0 0 12px;
}
.hero-sub {
    color: var(--muted);
    margin: 0 0 36px;
}
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center; /* center items so the last one sits in the middle */
    align-items: center;
    margin-top: 50px;
}
.logo-grid > a,
.logo-grid > img {
    flex: 0 0 220px; /* four items fit per row at desktop */
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-grid > a {
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(20, 20, 20, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
    min-height: 160px;
}
.logo-grid a:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.12);
}

/* Ensure logos inside the grid are the same visible size and not cropped */
.logo-grid img.logo {
    display: block;
    max-width: 100%;
    height: 120px; /* force equal visible height */
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

/* Standalone logo centering inside the flex container */
.logo-grid > img.logo {
    flex: 0 0 220px; /* same basis as links */
    margin: 0 auto;
    max-width: 320px;
    display: block;
}

/* Generic logo rule (keeps existing behavior for logos outside the grid) */
.logo {
    max-width: 50%;
    height: auto;
}

.main-logo {
    border-radius: 15px;
}

.site-footer {
    padding: 26px 0;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: transparent;
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 28px;
    }
    .logo-grid {
        gap: 12px;
    }
    .logo-grid a {
        min-height: 120px;
        padding: 18px;
    }
    .logo-grid img.logo {
        height: 80px;
        max-height: 80px;
    }
}

.AccordionBaseElement {
    padding: 100px;

    @media (max-width: 1400px) {
        padding: 50px;
    }

    @media (max-width: 800px) {
        padding: 30px;
    }
}

.AccordionBaseElement-all {
    padding-top: 20px;
}

.AccordionBaseElement-one {
    position: relative;
    margin: 20px 0;

    @media (max-width: 600px) {
        margin: 10px 0;
    }

    .AccordionBaseElement-question {
        width: 100%;
        border-radius: 6px;
        padding: 20px 90px 0 30px;
        font-weight: bold;
        font-size: 1.2rem;
        cursor: pointer;
        transition: 0.3s;
        z-index: 1;
        position: relative;

        @media (max-width: 1000px) {
            font-size: 1rem;
        }

        @media (max-width: 800px) {
            padding: 20px 70px 0 20px;
            font-size: 0.9rem;
        }

        /* stylelint-disable-next-line plugin/selector-bem-pattern */
        &::before {
            content: "";
            top: 0;
            display: block;
            position: absolute;
            right: 0;
            z-index: 2;
            width: 50px;
            height: 50px;
            background-color: var(--company-color);

            @media (max-width: 600px) {
                width: 30px;
                height: 30px;
            }
        }

        /* stylelint-disable-next-line plugin/selector-bem-pattern */
        img {
            position: absolute;
            right: 20px;
            z-index: 3;
            transition: 0.3s;
            top: 17px;
            transform: rotate(-90deg);

            @media (max-width: 600px) {
                right: 10px;
                top: 7px;
            }
        }

        /* stylelint-disable-next-line plugin/selector-bem-pattern */
        &.is-active {
            .AccordionBaseElement-arrow {
                transform: rotate(90deg);
            }
        }
    }

    .AccordionBaseElement-active {
        height: 0;
        opacity: 0;
        overflow: hidden;
        transition: 0.3s;
        padding: 0 30px 20px;

        /* stylelint-disable-next-line plugin/selector-bem-pattern */
        &.is-active {
            height: auto;
            overflow: auto;
            opacity: 1;

            @media (max-width: 600px) {
                padding: 10px 20px;
            }

            /* stylelint-disable-next-line plugin/selector-bem-pattern */
            &::before {
                width: 100%;
                height: 100%;
                content: "";
                z-index: 0;
                top: 0;
                left: 0;
                position: absolute;
                border: 2px solid var(--company-color);
            }
        }
    }
}

.site-impressum,
.site-datenschutz {
    .main-content {
        text-align: center;
        max-width: 900px;
        margin: 50px auto;

        h1 {
            margin-bottom: 70px;
        }
    }

    .adress-field {
        font-size: 1.5rem;
        color: var(--company-color);
    }
}

a {
    color: white;
    transition: all 0.4s ease-in-out;
}

a:hover {
    color: var(--company-color);
}
