/* ==========================================================
   01. DESIGN-TOKENS
   Zentrale Farben, Breiten und wiederverwendbare Werte
   ========================================================== */
:root {
    --color-navy: #041b38;
    --color-blue: #3cbfef;
    --color-steel: #678eb0;
    --color-text: #10243d;
    --color-muted: #657387;
    --color-background-soft: #f4f7fa;
    --color-border: #dbe3ea;
    --color-white: #ffffff;

    --content-width: 1360px;
    --header-height: 122px;
    --section-spacing: 112px;
}


/* ==========================================================
   02. BASIS UND RESET
   ========================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-white);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.wrap {
    width: min(var(--content-width), calc(100% - 96px));
    margin: 0 auto;
}

.section {
    padding: var(--section-spacing) 0;
}

.eyebrow {
    margin: 0;
    color: var(--color-steel);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* ==========================================================
   03. HEADER UND NAVIGATION
   ========================================================== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    height: var(--header-height);
    background: var(--color-white);
    border-bottom: 1px solid rgba(4, 27, 56, 0.06);
    box-shadow: 0 2px 10px rgba(4, 27, 56, 0.025);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    width: 310px;
    height: 100%;
    padding: 12px 0 14px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.92rem;
    font-weight: 600;
}

.links > a:not(.portal-btn):hover {
    color: var(--color-blue);
}

.portal-btn {
    padding: 13px 19px;
    color: var(--color-white);
    background: var(--color-navy);
    transition: background 0.25s, color 0.25s, transform 0.25s;
}
.portal-btn:hover,
.portal-btn:focus-visible {
    color: var(--color-navy);
    background: #3CBFEF;
    transform: translateY(-2px);
}

.menu {
    width: 44px;
    height: 44px;
    padding: 0;
    display: none;
    color: var(--color-navy);
    background: transparent;
    border: 0;
    font-size: 27px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
}


/* ==========================================================
   04. BUTTONS
   ========================================================== */
.btn {
    min-height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-weight: 650;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.btn-primary {
    color: var(--color-navy);
    background: var(--color-blue);
}

.btn-primary:hover {
    background: #69d0f5;
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
    color: var(--color-navy);
    background: var(--color-white);
}


/* ==========================================================
   05. HERO-BEREICH
   Hintergrundbild: assets/images/1.png
   ========================================================== */
.hero {
    position: relative;
    min-height: 790px;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--color-white);
    background: url("../images/1.png") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4, 27, 56, 0.98) 0%,
            rgba(4, 27, 56, 0.88) 43%,
            rgba(4, 27, 56, 0.34) 76%,
            rgba(4, 27, 56, 0.12) 100%
        ),
        linear-gradient(
            0deg,
            rgba(4, 27, 56, 0.24),
            transparent 45%
        );
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 82px 0;
}

.hero h1 {
    max-width: 900px;
    margin: 0 0 30px;
    font-size: clamp(3.5rem, 6.2vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--color-blue);
}

