/* =========================================================
   LOKALE SCHRIFT
   ========================================================= */

@font-face {
    font-family: "Outfit";

    src:
        url("../fonts/Outfit-VariableFont_wght.ttf")
        format("truetype");

    font-style: normal;
    font-weight: 100 900;

    font-display: swap;
}


/* =========================================================
   VARIABLEN
   ========================================================= */

:root {
    --color-primary: #003da5;
    --color-text: #575757;

    --color-background: #ffffff;

    --color-contact-background: #f2f5fa;

    --color-border: #d7deea;

    --site-width: 900px;

    --focus-outline: 3px solid #003da5;
}


/* =========================================================
   RESET / BASIS
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;

    color: var(--color-text);
    background: var(--color-background);

    font-family:
        "Outfit",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;
}


img {
    display: block;

    max-width: 100%;
    height: auto;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
}


address {
    font-style: normal;
}


a {
    color: inherit;
}


:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 4px;
}


/* =========================================================
   SKIP LINK
   ========================================================= */

.skip-link {
    position: fixed;
    z-index: 9999;

    top: 0.75rem;
    left: 0.75rem;

    padding: 0.7rem 1rem;

    color: #ffffff;
    background: var(--color-primary);

    font-weight: 600;

    text-decoration: none;

    border-radius: 3px;

    transform: translateY(-200%);
}


.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   SEITENAUFBAU
   ========================================================= */

.page {
    width: 100%;
}


main {
    display: block;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 410px;

    padding:
        clamp(3rem, 7vh, 5.5rem)
        1.5rem
        clamp(3.2rem, 7vh, 5.5rem);

    background: #ffffff;
}


.hero__inner {
    width: min(100%, var(--site-width));

    margin-inline: auto;

    text-align: center;
}


.logo {
    width: 250px;

    margin:
        0
        auto
        4rem;
}


.eyebrow {
    margin: 0 0 1rem;

    color: var(--color-primary);

    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.01em;

    text-transform: uppercase;
}


h1,
h2,
h3,
h4,
h5 {
    margin-top: 0;
}


h1 {
    margin-bottom: 0.9rem;

    color: var(--color-text);

    font-size: 2.35rem;
    font-weight: 400;
    line-height: 1.18;
}


.hero__text {
    max-width: 630px;

    margin-inline: auto;

    font-size: 1rem;
    line-height: 1.58;
}


.hero__text p {
    margin: 0;
}


.hero__text p + p {
    margin-top: 0.1rem;
}


/* =========================================================
   KONTAKT
   ========================================================= */

.contact {
    display: flex;

    align-items: center;

    min-height: 285px;

    padding:
        clamp(3.2rem, 6vw, 4.5rem)
        1.5rem;

    background: var(--color-contact-background);
}


.contact__inner {
    display: grid;

    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);

    gap: 5.25rem;

    width: min(100%, var(--site-width));

    margin-inline: auto;
}


.contact__copy .eyebrow {
    margin-bottom: 1rem;
}


.contact__copy h2 {
    max-width: 470px;

    margin-bottom: 1.3rem;

    color: var(--color-text);

    font-size: 2.65rem;
    font-weight: 300;
    line-height: 1.08;
}


.contact__copy p:last-child {
    max-width: 340px;

    margin: 0;

    font-size: 1rem;
    line-height: 1.5;
}


/* =========================================================
   KONTAKTLISTE
   ========================================================= */

.contact-list {
    display: grid;

    align-content: center;

    gap: 0.85rem;

    margin: 0;
    padding: 0;

    list-style: none;
}


.contact-item {
    display: grid;

    grid-template-columns:
        36px
        minmax(0, 1fr);

    align-items: center;

    gap: 1rem;

    min-height: 36px;
}


.contact-item a {
    width: fit-content;

    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}


.contact-item a:not(:hover):not(:focus-visible) {
    text-decoration: none;
}


/* =========================================================
   BLAUE ICON-FLÄCHEN
   ========================================================= */

.contact-icon {
    display: grid;

    place-items: center;

    width: 36px;
    height: 36px;

    background: var(--color-primary);
    border-radius: 50%;
}


/*
   Die SVG-Dateien werden als Masken verwendet.

   Vorteil:
   Die eigentliche Farbe im SVG spielt keine Rolle.
   Das Symbol erscheint immer weiß auf Reukauf-Blau.
*/

