:root {
    color-scheme: light;

    --ink: #151b24;
    --muted: #6f7680;
    --soft: #f5f4f1;
    --border: rgba(21, 27, 36, .28);
    --button: #171e28;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    background: #f4f3f0;
}

body {
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    color: var(--ink);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}


/* ------------------------------------------------ */
/* BACKGROUND                                       */
/* ------------------------------------------------ */

.site-bg {
    position: fixed;
    z-index: 0;
    inset: 0;

    background:
        url("/assets/office-background.jpg?v=6")
        center right / cover
        no-repeat;

    transform: scale(1.015);
    opacity: 0;

    animation:
        background-in
        1.35s
        cubic-bezier(.2,.7,.2,1)
        forwards;
}

.site-bg::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(250,250,248,.995) 0%,
            rgba(250,250,248,.98) 18%,
            rgba(250,250,248,.91) 31%,
            rgba(250,250,248,.70) 43%,
            rgba(250,250,248,.25) 58%,
            rgba(250,250,248,.04) 76%,
            rgba(250,250,248,0) 100%
        );
}


/* Legal-Seiten etwas ruhiger */

.legal-page .site-bg::after {
    background:
        linear-gradient(
            90deg,
            rgba(250,250,248,.995) 0%,
            rgba(250,250,248,.99) 45%,
            rgba(250,250,248,.90) 68%,
            rgba(250,250,248,.68) 100%
        );
}


/* ------------------------------------------------ */
/* PAGE                                             */
/* ------------------------------------------------ */

.page {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 100svh;

    padding:
        42px
        clamp(36px, 3.6vw, 72px)
        34px;

    display: flex;
    flex-direction: column;
}


/* ------------------------------------------------ */
/* HEADER                                           */
/* ------------------------------------------------ */

header {
    min-height: 38px;

    display: flex;
    align-items: center;

    opacity: 0;
    transform: translateY(-10px);

    animation:
        header-in
        .7s
        .15s
        ease
        forwards;
}

.top-nav {
    display: flex;
    align-items: center;

    gap: 46px;
}

.top-nav a {
    color: #3e4650;

    font-size: 16px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color .2s ease,
        opacity .2s ease;
}

