/* ==============================
   GRUNDLAGEN
   ============================== */

:root {
    --background: #ffffff;
    --background-alt: #f5f6f8;
    --text: #17191c;
    --text-light: #666b73;
    --border: #e1e3e6;
    --accent: #6c63ff;

    --max-width: 1100px;
    --radius: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}


/* ==============================
   HEADER
   ============================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: color-mix(
        in srgb,
        var(--background) 90%,
        transparent
    );

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.header .container {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--card);
}

.logo img {
    width: 110px;
    height: auto;
    display: block;
}

.navigation {
    display: flex;
    gap: 28px;
}

.navigation a {
    color: var(--text-light);
    font-size: 0.95rem;

    transition: color 0.2s ease;
}

.navigation a:hover {
    color: var(--text);
}


/* ==============================
   HERO
   ============================== */

.hero {
    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 750px;
}

.eyebrow {
    margin-bottom: 15px;

    color: var(--accent);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-bottom: 35px;
}

.hero-text {
    max-width: 600px;

    color: var(--text-light);

    font-size: 1.2rem;
    line-height: 1.7;

    margin-bottom: 35px;
}


/* ==============================
   BUTTON
   ============================== */

.button {
    display: inline-block;

    padding: 13px 22px;

    background: var(--text);
    color: var(--background);

    border-radius: 999px;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}


/* ==============================
   SECTIONS
   ============================== */

.section {
    padding: 120px 0;
}

.section-alt {
    background: var(--background-alt);
}

.section h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;

    margin-bottom: 55px;
}


/* ==============================
   LEISTUNGEN
   ============================== */

.services {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.service {
    padding: 35px;

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

    background: var(--background);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.service:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-number {
    display: block;

    margin-bottom: 45px;

    color: var(--accent);

    font-size: 0.85rem;
    font-weight: 700;
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service p {
    color: var(--text-light);
}


/* ==============================
   TEXT
   ============================== */

.text-content {
    max-width: 700px;

    font-size: 1.15rem;
}

.text-content p + p {
    margin-top: 20px;
}


/* ==============================
   KONTAKT
   ============================== */

.contact-text {
    color: var(--text-light);

    font-size: 1.15rem;

    margin-bottom: 30px;
}


/* ==============================
   FOOTER
   ============================== */

.footer {
    padding: 30px 0;

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

    color: var(--text-light);

    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer a {
    margin-left: 20px;
}

.footer a:hover {
    color: var(--text);
}


/* ==============================
   DARKMODE
   ============================== */

@media (prefers-color-scheme: dark) {

    :root {
        --background: #111315;
        --background-alt: #191c20;
        --text: #f2f3f5;
        --text-light: #9da3ad;
        --border: #2b2f35;
        --accent: #8b84ff;
    }
    .logo {
        filter: invert(1);
    }
}


/* ==============================
   MOBILE
   ============================== */

@media (max-width: 750px) {

    .container {
        width: min(100% - 30px, var(--max-width));
    }

    .header .container {
        min-height: 65px;
    }

    .logo img {
        width: 125px;
    }

    .navigation {
        gap: 14px;
    }

    .navigation a {
        font-size: 0.8rem;
    }

    .hero {
        min-height: calc(100vh - 65px);
    }

    .hero h1 {
        margin-bottom: 25px;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .section {
        padding: 80px 0;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .service {
        padding: 25px;
    }

    .service-number {
        margin-bottom: 25px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer a {
        margin-left: 0;
        margin-right: 20px;
    }

}

/* =========================================
   Rechtliche Seiten
   ========================================= */

.legal-page {
    padding: 70px 0 100px;
}

.legal-page .container {
    max-width: 850px;
}

.legal-page h1 {
    margin-bottom: 40px;
}

.legal-page h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-page h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-page p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-page ul,
.legal-page ol {
    margin: 0 0 20px 25px;
    line-height: 1.7;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page a:hover {
    opacity: 0.7;
}
