/* =========================================================
   EXTERN – LEISTUNGEN
   ALLWORKS
   KOMPLETTER CSS
========================================================= */

/* =========================================================
   01. BASIS
========================================================= */

.services-page {
    position: relative;
    width: 100%;
    background: var(--palette-paper);
    color: var(--palette-ink);
    overflow: visible;
}

.services-page *,
.services-page *::before,
.services-page *::after {
    box-sizing: border-box;
}

.services-shell {
    width:min(1280px, calc(100% - 56px));
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.services-eyebrow {
    margin: 0 0 10px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--color-primary-text);
}

/* heller Verlauf links */

.services-button {
    min-height: 50px;
    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    flex: 0 0 auto;

    border-radius: 999px;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.services-button:hover {
    transform: translateY(-2px);
}

.services-button--primary {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--palette-paper);
}

.services-button--primary:hover {
    border-color: var(--palette-ink);
    background: var(--palette-ink);
    color: var(--palette-paper);
}

.services-button--secondary {
    border: 1px solid var(--color-primary);
    background: var(--palette-value-b268e757d1);
    color: var(--palette-ink);
    backdrop-filter: blur(8px);
}

.services-button--secondary:hover {
    background: var(--palette-white);
    color: var(--color-primary-text);
}

/* =========================================================
   05. ALLES IM BLICK / INTERAKTIVES HAUS
========================================================= */

.services-interactive {
    position: relative;
    padding: 38px 0 24px;
    background: var(--palette-paper);
}

.services-section-head {
    width: 100%;
    margin: 0 0 10px;
}

.services-section-head h2,
.services-process h2,
.services-why h2 {
    margin: 0;

    max-width: 760px;

    font-family: "Inter", sans-serif;
    font-size: clamp(34px, 3.3vw, 50px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;

    color: var(--palette-ink);
}

.services-section-head p {
    max-width: 560px;

    margin: 7px 0 0;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.55;

    color: var(--palette-value-e8e70f5a3d);
}

/* =========================================================
   06. HAUSGRAFIK
========================================================= */

.services-house {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow: visible;
}

.services-house__image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    object-fit: contain;

    filter:
        drop-shadow(
            0 18px 28px var(--palette-value-ac53fa27f8)
        );
}

/* =========================================================
   07. HOTSPOTS
========================================================= */

.services-hotspot {
    position: absolute;
    z-index: 20;

    width: 56px;
    height: 56px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    text-decoration: none;

    cursor: pointer;
}

.services-hotspot__pulse {
    position: absolute;
    inset: 0;

    display: block;

    border-radius: 50%;

    background: rgba(var(--color-primary-rgb), 0.4);

    box-shadow:
        0 0 0 0 rgba(var(--color-primary-rgb), 0.32);

    animation:
        servicesPulse 2s ease-out infinite;

    transition:
        transform .2s ease,
        background .2s ease;
}

.services-hotspot:hover .services-hotspot__pulse,
.services-hotspot:focus-visible .services-hotspot__pulse {
    background: rgba(var(--color-primary-rgb), 0.55);
    transform: scale(1.10);
}

@keyframes servicesPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(var(--color-primary-rgb), 0.32);
    }

    70% {
        box-shadow:
            0 0 0 20px rgba(var(--color-primary-rgb), 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(var(--color-primary-rgb), 0);
    }
}

/* =========================================================
   08. HOTSPOT TOOLTIPS
========================================================= */

.services-hotspot__tooltip {
    position: absolute;

    left: 50%;
    bottom: calc(100% + 16px);

    width: 290px;

    padding: 20px;

    transform: translate(-50%, 8px);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    background: var(--color-primary);

    border-radius: 8px;

    box-shadow:
        0 14px 32px var(--palette-value-0132db4648);

    color: var(--palette-paper);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.services-hotspot__tooltip::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -10px;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 11px solid var(--color-primary);
}

.services-hotspot__tooltip strong {
    display: block;

    margin: 0 0 12px;

    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;

    color: var(--palette-paper);
}

.services-hotspot__tooltip span {
    display: block;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.52;

    color: var(--palette-paper);
}

.services-hotspot:hover .services-hotspot__tooltip,
.services-hotspot:focus-visible .services-hotspot__tooltip {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}