.hero p {
    max-width: 650px;
    margin: 0 0 36px;
    color: #e0e8ef;
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ==========================================================
   06. EINLEITUNG UND BEREICHSÜBERSCHRIFTEN
   ========================================================== */
.intro {
    text-align: center;
}

.intro .wrap {
    max-width: 890px;
}

.intro h2,
.section-head h2,
.about-copy h2,
.portal-copy h2,
.contact h2 {
    margin: 14px 0 24px;
    font-size: clamp(2.25rem, 4vw, 3.9rem);
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.intro p:last-child {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.14rem;
}

.section-head {
    margin-bottom: 48px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.section-head > p {
    max-width: 515px;
    margin: 0;
    color: var(--color-muted);
}


/* ==========================================================
   07. LEISTUNGSKARTEN
   ========================================================== */
.services {
    background: var(--color-background-soft);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
}

.card {
    min-height: 260px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    transition: background 0.28s, color 0.28s, transform 0.28s;
}

.card:hover {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    background: var(--color-navy);
    transform: translateY(-3px);
}

.card-no {
    color: var(--color-steel);
    font-size: 0.74rem;
    letter-spacing: 0.15em;
}

.icon {
    margin: 35px 0 22px;
    color: var(--color-blue);
    font-size: 2.35rem;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.card:hover p {
    color: #c7d4df;
}

.arrow {
    margin-top: auto;
    padding-top: 17px;
    color: var(--color-blue);
    font-size: 1.35rem;
}


/* ==========================================================
   08. BILD-ZWISCHENBEREICH
   Hintergrundbild: assets/images/2.png
   ========================================================== */
.image-band {
    min-height: 430px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    background:
        linear-gradient(
            90deg,
            rgba(4, 27, 56, 0.92),
            rgba(4, 27, 56, 0.12)
        ),
        url("../images/3.png") center / cover no-repeat;
}

.image-band-copy {
    max-width: 550px;
    padding: 80px 0;
}

.image-band .eyebrow {
    color: #8dddf8;
}

.image-band h2 {
    margin: 12px 0 20px;
    font-size: clamp(2.2rem, 4vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.image-band p:last-child {
    color: #d7e2ec;
    font-size: 1.05rem;
}


/* ==========================================================
   09. UNTERNEHMENSBEREICH
   Hintergrundbild: assets/images/3.png
   ========================================================== */
.about {
    min-height: 670px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
}

.about-image {
    min-height: 520px;
    background: url("../images/4.png") center / cover no-repeat;
}

.about-copy {
    padding: 85px clamp(40px, 7vw, 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-copy > p:not(.eyebrow) {
    max-width: 590px;
    margin: 0 0 28px;
    color: var(--color-muted);
}

.values {
    margin: 4px 0 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.values span {
    padding-left: 13px;
    border-left: 2px solid var(--color-blue);
    font-weight: 650;
}


/* ==========================================================
   10. SERVICE-SCHNELLZUGRIFFE
   ========================================================== */
.quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--color-border);
}

.quick a {
    min-height: 160px;
    padding: 31px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--color-border);
    transition: background 0.25s, color 0.25s;
}

.quick a:last-child {
    border-right: 0;
}

.quick a:hover {
    color: var(--color-white);
    background: var(--color-navy);
}

.quick span {
    color: var(--color-blue);
    font-size: 1.3rem;
}


/* ==========================================================
   11. KUNDENPORTAL
   ========================================================== */
.portal {
    color: var(--color-white);
    background: var(--color-navy);
}

.portal > .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
}

.portal .eyebrow {
    color: #8dddf8;
}

.portal-copy p:last-of-type {
    max-width: 550px;
    margin: 0 0 32px;
    color: #cbd7e1;
}

.portal-window {
    width: 90%;
    max-width: 570px;
    padding: 28px;
    color: var(--color-navy);
    background: var(--color-white);
    border-top: 26px solid #dbe4eb;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.portal-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.portal-tile {
    min-height: 85px;
    padding: 16px;
    background: #edf3f7;
    border-left: 4px solid var(--color-blue);
    font-size: 0.85rem;
}


/* ==========================================================
   12. KONTAKTBEREICH
   ========================================================== */
.contact {
    text-align: center;
}

.contact > .wrap > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto 32px;
    color: var(--color-muted);
}


/* ==========================================================
   13. FOOTER
   ========================================================== */
footer {
    padding: 70px 0 20px;
    color: #b9c7d4;
    background: #02152b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
}

.footer-logo {
    width: 280px;
    filter: brightness(0) invert(1);
    opacity: 0.94;
}

.footer-intro p {
    max-width: 340px;
    font-size: 0.89rem;
}

.footer-col h4 {
    margin: 0 0 18px;
    color: var(--color-white);
}

.footer-col a {
    margin: 8px 0;
    display: block;
    font-size: 0.9rem;
}

.footer-col a:hover,
.legal-links a:hover {
    color: var(--color-blue);
}

.legal {
    margin-top: 50px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
}

.legal-links {
    display: flex;
    gap: 22px;
}


/* ==========================================================
   14. TABLET-DARSTELLUNG
   Breakpoint: maximal 980 Pixel
   ========================================================== */
@media (max-width: 980px) {
    :root {
        --header-height: 112px;
    }

    .wrap {
        width: calc(100% - 48px);
    }

    .logo {
        width: 285px;
        padding: 11px 0 13px;
    }

    .links {
        display: none;
    }

    .menu {
        display: block;
    }

    .mobile-panel.open {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        z-index: 29;
        padding: 25px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 14px 30px rgba(4, 27, 56, 0.12);
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .quick {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal > .wrap {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .footer-col:last-child {
        display: none;
    }
}


/* ==========================================================
   15. MOBILE DARSTELLUNG
   Breakpoint: maximal 640 Pixel
   ========================================================== */
@media (max-width: 640px) {
    :root {
        --header-height: 94px;
        --section-spacing: 74px;
    }

    .wrap {
        width: calc(100% - 40px);
    }

    .logo {
        width: 230px;
        max-width: 72vw;
        padding: 9px 0 11px;
    }

    .hero {
        min-height: 680px;
        background-position: 63% center;
    }

    .hero::before {
        background: linear-gradient(
            90deg,
            rgba(4, 27, 56, 0.95),
            rgba(4, 27, 56, 0.58)
        );
    }

    .hero-content {
        padding: 68px 0;
    }

    .hero h1 {
        font-size: clamp(2.85rem, 13vw, 4rem);
        line-height: 0.98;
        overflow-wrap: anywhere;
    }

    .hero p {
        font-size: 1.02rem;
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .intro {
        text-align: left;
    }

    .section-head {
        margin-bottom: 32px;
        display: block;
    }

    .section-head > p {
        margin-top: 15px;
    }

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

    .card {
        min-height: 220px;
        padding: 27px;
    }

    .image-band {
        min-height: 400px;
        background-position: 58% center;
    }

    .about-image {
        min-height: 360px;
    }

    .about-copy {
        padding: 68px 20px;
    }

    .quick a {
        min-height: 140px;
        padding: 22px 17px;
    }

    .portal-window {
        width: 100%;
        padding: 18px;
    }

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

    .footer-intro {
        grid-column: 1 / -1;
    }

    .legal {
        display: block;
    }

    .legal-links {
        margin-top: 13px;
        flex-wrap: wrap;
    }
}