.contact-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #ffffff;
}


.footer__bar {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 0.75rem 2.1rem;

    min-height: 58px;

    padding: 1rem 1.5rem;
}


.footer__bar p {
    margin: 0;
}


.legal-nav {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 1.5rem;
}


.legal-trigger {
    display: inline-block;

    padding: 0.3rem 0.1rem;

    color: var(--color-text);
    background: transparent;

    cursor: pointer;

    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.22em;

    transition:
        color 160ms ease,
        text-decoration-color 160ms ease;
}


.legal-trigger:hover,
.legal-trigger[aria-expanded="true"] {
    color: var(--color-primary);

    text-decoration-color: currentColor;
}


/* =========================================================
   AUFKLAPPBARE RECHTSTEXTE
   ========================================================= */

.legal-panel {
    border-top: 1px solid var(--color-border);

    background: #ffffff;
}


.legal-panel[hidden] {
    display: none;
}


.legal-panel:not([hidden]) {
    animation: legal-open 220ms ease-out;
}


@keyframes legal-open {

    from {
        opacity: 0;

        transform: translateY(-0.35rem);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


.legal-panel__inner {
    width: min(
        calc(100% - 3rem),
        var(--site-width)
    );

    margin-inline: auto;

    padding:
        clamp(2.8rem, 6vw, 5rem)
        0
        clamp(3.5rem, 7vw, 6rem);
}


.legal-panel__head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 2rem;

    margin-bottom: 2.3rem;
}


.legal-panel__head h2 {
    margin: 0;

    color: var(--color-primary);

    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 400;
    line-height: 1.15;
}


.legal-close {
    flex: 0 0 auto;

    padding: 0.55rem 0.75rem;

    color: var(--color-text);
    background: transparent;

    cursor: pointer;

    text-decoration: underline;
    text-underline-offset: 0.2em;
}


.legal-close:hover {
    color: var(--color-primary);
}


/* =========================================================
   RECHTSTEXTE
   ========================================================= */

.legal-content {
    max-width: 760px;

    font-size: 1rem;
    line-height: 1.7;

    hyphens: auto;

    overflow-wrap: break-word;
}


.legal-content h3 {
    margin:
        clamp(2.5rem, 6vw, 3.8rem)
        0
        1rem;

    color: var(--color-primary);

    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.25;
}


.legal-content h4 {
    margin: 2rem 0 0.7rem;

    color: var(--color-text);

    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
}


.legal-content h5 {
    margin: 1.6rem 0 0.5rem;

    color: var(--color-text);

    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}


.legal-content p {
    margin: 0 0 1rem;
}


.legal-content ul {
    margin: 0.7rem 0 1.4rem;

    padding-left: 1.5rem;
}


.legal-content li + li {
    margin-top: 0.55rem;
}


.legal-content a {
    color: var(--color-primary);

    overflow-wrap: anywhere;

    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 720px) {

    .hero {
        min-height: auto;

        padding:
            3.4rem
            1.4rem
            4rem;
    }


    .logo {
        width: 210px;

        margin-bottom: 2.8rem;
    }


    .contact {
        min-height: auto;

        padding:
            3.8rem
            1.4rem
            4rem;
    }


    .contact__inner {
        grid-template-columns: 1fr;

        gap: 2.8rem;
    }


    .contact__copy h2,
    .contact__copy p:last-child {
        max-width: none;
    }


    .contact-list {
        gap: 0.95rem;
    }


    .footer__bar {
        flex-direction: column;

        gap: 0.55rem;

        padding-block: 1.25rem;
    }

}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 430px) {

    .hero,
    .contact {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }


    .contact__copy h2 {
        font-size: 2rem;
    }


    .contact-item {
        grid-template-columns:
            34px
            minmax(0, 1fr);

        gap: 0.85rem;
    }


    .contact-icon {
        width: 34px;
        height: 34px;
    }


    .contact-icon img {
        width: 18px;
        height: 18px;
    }


    .contact-item a,
    .contact-item span {
        overflow-wrap: anywhere;
    }


    .legal-panel__inner {
        width: calc(100% - 2.3rem);
    }


    .legal-panel__head {
        display: block;
    }


    .legal-close {
        margin-top: 1.25rem;

        padding-left: 0;
    }

}


/* =========================================================
   REDUZIERTE BEWEGUNG
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.001ms !important;
    }

}