/* =========================================================
   09. HOTSPOT POSITIONEN
========================================================= */

.services-hotspot--digital {
    left: 8.7%;
    top: 36.1%;
}

.services-hotspot--smoke-left {
    left: 16.7%;
    top: 25%;
}

.services-hotspot--smoke-center {
    left: 41%;
    top: 24.5%;
}

.services-hotspot--device-left {
    left: 31.4%;
    top: 64%;
}

.services-hotspot--device-right {
    left: 66%;
    top: 65%;
}

.services-hotspot--energy {
    left: 8.7%;
    top: 86%;
}

.services-hotspot--legionella {
    left: 89%;
    top: 39%;
}

/* linker Tooltip */

.services-hotspot--digital .services-hotspot__tooltip {
    left: 0;
    transform: translate(-15%, 8px);
}

.services-hotspot--digital:hover .services-hotspot__tooltip,
.services-hotspot--digital:focus-visible .services-hotspot__tooltip {
    transform: translate(-15%, 0);
}

/* rechter Tooltip */

.services-hotspot--legionella .services-hotspot__tooltip {
    left: auto;
    right: 0;

    transform: translate(14%, 8px);
}

.services-hotspot--legionella:hover .services-hotspot__tooltip,
.services-hotspot--legionella:focus-visible .services-hotspot__tooltip {
    transform: translate(14%, 0);
}

/* =========================================================
   10. UNSERE LEISTUNGEN
========================================================= */

.services-overview {
    padding: 26px 0 28px;
}

.services-section-head--row {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 18px;
}

/* =========================================================
   11. CAROUSEL NAVIGATION
========================================================= */

.services-carousel-nav {
    display: flex;
    gap: 8px;
}

.services-carousel-nav button {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--palette-value-b80953d5d4);
    border-radius: 50%;

    background: var(--palette-paper);

    color: var(--palette-ink);

    cursor: pointer;

    font-size: 15px;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease;
}

.services-carousel-nav button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--palette-paper);
}

/* =========================================================
   12. LEISTUNGS-CAROUSEL
========================================================= */

.services-carousel {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 4px 2px 10px;

    scrollbar-width: none;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   13. LEISTUNGSKARTEN
========================================================= */

.service-card {
    position: relative;

    flex: 0 0 320px;

    scroll-snap-align: start;

    overflow: hidden;

    background: var(--palette-white);

    border: 1px solid var(--palette-value-ac53fa27f8);
    border-radius: 18px;

    color: var(--palette-ink) !important;

    text-decoration: none !important;

    box-shadow:
        0 7px 24px var(--palette-value-f2afd0fa95);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 34px var(--palette-value-c0ec49403d);
}

/* =========================================================
   14. KARTENBILD 1:1
========================================================= */

.service-card__image {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: var(--palette-value-0d1324fe88);
}

.service-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.035);
}

/* =========================================================
   15. KARTENINHALT
========================================================= */

.service-card__body {
    position: relative;

    min-height: 145px;

    padding: 19px 19px 52px;
}

.service-card h3,
.service-card:link h3,
.service-card:visited h3,
.service-card:hover h3,
.service-card:active h3 {
    margin: 0 0 7px;

    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;

    color: var(--palette-ink) !important;
}

.service-card p {
    margin: 0;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.45;

    color: var(--palette-value-d502a786b0) !important;
}

/* =========================================================
   16. MEHR INFOS / KARTENPFEIL
   DIREKTES SVG AUS DEM TWIG
========================================================= */

.service-card__arrow {
    position: absolute;

    right: 15px;
    bottom: 15px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 30px;

    border-radius: 50%;

    background: var(--color-primary);

    color: var(--palette-paper);

    font-size: 0 !important;
    line-height: 0;

    overflow: visible;

    transition:
        background .18s ease;
}

/* echtes SVG im Kreis */

.service-card__arrow > img {
    display: block;

    width: 11px;
    height: 13px;

    max-width: none;

    object-fit: contain;

    pointer-events: none;

    transition:
        transform .18s ease;
}

/* "Mehr Infos" links neben dem Kreis */

.service-card__arrow::before {
    content: "Mehr Infos";

    position: absolute;

    right: calc(100% + 14px);
    top: 50%;

    transform: translateY(-50%);

    width: max-content;

    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;

    color: var(--palette-ink);

    background: none !important;

    -webkit-mask: none !important;
    mask: none !important;
}

