* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: #080b10;
    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================
   FOKUS / ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #4a90f5;
    outline-offset: 4px;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(8, 11, 16, 0.96);

    border-bottom: 1px solid #252d38;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    text-decoration: none;
    color: #ffffff;

    font-size: 1.2rem;
    font-weight: 700;

    line-height: 1.2;
}

.logo span {
    display: block;

    margin-top: 3px;

    color: #2f80ed;

    font-size: 0.7rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.15em;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: #d8dee7;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;

    transition: color 0.2s ease;
}

nav a:hover {
    color: #2f80ed;
}


/* =========================================
   HERO
========================================= */

.hero {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(47, 128, 237, 0.12),
            transparent 35%
        ),
        #080b10;

    padding: 95px 0;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    gap: 70px;

    align-items: center;
}

.kicker {
    margin: 0 0 12px;

    color: #2f80ed;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;

    line-height: 1.2;

    color: #ffffff;
}

h1 {
    margin-bottom: 25px;

    max-width: 800px;

    font-size:
        clamp(
            2.8rem,
            6vw,
            5rem
        );

    letter-spacing: -0.03em;
}

h2 {
    margin-bottom: 22px;

    font-size:
        clamp(
            2rem,
            4vw,
            3.2rem
        );

    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.3rem;
}

.intro {
    max-width: 650px;

    margin: 0;

    color: #aab2bd;

    font-size: 1.15rem;
}


/* =========================================
   BUTTONS
========================================= */

.buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;

    padding: 13px 22px;

    border-radius: 7px;

    text-decoration: none;

    font-weight: 700;
    line-height: 1.4;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #2f80ed;
    color: #ffffff;

    box-shadow:
        0 8px 25px rgba(47, 128, 237, 0.2);
}

.button-primary:hover {
    background: #4a90f5;

    box-shadow:
        0 10px 30px rgba(47, 128, 237, 0.28);
}

.button-secondary {
    background: transparent;

    color: #ffffff;

    border: 1px solid #394453;
}

.button-secondary:hover {
    background: #11161d;

    border-color: #2f80ed;
}


/* =========================================
   HERO-BILD
========================================= */

/*
   Das Bild behält sein eigenes Seitenverhältnis.
   Dadurch wird nichts vom Kopf oder anderen
   Bildbereichen abgeschnitten.
*/

.hero-image {
    width: 100%;

    overflow: hidden;

    border-radius: 18px;
    border: 1px solid #252d38;

    background: #11161d;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;
}


/* =========================================
   SEKTIONEN
========================================= */

.section {
    padding: 90px 0;

    background: #080b10;
}

.section-light {
    background: #0e131a;
}

.two-columns {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 80px;

    align-items: start;
}

.text {
    color: #aab2bd;

    font-size: 1.05rem;
}

address {
    font-style: normal;
}


/* =========================================
   LEISTUNGEN
========================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 42px;
}

.card {
    background:
        linear-gradient(
            145deg,
            #121820,
            #0f141b
        );

    border: 1px solid #252d38;

    border-radius: 14px;

    padding: 32px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);

    border-color: #2f80ed;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-number {
    margin-bottom: 20px;

    color: #2f80ed;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.1em;
}

.card h3 {
    margin: 0 0 15px;
}

.card p {
    margin: 0;

    color: #9da6b2;
}


/* =========================================
   TERMIN
========================================= */

.appointment {
    background:
        linear-gradient(
            135deg,
            #0e131a,
            #080b10
        );
}

.appointment-box {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 50px;

    align-items: center;
}

.contact-links {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.contact-links a {
    color: #ffffff;

    text-decoration: none;

    font-weight: 700;

    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: #2f80ed;
}


/* =========================================
   KONTAKT
========================================= */

.contact-section {
    align-items: start;
}

.contact-card {
    background:
        linear-gradient(
            145deg,
            #121820,
            #0f141b
        );

    border: 1px solid #252d38;

    border-radius: 14px;

    padding: 32px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25);
}

.contact-card p {
    margin-top: 0;

    margin-bottom: 25px;

    color: #d8dee7;
}

