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

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/Fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/Fonts/montserrat-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("/Fonts/playfair-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("/Fonts/playfair-display-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --color-navy: #0f1e33;
    --color-steel: #23344d;
    --color-copper: #c78e7a;
    --color-copper-dark: #9b5f4f;
    --color-copper-hover: #864b3d;
    --color-typewriter: #e5b5a5;
    --color-bg: #f6f3f0;
    --color-blush: #fbe9e4;
    --color-warm-gray: #b9ada1;
    --color-white: #ffffff;
    --color-text: #0f1e33;
    --color-text-secondary: #5f6670;
    --blue-dark: var(--color-navy);
    --blue-mid: var(--color-steel);
    --blue-light: #394b63;
    --text: var(--color-text);
    --muted: var(--color-text-secondary);
    --white: var(--color-white);
    --accent: var(--color-copper-dark);
    --accent-hover: var(--color-copper-hover);
    --bg: var(--color-bg);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius: var(--radius-lg);
    --shadow-soft: 0 12px 40px rgba(15, 30, 51, 0.07);
    --shadow-card: 0 20px 50px rgba(15, 30, 51, 0.10);
    --shadow: var(--shadow-soft);
    --shadow-hover: var(--shadow-card);
    --transition: 0.22s ease;
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 3px solid var(--color-copper-dark);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    color: var(--white);
    background: var(--blue-dark);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.68;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    width: clamp(235px, 29vw, 355px);
    color: inherit;
    text-decoration: none;
}

.site-logo {
    width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.site-wordmark {
    color: var(--color-navy);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.logo-wrap:hover .logo-mark {
    transform: translateY(-2px);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 1rem;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--muted);
}

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color var(--transition), transform var(--transition);
}

.menu a,
.footer-links a,
.footer-link-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.menu a:hover {
    color: var(--blue-dark);
    transform: translateY(-2px);
}

.menu a:hover::after {
    width: 100%;
}

.menu .menu-external {
    gap: 5px;
}

.menu .menu-external > span[aria-hidden="true"] {
    color: var(--accent);
    font-size: 0.9em;
    line-height: 1;
}

/* BUTTON */
.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(155, 95, 79, 0.18);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(155, 95, 79, 0.22);
    filter: brightness(1.04);
}

.btn:active {
    transform: translateY(0);
}

/* MAIN OFFSET FÜR FIXED HEADER */
main {
    padding-top: 84px;
}

/* HERO */
.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(8, 29, 53, 0.88) 0%, rgba(8, 29, 53, 0.72) 38%, rgba(8, 29, 53, 0.25) 100%),
        url("/Bilder/Header1.JPG") center center / cover no-repeat;
    overflow: hidden;
}

/* WAS WIR TUN */
.was-wir-tun {
    padding: 96px 0;
    background: var(--bg);
}

.was-wir-tun-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: clamp(48px, 8vw, 100px);
    align-items: center;
}

.section-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.was-wir-tun h2 {
    max-width: 760px;
    margin-bottom: 24px;
    color: var(--blue-dark);
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.was-wir-tun-text p {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 1.02rem;
}

.was-wir-tun-text .was-wir-tun-intro {
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 400;
}

.was-wir-tun-text .was-wir-tun-detail {
    font-size: 1.05rem;
}

.was-wir-tun-text .was-wir-tun-closing {
    margin: 28px 0 20px;
    color: var(--blue-dark);
    font-size: 1.2rem;
    font-weight: 800;
}

.was-wir-tun-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.was-wir-tun-link span {
    color: var(--accent);
    font-size: 1.35em;
    transition: transform var(--transition);
}

.was-wir-tun-link:hover span {
    transform: translateX(6px);
}

.leistungsspektrum {
    padding: clamp(28px, 4vw, 44px);
    color: var(--white);
    background: linear-gradient(145deg, var(--blue-dark), var(--blue-mid));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.leistungsspektrum h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.leistungsspektrum ul {
    display: grid;
    gap: 12px;
    list-style: none;
}

.leistungsspektrum li {
    position: relative;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.leistungsspektrum li::before {
    content: "";
    position: absolute;
    top: 0.56em;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.leistungen-strip {
    position: relative;
    z-index: 5;
    background: #ffffff;
    padding: 42px 0 46px;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.03), 0 10px 30px rgba(9, 27, 45, 0.05);
}

.leistungen-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(165px, 16vw, 205px);
    gap: 18px;
    align-items: stretch;
    overflow-x: auto;
    padding: 18px clamp(48px, 7vw, 82px) 26px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: auto;
}

.leistungen-grid::-webkit-scrollbar {
    display: none;
}

.leistungen-carousel {
    position: relative;
}

.leistungen-carousel::before,
.leistungen-carousel::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: clamp(55px, 9vw, 120px);
    pointer-events: none;
}

.leistungen-carousel::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff 15%, rgba(255,255,255,0));
}

.leistungen-carousel::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff 15%, rgba(255,255,255,0));
}

.carousel-button {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(8, 24, 44, 0.16);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform var(--transition), color var(--transition), background var(--transition);
}

.carousel-button:hover {
    color: var(--white);
    background: var(--accent);
    transform: translateY(-50%);
}

.carousel-button-prev {
    left: 8px;
}

.carousel-button-next {
    right: 8px;
}

.leistung-card {
    text-decoration: none;
    color: #10263d;
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 14px 18px;
    text-align: center;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
    transform-origin: center center;
    scroll-snap-align: center;
}

.leistung-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(13, 39, 64, 0.12);
    background: #fbfcfe;
}

.leistung-card:nth-child(even):hover {
    transform: translateY(-3px);
}

.leistung-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    transition: transform 0.35s ease;
}

.leistung-card:hover .leistung-icon {
    transform: none;
}

.leistung-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    filter: contrast(1.05);
}

.leistung-card h3 {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--color-navy);
    letter-spacing: -0.01em;
}

.leistung-card p {
    margin: 0;
    color: #4f5f70;
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .leistungen-grid {
        grid-auto-columns: 190px;
    }
}

@media (max-width: 700px) {
    .was-wir-tun {
        padding: 64px 0;
    }

    .was-wir-tun-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .leistungen-strip {
        padding: 30px 0 34px;
    }

    .leistungen-grid {
        grid-auto-columns: min(72vw, 220px);
        gap: 14px;
        padding-inline: 42px;
    }

    .leistung-card {
        padding: 18px 12px 16px;
    }

    .leistung-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 14px;
    }

    .leistung-icon img {
        width: 50px;
        height: 50px;
    }
}

/* SMARTPHONE-NAVIGATION – TABLETS BEHALTEN DEN NORMALEN HEADER */
.nav-toggle {
    display: none;
}

@media (max-width: 700px) {
    .header .nav {
        position: relative;
        flex-wrap: nowrap;
    }

    .header .logo-wrap {
        width: min(220px, calc(100% - 68px));
    }

    .nav-toggle {
        width: 48px;
        height: 48px;
        margin-left: auto;
        flex: 0 0 48px;
        display: grid;
        place-content: center;
        gap: 5px;
        color: var(--color-navy);
        background: var(--color-white);
        border: 1px solid rgba(15, 30, 51, 0.14);
        border-radius: var(--radius-sm);
        cursor: pointer;
    }

    .nav-toggle span {
        width: 22px;
        height: 2px;
        display: block;
        background: currentColor;
        border-radius: 2px;
        transition: transform var(--transition), opacity var(--transition);
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header .menu {
        position: absolute;
        z-index: 20;
        top: calc(100% + 1px);
        right: 0;
        width: min(330px, calc(100vw - 32px));
        max-height: calc(100vh - 100px);
        padding: 16px;
        display: none;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--color-white);
        border: 1px solid rgba(15, 30, 51, 0.12);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        box-shadow: 0 22px 45px rgba(15, 30, 51, 0.18);
    }

    .header .menu.is-open {
        display: flex;
    }

    .header .menu a {
        min-height: 48px;
        padding: 13px 14px;
        display: flex;
        align-items: center;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
    }

    .header .menu a::after {
        right: 14px;
        bottom: 8px;
        left: 14px;
        width: auto;
        transform: scaleX(0);
        transform-origin: left;
    }

    .header .menu a:hover::after,
    .header .menu a:focus-visible::after,
    .header .menu a[aria-current="page"]::after {
        transform: scaleX(1);
    }

    .header .nav > .btn {
        display: none;
    }

    .header .admin-logout-form .btn {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .header .nav:has(.admin-logout-form) .logo-wrap {
        width: min(150px, calc(100% - 180px));
    }
}

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

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

/* VISUELLES REBRANDING 2026
   Zentrale Überschreibungen für das bestehende Komponenten- und Seitenlayout. */
.container {
    width: min(1240px, calc(100% - clamp(40px, 7vw, 96px)));
}

body {
    background: var(--color-bg);
}

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

:focus-visible {
    outline-color: var(--color-copper-dark);
}

.header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(15, 30, 51, 0.08);
    box-shadow: 0 8px 32px rgba(15, 30, 51, 0.045);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav {
    min-height: 88px;
    gap: 28px;
}

.site-logo {
    max-height: 54px;
}

.menu {
    gap: clamp(18px, 2.2vw, 32px);
}

.menu a {
    color: var(--color-navy);
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transform: none;
}

.menu a::after {
    bottom: 4px;
    height: 1px;
    background: var(--color-copper);
}

.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"] {
    color: var(--color-copper-dark);
    transform: none;
}

.menu a[aria-current="page"]::after {
    width: 100%;
}

.btn,
.primary-button {
    padding: 13px 24px;
    border: 1px solid var(--color-copper-dark);
    border-radius: var(--radius-md);
    color: var(--color-white);
    background: var(--color-copper-dark);
    box-shadow: 0 10px 28px rgba(155, 95, 79, 0.18);
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 700;
    filter: none;
}

.btn:hover,
.btn:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
    color: var(--color-white);
    background: var(--color-copper-hover);
    border-color: var(--color-copper-hover);
    box-shadow: 0 14px 34px rgba(15, 30, 51, 0.14);
    transform: translateY(-2px);
    filter: none;
}

.btn:active,
.primary-button:active {
    transform: translateY(0);
}

.secondary-button {
    padding: 13px 24px;
    border: 1px solid var(--color-copper-dark);
    border-radius: var(--radius-md);
    color: var(--color-navy);
    background: transparent;
}

.secondary-button:hover,
.secondary-button:focus-visible {
    background: var(--color-blush);
}

.hero {
    min-height: 760px;
    background:
        linear-gradient(90deg, rgba(15,30,51,0.94) 0%, rgba(15,30,51,0.78) 36%, rgba(15,30,51,0.20) 70%, rgba(15,30,51,0.05) 100%),
        url("/Bilder/Header1.JPG") center center / cover no-repeat;
}

.hero-overlay {
    background: none;
}

.hero-box {
    max-width: 760px;
}

.hero-box h1 {
    font-size: clamp(3rem, 5.6vw, 5.7rem);
    line-height: 0.99;
    font-weight: 600;
    letter-spacing: -0.035em;
    text-shadow: 0 10px 30px rgba(15, 30, 51, 0.22);
}