/* Hover nur Kreisfarbe + SVG bewegen */

.service-card:hover .service-card__arrow {
    background: var(--palette-ink);
}

.service-card:hover .service-card__arrow > img {
    transform: translateX(2px);
}

/* =========================================================
   17. VOM ZÄHLER BIS ZUR ABRECHNUNG
========================================================= */

.services-process {
    width: 100%;

    margin: 0;

    padding: 46px 0;

    background: var(--palette-value-e579e70674);

    border-top: 1px solid var(--palette-value-6e88aad5cb);
    border-bottom: 1px solid var(--palette-value-6e88aad5cb);
}

.services-process__inner {
    display: grid;

    grid-template-columns:
        minmax(320px, .82fr)
        minmax(0, 1.45fr);

    gap: 54px;

    align-items: center;
}

.services-process__intro {
    max-width: 460px;
}

.services-process__intro p {
    max-width: 450px;

    margin: 15px 0 0;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.6;

    color: var(--palette-value-57f2de543c);
}

/* =========================================================
   18. PROZESSSCHRITTE
========================================================= */

.services-process__steps {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;
}

.services-process__steps::before {
    content: "";

    position: absolute;

    top: 29px;
    left: 8%;
    right: 8%;

    height: 1px;

    background: var(--palette-value-5073e3dfc3);
}

.process-step {
    position: relative;
    z-index: 2;

    text-align: center;
}

/* =========================================================
   19. PROZESS-ICONS
========================================================= */

.process-step__circle {
    width: 58px;
    height: 58px;

    margin: 0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--palette-value-ac53fa27f8);
    border-radius: 50%;

    background: var(--palette-white);

    box-shadow:
        0 6px 18px var(--palette-value-f2afd0fa95);
}

.process-step__circle img {
    display: block;

    width: 26px;
    height: 26px;

    object-fit: contain;
}

.process-step strong {
    display: block;

    margin-bottom: 5px;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 800;

    color: var(--palette-ink);
}

.process-step span {
    display: block;

    font-family: "Inter", sans-serif;
    font-size: 10px;
    line-height: 1.4;

    color: var(--palette-value-a91dbc99ba);
}

/* =========================================================
   20. MEHR ALS MESSTECHNIK
========================================================= */

.services-why {
    padding: 46px 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(340px, .6fr);

    gap: 54px;

    align-items: center;
}

.services-why__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    margin-top: 26px;
}

/* =========================================================
   21. WHY ICONS
========================================================= */

.services-why__icon {
    width: 34px;
    height: 34px;

    margin-bottom: 13px;
}

.services-why__icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.services-why h3 {
    margin: 0 0 8px;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;

    color: var(--palette-ink);
}

.services-why p {
    margin: 0;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.5;

    color: var(--palette-value-b835592153);
}

/* =========================================================
   22. WHY VISUAL
========================================================= */

.services-why__visual {
    position: relative;

    min-height: 310px;

    overflow: hidden;

    border-radius: 22px;

    box-shadow:
        0 14px 38px var(--palette-value-ac53fa27f8);
}

.services-why__visual::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            var(--palette-value-d03a497cf9) 0%,
            var(--palette-value-b821d30682) 70%
        );
}

.services-why__visual img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 310px;

    object-fit: cover;
}

.services-why__claim {
    position: absolute;

    z-index: 3;

    left: 24px;
    bottom: 23px;

    font-family: "Inter", sans-serif;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;

    color: var(--palette-paper);
}

.services-why__claim span {
    display: block;

    margin-top: 4px;

    font-size: 17px;

    color: var(--palette-value-c2e73c6e71);
}

/* =========================================================
   23. FINAL CTA / CTA-WOHNEN
========================================================= */

.services-final-cta {
    position: relative;

    min-height: 330px;

    margin: 10px auto 50px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, .85fr);

    align-items: stretch;

    overflow: hidden;

    background: var(--palette-sand);

    border: 1px solid var(--palette-value-6e88aad5cb);
    border-radius: 26px;
}

/* CONTENT */

