:root {
    --mos-blue: #111c92;
    --mos-blue-dark: #0a115c;
    --mos-steel: #53606d;
    --mos-ink: #17202a;
    --mos-mist: #f4f6f8;
    --mos-accent: #e2a13b;
    --bs-primary: #111c92;
    --bs-primary-rgb: 17, 28, 146;
    --bs-dark: #111820;
    --bs-dark-rgb: 17, 24, 32;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--mos-ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

a {
    text-underline-offset: 0.2em;
}

.btn {
    --bs-btn-border-radius: 0.35rem;
    --bs-btn-font-weight: 650;
}

.btn-primary {
    --bs-btn-bg: var(--mos-blue);
    --bs-btn-border-color: var(--mos-blue);
    --bs-btn-hover-bg: var(--mos-blue-dark);
    --bs-btn-hover-border-color: var(--mos-blue-dark);
    --bs-btn-active-bg: var(--mos-blue-dark);
    --bs-btn-active-border-color: var(--mos-blue-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--mos-blue);
    --bs-btn-border-color: var(--mos-blue);
    --bs-btn-hover-bg: var(--mos-blue);
    --bs-btn-hover-border-color: var(--mos-blue);
}

.text-primary {
    color: var(--mos-blue) !important;
}

.bg-primary {
    background-color: var(--mos-blue) !important;
}

:focus-visible {
    outline: 3px solid rgba(17, 28, 146, 0.4);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--mos-blue);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.top-link,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.top-link:hover,
.site-footer a:hover {
    color: #fff;
}

.site-footer .btn-outline-light:hover,
.site-footer .btn-outline-light:active {
    color: var(--mos-ink);
}

.site-header {
    z-index: 1020;
    box-shadow: 0 0.25rem 1rem rgba(13, 25, 38, 0.04);
}

.navbar-brand img,
.footer-logo {
    width: auto;
    height: 3.5rem;
    object-fit: contain;
}

.footer-logo {
    filter: brightness(0) invert(1);
}

.navbar .nav-link {
    color: #303944;
    font-weight: 650;
    padding-inline: 0.9rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--mos-blue);
}

.section-space {
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-kicker {
    color: var(--mos-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 48rem;
}

.text-balance {
    text-wrap: balance;
}

.hero-home {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(41, 65, 191, 0.35), transparent 35%),
        linear-gradient(135deg, #0c1420 0%, #101827 62%, #111c92 160%);
}

.hero-home::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 3rem 3rem;
    content: "";
    pointer-events: none;
}

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

.hero-image-wrap {
    position: relative;
    min-height: 33rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 33rem;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35);
}

.hero-video {
    display: block;
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: #000;
}

.hero-badge {
    position: absolute;
    right: -1rem;
    bottom: 2rem;
    max-width: 16rem;
    border-left: 4px solid var(--mos-accent);
    background: #fff;
    color: var(--mos-ink);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.hero-badge.hero-video-badge {
    max-width: none;
}

.trust-bar {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.trust-card {
    border: 0;
    box-shadow: 0 1rem 3rem rgba(23, 32, 42, 0.12);
}

.service-card,
.project-card,
.value-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.project-card:hover,
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.5rem rgba(23, 32, 42, 0.13) !important;
}

.service-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-image {
    width: 100%;
    height: clamp(14rem, 22vw, 19rem);
    object-fit: cover;
}

.image-cover {
    width: 100%;
    height: clamp(26rem, 42vw, 34rem);
    object-fit: cover;
}

.process-number {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(17, 28, 146, 0.09);
    color: var(--mos-blue);
    font-weight: 800;
}

.page-hero {
    background: linear-gradient(135deg, #101820, #18263a);
}

.page-hero-image {
    height: clamp(20rem, 32vw, 28rem);
    object-fit: cover;
}

.breadcrumb a {
    color: inherit;
}

.gallery-button {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: #e9ecef;
}

.gallery-button img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-button::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(10, 17, 92, 0.55);
    color: #fff;
    content: "Vergrößern";
    font-weight: 700;
    opacity: 0;
    transition: opacity 180ms ease;
}

.gallery-button:hover img,
.gallery-button:focus-visible img {
    transform: scale(1.025);
}

.gallery-button:hover::after,
.gallery-button:focus-visible::after {
    opacity: 1;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.contact-card {
    border-left: 4px solid var(--mos-blue) !important;
}

.cta-strip {
    background: linear-gradient(125deg, var(--mos-blue-dark), var(--mos-blue));
}

.text-white-75 {
    color: rgba(255,255,255,.75);
}

.footer-links li + li {
    margin-top: 0.55rem;
}

.consent-panel {
    height: auto !important;
    border-top: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 -1rem 3rem rgba(0,0,0,.14);
}

.stat-value {
    color: var(--mos-blue);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .hero-image-wrap,
    .hero-image {
        min-height: 24rem;
    }

    .hero-badge {
        right: 1rem;
        bottom: 1rem;
    }

    .hero-video {
        min-height: 0;
    }

    .trust-bar {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .border-lg-end {
        border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    }
}

@media (max-width: 575.98px) {
    .hero-image-wrap,
    .hero-image {
        min-height: 19rem;
    }

    .hero-badge {
        position: static;
        max-width: none;
        margin-top: 0.75rem;
    }

    .hero-video {
        min-height: 0;
    }

    .gallery-button img {
        height: 15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