.typewriter-word {
    color: var(--color-typewriter);
}

.typewriter-word::after {
    background: var(--color-typewriter);
}

.hero-box p {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.7;
}

.section-kicker {
    color: var(--color-copper-dark);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.was-wir-tun {
    padding: clamp(90px, 10vw, 135px) 0;
    background: var(--color-bg);
}

.was-wir-tun h2,
.wer-wir-sind h2,
.projects h2,
.contact-box h2,
.customers-heading h2,
.partner h2,
.services-directory-hero h1,
.services-directory > .container > h2,
.leistung-main-copy h2,
.leistung-detail-copy h2,
.leistung-cta-box h2 {
    color: var(--color-navy);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.was-wir-tun-text p {
    max-width: 720px;
    color: var(--color-steel);
    line-height: 1.78;
}

.was-wir-tun-text .was-wir-tun-intro {
    color: var(--color-navy);
}

.was-wir-tun-link,
.services-directory-link,
.customers-source-link a,
.service-chapter-actions a {
    color: var(--color-navy);
}

.was-wir-tun-link:hover,
.services-directory-link:hover,
.customers-source-link a:hover,
.service-chapter-actions a:hover {
    color: var(--color-copper-dark);
}

.was-wir-tun-link span,
.services-directory-link i,
.customers-source-link span,
.service-chapter-actions a span {
    color: var(--color-copper-dark);
}

.leistungsspektrum {
    padding: clamp(32px, 4vw, 40px);
    background: linear-gradient(145deg, var(--color-navy), #172a43);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 30, 51, 0.12);
}

.leistungsspektrum h3 {
    font-family: "Playfair Display", Georgia, serif;
}

.leistungsspektrum li::before {
    background: var(--color-copper);
}

.leistungen-strip,
.customers,
.team,
.leistung-content-section,
.leistung-detail-sections,
.services-directory {
    background: var(--color-white);
}

.partner,
.contact,
.leistung-cta,
.services-directory-page {
    background: var(--color-bg);
}

.leistung-card,
.service,
.card,
.partner-card,
.customer-name,
.services-directory-card,
.contact-box,
.tech-box,
.legal-card,
.subpage-card,
.subpage-slide,
.leistung-cta-box {
    border: 1px solid rgba(15, 30, 51, 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.leistung-card,
.customer-name {
    background: var(--color-white);
}

.leistung-card:hover,
.leistung-card:nth-child(even):hover,
.service:hover,
.card:hover,
.partner-card:hover,
.customer-name:hover,
.customer-name:nth-child(even):hover,
.services-directory-card:hover,
.contact-box:hover,
.tech-box:hover,
.subpage-card:hover,
.subpage-slide:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.leistung-card:hover .leistung-icon,
.services-directory-card:hover .services-directory-icon img,
.card:hover .card-image img {
    transform: none;
}

.leistung-card h3,
.services-directory-card h3,
.card-content h3,
.customer-name {
    color: var(--color-navy);
}

.leistung-card p,
.services-directory-card p,
.card-content p {
    color: var(--color-text-secondary);
}

.leistung-icon img,
.services-directory-icon img {
    filter: grayscale(1) sepia(0.14) saturate(0.7) contrast(1.08);
}

.carousel-button,
.customers-arrow {
    color: var(--color-navy);
    border-color: rgba(15, 30, 51, 0.12);
    background: var(--color-white);
    box-shadow: 0 8px 28px rgba(15, 30, 51, 0.10);
}

.carousel-button:hover,
.customers-arrow:hover {
    color: var(--color-white);
    background: var(--color-copper-dark);
    transform: translateY(-50%);
}

.leistungen-carousel::before,
.customers-carousel::before {
    background: linear-gradient(90deg, var(--color-white) 15%, rgba(255,255,255,0));
}

.leistungen-carousel::after,
.customers-carousel::after {
    background: linear-gradient(270deg, var(--color-white) 15%, rgba(255,255,255,0));
}

.wer-wir-sind,
.services-directory-cta,
.footer {
    background: var(--color-navy);
}

.wer-wir-sind {
    background-image: none;
}

.wer-wir-sind h2 {
    color: var(--color-white);
}

.team-grid {
    border-color: rgba(15, 30, 51, 0.14);
}

.team-member + .team-member {
    border-color: rgba(15, 30, 51, 0.14);
}

.team-member h3,
.team-role,
.team-member blockquote {
    color: var(--color-steel);
}

.team-photo {
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.team-member:hover .team-photo {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.projects {
    background: var(--color-steel);
}

.projects h2 {
    color: var(--color-white);
}

.card {
    background: rgba(255, 255, 255, 0.07);
}

.technology {
    background:
        linear-gradient(90deg, rgba(15,30,51,0.92), rgba(15,30,51,0.58)),
        url("tech.jpg") center / cover no-repeat;
}

.contact-box {
    padding: clamp(32px, 5vw, 52px);
    background: var(--color-white);
}

input,
textarea {
    min-height: 50px;
    border: 1px solid rgba(15, 30, 51, 0.16);
    border-radius: 9px;
    background: var(--color-white);
}

input:focus,
textarea:focus {
    border-color: var(--color-copper-dark);
    box-shadow: 0 0 0 3px rgba(199, 142, 122, 0.20);
    transform: none;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link-button,
.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-link-button:hover,
.footer-links a:hover {
    color: #e5b5a5;
}

.services-directory-hero,
.leistung-hero {
    background:
        linear-gradient(90deg, rgba(15,30,51,0.94) 0%, rgba(15,30,51,0.76) 45%, rgba(15,30,51,0.18) 100%),
        url("/Bilder/Header1.JPG") center / cover no-repeat;
}

.services-directory-card {
    background: var(--color-white);
}

.services-directory-number,
.leistung-intro-mark {
    color: var(--color-warm-gray);
}

.leistung-hero-glow {
    background: rgba(199, 142, 122, 0.16);
}

.leistung-hero-icon {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: none;
}

.leistung-detail-image {
    background-color: var(--color-steel);
}

.leistung-detail-row:nth-child(2) .leistung-detail-image {
    background-color: #5f625f;
}

.leistung-detail-row:nth-child(3) .leistung-detail-image {
    background-color: var(--color-navy);
}

.leistung-next {
    color: var(--color-white);
    background: var(--color-copper-dark);
}

.leistung-next:hover {
    background: var(--color-copper-hover);
}

.legal-modal-dialog {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.legal-modal-close {
    border-radius: var(--radius-md);
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 32px, 1240px);
    }

    .hero {
        min-height: 620px;
    }

    .hero-box h1 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    .was-wir-tun,
    .team,
    .projects,
    .customers,
    .contact,
    .leistung-content-section,
    .leistung-cta,
    .services-directory {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .btn {
        min-height: 48px;
    }

    .contact-box .btn,
    .leistung-cta-box .btn,
    .services-directory-cta .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .logo-wrap {
        width: 180px;
    }

    .nav > .btn {
        display: none;
    }

    .menu {
        gap: 10px;
    }

    .menu a {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 1.7rem;
    }
}

/* WER WIR SIND */
.wer-wir-sind {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 8% 20%, rgba(255,255,255,0.08), transparent 32%),
        linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
}

.wer-wir-sind::after {
    content: "30+";
    position: absolute;
    right: -0.04em;
    bottom: -0.3em;
    color: rgba(255,255,255,0.035);
    font-size: clamp(12rem, 28vw, 28rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.wer-wir-sind-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(50px, 9vw, 120px);
    align-items: start;
}

.wer-wir-sind h2 {
    margin-bottom: 22px;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.wer-wir-sind-claim {
    max-width: 380px;
    color: rgba(255,255,255,0.72);
    font-size: 1.15rem;
    line-height: 1.6;
}

.wer-wir-sind-text {
    padding-top: 8px;
}

.wer-wir-sind-text p {
    margin-bottom: 22px;
    color: rgba(255,255,255,0.84);
    font-size: 1.05rem;
    line-height: 1.75;
}

.wer-wir-sind-text .wer-wir-sind-closing {
    margin: 34px 0 0;
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 800;
}

@media (max-width: 760px) {
    .wer-wir-sind {
        padding: 70px 0;
    }

    .wer-wir-sind-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .wer-wir-sind-claim {
        max-width: 540px;
    }
}

/* Akzentflächen in der Farbe des wechselnden Hero-Wortes. */
.leistungsspektrum {
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid rgba(35, 52, 77, 0.20);
    box-shadow: 0 16px 40px rgba(35, 52, 77, 0.08);
}

.leistungsspektrum h3 {
    color: var(--color-navy);
}

.leistungsspektrum li {
    color: rgba(15, 30, 51, 0.86);
}

.leistungsspektrum li::before {
    background: var(--color-steel);
    box-shadow: 0 0 0 4px rgba(35, 52, 77, 0.08);
}

.wer-wir-sind {
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid rgba(35, 52, 77, 0.18);
    box-shadow: 0 16px 44px rgba(35, 52, 77, 0.06);
}

.wer-wir-sind::after {
    display: none;
}

.wer-wir-sind h2,
.wer-wir-sind-text .wer-wir-sind-closing {
    color: var(--color-navy);
}

.wer-wir-sind-claim {
    color: var(--color-copper-dark);
}

.wer-wir-sind-text p {
    color: var(--color-text-secondary);
}

/* IMPRESSUM & DATENSCHUTZ */
.legal-page {
    padding-top: 84px;
    background: var(--color-bg);
}

.legal-page-hero {
    padding: clamp(100px, 13vw, 165px) 0 clamp(80px, 10vw, 125px);
    color: var(--color-white);
    background: var(--color-navy);
}

.legal-page-hero h1 {
    max-width: 900px;
    margin: 12px 0 24px;
    color: var(--color-white);
    font-size: clamp(3rem, 6vw, 5.7rem);
    line-height: 0.99;
    letter-spacing: -0.035em;
}

.legal-page-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.legal-page-content {
    padding: clamp(70px, 9vw, 120px) 0;
}

.legal-page-content .legal-card {
    align-self: start;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.legal-page-content .legal-card h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 800px) {
    .legal-page-content .legal-grid {
        grid-template-columns: 1fr;
    }
}

/* KONTAKTFORMULAR */
.contact {
    padding-top: clamp(80px, 10vw, 130px);
    padding-bottom: clamp(80px, 10vw, 130px);
}

.contact-box {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    padding: clamp(30px, 6vw, 70px);
    border: 1px solid rgba(15, 30, 51, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(15, 30, 51, 0.10);
}

.contact-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--color-copper);
}

.contact-box:hover {
    transform: none;
    box-shadow: 0 24px 70px rgba(15, 30, 51, 0.10);
}

.contact-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.contact-heading h2 {
    margin: 10px 0 18px;
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    line-height: 1.08;
}

.contact-heading p {
    max-width: 650px;
    color: var(--color-secondary-text);
    font-size: 1.05rem;
    line-height: 1.75;
}

.contact-box .required-note {
    margin-bottom: 18px;
}

#contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}

#contact-form .form-field-message,
#contact-form .form-status,
#contact-form .contact-submit {
    grid-column: 1 / -1;
}

#contact-form .form-field {
    gap: 9px;
}

#contact-form .form-field label {
    color: var(--color-navy);
    font-size: 0.9rem;
    letter-spacing: 0.015em;
}

#contact-form input,
#contact-form textarea {
    padding: 16px 18px;
    color: var(--color-navy);
    background: #fbfaf8;
    border: 1px solid rgba(15, 30, 51, 0.18);
    border-radius: var(--radius-sm);
}

#contact-form input:hover,
#contact-form textarea:hover {
    border-color: rgba(155, 95, 79, 0.55);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: 0;
    background: var(--color-white);
    border-color: var(--color-copper-dark);
    box-shadow: 0 0 0 4px rgba(199, 142, 122, 0.20);
}

#contact-form textarea {
    min-height: 180px;
}

.contact-submit {
    min-width: 220px;
    justify-self: start;
    margin-top: 4px;
}

.contact-submit span {
    display: inline-block;
    margin-left: 8px;
    transition: transform var(--transition);
}

.contact-submit:hover span {
    transform: translateX(4px);
}

.contact-note {
    max-width: 720px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(15, 30, 51, 0.10);
    font-size: 0.88rem;
}

.contact-note a {
    color: var(--color-copper-dark);
    font-weight: 700;
    text-underline-offset: 3px;
}

@media (max-width: 680px) {
    #contact-form {
        grid-template-columns: 1fr;
    }

    #contact-form .form-field-message,
    #contact-form .form-status,
    #contact-form .contact-submit {
        grid-column: auto;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
    }
}