.services-final-cta__content {
    position: relative;
    z-index: 2;

    padding: 42px 46px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.services-final-cta__content .services-eyebrow {
    margin-bottom: 12px;
}

.services-final-cta h2 {
    max-width: 560px;

    margin: 0;

    font-family: "Inter", sans-serif;

    font-size: clamp(25px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;

    color: var(--palette-ink) !important;

    text-shadow: none !important;
}

.services-final-cta h2 span {
    display: block;

    margin-top: 5px;

    color: var(--color-primary-text) !important;

    text-shadow: none !important;
}

.services-final-cta p {
    max-width: 590px;

    margin: 18px 0 0;

    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    color: var(--palette-value-d03a497cf9);
}

/* BENEFITS */

.services-final-cta__benefits {
    margin: 20px 0 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    gap: 8px;

    list-style: none;
}

.services-final-cta__benefits li {
    position: relative;

    margin: 0;
    padding-left: 27px;

    list-style: none;

    font-family: "Inter", sans-serif;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;

    color: var(--palette-ink);
}

.services-final-cta__benefits li::marker {
    content: "";
}

.services-final-cta__benefits li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 0;

    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-accent);

    color: var(--palette-paper);

    font-size: 10px;
    font-weight: 900;
}

/* BUTTON */

.services-final-cta__content .services-button {
    margin-top: 24px;
    margin-left: auto;
}

/* IMAGE */

.services-final-cta__image {
    position: relative;

    min-height: 330px;

    overflow: hidden;
}

.services-final-cta__image::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            var(--palette-sand) 0%,
            var(--palette-value-5f8f8a252f) 8%,
            var(--palette-value-aaa4af0f46) 30%
        );
}

.services-final-cta__image img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 330px;

    object-fit: cover;
    object-position: center;

    transition:
        transform .45s cubic-bezier(.22, 1, .36, 1);
}

.services-final-cta:hover .services-final-cta__image img {
    transform: scale(1.025);
}

/* =========================================================
   FINAL CTA – TABLET
========================================================= */

@media (max-width: 1050px) {

    .services-final-cta {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, .72fr);
    }

    .services-final-cta__content {
        padding: 38px;
    }

}

/* =========================================================
   FINAL CTA – MOBILE
========================================================= */

@media (max-width: 760px) {

    .services-final-cta {
        min-height: 0;

        margin-top: 6px;
        margin-bottom: 45px;

        grid-template-columns: 1fr;

        border-radius: 22px;
    }

    .services-final-cta__content {
        padding: 30px 26px 32px;
    }

    .services-final-cta h2 {
        font-size: 29px;
        line-height: 1.02;
    }

    .services-final-cta p {
        margin-top: 15px;

        font-size: 13px;
    }

    .services-final-cta__benefits {
        margin-top: 18px;
    }

    .services-final-cta__content .services-button {
        width: 100%;

        margin-top: 22px;
    }

    .services-final-cta__image {
        min-height: 240px;

        order: -1;
    }

    .services-final-cta__image img {
        min-height: 240px;
    }

    .services-final-cta__image::after {
        background:
            linear-gradient(
                180deg,
                var(--palette-value-aaa4af0f46) 65%,
                var(--palette-sand) 100%
            );
    }

}

/* =========================================================
   FINAL CTA – SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .services-final-cta__content {
        padding: 26px 22px 28px;
    }

    .services-final-cta h2 {
        font-size: 26px;
    }

    .services-final-cta__image,
    .services-final-cta__image img {
        min-height: 210px;
    }

}

/* =========================================================
   24. WICHTIG: GRAV / QUARK CONTAINER NICHT CLIPPEN
========================================================= */

body:has(.services-template) #body-wrapper,
body:has(.services-template) #body-wrapper > .container,
body:has(.services-template) #body-wrapper > .section,
body:has(.services-template) #body-wrapper .container,
body:has(.services-template) main,
body:has(.services-template) .main-content {
    overflow-x: visible !important;
}

/* =========================================================
   25. TABLET
========================================================= */