.top-nav a:first-child {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.top-nav a:hover {
    color: #000;
}


/* ------------------------------------------------ */
/* HERO                                             */
/* ------------------------------------------------ */

.home {
    flex: 1;

    display: flex;
    align-items: center;

    padding:
        clamp(60px, 7vh, 100px)
        0
        clamp(60px, 8vh, 105px);
}

.hero {
    width: min(760px, 54vw);

    opacity: 0;
    transform: translateY(20px);

    animation:
        hero-in
        .9s
        .22s
        cubic-bezier(.16,1,.3,1)
        forwards;
}

.eyebrow {
    margin-bottom: 28px;

    color: #767d86;

    font-size:
        clamp(14px, 1.1vw, 18px);

    letter-spacing: .035em;
}

h1 {
    margin: 0;

    color: #151b24;

    font-size:
        clamp(68px, 7.2vw, 118px);

    line-height: .89;

    font-weight: 730;
    letter-spacing: -.068em;
}

h1 span {
    display: block;
}

.lead {
    margin:
        27px
        0
        0;

    color: var(--muted);

    font-size:
        clamp(17px, 1.45vw, 22px);

    line-height: 1.45;

    letter-spacing: -.015em;
}


/* ------------------------------------------------ */
/* BUTTONS                                          */
/* ------------------------------------------------ */

.actions {
    margin-top: 42px;

    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    max-width: 690px;
}

.button {
    min-height: 62px;

    padding:
        0
        25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    border-radius: 9px;

    font-size: 17px;
    font-weight: 550;

    text-decoration: none;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease,
        border-color .22s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    min-width: 164px;

    color: #fff;
    background: var(--button);

    border:
        1px solid
        var(--button);

    box-shadow:
        0 8px 24px
        rgba(18,24,33,.12);
}

.button-primary:hover {
    background: #080d14;

    box-shadow:
        0 13px 30px
        rgba(18,24,33,.18);
}

.button-light {
    color: #171d25;

    background:
        rgba(255,255,255,.58);

    border:
        1px solid
        rgba(21,27,36,.38);

    backdrop-filter: blur(5px);
}

.button-light:hover {
    background:
        rgba(255,255,255,.82);

    border-color:
        rgba(21,27,36,.58);
}

.button-arrow {
    margin-left: 10px;

    font-size: 22px;
    font-weight: 300;

    transition:
        transform .22s ease;
}

.button:hover .button-arrow {
    transform: translateX(3px);
}

.icon {
    width: 21px;
    height: 21px;

    flex: 0 0 auto;
}


/* ------------------------------------------------ */
/* FOOTER                                           */
/* ------------------------------------------------ */

footer {
    min-height: 74px;

    padding-top: 26px;

    border-top:
        1px solid
        rgba(21,27,36,.24);

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    color: #59616b;

    font-size: 13px;

    opacity: 0;

    animation:
        fade-in
        .7s
        .8s
        ease
        forwards;
}

.footer-links {
    display: flex;
    gap: 31px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;

    transition:
        color .2s ease;
}

.footer-links a:hover {
    color: #111;
}


/* ------------------------------------------------ */
/* LEGAL PAGES                                      */
/* ------------------------------------------------ */

.legal-main {
    flex: 1;

    width: min(790px, 100%);

    padding:
        80px
        0
        105px;
}

.back {
    display: inline-block;

    margin-bottom: 48px;

    color: #68717c;

    font-size: 14px;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.back:hover {
    color: #111;
    transform: translateX(-3px);
}

.legal-kicker {
    margin-bottom: 15px;

    color: #727b86;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.legal-main > h1 {
    margin:
        0
        0
        58px;

    font-size:
        clamp(54px, 7vw, 92px);

    line-height: .95;
}


/*
   Keine Trennstriche mehr.
   Die Inhalte werden nur über Abstand,
   Typografie und Ausrichtung getrennt.
*/

.legal-list {
    display: grid;

    gap: 38px;

    padding:
        34px
        36px;

    background:
        rgba(255,255,255,.47);

    border:
        1px solid
        rgba(25,31,40,.10);

    border-radius: 18px;

    backdrop-filter: blur(9px);

    box-shadow:
        0 16px 45px
        rgba(38,43,50,.035);
}

.legal-item {
    display: grid;

    grid-template-columns:
        155px
        minmax(0,1fr);

    gap: 26px;
}

.legal-item h2 {
    margin: 3px 0 0;

    color: #7a818a;

    font-size: 11px;
    font-weight: 650;

    letter-spacing: .10em;

    text-transform: uppercase;
}

.legal-item p {
    margin:
        0
        0
        12px;

    color: #4c545e;

    font-size: 15px;

    line-height: 1.72;
}

.legal-item p:last-child {
    margin-bottom: 0;
}

.legal-item a {
    color: #151b24;

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact-number {
    white-space: nowrap;
}


/* ------------------------------------------------ */
/* ANIMATION                                        */
/* ------------------------------------------------ */

@keyframes background-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes header-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}


/* ------------------------------------------------ */
/* TABLET                                           */
/* ------------------------------------------------ */

@media (max-width: 1000px) {
    .site-bg::after {
        background:
            linear-gradient(
                90deg,
                rgba(250,250,248,.985) 0%,
                rgba(250,250,248,.94) 43%,
                rgba(250,250,248,.59) 72%,
                rgba(250,250,248,.18) 100%
            );
    }

    .hero {
        width: min(700px, 78vw);
    }
}


/* ------------------------------------------------ */
/* MOBILE                                           */
/* ------------------------------------------------ */

@media (max-width: 700px) {

    .page {
        padding:
            26px
            22px
            24px;
    }

    .site-bg {
        background-position:
            63% center;
    }

    .site-bg::after {
        background:
            linear-gradient(
                180deg,
                rgba(250,250,248,.93) 0%,
                rgba(250,250,248,.91) 62%,
                rgba(250,250,248,.73) 100%
            );
    }

    .top-nav {
        gap: 22px;
    }

    .top-nav a {
        font-size: 14px;
    }

    .home {
        align-items: flex-start;

        padding:
            105px
            0
            70px;
    }

    .hero {
        width: 100%;
    }

    .eyebrow {
        margin-bottom: 20px;

        font-size: 13px;
    }

    h1 {
        font-size:
            clamp(58px, 18vw, 87px);
    }

    .lead {
        max-width: 330px;

        margin-top: 22px;

        font-size: 17px;
    }

    .actions {
        width: 100%;

        margin-top: 34px;

        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    footer {
        min-height: 110px;

        align-items: flex-start;
        justify-content: center;
        flex-direction: column;

        gap: 16px;
    }

    .footer-links {
        gap: 22px;
    }

    .legal-main {
        padding-top: 55px;
    }

    .legal-list {
        padding:
            27px
            24px;

        gap: 32px;
    }

    .legal-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration:
            .001ms !important;

        animation-delay:
            0ms !important;

        transition-duration:
            .001ms !important;
    }

    .site-bg,
    header,
    .hero,
    footer {
        opacity: 1;
        transform: none;
    }
}

/* === OFFICE V7 OVERRIDES === */


/*
 * Neues Hintergrundbild:
 * heller moderner Büroraum.
 */

.site-bg {
    background-image:
        url("/assets/office-background.jpg?v=7");

    background-position:
        center center;

    background-size:
        cover;
}


/*
 * Links ausreichend Weiß für den Text.
 *
 * Zusätzlich unten ein eigener heller Verlauf,
 * damit Impressum / Datenschutz unabhängig vom
 * Motiv immer lesbar bleiben.
 */

.site-bg::after {
    background:

        linear-gradient(
            0deg,
            rgba(250,250,248,.97) 0%,
            rgba(250,250,248,.91) 8%,
            rgba(250,250,248,.60) 15%,
            rgba(250,250,248,0) 28%
        ),

        linear-gradient(
            90deg,
            rgba(250,250,248,.995) 0%,
            rgba(250,250,248,.985) 17%,
            rgba(250,250,248,.93) 29%,
            rgba(250,250,248,.72) 42%,
            rgba(250,250,248,.31) 56%,
            rgba(250,250,248,.07) 72%,
            rgba(250,250,248,0) 100%
        );
}


/*
 * Footer etwas kräftiger.
 * Keine Box / Karte – nur besserer Kontrast.
 */

footer {
    color: #39414b;
}

.footer-links a {
    color: #39414b;
    font-weight: 500;
}

.footer-links a:hover {
    color: #080c11;
}


/*
 * Legal-Seiten:
 * Office-Bild bleibt sichtbar,
 * aber hinter dem Inhalt deutlich ruhiger.
 */

.legal-page .site-bg::after {
    background:

        linear-gradient(
            0deg,
            rgba(250,250,248,.97) 0%,
            rgba(250,250,248,.90) 9%,
            rgba(250,250,248,0) 27%
        ),

        linear-gradient(
            90deg,
            rgba(250,250,248,.995) 0%,
            rgba(250,250,248,.985) 43%,
            rgba(250,250,248,.89) 66%,
            rgba(250,250,248,.64) 100%
        );
}


/* Tablet */

@media (max-width: 1000px) {

    .site-bg {
        background-position:
            55% center;
    }

    .site-bg::after {
        background:

            linear-gradient(
                0deg,
                rgba(250,250,248,.97) 0%,
                rgba(250,250,248,.88) 10%,
                rgba(250,250,248,0) 29%
            ),

            linear-gradient(
                90deg,
                rgba(250,250,248,.99) 0%,
                rgba(250,250,248,.95) 39%,
                rgba(250,250,248,.62) 70%,
                rgba(250,250,248,.18) 100%
            );
    }
}


/* Smartphone */

@media (max-width: 700px) {

    .site-bg {
        background-position:
            58% center;
    }

    .site-bg::after {
        background:

            linear-gradient(
                0deg,
                rgba(250,250,248,.97) 0%,
                rgba(250,250,248,.87) 14%,
                rgba(250,250,248,0) 34%
            ),

            linear-gradient(
                180deg,
                rgba(250,250,248,.94) 0%,
                rgba(250,250,248,.91) 60%,
                rgba(250,250,248,.70) 100%
            );
    }
}