/* FOTOLEISTE DER LEISTUNGSUNTERSEITEN */
.service-gallery {
    padding: clamp(52px, 6.5vw, 86px) 0;
    overflow: hidden;
    background: var(--color-white);
}

.service-gallery-heading {
    margin-bottom: 28px;
}

.service-gallery-heading h2 {
    margin-top: 10px;
    color: var(--color-navy);
    font-size: clamp(1rem, 4.3vw, 2.5rem);
    line-height: 1.2;
}

.service-gallery-carousel {
    position: relative;
    width: min(1400px, 100%);
    margin-inline: auto;
    padding-inline: clamp(48px, 6vw, 82px);
}

.service-gallery-carousel::before,
.service-gallery-carousel::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: clamp(42px, 7vw, 100px);
    pointer-events: none;
}

.service-gallery-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-white) 20%, rgba(255,255,255,0));
}

.service-gallery-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--color-white) 20%, rgba(255,255,255,0));
}

.service-gallery-track {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.service-gallery-track::-webkit-scrollbar {
    display: none;
}

.service-gallery-slide {
    flex: 0 0 clamp(240px, 28vw, 360px);
    height: auto;
    align-self: flex-start;
    padding: 0;
    overflow: hidden;
    scroll-snap-align: start;
    color: var(--color-navy);
    background: var(--color-bg);
    border: 1px solid rgba(15, 30, 51, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: left;
    cursor: zoom-in;
}

.service-gallery-slide img {
    width: 100%;
    height: clamp(105px, 9vw, 135px) !important;
    aspect-ratio: auto;
    display: block;
    object-fit: cover;
}

.service-gallery-slide span {
    min-height: 0;
    padding: 11px 16px 12px;
    display: block;
    line-height: 1.35;
    font-weight: 650;
}

.service-gallery-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid rgba(15, 30, 51, 0.14);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.service-gallery-prev { left: 12px; }
.service-gallery-next { right: 12px; }

.service-gallery-arrow:hover,
.service-gallery-arrow:focus-visible {
    color: var(--color-white);
    background: var(--color-copper-dark);
}

.service-lightbox {
    position: fixed;
    inset: 0;
    width: min(1100px, calc(100% - 40px));
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    color: var(--color-white);
    background: var(--color-navy);
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 100px rgba(0,0,0,0.45);
}

.service-lightbox::backdrop {
    background: rgba(5, 12, 22, 0.78);
    -webkit-backdrop-filter: blur(12px) saturate(0.75);
    backdrop-filter: blur(12px) saturate(0.75);
}

.service-lightbox img {
    width: 100%;
    max-height: calc(100vh - 150px);
    display: block;
    object-fit: contain;
    background: #070e18;
}

.service-lightbox p {
    padding: 20px 28px 24px;
    color: rgba(255,255,255,0.86);
}

.service-lightbox-close {
    position: sticky;
    z-index: 2;
    top: 14px;
    float: right;
    width: 46px;
    height: 46px;
    margin: 14px 14px -60px 0;
    color: var(--color-white);
    background: rgba(15,30,51,0.82);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
}

.service-lightbox-arrow {
    position: fixed;
    z-index: 3;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--color-white);
    background: rgba(15, 30, 51, 0.82);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.30);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.service-lightbox-prev {
    left: max(28px, calc((100vw - 1100px) / 2 + 18px));
}

.service-lightbox-next {
    right: max(28px, calc((100vw - 1100px) / 2 + 18px));
}

.service-lightbox-arrow:hover,
.service-lightbox-arrow:focus-visible {
    background: var(--color-copper-dark);
}

@media (max-width: 700px) {
    .service-lightbox-arrow {
        width: 46px;
        height: 46px;
    }

    .service-lightbox-prev { left: 12px; }
    .service-lightbox-next { right: 12px; }
}

/* GALERIEVERWALTUNG IM BACKEND */
.admin-gallery-editor {
    margin-top: 12px;
    padding-top: 30px;
    border-top: 1px solid rgba(15, 30, 51, 0.12);
}

.admin-gallery-list {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-gallery-item {
    padding: 18px;
    background: var(--color-bg);
    border: 1px solid rgba(15, 30, 51, 0.12);
    border-radius: var(--radius-md);
}

.admin-gallery-item > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.admin-gallery-remove {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8b2929;
    font-weight: 700;
}

.admin-gallery-remove input {
    width: 18px;
    height: 18px;
}

.admin-gallery-upload {
    margin-top: 24px;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    background: var(--color-blush);
    border-radius: var(--radius-md);
}

@media (max-width: 700px) {
    .admin-gallery-list,
    .admin-gallery-upload {
        grid-template-columns: 1fr;
    }

    .service-gallery-carousel {
        padding-inline: 42px;
    }

    .service-gallery-slide {
        flex-basis: min(78vw, 320px);
    }

    .service-gallery-slide img {
        height: 110px !important;
    }
}

/* TEAM */
.team {
    padding: 90px 0 100px;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #d6dde3;
    border-bottom: 1px solid #d6dde3;
}

.team-member {
    padding: 36px clamp(24px, 4vw, 52px) 42px;
    text-align: center;
}

.team-member + .team-member {
    border-left: 1px solid #bfc8cf;
}

.team-photo {
    position: relative;
    width: 150px;
    aspect-ratio: 1;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: rgba(255,255,255,0.92);
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,0.3), transparent 28%),
        linear-gradient(145deg, #6aa79f, var(--blue-mid));
    box-shadow: 0 14px 30px rgba(8, 24, 44, 0.14);
    filter: grayscale(1);
    transition: filter 0.9s ease, transform 0.55s ease, box-shadow 0.55s ease;
}

.team-photo::after {
    content: "Portrait folgt";
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    color: rgba(255,255,255,0.72);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-photo.has-photo::after {
    content: none;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo span {
    font-size: 3.4rem;
    font-weight: 800;
    transform: translateY(-7px);
}

.team-member:hover .team-photo,
.team.is-scroll-active .team-photo,
.team-member.is-scroll-active .team-photo {
    filter: grayscale(0);
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(8, 24, 44, 0.2);
}

.team-member h3 {
    margin-bottom: 14px;
    color: #000;
    font-size: 1.05rem;
}

.team-role {
    min-height: 3em;
    margin-bottom: 16px;
    color: #000;
    line-height: 1.5;
}

.team-member blockquote {
    margin: 0 auto;
    max-width: 330px;
    color: var(--color-copper-dark);
    font-size: 0.98rem;
    font-style: italic;
    line-height: 1.55;
}

@media (max-width: 820px) {
    .team {
        padding: 64px 0 70px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .team-member + .team-member {
        border-top: 1px solid #bfc8cf;
        border-left: 0;
    }
}

/* PARTNER */
.partner {
    padding: 88px 0 96px;
    overflow: hidden;
    background: var(--color-bg);
}

.partner h2 {
    max-width: 760px;
    margin-bottom: 46px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.partner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.partner-carousel::before,
.partner-carousel::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: clamp(50px, 10vw, 150px);
    pointer-events: none;
}

.partner-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg) 12%, rgba(246,243,240,0));
}

.partner-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--color-bg) 12%, rgba(246,243,240,0));
}

.partner-track {
    display: flex;
    width: max-content;
    animation: partnerScroll 32s linear infinite;
    will-change: transform;
}

.partner-carousel:hover .partner-track {
    animation-play-state: paused;
}

.partner-set {
    display: flex;
    gap: 22px;
    padding-right: 22px;
}

.partner-card {
    width: clamp(235px, 25vw, 320px);
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(8, 24, 44, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.partner-card strong {
    color: var(--blue-dark);
    font-size: 1.05rem;
}

.partner-card span {
    color: var(--color-copper-dark);
    font-size: 0.94rem;
}

@keyframes partnerScroll {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 700px) {
    .partner {
        padding: 64px 0 70px;
    }

    .partner h2 {
        margin-bottom: 34px;
    }

    .partner-track {
        animation-duration: 25s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-track {
        animation-play-state: paused;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%);
    pointer-events: none;
}

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

.hero-box {
    max-width: 640px;
    color: var(--white);
    animation: fadeUp 1s ease both;
}

.hero-box h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 22px;
    text-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.typewriter-shell {
    display: inline-grid;
    vertical-align: baseline;
    white-space: nowrap;
}

.typewriter-shell::before {
    content: attr(data-longest);
    visibility: hidden;
    grid-area: 1 / 1;
}

.typewriter-word {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: flex-end;
}

.typewriter-word::after {
    content: "";
    width: 0.08em;
    height: 0.95em;
    margin-left: 0.08em;
    background: rgba(255,255,255,0.92);
    animation: blinkCursor 0.9s step-end infinite;
}

.hero-box p {
    font-size: 1.1rem;
    max-width: 580px;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.92);
}

/* SERVICES */
.services {
    margin-top: -70px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.service {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius);
    padding: 26px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
    animation: fadeUp 0.8s ease both;
}

.service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}

.service h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

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

/* PROJECTS */
.projects {
    padding: 90px 0;
    margin-top: 50px;
    background: linear-gradient(180deg, var(--color-navy), var(--color-steel) 75%);
    color: var(--white);
}

.projects h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 32px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: rgba(255,255,255,0.12);
}