@media (max-width: 1050px) {

    .services-shell {
        width:min(1280px, calc(100% - 56px));
    }

    .services-process__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .services-why {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .services-final-cta {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

/* =========================================================
   26. MOBILE
========================================================= */

@media (max-width: 760px) {

    .services-shell {
        width:min(1280px, calc(100% - 30px));
    }

    /* INTERAKTIV */

    .services-interactive {
        padding: 30px 0 20px;
    }

    .services-hotspot {
        width: 40px;
        height: 40px;
    }

    .services-hotspot__tooltip {
        width: 230px;
        padding: 16px;
    }

    .services-hotspot__tooltip strong {
        font-size: 17px;
    }

    .services-hotspot__tooltip span {
        font-size: 12px;
    }

    /* LEISTUNGEN */

    .services-overview {
        padding: 24px 0 28px;
    }

    .services-section-head--row {
        align-items: flex-start;
    }

    .services-carousel-nav {
        display: none;
    }

    .service-card {
        flex-basis: min(280px, 82vw);
    }

    .service-card__arrow::before {
        font-size: 10px;
    }

    /* PROZESS */

    .services-process {
        padding: 38px 0;
    }

    .services-process__steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .services-process__steps::before {
        display: none;
    }

    .process-step {
        display: grid;

        grid-template-columns:
            58px
            1fr;

        column-gap: 14px;

        align-items: center;

        text-align: left;
    }

    .process-step__circle {
        grid-row: 1 / span 2;

        margin: 0;
    }

    /* WHY */

    .services-why {
        padding: 38px 0;
    }

    .services-why__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* CTA */

    .services-final-cta {
        margin-bottom: 45px;
        padding: 27px;
    }

}

/* =========================================================
   27. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .services-hotspot {
        width: 34px;
        height: 34px;
    }

    .services-hotspot__tooltip {
        width: 215px;
    }

}

@media (max-width: 760px) {

    .services-interactive {
        padding:
            28px
            0
            20px !important;
    }

}

/* =========================================================
   FIX – MEHR INFOS POSITION
========================================================= */

.services-page
.services-overview
.service-card
.service-card__arrow::before {
    content: "Mehr Infos" !important;

    position: absolute !important;

    top: 50% !important;
    right: 44px !important;
    left: auto !important;

    width: max-content !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: translateY(-50%) !important;

    font-family: "Inter", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    color: var(--palette-ink) !important;

    background: none !important;

    -webkit-mask: none !important;
    mask: none !important;
}

.services-shell {
    width:min(1280px, calc(100% - 56px))!important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 900px) {
    .services-shell {
        width:min(1280px, calc(100% - 30px))!important;
    }

}

/* =========================================================
   LEISTUNGEN HERO - BILD UND INHALT UNABHAENGIG
   Das bestehende partials/leistungen-main.html.twig bleibt erhalten.
========================================================= */
body:has(.services-template[data-hero-layout="media-first"]) #start,
body:has(.services-template[data-hero-layout="media-first"]) #body-wrapper,
body:has(.services-template[data-hero-layout="media-first"]) #body-wrapper > .container {
    width: 100%; max-width: none; margin: 0; padding: 0;
}
body .services-template { width: 100%; overflow: clip; }
body .services-template .services-mobile-hero { display: none; }
body .services-template .services-page { width: 100%; margin: 0; padding: 0; transform: none; }
body .services-template .services-hero {
    --hero-content-top: clamp(210px, 12vw, 230px);
    --hero-image-height: clamp(560px, 36.458333vw, 700px);
    position: relative; left: auto; width: 100%; max-width: none;
    height: auto; min-height: var(--hero-image-height); max-height: none;
    margin: 0; padding: 0; display: block; isolation: isolate;
    background: var(--palette-paper); overflow: visible;
}
body .services-template .services-hero::before {
    content: ""; position: absolute; top: 0; left: 0; z-index: 0;
    width: 100%; height: var(--hero-image-height);
    background: url("../images/leistungen/leistungenhero.png") center center / cover no-repeat;
    pointer-events: none;
}
body .services-template .services-hero__overlay {
    position: absolute; z-index: 1; inset: 0 0 auto;
    height: var(--hero-image-height); pointer-events: none;
    background: linear-gradient(90deg,
        var(--palette-value-4b1ac0229a) 0%, var(--palette-value-44e14eaf89) 14%,
        var(--palette-value-c7e4b2890c) 27%, var(--palette-value-d7e8a54e70) 40%,
        var(--palette-value-333e4de809) 56%, var(--palette-value-9428a558ec) 72%);
}
body .services-template .services-hero__inner {
    position: relative; z-index: 2;
    width: min(1280px, calc(100% - 56px)); max-width: 1280px;
    height: auto; min-height: 0; margin: 0 auto;
    padding: var(--hero-content-top) 0 48px;
    display: flex; flex-direction: column; align-items: flex-start;
    overflow: visible;
}
body .services-template .services-hero__copy {
    position: static; width: min(760px, 65%); max-width: 100%; flex: none;
    margin: 0; padding: 0; transform: none;
}
body .services-template .services-hero__copy .services-eyebrow {
    position: static; width: auto; height: auto; max-width: 100%;
    margin: 0 0 14px; padding: 0; font-family: "Inter", sans-serif;
    font-size: 11px; font-weight: 800; line-height: 1.35; letter-spacing: .12em;
    white-space: normal; color: var(--color-primary-text); overflow: visible;
}
body .services-template .services-hero__title {
    width: 100%; max-width: 100%; margin: 0; padding: 0;
    font-family: "Inter", sans-serif;
    font-size: clamp(34px, 3.2vw, 58px); font-weight: 900;
    line-height: 1.04; letter-spacing: -.04em; color: var(--palette-ink);
    overflow-wrap: anywhere; word-break: normal; hyphens: manual;
    white-space: normal; transform: none;
}
body .services-template .services-hero__title span { display: block; margin-top: 6px; color: var(--color-primary-text); }
body .services-template .services-hero__lead {
    max-width: 620px; margin: 18px 0 0;
    font-family: "Inter", sans-serif; font-size: 15px; line-height: 1.65;
    color: var(--palette-value-ea1105cd5d);
}
body .services-template .services-hero__actions {
    position: static; width: min(760px, 65%); max-width: 100%;
    margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap;
    align-items: center; justify-content: flex-end; gap: 12px; white-space: normal;
}
body .services-template .services-hero__actions > a {
    min-height: 48px; padding: 12px 22px; max-width: 100%;
    font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700;
    line-height: 1.3; white-space: normal; text-align: center;
}
@media (max-width: 900px) {
    body .services-template .services-mobile-hero { display: block; width: 100%; margin: 0; padding: 0; }
    body .services-template .services-mobile-hero > img {
        display: block; width: 100%; height: auto; max-width: none;
        aspect-ratio: 1 / 1; object-fit: contain;
    }
    body .services-template .services-hero { min-height: 0; }
    body .services-template .services-hero::before,
    body .services-template .services-hero__overlay { display: none; }
    body .services-template .services-hero__inner { width: calc(100% - 30px); padding: 32px 0 44px; }
    body .services-template .services-hero__copy,
    body .services-template .services-hero__actions { width: 100%; max-width: none; }
    body .services-template .services-hero__title { font-size: clamp(30px,6.4vw,42px); line-height: 1.06; }
    body .services-template .services-hero__copy .services-eyebrow { font-size: 10px; }
    body .services-template .services-hero__lead { max-width: none; font-size: 14px; }
}
@media (max-width: 480px) {
    body .services-template .services-hero__actions { flex-direction: column; align-items: stretch; }
    body .services-template .services-hero__actions > a { width: 100%; }
}
/* ==========================================
   MOBILE – LINKE HOTSPOT-TOOLTIPS
========================================== */

@media (max-width: 760px) {

    /* Links ausrichten statt zentrieren */
    .services-hotspot--smoke-left .services-hotspot__tooltip,
    .services-hotspot--energy .services-hotspot__tooltip {
        left: -10px;
        right: auto;
        transform: translate(0, 8px);
    }

    /* Geöffneter Zustand */
    .services-hotspot--smoke-left:hover .services-hotspot__tooltip,
    .services-hotspot--smoke-left:focus-visible .services-hotspot__tooltip,
    .services-hotspot--energy:hover .services-hotspot__tooltip,
    .services-hotspot--energy:focus-visible .services-hotspot__tooltip {
        transform: translate(0, 0);
    }

    /* Tooltip-Dreieck beim Hotspot positionieren */
    .services-hotspot--smoke-left .services-hotspot__tooltip::after,
    .services-hotspot--energy .services-hotspot__tooltip::after {
        left: 27px;
        transform: translateX(-50%);
    }
}