.contact-card strong {
    color: #ffffff;
}

.contact-card a:not(.button) {
    color: #2f80ed;

    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}

.contact-card a:not(.button):hover {
    color: #4a90f5;
}


/* =========================================
   E-MAIL BUTTON
========================================= */

.contact-card .button {
    display: flex;

    width: 100%;
    max-width: 100%;

    min-height: 48px;

    align-items: center;
    justify-content: center;

    text-align: center;

    margin: 0;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #05070a;

    color: #8f99a6;

    padding: 28px 0;

    border-top: 1px solid #252d38;

    font-size: 0.9rem;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}

.footer a {
    color: #ffffff;

    text-decoration: none;
}

.footer a:hover {
    color: #2f80ed;

    text-decoration: underline;
}


/* =========================================
   TEXT-AUSWAHL
========================================= */

::selection {
    background: #2f80ed;

    color: #ffffff;
}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #080b10;
}

::-webkit-scrollbar-thumb {
    background: #252d38;

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2f80ed;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hero-image {
        max-width: 700px;
    }

    .two-columns {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .cards {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================
   SMARTPHONE
========================================= */

@media (max-width: 800px) {

    .container {
        width: calc(100% - 28px);
        max-width: 1120px;
    }


    /* -----------------------------------------
       HEADER
    ----------------------------------------- */

.nav {
    min-height: auto;

    padding: 16px 0;

    align-items: flex-start;

    flex-direction: column;

    gap: 15px;
}

nav {
    width: 100%;

    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 8px 20px;

    margin-left: 0;
}

nav a {
    font-size: 0.9rem;
}


    /* -----------------------------------------
       HERO
    ----------------------------------------- */

    .hero {
        padding: 60px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    /*
       WICHTIG:
       Kein aspect-ratio und kein cover auf
       Smartphones.
    */

    .hero-image {
        order: -1;

        width: 100%;
        height: auto;

        max-width: none;

        aspect-ratio: auto;

        overflow: hidden;

        border-radius: 14px;
    }

    .hero-image img {
        display: block;

        width: 100%;
        height: auto;

        max-width: 100%;

        object-fit: contain;
        object-position: center;
    }


    /* -----------------------------------------
       ÜBERSCHRIFTEN
    ----------------------------------------- */

    h1 {
        font-size:
            clamp(
                2.4rem,
                12vw,
                4rem
            );
    }


    /* -----------------------------------------
       HERO BUTTONS
    ----------------------------------------- */

    .buttons {
        display: flex;

        flex-direction: column;

        width: 100%;

        gap: 12px;
    }

    .buttons .button {
        display: flex;

        width: 100%;
        max-width: 100%;

        min-height: 48px;

        align-items: center;
        justify-content: center;

        text-align: center;
    }


    /* -----------------------------------------
       SECTIONS
    ----------------------------------------- */

    .section {
        padding: 65px 0;
    }

    .two-columns {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    /* -----------------------------------------
       LEISTUNGEN
    ----------------------------------------- */

    .cards {
        grid-template-columns: 1fr;

        margin-top: 30px;
    }


    /* -----------------------------------------
       TERMIN
    ----------------------------------------- */

    .appointment-box {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    /* -----------------------------------------
       KONTAKT
    ----------------------------------------- */

    .contact-card {
        width: 100%;
        max-width: 100%;
    }

    .contact-card .button {
        display: flex;

        width: 100%;
        max-width: 100%;

        min-height: 48px;

        margin: 0;
    }


    /* -----------------------------------------
       FOOTER
    ----------------------------------------- */

    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }
}


/* =========================================
   KLEINE SMARTPHONES
========================================= */

@media (max-width: 420px) {

    .container {
        width: calc(100% - 24px);
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 0.84rem;
    }

    h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-image {
        width: 100%;

        aspect-ratio: auto;

        border-radius: 12px;
    }

    .card,
    .contact-card {
        padding: 25px;
    }

    .button {
        min-height: 48px;

        padding: 13px 18px;
    }
}


/* =========================================
   REDUZIERTE BEWEGUNG
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}