.card-image {
    overflow: hidden;
    height: 260px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card:hover .card-image img {
    transform: scale(1.02);
}

.card-content {
    padding: 22px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-content p {
    color: rgba(255,255,255,0.84);
    font-size: 0.96rem;
}

/* TECHNOLOGY */
.technology {
    padding: 90px 0;
    background:
        linear-gradient(90deg, rgba(12, 34, 58, 0.88), rgba(12, 34, 58, 0.5)),
        url("tech.jpg") center / cover no-repeat;
}

.tech-box {
    max-width: 580px;
    color: var(--white);
    padding: 38px;
    border-radius: 24px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.tech-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.tech-box h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.tech-box p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

/* CONTACT */
.contact {
    padding: 90px 0;
}

.contact-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 38px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.contact-box h2 {
    margin-bottom: 22px;
    font-size: 2rem;
    color: var(--blue-dark);
}

.contact-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d9e0e8;
    background: var(--color-white);
    color: var(--text);
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1rem;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition),
        background var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(199, 142, 122, 0.20);
    transform: none;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    color: var(--blue-dark);
    font-weight: 700;
}

.required-note,
.field-hint {
    color: var(--muted);
    font-size: 0.88rem;
}

.field-error {
    min-height: 1.25em;
    color: #9b1c1c;
    font-size: 0.9rem;
    font-weight: 700;
}

[aria-invalid="true"] {
    border-color: #9b1c1c;
    box-shadow: 0 0 0 3px rgba(155,28,28,0.16);
}

.form-status {
    min-height: 1.5em;
    color: var(--blue-dark);
    font-weight: 700;
}

.footer-link-button {
    padding: 4px;
    border: 0;
    color: rgba(255,255,255,0.82);
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* FOOTER */
.footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.82);
    padding: 26px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.footer-copy {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.footer-copy p {
    margin: 0;
    white-space: nowrap;
}

.footer-links {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.footer-links a {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
}

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

.footer-instagram {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-instagram svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-instagram .instagram-dot {
    fill: currentColor;
    stroke: none;
}

.footer-instagram:hover {
    color: #e5b5a5;
    border-color: #e5b5a5;
    transform: translateY(-2px);
}

.footer-instagram:focus-visible {
    outline: 3px solid #e5b5a5;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .footer-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-links {
        gap: 12px;
        white-space: normal;
    }
}

.legal-section {
    padding: 0 0 90px;
}

.legal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.legal-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow);
}

.legal-card-wide {
    grid-column: 1 / -1;
}

.legal-card h2 {
    margin-bottom: 16px;
    font-size: 2rem;
    color: var(--blue-dark);
}

.legal-card > p {
    color: var(--muted);
    margin-bottom: 24px;
}

.legal-block + .legal-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e7edf3;
}

.legal-block h3 {
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-size: 1.05rem;
}

.legal-block p {
    color: #425466;
    line-height: 1.7;
}

body.modal-open {
    overflow: hidden;
}

.legal-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1400;
}

.legal-modal.is-open {
    display: flex;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(5, 18, 31, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.legal-modal-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: min(88vh, 920px);
    background: #edf3f8;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(4, 18, 30, 0.28);
    overflow: hidden;
}

.legal-modal-scroll {
    overflow-y: auto;
    max-height: min(88vh, 920px);
    padding: 76px 28px 28px;
}

.legal-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: var(--blue-dark);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(8, 24, 44, 0.14);
}

.legal-modal-close:hover {
    background: var(--color-bg);
}

/* ANIMATION */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blinkCursor {
    0%, 45% {
        opacity: 1;
    }
    46%, 100% {
        opacity: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    main {
        padding-top: 124px;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 620px;
    }

    .services {
        grid-template-columns: 1fr 1fr;
        margin-top: -40px;
    }

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

    .card-image {
        height: 220px;
    }

    .contact-box,
    .tech-box,
    .legal-card {
        padding: 24px;
    }

    .hero-box h1 {
        font-size: 2rem;
    }

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

    .legal-modal {
        padding: 14px;
    }

    .legal-modal-scroll {
        padding: 68px 16px 16px;
    }
}

@media (max-width: 520px) {
    .services {
        grid-template-columns: 1fr;
    }

    .menu {
        gap: 14px;
    }

    .logo-wrap {
        width: min(290px, 78vw);
    }

    .menu a {
        font-size: 0.95rem;
    }

    .btn {
        padding: 11px 18px;
    }

    main {
        padding-top: 148px;
    }
}

/* SUBPAGES */
.subpage-main {
    padding-top: 84px;
    background: var(--color-bg);
}

.subpage-hero {
    min-height: 430px;
    display: flex;
    align-items: end;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.subpage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 29, 53, 0.18) 0%, rgba(8, 29, 53, 0.72) 100%);
}

.subpage-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 70px 0 46px;
}

.subpage-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
}

.subpage-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    max-width: 780px;
    text-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.subpage-section {
    padding: 72px 0;
}

.subpage-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(8, 24, 44, 0.10);
    overflow: hidden;
}

.subpage-intro {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding: 34px;
}

.subpage-copy h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    color: var(--color-navy);
    margin-bottom: 16px;
}

.subpage-copy p {
    color: #425466;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}

.subpage-facts {
    display: grid;
    gap: 14px;
}

.subpage-fact {
    background: var(--color-white);
    border: 1px solid #e7edf3;
    border-radius: 18px;
    padding: 18px 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subpage-fact:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(8, 24, 44, 0.08);
}

.subpage-fact strong {
    display: block;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.subpage-fact span {
    color: #607080;
    font-size: 0.95rem;
}

.subpage-slider-wrap {
    padding: 0 34px 34px;
}

.subpage-slider-title {
    font-size: 1.4rem;
    color: var(--color-navy);
    margin-bottom: 18px;
}

.subpage-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 34%);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.subpage-slider::-webkit-scrollbar {
    height: 10px;
}

.subpage-slider::-webkit-scrollbar-thumb {
    background: #cfd8e3;
    border-radius: 999px;
}

.subpage-slide {
    scroll-snap-align: start;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(8, 24, 44, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.subpage-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(8, 24, 44, 0.14);
}

.subpage-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.subpage-slide-content {
    padding: 18px;
}

.subpage-slide-content h3 {
    color: var(--color-navy);
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.subpage-slide-content p {
    color: #607080;
    font-size: 0.95rem;
    line-height: 1.55;
}

.subpage-cta {
    padding: 0 34px 34px;
}

.subpage-cta-box {
    background: linear-gradient(135deg, var(--color-navy), var(--color-steel));
    color: #fff;
    border-radius: 24px;
    padding: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.subpage-cta-box h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.subpage-cta-box p {
    color: rgba(255,255,255,0.86);
}

@media (max-width: 980px) {
    .subpage-intro {
        grid-template-columns: 1fr;
    }

    .subpage-slider {
        grid-auto-columns: minmax(260px, 70%);
    }
}

/* SCROLLYTELLING: LEISTUNGEN */
.services-story {
    padding-top: 0;
    background: var(--white);
}

.services-story-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: #081d35;
}

.services-story-hero-media,
.services-story-shade {
    position: absolute;
    inset: 0;
}

.services-story-hero-media {
    inset: -5%;
    background: url("/Bilder/Header1.JPG") center / cover no-repeat;
    transform: scale(1.01);
    will-change: transform;
}

.services-story-shade {
    background: linear-gradient(90deg, rgba(6,21,38,0.94) 0%, rgba(6,21,38,0.78) 48%, rgba(6,21,38,0.25) 100%);
}

.services-story-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 110px;
    padding-bottom: 100px;
}

.services-eyebrow {
    display: block;
    margin-bottom: 25px;
    color: var(--accent-hover);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.services-story-hero h1 {
    max-width: 1000px;
    font-size: clamp(3.5rem, 8.4vw, 8rem);
    line-height: 0.91;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.services-story-subline {
    margin-top: 34px;
    color: var(--accent-hover);
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.services-story-lead {
    max-width: 650px;
    margin-top: 24px;
    color: rgba(255,255,255,0.8);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}

.services-scroll-cue {
    position: absolute;
    z-index: 2;
    right: max(20px, calc((100vw - 1180px) / 2));
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.services-scroll-cue i {
    width: 1px;
    height: 45px;
    display: block;
    background: var(--accent);
    animation: scrollCue 1.8s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollCue {
    0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

.services-intro {
    padding: clamp(110px, 15vw, 210px) 0;
}

.services-intro-lines {
    display: grid;
    gap: clamp(55px, 8vw, 105px);
}

.services-intro-lines p {
    max-width: 1060px;
    color: #c8d0d7;
    font-size: clamp(2.1rem, 5.2vw, 5rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.services-intro-lines p:nth-child(even) {
    margin-left: auto;
    text-align: right;
}

.services-intro-lines em {
    color: var(--blue-dark);
    font-style: normal;
}

.services-intro-conclusion {
    margin-top: clamp(150px, 20vw, 280px);
    padding-top: 60px;
    border-top: 1px solid #dfe5e9;
}

.services-intro-conclusion > p {
    max-width: 650px;
    margin-left: auto;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

.services-intro-conclusion h2 {
    max-width: 1030px;
    margin-top: 105px;
    color: #aeb8c1;
    font-size: clamp(2.6rem, 6vw, 6rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.services-intro-conclusion h2 strong {
    color: var(--blue-dark);
}

.service-chapters {
    background: #e9eef1;
}

.service-chapters-header {
    padding-top: 130px;
    padding-bottom: 115px;
}

.service-chapters-header h2 {
    color: var(--blue-dark);
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.service-chapter {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    background: var(--white);
}

.service-chapter.is-reversed {
    grid-template-columns: 0.88fr 1.12fr;
    background: #f3f6f7;
}

.service-chapter.is-reversed .service-chapter-visual {
    order: 2;
}

.service-chapter-visual {
    position: sticky;
    top: 84px;
    height: calc(100vh - 84px);
    overflow: hidden;
    background: #102d47;
}

.service-chapter-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.service-chapter:hover .service-chapter-visual img {
    transform: scale(1.015);
}

.project-image-placeholder {
    position: absolute;
    inset: 0;
    padding: clamp(35px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    background-color: #173b5a;
    background-image: linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 55px 55px;
}

.service-chapter:nth-of-type(3n) .project-image-placeholder { background-color: #285f62; }
.service-chapter:nth-of-type(3n + 1) .project-image-placeholder { background-color: #203a4c; }

.project-image-placeholder::before {
    content: "";
    position: absolute;
    top: 10%;
    right: 10%;
    width: min(40vw, 430px);
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}

.project-image-placeholder span,
.project-image-placeholder strong {
    position: relative;
    z-index: 1;
}

.project-image-placeholder span {
    margin-bottom: 10px;
    color: var(--accent-hover);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-image-placeholder strong {
    max-width: 480px;
    font-size: clamp(1.35rem, 2.7vw, 2.5rem);
    line-height: 1.15;
}

.service-chapter-copy {
    padding: clamp(80px, 11vw, 165px) clamp(38px, 7vw, 105px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-chapter-number {
    margin-bottom: 60px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.service-chapter-copy h2 {
    color: var(--blue-dark);
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    line-height: 0.97;
    letter-spacing: -0.055em;
}

.service-chapter-copy h3 {
    margin: 30px 0 22px;
    color: var(--color-copper-dark);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.25;
}

.service-chapter-copy > p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.service-chapter-copy ul {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    list-style: none;
}

.service-chapter-copy li {
    position: relative;
    padding-left: 14px;
    color: var(--blue-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.service-chapter-copy li::before {
    content: "";
    position: absolute;
    top: 0.56em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.service-chapter-actions {
    margin-top: 45px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
}

.service-chapter-actions a {
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.service-chapter-actions a span {
    display: inline-block;
    margin-left: 7px;
    color: var(--accent);
    transition: transform var(--transition);
}

.service-chapter-actions a:hover span { transform: translateX(7px); }
.service-chapter-actions .secondary { color: var(--color-copper-dark); }

.orbit-graphic {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(64%, 480px);
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-graphic::before,
.orbit-graphic::after {
    content: "";
    position: absolute;
    inset: 18%;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
}

.orbit-graphic::after { inset: 37%; background: var(--accent); border: 0; }
.orbit-graphic i { position: absolute; top: 48%; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-hover); }
.orbit-graphic i:nth-child(2) { top: 8%; left: 70%; }
.orbit-graphic i:nth-child(3) { top: 80%; left: 72%; }

.services-capabilities {
    padding: clamp(110px, 15vw, 200px) 0;
    color: var(--white);
    background: var(--color-navy);
}

.services-capabilities h2 {
    max-width: 1050px;
    font-size: clamp(3.4rem, 8vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.services-capabilities-intro {
    max-width: 680px;
    margin: 80px 0 100px auto;
    color: rgba(255,255,255,0.72);
    font-size: 1.2rem;
    line-height: 1.8;
}

.capability-list {
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.18);
}

.capability-list li {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    font-size: clamp(1.3rem, 2.5vw, 2.3rem);
    transition: color var(--transition), padding-left var(--transition);
}

.capability-list li:hover {
    padding-left: 18px;
    color: var(--accent-hover);
}

.capabilities-statement {
    margin-top: 130px;
    color: var(--accent-hover);
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.services-final-cta {
    position: relative;
    padding: clamp(120px, 17vw, 230px) 0;
    overflow: hidden;
    color: var(--white);
    background: #081d35;
}

.services-final-cta::after {
    content: "";
    position: absolute;
    right: -10vw;
    bottom: -25vw;
    width: 65vw;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.services-final-cta .container { position: relative; z-index: 1; }
.services-final-cta h2 { max-width: 900px; font-size: clamp(3.5rem, 8vw, 8rem); line-height: 0.91; letter-spacing: -0.065em; }
.services-final-emphasis { margin-top: 45px; color: var(--accent-hover); font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-weight: 800; }
.services-final-cta .container > p:not(.services-final-emphasis) { max-width: 650px; margin-top: 25px; color: rgba(255,255,255,0.72); font-size: 1.1rem; line-height: 1.75; }
.services-final-cta .container > div { margin-top: 45px; display: flex; align-items: center; flex-wrap: wrap; gap: 25px 35px; }
.services-text-link { color: var(--white); font-weight: 800; text-decoration: none; }
.services-text-link span { display: inline-block; margin-left: 8px; color: var(--accent); transition: transform var(--transition); }
.services-text-link:hover span { transform: translateX(7px); }

[data-reveal] {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
    .service-chapter,
    .service-chapter.is-reversed {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .service-chapter.is-reversed .service-chapter-visual { order: 0; }
    .service-chapter-visual { position: relative; top: auto; height: min(72vw, 650px); }
    .service-chapter-copy { min-height: auto; }
}

@media (max-width: 700px) {
    .services-story-hero-content { padding-top: 175px; }
    .services-story-shade { background: rgba(6,21,38,0.74); }
    .services-scroll-cue { display: none; }
    .services-intro-lines p:nth-child(even) { margin-left: 0; text-align: left; }
    .services-intro-conclusion > p { margin-left: 0; }
    .services-intro-conclusion h2 { margin-top: 75px; }
    .service-chapters-header { padding-top: 85px; padding-bottom: 75px; }
    .service-chapter-copy { padding: 70px 20px 80px; }
    .service-chapter-number { margin-bottom: 38px; }
    .service-chapter-visual { width: 100%; height: 82vw; }
    .project-image-placeholder { padding: 30px 20px; }
    .services-capabilities-intro { margin: 55px 0 70px; }
    .capabilities-statement { margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .services-scroll-cue i,
    .services-story-hero-media {
        animation: none;
        transform: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 640px) {
    .subpage-main {
        padding-top: 124px;
    }

    .subpage-hero {
        min-height: 340px;
    }

    .subpage-intro,
    .subpage-slider-wrap,
    .subpage-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    .subpage-slider {
        grid-auto-columns: 86%;
    }

    .subpage-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* GEMEINSAMES LAYOUT DER LEISTUNGSSEITEN */
.leistung-page {
    padding-top: 84px;
    background: var(--bg);
}

.leistung-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(105deg, rgba(8,29,53,0.96), rgba(14,44,71,0.86) 56%, rgba(14,44,71,0.48)),
        url("/Bilder/Header1.JPG") center / cover no-repeat;
}

.leistung-hero-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    top: -210px;
    right: -100px;
    border-radius: 50%;
    background: rgba(199,142,122,0.16);
    filter: blur(8px);
}

.leistung-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 60px;
}

.leistung-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 76px;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
}

.leistung-back:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.leistung-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: end;
}

.leistung-hero .subpage-kicker {
    color: var(--accent-hover);
}

.leistung-hero h1 {
    max-width: 900px;
    margin-top: 16px;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.leistung-hero-icon {
    width: clamp(105px, 13vw, 165px);
    height: clamp(105px, 13vw, 165px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

.leistung-hero-icon img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.leistung-content-section {
    padding: 120px 0;
    background: var(--white);
}

.leistung-content-grid {
    display: grid;
    grid-template-columns: 0.42fr 1.58fr;
    gap: clamp(40px, 8vw, 110px);
    align-items: start;
}

.leistung-intro-mark {
    color: #e8eef3;
    font-size: clamp(7rem, 16vw, 13rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.leistung-main-copy {
    max-width: 800px;
}

.leistung-main-copy h2 {
    margin: 12px 0 32px;
    color: var(--blue-dark);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.leistung-main-copy > p {
    color: var(--muted);
    font-size: clamp(1.08rem, 1.6vw, 1.28rem);
    line-height: 1.85;
}

.leistung-flyer-button {
    margin-top: 34px;
}

.leistung-download-note {
    display: block;
    margin-top: 12px;
    color: var(--muted);
}

.leistung-separator {
    padding: clamp(34px, 5vw, 62px) 0;
    background: var(--white);
}

.leistung-separator span {
    position: relative;
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 95, 79, 0.45) 18%, rgba(13, 39, 64, 0.18) 50%, rgba(155, 95, 79, 0.45) 82%, transparent);
}

.leistung-separator span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 2px solid var(--color-copper-dark);
    border-radius: 50%;
    background: var(--white);
    transform: translate(-50%, -50%);
}

.breadcrumb ol {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.55;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.breadcrumb-on-image {
    position: relative;
    z-index: 3;
    color: rgba(255, 255, 255, 0.82);
}

.service-reference,
.project-related-services {
    padding: clamp(70px, 8vw, 110px) 0;
    background: #f4f6f7;
}

.service-profile {
    padding: clamp(68px, 8vw, 105px) 0;
    background: #f4f6f7;
}

.service-profile h2 {
    max-width: 760px;
    margin: 10px 0 36px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.service-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-profile-grid article {
    padding: 28px;
    background: var(--white);
    border-radius: 16px;
}

.service-profile-grid h3 {
    margin-bottom: 12px;
    color: var(--color-copper-dark);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-profile-grid p {
    color: var(--blue-dark);
    font-weight: 650;
    line-height: 1.6;
}

.service-reference-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 42px;
}

.service-reference-inner > div {
    max-width: 760px;
}

.service-reference h2,
.project-related-services h2 {
    margin: 10px 0 18px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.service-reference p {
    color: var(--muted);
    line-height: 1.75;
}

.project-related-links {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.project-related-links a {
    padding: 18px 22px;
    color: var(--blue-dark);
    background: var(--white);
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.project-related-links a:hover {
    color: var(--white);
    background: var(--color-copper-dark);
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .service-reference-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

.leistung-detail-sections {
    padding: 35px 0;
    background: var(--white);
}

.leistung-detail-row {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(65px, 9vw, 115px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(45px, 8vw, 105px);
    align-items: center;
}

.leistung-detail-row + .leistung-detail-row {
    border-top: 1px solid #e1e7eb;
}

.leistung-detail-row.is-reversed {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.leistung-detail-row.is-reversed .leistung-detail-image {
    order: 2;
}

.leistung-detail-image {
    position: relative;
    min-height: clamp(360px, 43vw, 560px);
    padding: clamp(28px, 5vw, 55px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: var(--white);
    background-color: var(--blue-mid);
    background-image:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 48px 48px;
}

.leistung-detail-row:nth-child(2) .leistung-detail-image {
    background-color: #356f6b;
}

.leistung-detail-row:nth-child(3) .leistung-detail-image {
    background-color: #18334a;
}

.leistung-detail-image::before {
    content: "";
    position: absolute;
    top: 12%;
    right: 10%;
    width: 48%;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}

.leistung-detail-image span,
.leistung-detail-image strong {
    position: relative;
    z-index: 1;
}

.leistung-detail-image span {
    margin-bottom: 9px;
    color: var(--accent-hover);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.leistung-detail-image strong {
    max-width: 420px;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.leistung-detail-copy h2 {
    margin: 13px 0 25px;
    color: var(--blue-dark);
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.leistung-detail-copy p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.leistung-cta {
    padding: 100px 0;
}

.leistung-cta-box {
    padding: clamp(35px, 6vw, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.leistung-cta-box h2 {
    max-width: 720px;
    margin-top: 10px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.leistung-cta-box .btn {
    flex: 0 0 auto;
}

.leistung-next {
    padding: 58px max(20px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--white);
    background: var(--accent);
    text-decoration: none;
    transition: background var(--transition);
}

.leistung-next:hover {
    background: var(--accent-hover);
}

.leistung-next > span {
    font-weight: 700;
    opacity: 0.82;
}

.leistung-next strong {
    font-size: clamp(1.45rem, 3vw, 2.5rem);
}

.leistung-next strong span {
    display: inline-block;
    transition: transform var(--transition);
}

.leistung-next:hover strong span {
    transform: translateX(8px);
}

@media (max-width: 1100px) {
    .leistung-page {
        padding-top: 124px;
    }
}

@media (max-width: 760px) {
    .leistung-hero {
        min-height: 510px;
    }

    .leistung-hero-inner {
        padding-top: 20px;
    }

    .leistung-back {
        margin-bottom: 54px;
    }

    .leistung-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .leistung-hero-icon {
        display: none;
    }

    .leistung-content-section {
        padding: 75px 0;
    }

    .leistung-content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .leistung-intro-mark {
        font-size: 6rem;
    }

    .leistung-detail-sections {
        padding: 10px 0;
    }

    .leistung-detail-row,
    .leistung-detail-row.is-reversed {
        padding: 60px 0;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .leistung-detail-row.is-reversed .leistung-detail-image {
        order: 0;
    }

    .leistung-detail-image {
        min-height: 78vw;
    }

    .leistung-cta {
        padding: 70px 0;
    }

    .leistung-cta-box,
    .leistung-next {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .leistung-page {
        padding-top: 148px;
    }
}

/* LEISTUNGSÜBERSICHT */
.services-directory-page {
    padding-top: 84px;
    background: var(--bg);
}

.services-directory-hero {
    min-height: 760px;
    padding: 80px 0;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(15,30,51,0.94) 0%, rgba(15,30,51,0.78) 36%, rgba(15,30,51,0.20) 70%, rgba(15,30,51,0.05) 100%),
        url("/Bilder/oma-station-vor-ort.webp") center top / cover no-repeat;
}

.services-directory-hero > .container {
    animation: fadeUp 1s ease both;
}

.services-directory-hero h1 {
    margin-bottom: 25px;
    color: var(--color-white);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-shadow: 0 10px 30px rgba(15, 30, 51, 0.22);
}

.services-directory-hero p {
    max-width: 680px;
    color: rgba(255,255,255,0.84);
    font-size: 1.15rem;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .services-directory-hero {
        min-height: 620px;
        padding: 64px 0;
    }
}

.services-directory {
    padding: 100px 0 115px;
    background: var(--white);
}

.services-directory > .container > h2 {
    margin-bottom: 48px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.services-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.services-directory-card {
    position: relative;
    min-height: 360px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: #f5f8fa;
    border: 1px solid #e2e8ed;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.services-directory-card:hover {
    z-index: 1;
    background: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.services-directory-number {
    position: absolute;
    top: 25px;
    right: 26px;
    color: #9caab6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.services-directory-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 30px;
    display: grid;
    place-items: center;
}

.services-directory-icon img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    transition: transform var(--transition);
}

.services-directory-card:hover .services-directory-icon img {
    transform: translateY(-2px);
}

.services-directory-card h3 {
    margin-bottom: 13px;
    color: var(--blue-dark);
    font-size: 1.3rem;
}

.services-directory-card p {
    margin-bottom: 25px;
    color: var(--muted);
    line-height: 1.6;
}

.services-directory-link {
    margin-top: auto;
    color: var(--color-copper-dark);
    font-weight: 800;
}

.services-directory-link i {
    display: inline-block;
    margin-left: 7px;
    color: var(--accent);
    font-style: normal;
    transition: transform var(--transition);
}

.services-directory-card:hover .services-directory-link i {
    transform: translateX(7px);
}

.services-directory-cta {
    padding: 95px 0;
    color: var(--white);
    background: var(--blue-dark);
}

.services-directory-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.services-directory-cta h2 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.services-directory-cta .btn {
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .services-directory-page {
        padding-top: 124px;
    }
}

@media (max-width: 900px) {
    .services-directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .services-directory-page {
        padding-top: 148px;
    }

    .services-directory {
        padding: 70px 0 80px;
    }

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

    .services-directory-card {
        min-height: 330px;
    }

    .services-directory-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* KUNDENKARUSSELL */
.customers {
    padding: 100px 0 90px;
    overflow: hidden;
    background: var(--white);
}

.customers-heading {
    margin-bottom: 52px;
}

.customers-heading h2 {
    margin-bottom: 18px;
    color: var(--blue-dark);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.customers-heading p {
    max-width: 660px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.customers-carousel {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    overflow: hidden;
}

.customers-carousel::before,
.customers-carousel::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: clamp(55px, 9vw, 120px);
    pointer-events: none;
}

.customers-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--white) 10%, rgba(255,255,255,0));
}

.customers-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--white) 10%, rgba(255,255,255,0));
}

.customers-track {
    width: 100%;
    overflow-x: auto;
    padding: 18px clamp(48px, 7vw, 82px) 26px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.customers-track::-webkit-scrollbar {
    display: none;
}

.customers-set {
    width: max-content;
    display: flex;
    align-items: stretch;
    gap: 18px;
}

.customer-name {
    width: clamp(165px, 16vw, 205px);
    min-height: 220px;
    padding: 22px 14px 18px;
    display: grid;
    place-items: center;
    color: var(--blue-dark);
    background: var(--white);
    border: 0;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: center;
    transition: color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.customer-name.has-link {
    position: relative;
    padding-right: 42px;
}

.customer-name.has-link > span {
    position: absolute;
    top: 15px;
    right: 17px;
    color: var(--accent);
    font-size: 1rem;
}

.customer-name:hover {
    color: var(--blue-dark);
    background: #fbfcfe;
    box-shadow: 0 18px 34px rgba(13,39,64,0.12);
    transform: translateY(-3px);
}

.customer-name:nth-child(even):hover {
    transform: translateY(-3px);
}

.customers-source-link {
    margin-top: 35px;
    text-align: right;
}

.customers-source-link a {
    color: var(--color-copper-dark);
    font-weight: 800;
    text-decoration: none;
}

.customers-source-link span {
    display: inline-block;
    margin-left: 8px;
    color: var(--accent);
    transition: transform var(--transition);
}

.customers-source-link a:hover span {
    transform: translateX(7px);
}

.customers-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--blue-dark);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 8px 24px rgba(8,24,44,0.16);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.customers-arrow:hover {
    color: var(--white);
    background: var(--accent);
    transform: translateY(-50%);
}

.customers-arrow-prev {
    left: 8px;
}

.customers-arrow-next {
    right: 8px;
}

@media (max-width: 700px) {
    .customers {
        padding: 70px 0 65px;
    }

    .customers-heading {
        margin-bottom: 38px;
    }

    .customer-name {
        width: min(72vw, 220px);
        min-height: 210px;
    }

    .customers-track {
        padding-inline: 42px;
    }

    .customers-source-link {
        text-align: left;
    }
}

/* AUTOMATISCHER HERO-BILDWECHSEL */
.hero {
    isolation: isolate;
    background: var(--color-navy);
}

.hero-slideshow,
.hero-slide,
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slideshow {
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero .hero-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(15,30,51,0.94) 0%, rgba(15,30,51,0.78) 36%, rgba(15,30,51,0.20) 70%, rgba(15,30,51,0.05) 100%);
}

.hero .hero-content {
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

/* Finale Breitenkorrektur für den Kontaktbereich */
.error-page {
    min-height: calc(100vh - 84px);
    padding: clamp(180px, 20vw, 260px) 0 110px;
    display: flex;
    align-items: center;
    background: #f4f6f7;
}

.error-page-inner {
    max-width: 850px;
}

.error-page h1 {
    margin: 12px 0 24px;
    color: var(--blue-dark);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.error-page p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.error-page-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.error-page .text-link {
    color: var(--color-copper-dark);
    font-weight: 800;
    text-decoration: none;
}

.customers-directory {
    padding: 100px 0 110px;
    background: var(--white);
}

.customers-directory-intro {
    max-width: 820px;
    margin-bottom: 52px;
}

.customers-directory-intro h2 {
    margin: 10px 0 18px;
    color: var(--blue-dark);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.customers-directory-intro p {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.customers-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.customers-directory-card {
    position: relative;
    min-height: 180px;
    padding: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    color: var(--blue-dark);
    background: #f4f6f7;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

a.customers-directory-card:hover {
    color: var(--white);
    background: var(--color-copper-dark);
    box-shadow: 0 18px 38px rgba(13,39,64,0.16);
    transform: translateY(-4px);
}

.customers-directory-card i {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 1.2rem;
    font-style: normal;
}

a.customers-directory-card:hover i {
    color: var(--white);
}

@media (max-width: 1000px) {
    .customers-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .customers-directory {
        padding: 70px 0 80px;
    }

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

    .customers-directory-card {
        min-height: 145px;
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .customers-directory-grid {
        grid-template-columns: 1fr;
    }
}

.contact.container .contact-box {
    width: 100%;
    max-width: none;
}

/* BACKEND-BEREICHSAUSWAHL UND LEISTUNGSVERWALTUNG */
.admin-area-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.admin-area-card {
    min-height: 290px;
    padding: clamp(28px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid rgba(15, 30, 51, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.admin-area-card:hover,
.admin-area-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(155, 95, 79, 0.45);
    box-shadow: var(--shadow-medium);
}

.admin-area-card > span {
    color: var(--color-copper-dark);
    font-weight: 800;
}

.admin-area-card h2 {
    margin: 22px 0 12px;
}

.admin-area-card p {
    color: var(--color-secondary-text);
}

.admin-area-card strong {
    margin-top: auto;
    padding-top: 30px;
}

.admin-back-link {
    display: inline-block;
    margin: 6px 0 24px;
    color: var(--color-copper-dark);
    font-weight: 700;
    text-underline-offset: 4px;
}

.admin-service-list {
    margin-top: 44px;
}

.admin-service-card-heading {
    display: flex;
    align-items: center;
    gap: 24px;
}

.admin-service-card-heading img {
    width: 86px;
    height: 86px;
    padding: 12px;
    object-fit: contain;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.admin-service-card-heading h2 {
    margin: 6px 0;
}

.admin-service-card-heading a {
    color: var(--color-copper-dark);
    font-weight: 700;
}

@media (max-width: 720px) {
    .admin-area-grid {
        grid-template-columns: 1fr;
    }
}

/* EDITIERBARE HERO- UND ABSCHNITTSBILDER DER LEISTUNGEN */
.hero,
.leistung-hero {
    /* Das sichtbare Bild liegt als responsives <picture> darüber. */
    background-image: none;
    background-color: var(--color-navy);
}

.leistung-hero-media,
.leistung-hero-overlay {
    position: absolute;
    inset: 0;
}

.leistung-hero-media picture,
.project-detail-hero-media picture {
    position: absolute;
    inset: 0;
}

.leistung-detail-image picture {
    position: absolute;
    inset: 0;
}

.project-detail-image picture,
.projects-directory-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.service-gallery-slide picture {
    display: contents;
}

/* Smartphone: ruhiger Seitenrahmen und bildstarker Slider im Kartenformat. */
@media (max-width: 700px) {
    body {
        background: #f3f0eb;
        overflow-x: clip;
    }

    .header {
        left: 0;
        width: 100%;
    }

    main,
    .footer {
        width: calc(100% - 28px);
        margin-inline: auto;
        background-color: var(--color-white);
    }

    main {
        overflow: hidden;
    }

    body > main {
        padding-top: 88px !important;
    }

    main > section,
    .footer {
        border-radius: 20px;
    }

    .hero {
        min-height: 0;
        margin-top: 14px;
        padding: 26px 0 30px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        background: var(--color-white);
        border-radius: 22px;
        overflow: hidden;
    }

    .hero-slideshow {
        position: relative;
        inset: auto;
        width: calc(100% - 32px);
        height: auto;
        aspect-ratio: 16 / 10;
        margin: 22px auto 24px;
        grid-row: 2;
        background: #ece8e3;
        border-radius: 20px;
        overflow: hidden;
    }

    .hero-slide,
    .hero-slide picture,
    .hero-slide img {
        border-radius: 20px;
    }

    .hero-slide img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: right center;
    }

    .hero .hero-overlay {
        display: none;
    }

    .hero .hero-content {
        display: contents;
    }

    .hero-box {
        display: contents;
        overflow-wrap: anywhere;
    }

    .hero-box h1 {
        width: calc(100% - 32px);
        margin: 0 auto;
        grid-row: 1;
        color: var(--color-navy);
        font-size: clamp(2rem, 9.4vw, 2.75rem);
        line-height: 1.04;
        text-shadow: none;
    }

    .typewriter-shell {
        max-width: 100%;
        white-space: normal;
    }

    .typewriter-word::after {
        background: var(--color-copper-dark);
    }

    .hero-box p {
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 auto 22px;
        grid-row: 3;
        color: var(--color-text-secondary);
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-box > .btn {
        width: calc(100% - 32px);
        margin: 0 auto;
        grid-row: 4;
        text-align: center;
    }

    .leistungen-carousel,
    .customers-carousel,
    .service-gallery-carousel {
        width: 100%;
        border-radius: 20px;
    }

    .leistungen-grid {
        grid-auto-columns: min(78vw, 280px);
        padding-inline: 28px;
        scroll-snap-type: x mandatory;
    }

    .customers-track,
    .service-gallery-track {
        padding-inline: 28px;
        scroll-snap-type: x mandatory;
    }

    .leistung-card,
    .customer-name,
    .service-gallery-slide {
        border-radius: 18px;
        scroll-snap-align: center;
    }

    .carousel-button,
    .customers-arrow,
    .service-gallery-arrow {
        width: 36px;
        height: 36px;
    }
}

.leistung-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.leistung-hero-overlay {
    background: linear-gradient(90deg, rgba(15,30,51,0.94) 0%, rgba(15,30,51,0.78) 36%, rgba(15,30,51,0.20) 70%, rgba(15,30,51,0.05) 100%);
}

.leistung-hero-subheadline {
    max-width: 680px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.65;
}

.leistung-detail-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* EIGENSTÄNDIGE KONTAKTSEITE */
.contact-page {
    padding-top: 84px;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
}

.contact-page-hero { order: 1; }
.contact-form-section { order: 2; }
.contact-details { order: 3; }

.contact-page-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    background:
        linear-gradient(90deg, rgba(15,30,51,0.95) 0%, rgba(15,30,51,0.80) 44%, rgba(15,30,51,0.24) 78%, rgba(15,30,51,0.08) 100%),
        url("/Bilder/oma-station-vor-ort.webp") center top / cover no-repeat;
}

.contact-page-hero h1 {
    max-width: 900px;
    margin: 12px 0 26px;
    color: var(--color-white);
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.contact-page-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.contact-details {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--color-white);
}

.contact-details-heading {
    margin-bottom: 42px;
}

.contact-details-heading h2 {
    margin-top: 10px;
    color: var(--color-navy);
    font-size: clamp(2.3rem, 4.5vw, 4rem);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-info-card {
    min-height: 280px;
    padding: clamp(26px, 4vw, 40px);
    color: var(--color-navy);
    background: var(--color-bg);
    border: 1px solid rgba(15, 30, 51, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-address-card {
    background: var(--color-navy);
    color: var(--color-white);
}

.contact-card-label {
    display: block;
    margin-bottom: 22px;
    color: var(--color-copper-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-address-card .contact-card-label {
    color: #e5b5a5;
}

.contact-info-card h3 {
    margin-bottom: 18px;
    color: inherit;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.contact-info-card p {
    line-height: 1.8;
}

.contact-info-card a {
    color: inherit;
    font-weight: 650;
    text-underline-offset: 4px;
}

.contact-info-card > a {
    display: inline-block;
    margin-top: 24px;
    color: #e5b5a5;
}

.contact-form-section {
    padding: clamp(80px, 10vw, 130px) 0;
}

.contact-form-section .contact-box {
    width: 100%;
    max-width: none;
}

#contact-form .form-field-consent {
    grid-column: 1 / -1;
}

.contact-consent {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.contact-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--color-copper-dark);
}

.contact-consent label {
    font-weight: 500;
    line-height: 1.65;
}

.contact-consent a {
    color: var(--color-copper-dark);
    font-weight: 700;
}

@media (max-width: 900px) {
    .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .contact-page-hero {
        min-height: 560px;
    }

    #contact-form .form-field-consent {
        grid-column: auto;
    }
}

/* ICON STATT NUMMER AUF LEISTUNGSUNTERSEITEN */
.leistung-intro-icon {
    width: min(100%, 210px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-self: start;
}

.leistung-intro-icon img {
    width: 78%;
    height: 78%;
    display: block;
    object-fit: contain;
    filter: grayscale(1) contrast(1.08);
}

.leistung-hero-content {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 760px) {
    .leistung-intro-icon {
        width: 130px;
    }
}

/* PROJEKTÜBERSICHT */
.projects-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.projects-directory-card {
    overflow: hidden;
    display: flex;
    min-height: 430px;
    flex-direction: column;
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid rgba(15, 30, 51, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.projects-directory-card:hover,
.projects-directory-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(155, 95, 79, 0.45);
    box-shadow: var(--shadow-medium);
}

.projects-directory-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-steel);
}

.projects-directory-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.projects-directory-content {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.projects-directory-content h3 {
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.projects-directory-content p {
    margin-bottom: 24px;
    color: var(--color-secondary-text);
    line-height: 1.7;
}

.projects-directory-content .services-directory-link {
    margin-top: auto;
}

@media (max-width: 980px) {
    .projects-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .projects-directory-grid {
        grid-template-columns: 1fr;
    }
}

/* LOGIN & PROJEKTVERWALTUNG */
.admin-page {
    min-height: 100vh;
    padding: 150px 0 100px;
    background: var(--color-bg);
}

.admin-page h1 {
    margin-bottom: 14px;
    color: var(--color-navy);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.admin-page h2 {
    color: var(--color-navy);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.admin-login {
    width: min(100%, 560px);
    margin-inline: auto;
    padding: clamp(28px, 5vw, 52px);
    background: var(--color-white);
    border: 1px solid rgba(15, 30, 51, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.admin-login > p,
.admin-dashboard > p {
    color: var(--color-secondary-text);
}

.admin-form {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.admin-form .btn {
    justify-self: start;
}

.admin-form input[type="file"] {
    padding: 8px;
    background: var(--color-white);
}

.admin-form input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 16px;
    color: var(--color-white);
    background: var(--color-copper-dark);
    border: 0;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-form input[type="file"]::file-selector-button:hover {
    background: var(--color-copper-hover);
}

.admin-alert {
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.admin-alert-error {
    color: #711f1f;
    background: #fdeaea;
    border: 1px solid #e9b7b7;
}

.admin-alert-success {
    color: #1f5c3b;
    background: #e8f5ed;
    border: 1px solid #add5bc;
}

.admin-server-info {
    margin-top: 18px;
    padding: 12px 16px;
    color: var(--color-steel);
    background: var(--color-blush);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.admin-panel,
.admin-project-card {
    margin-top: 44px;
    padding: clamp(24px, 4vw, 40px);
    background: var(--color-white);
    border: 1px solid rgba(15, 30, 51, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.admin-project-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field-wide,
.admin-project-form .btn {
    grid-column: 1 / -1;
}

.admin-projects {
    margin-top: 80px;
}

.admin-project-list {
    display: grid;
    gap: 28px;
}

.admin-project-preview {
    width: min(100%, 280px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-steel);
}

.admin-project-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.admin-delete-form {
    margin-top: 18px;
}

.admin-delete-button {
    padding: 10px 0;
    color: #8b2929;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.admin-logout-form {
    margin: 0;
}

@media (max-width: 700px) {
    .admin-page {
        padding: 125px 0 70px;
    }

    .admin-project-form {
        grid-template-columns: 1fr;
    }

    .admin-field-wide,
    .admin-project-form .btn {
        grid-column: auto;
    }
}

/* PROJEKTDETAILSEITEN */
.project-detail-page {
    padding-top: 84px;
    background: var(--color-bg);
}

.project-detail-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-navy);
}

.project-detail-hero-media,
.project-detail-hero-overlay {
    position: absolute;
    inset: 0;
}

.project-detail-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.project-detail-hero-overlay {
    background: linear-gradient(90deg, rgba(15,30,51,0.94) 0%, rgba(15,30,51,0.78) 36%, rgba(15,30,51,0.20) 70%, rgba(15,30,51,0.05) 100%);
}

.project-detail-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeUp 1s ease both;
}

.project-detail-hero .leistung-back {
    margin-bottom: 64px;
}

.project-detail-hero h1 {
    max-width: 900px;
    margin: 12px 0 24px;
    color: var(--color-white);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 5.6vw, 5.7rem);
    font-weight: 600;
    line-height: 0.99;
    letter-spacing: -0.035em;
    text-shadow: 0 10px 30px rgba(15, 30, 51, 0.22);
}

.project-detail-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.65;
}

.project-detail-sections {
    background: var(--color-white);
}

.project-detail-row {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(65px, 9vw, 115px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(45px, 8vw, 105px);
    align-items: center;
}

.project-detail-row + .project-detail-row {
    border-top: 1px solid rgba(15, 30, 51, 0.12);
}

.project-detail-row.is-reversed {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.project-detail-row.is-reversed .project-detail-image {
    order: 2;
}

.project-detail-image {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: var(--color-steel);
    border-radius: var(--radius-lg);
}

.project-detail-image picture {
    position: absolute;
    inset: 0;
}

.project-detail-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
}

.project-detail-copy h1,
.project-detail-copy h2 {
    margin: 13px 0 25px;
    color: var(--color-navy);
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.project-detail-copy p {
    margin-top: 16px;
    color: var(--color-secondary-text);
    font-size: 1.08rem;
    line-height: 1.85;
}

.admin-sections-editor {
    margin-top: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 30, 51, 0.12);
}

.admin-sections-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-sections-heading h3 {
    color: var(--color-navy);
    font-size: 1.25rem;
}

.admin-section-list {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

.admin-section-item {
    position: relative;
    padding: 24px;
    display: grid;
    gap: 18px;
    border: 1px solid rgba(15, 30, 51, 0.14);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.admin-section-item legend {
    padding-inline: 8px;
    color: var(--color-navy);
    font-weight: 700;
}

.admin-remove-section {
    justify-self: end;
    color: #8b2929;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 760px) {
    .project-detail-hero {
        min-height: 620px;
    }

    .project-detail-hero .leistung-back {
        margin-bottom: 42px;
    }

    .project-detail-row,
    .project-detail-row.is-reversed {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .project-detail-row.is-reversed .project-detail-image {
        order: 0;
    }

    .project-detail-image {
        min-height: 0;
    }

    .admin-sections-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Einheitliche mobile Seiten-Heroes und klar getrennte Abschnittskarten. */
@media (max-width: 700px) {
    main {
        background: transparent;
        overflow: visible;
    }

    main > section {
        position: relative;
        overflow: hidden;
    }

    main > section + section {
        margin-top: 12px;
    }

    body > .footer {
        margin-top: 12px;
        margin-bottom: 14px;
    }

    .leistung-detail-row + .leistung-detail-row,
    .project-detail-row + .project-detail-row {
        margin-top: 12px;
    }

    .leistung-hero,
    .project-detail-hero {
        min-height: 0;
        margin-top: 14px;
        padding: 24px 0 30px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        color: var(--color-navy);
        background: var(--color-white);
        border-radius: 22px;
    }

    .leistung-hero-overlay,
    .leistung-hero-glow,
    .project-detail-hero-overlay {
        display: none;
    }

    .leistung-hero-inner,
    .leistung-hero-content,
    .leistung-hero-content > div,
    .project-detail-hero-content {
        display: contents;
    }

    .leistung-hero .breadcrumb,
    .project-detail-hero .breadcrumb {
        width: calc(100% - 32px);
        margin: 0 auto 16px;
        grid-row: 1;
        color: var(--color-text-secondary);
    }

    .leistung-hero .breadcrumb a,
    .project-detail-hero .breadcrumb a {
        color: var(--color-text-secondary);
    }

    .leistung-hero h1,
    .project-detail-hero h1 {
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 auto;
        grid-row: 2;
        color: var(--color-navy);
        font-size: clamp(2.25rem, 10vw, 3.2rem);
        line-height: 1.02;
        letter-spacing: -0.04em;
        text-shadow: none;
    }

    .leistung-hero-media,
    .project-detail-hero-media {
        position: relative;
        inset: auto;
        width: calc(100% - 32px);
        aspect-ratio: 16 / 10;
        margin: 22px auto 24px;
        grid-row: 3;
        background: #ece8e3;
        border-radius: 20px;
        overflow: hidden;
    }

    .leistung-hero-media picture,
    .project-detail-hero-media picture {
        position: absolute;
        inset: 0;
    }

    .leistung-hero-media img,
    .project-detail-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
        border-radius: 20px;
    }

    .leistung-hero-subheadline,
    .project-detail-hero p {
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 auto;
        grid-row: 4;
        color: var(--color-text-secondary);
        font-size: 1rem;
        line-height: 1.65;
    }

    .services-directory-hero,
    .contact-page-hero,
    .legal-page-hero {
        min-height: 0;
        margin-top: 14px;
        padding: 24px 0 30px;
        color: var(--color-navy);
        background: var(--color-white);
        border-radius: 22px;
    }

    .services-directory-hero > .container,
    .contact-page-hero > .container,
    .legal-page-hero > .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .services-directory-hero .section-kicker,
    .contact-page-hero .section-kicker,
    .legal-page-hero .section-kicker {
        grid-row: 1;
    }

    .services-directory-hero h1,
    .contact-page-hero h1,
    .legal-page-hero h1 {
        max-width: none;
        margin: 10px 0 0;
        grid-row: 2;
        color: var(--color-navy);
        font-size: clamp(2.25rem, 10vw, 3.2rem);
        line-height: 1.02;
        text-shadow: none;
    }

    .services-directory-hero > .container::before,
    .contact-page-hero > .container::before,
    .legal-page-hero > .container::before {
        content: "";
        width: 100%;
        aspect-ratio: 16 / 10;
        margin: 22px 0 24px;
        grid-row: 3;
        background: url("/Bilder/oma-station-vor-ort.webp") right center / cover no-repeat;
        border-radius: 20px;
    }

    .services-directory-hero p,
    .contact-page-hero p,
    .legal-page-hero p {
        max-width: none;
        margin: 0;
        grid-row: 4;
        color: var(--color-text-secondary);
        font-size: 1rem;
        line-height: 1.65;
    }
}

/* Kompakte Smartphone-Karussells: größere Karten, Bedienung ausschließlich per Wischen. */
@media (max-width: 700px) {
    .leistungen-carousel::before,
    .leistungen-carousel::after,
    .customers-carousel::before,
    .customers-carousel::after,
    .carousel-button,
    .customers-arrow {
        display: none;
    }

    .leistungen-grid {
        grid-auto-columns: minmax(min-content, clamp(112px, 34%, 170px));
        gap: 8px;
        padding: 14px 6px 20px;
        scroll-padding-inline: 6px;
        scroll-snap-type: x proximity;
        touch-action: auto;
        cursor: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leistung-card {
        min-width: 0;
        padding: 18px 8px 16px;
        border-radius: 14px;
    }

    .leistung-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .leistung-icon img {
        width: 48px;
        height: 48px;
    }

    .leistung-card h3 {
        margin-bottom: 6px;
        font-size: 0.84rem;
        line-height: 1.18;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .leistung-card p {
        font-size: 0.76rem;
        line-height: 1.3;
    }

    .customers-track {
        padding: 14px 6px 20px;
        scroll-padding-inline: 6px;
        scroll-snap-type: x mandatory;
    }

    .customers-set {
        gap: 8px;
    }

    .customer-name {
        width: clamp(112px, 34vw, 170px);
        min-width: min-content;
        min-height: 175px;
        padding: 12px 8px;
        border-radius: 14px;
        font-size: 0.84rem;
        line-height: 1.3;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .customer-name.has-link {
        padding: 26px 7px 10px;
    }

    .customer-name.has-link > span {
        top: 7px;
        right: 9px;
        font-size: 0.78rem;
    }
}

/* Impressionen: dieselben kompakten Wischkarten wie die Leistungen. */
@media (max-width: 700px) {
    .service-gallery-carousel {
        padding-inline: 0;
    }

    .service-gallery-carousel::before,
    .service-gallery-carousel::after,
    .service-gallery-arrow {
        display: none;
    }

    .service-gallery-track {
        gap: 8px;
        padding: 14px 6px 20px;
        scroll-padding-inline: 6px;
        scroll-snap-type: x proximity;
        touch-action: auto;
        -webkit-overflow-scrolling: touch;
    }

    .service-gallery-slide {
        flex-basis: clamp(96px, 29%, 145px);
        min-width: 0;
        border-radius: 14px;
        scroll-snap-align: center;
    }

    .service-gallery-slide img {
        height: auto !important;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }

    .service-gallery-slide span {
        padding: 8px 6px 10px;
        font-size: 0.7rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
}

/* Fixierter Seitenhintergrund verhindert auch auf iOS Scrollen hinter dem Dialog. */
html.service-lightbox-open {
    overflow: hidden;
    overscroll-behavior: none;
}

html.service-lightbox-open body {
    position: fixed;
    left: 0;
    right: 0;
    overflow: hidden;
}

.service-lightbox {
    overscroll-behavior: contain;
}

@media (max-width: 700px) {
    .leistungen-carousel .leistung-card,
    .leistungen-carousel .leistung-card:hover,
    .customers-carousel .customer-name,
    .customers-carousel .customer-name:hover {
        box-shadow: none;
        transform: none;
        border: 1px solid rgba(15, 30, 51, 0.08);
    }
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 2px auto 14px;
    padding: 4px 0;
    pointer-events: none;
}

.slider-dots[hidden] {
    display: none;
}

.slider-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(15, 30, 51, 0.18);
}

.slider-dots span.is-active {
    background: rgba(15, 30, 51, 0.55);
}

/* Directory heroes: image sources follow the editable services and projects. */
.directory-slideshow-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--color-navy); }
.directory-slideshow-hero > .container { position: static; animation: none; }
.directory-slideshow { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.directory-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; }
.directory-slide.is-active { opacity: 1; }
.directory-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.directory-slideshow-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,30,51,.94), rgba(15,30,51,.78) 36%, rgba(15,30,51,.2) 70%, rgba(15,30,51,.05)); }
@media (max-width: 700px) {
    .directory-slideshow-hero { display: block; background: var(--color-white); }
    .directory-slideshow-hero::after { display: none; }
    .directory-slideshow-hero > .container::before { display: none; }
    .directory-slideshow-hero .directory-slideshow { position: relative; inset: auto; grid-row: 3; width: 100%; aspect-ratio: 16 / 10; margin: 22px 0 24px; border-radius: 20px; z-index: 0; }
}
@media (prefers-reduced-motion: reduce) { .directory-slide { transition: none; } }

/* Runde Bildkanten auf Leistungsseiten. */
.leistung-page .leistung-detail-image,
.leistung-page .leistung-hero-media,
.services-directory-page:not(.projects-directory-page) .directory-slideshow-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
/* Only the outer frame clips the image; avoid dark anti-aliasing seams. */
.leistung-page .leistung-detail-image:has(picture),
.project-detail-image:has(picture) {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.leistung-page .leistung-detail-image:has(picture)::before,
.leistung-page .leistung-detail-image:has(picture)::after {
    content: none;
}
.leistung-page .leistung-detail-image picture,
.leistung-page .leistung-detail-image img,
.leistung-page .service-gallery-slide img,
.project-detail-image picture,
.project-detail-image img {
    border-radius: 0;
    border: 0;
    outline: 0;
    display: block;
}

/* Leistungsbilder: keine dunklen Unterlagen oder dekorativen Konturen. */
.leistung-page .leistung-detail-image,
.leistung-page .leistung-detail-row:nth-child(n) .leistung-detail-image {
    background: var(--color-white);
    border: 0;
    box-shadow: none;
}
.leistung-page .leistung-detail-image::before,
.leistung-page .leistung-detail-image::after {
    content: none;
    display: none;
}
.leistung-page .service-gallery-slide {
    background: var(--color-white);
    border: 0;
    box-shadow: none;
    overflow: hidden;
    clip-path: inset(0 round var(--radius-lg));
}
.leistung-page .leistung-detail-image {
    clip-path: inset(0 round var(--radius-lg));
}
.leistung-page .service-lightbox img {
    background: var(--color-white);
    border: 0;
    border-radius: 0;
}

/* Shared position and styling for the slideshow pause hint. */
.slideshow-pause-hint {
    position: absolute;
    right: clamp(16px, 3vw, 40px);
    bottom: 18px;
    z-index: 5;
    max-width: calc(100% - 32px);
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(15, 30, 51, .65);
    color: #fff;
    font-size: .75rem;
    line-height: 1.4;
    pointer-events: none;
}
@media (hover: none) { .slideshow-pause-hint { display: none; } }

.team-photo-placeholder::after { content: none; }
.team-photo-placeholder span {
    padding: 20px;
    font-size: .95rem;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    transform: none;
}
