/* =========================================================
   LEISTUNG — ENERGIEAUSWEIS
========================================================= */

/* =========================================================
   BASIS
========================================================= */

body .energy-page {
background: var(--palette-paper);color: var(--palette-ink);font-family: "Inter", sans-serif;
}

body .energy-page *,
body .energy-page *::before,
body .energy-page *::after {
    box-sizing: border-box;
}

body .energy-container {
    width:min(1280px, calc(100% - 56px));

    margin-left: auto;
    margin-right: auto;
}

body .energy-eyebrow {
    margin: 0 0 10px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--color-primary-text);
}

/* =========================================================
   SECTION HEADLINES
========================================================= */

body .energy-section-head {
    margin-bottom: 24px;
}

body .energy-section-head h2 {
    max-width: 760px;

    margin: 0;

    font-size: clamp(30px, 2.8vw, 44px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.04em;

    color: var(--palette-ink);
}

body .energy-section-head h2 span {
    color: var(--color-primary-text);
}

body .energy-section-head > p {
    max-width: 720px;

    margin: 12px 0 0;

    font-size: 15px;
    line-height: 1.65;

    color: var(--palette-value-1242b02bf4);
}

body .energy-section-head--center {
    text-align: center;
}

body .energy-section-head--center h2,
body .energy-section-head--center p {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   BUTTONS
========================================================= */

body .energy-page .extern-button {
    min-height: 48px;

    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 750;
    line-height: 1;

    text-decoration: none;

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 220ms ease,
        background 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}

body .energy-page .extern-button span {
    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1);
}

body .energy-page .extern-button:hover span {
    transform: translateX(4px);
}

body .energy-page .extern-button--red {
    border: 1px solid var(--color-primary);

    background: var(--color-primary);
    color: var(--palette-paper);
}

body .energy-page .extern-button--red:hover {
    transform: translateY(-2px);

    background: var(--palette-ink);
    border-color: var(--palette-ink);
    color: var(--palette-paper);

    box-shadow:
        0 12px 26px var(--palette-value-d7d8a6c85b);
}

/* =========================================================
   INTRO
========================================================= */

body .energy-intro {
    padding: 38px 0 36px;
}

body .energy-intro__inner {
    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap: 60px;

    align-items: start;
}

body .energy-intro__content h2 {
    max-width: 560px;

    margin: 0;

    font-size: clamp(30px, 2.8vw, 43px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.04em;

    color: var(--palette-ink);
}

/*
 * Die rechte Spalte startet auf H2-Höhe,
 * nicht auf Eyebrow-Höhe.
 */
body .energy-intro__text {
    padding-top: 39px;
}

body .energy-intro__text p {
    margin: 0;

    font-size: 15px;
    line-height: 1.7;

    color: var(--palette-value-1242b02bf4);
}

body .energy-intro__text p + p {
    margin-top: 13px;
}

/* =========================================================
   PROZESS
========================================================= */

body .energy-process {
    padding: 38px 0 50px;

    background:
        linear-gradient(
            180deg,
            rgba(var(--color-primary-rgb), 0.022),
            rgba(var(--color-primary-rgb), 0.05)
        );
}

body .energy-process__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    perspective: 1400px;
}

body .energy-process-card {
    position: relative;

    min-height: 300px;

    padding: 22px 20px;

    display: flex;
    flex-direction: column;

    border-radius: 22px;

    background: var(--palette-paper);

    box-shadow:
        0 10px 30px var(--palette-value-878f17d687);

    transition:
        transform 280ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 280ms ease;
}

body .energy-process-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 34px var(--palette-value-cb67ec69b1);
}

body .energy-process-card__number {
    position: absolute;

    top: 17px;
    left: 17px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(var(--color-primary-rgb), 0.09);
    color: var(--color-primary-text);

    font-size: 11px;
    font-weight: 850;
}

/* =========================================================
   PROZESS ICONS — AUFKLAPPEN WIE ABRECHNUNGSSEITE
========================================================= */

body .energy-process-card__icon {
    width: 100%;
    height: 115px;
    margin: 38px 0 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 1000px;
}

body .energy-process-card__icon img {
    width: auto;
    height: auto;

    max-width: 92px;
    max-height: 92px;

    display: block;
    object-fit: contain;

    opacity: 0;

    transform:
        perspective(1000px)
        rotateX(-90deg)
        scaleY(.15);

    transform-origin: center bottom;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    will-change: transform, opacity;
}

/* Animation startet beim Eintritt in den Viewport */

body .energy-process-card.is-visible
.energy-process-card__icon img {
    animation:
        energyProcessUnfold
        850ms
        cubic-bezier(.16, 1, .3, 1)
        forwards;
}

/* nacheinander aufklappen */

body .energy-process-card:nth-child(1).is-visible
.energy-process-card__icon img {
    animation-delay: 0ms;
}

body .energy-process-card:nth-child(2).is-visible
.energy-process-card__icon img {
    animation-delay: 110ms;
}

body .energy-process-card:nth-child(3).is-visible
.energy-process-card__icon img {
    animation-delay: 220ms;
}

body .energy-process-card:nth-child(4).is-visible
.energy-process-card__icon img {
    animation-delay: 330ms;
}

/* eigentliche Aufklappbewegung */

@keyframes energyProcessUnfold {

    0% {
        opacity: 0;

        transform:
            perspective(1000px)
            rotateX(-90deg)
            scaleY(.15);
    }

    55% {
        opacity: 1;

        transform:
            perspective(1000px)
            rotateX(10deg)
            scaleY(1.04);
    }

    75% {
        transform:
            perspective(1000px)
            rotateX(-4deg)
            scaleY(.99);
    }

    100% {
        opacity: 1;

        transform:
            perspective(1000px)
            rotateX(0deg)
            scaleY(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    body .energy-process-card__icon img {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

}

body .energy-process-card h3 {
    margin: 0 0 9px;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;

    color: var(--palette-ink);
}

body .energy-process-card p {
    margin: 0;

    font-size: 13px;
    line-height: 1.55;

    color: var(--palette-value-0bbdcfe4f3);
}

/* =========================================================
   VORTEILE
========================================================= */

body .energy-benefits {
    padding: 46px 0 54px;
}

body .energy-benefits__inner {
    display: grid;

    grid-template-columns:
        minmax(280px, .7fr)
        minmax(0, 1.3fr);

    gap: 56px;

    align-items: center;
}

body .energy-benefits__image {
    width: 100%;

    overflow: hidden;

    border-radius: 24px;
}

body .energy-benefits__image img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
}

body .energy-benefits__content h2 {
    margin: 0 0 18px;

    font-size: clamp(30px, 2.8vw, 43px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.04em;

    color: var(--palette-ink);
}

body .energy-benefits__content ul {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    gap: 10px;

    list-style: none;
}

body .energy-benefits__content li {
    position: relative;

    padding-left: 27px;

    list-style: none;

    font-size: 14px;
    line-height: 1.55;

    color: var(--palette-ink);
}

body .energy-benefits__content li::marker {
    content: "";
}

body .energy-benefits__content li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 1px;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-accent);
    color: var(--palette-paper);

    font-size: 9px;
    font-weight: 900;
}

/* =========================================================
   ZIELGRUPPEN
========================================================= */

body .energy-audience {
    padding: 42px 0 54px;

    background:
        linear-gradient(
            180deg,
            rgba(var(--color-primary-rgb), 0.022),
            rgba(var(--color-primary-rgb), 0.05)
        );
}

body .energy-audience__grid {
    max-width: 920px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

body .energy-audience-card {
    min-height: 270px;

    padding: 22px;

    display: flex;
    flex-direction: column;

    border-radius: 22px;

    background: var(--palette-paper);

    box-shadow:
        0 10px 30px var(--palette-value-878f17d687);
}

body .energy-audience-card__icon {
    width: 100%;
    height: 118px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
}

body .energy-audience-card__icon img {
    width: auto;
    height: auto;

    max-width: 96px;
    max-height: 96px;

    display: block;

    object-fit: contain;
}

body .energy-audience-card h3 {
    margin: 0 0 8px;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;

    color: var(--palette-ink);
}

body .energy-audience-card p {
    margin: 0;

    font-size: 13px;
    line-height: 1.55;

    color: var(--palette-value-0bbdcfe4f3);
}

/* =========================================================
   AUSWEISARTEN
========================================================= */

body .energy-types {
    padding: 48px 0 56px;
}

body .energy-types__inner {
    display: grid;

    grid-template-columns:
        minmax(280px, .75fr)
        minmax(0, 1.25fr);

    gap: 56px;

    align-items: center;
}

body .energy-types__image {
    width: 100%;

    overflow: hidden;

    border-radius: 24px;

    background: rgba(var(--color-primary-rgb), 0.035);
}

body .energy-types__content h2 {
    margin: 0 0 20px;

    font-size: clamp(30px, 2.8vw, 43px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.04em;

    color: var(--palette-ink);
}

body .energy-types__content h2 span {
    color: var(--color-primary-text);
}

body .energy-types__item + .energy-types__item {
    margin-top: 18px;
}

body .energy-types__item h3 {
    margin: 0 0 6px;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;

    color: var(--palette-ink);
}

body .energy-types__item p,
body .energy-types__closing {
    margin: 0;

    font-size: 14px;
    line-height: 1.65;

    color: var(--palette-value-d03a497cf9);
}

body .energy-types__closing {
    margin-top: 20px;
}

body .energy-types__content .extern-button {
    margin-top: 22px;
}

/* =========================================================
   LIGHTBOX TRIGGER
   KEIN BLAUER BUTTON-RAHMEN
========================================================= */

body .energy-lightbox-trigger {
    width: 100%;

    margin: 0;
    padding: 0;

    display: block;

    border: 0 !important;
    outline: 0 !important;

    border-radius: 0;

    background: transparent !important;

    box-shadow: none !important;

    cursor: zoom-in;

    appearance: none;
    -webkit-appearance: none;
}

body .energy-lightbox-trigger:hover,
body .energy-lightbox-trigger:focus,
body .energy-lightbox-trigger:focus-visible,
body .energy-lightbox-trigger:active {
    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}

body .energy-lightbox-trigger img {
    width: 100%;
    height: auto;

    display: block;

    border: 0;
    outline: 0;

    object-fit: contain;

    transition:
        transform 260ms cubic-bezier(.22, 1, .36, 1);
}

body .energy-lightbox-trigger:hover img {
    transform: scale(1.015);
}

/* =========================================================
   LIGHTBOX
========================================================= */

body .energy-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    padding: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--palette-value-d85fd9250a);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

body .energy-lightbox.is-open {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}

body .energy-lightbox__content {
    position: relative;

    width: auto;
    height: auto;

    max-width: min(1300px, calc(100vw - 120px));
    max-height: calc(100vh - 120px);

    display: flex;
    align-items: center;
    justify-content: center;

    transform: scale(.94);

    transition:
        transform 300ms cubic-bezier(.22, 1, .36, 1);
}

body .energy-lightbox.is-open
.energy-lightbox__content {
    transform: scale(1);
}

body .energy-lightbox__image {
    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(100vh - 120px);

    display: block;

    border: 0;
    outline: 0;

    border-radius: 18px;

    background: var(--palette-paper);

    object-fit: contain;

    box-shadow:
        0 30px 100px var(--palette-value-ff87aec231);
}

body .energy-lightbox__close {
    position: absolute;

    top: -22px;
    right: -22px;

    z-index: 5;

    width: 46px;
    height: 46px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0 !important;
    outline: 0 !important;

    border-radius: 50%;

    background: var(--palette-paper) !important;
    color: var(--palette-ink);

    box-shadow:
        0 8px 25px var(--palette-value-c82de50367);

    font-family: "Inter", sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background 180ms ease,
        color 180ms ease,
        transform 220ms ease;
}

body .energy-lightbox__close:hover {
    background: var(--color-primary) !important;
    color: var(--palette-paper);

    transform: rotate(90deg);
}

body .energy-lightbox__close:focus,
body .energy-lightbox__close:focus-visible {
    outline: 0 !important;

    box-shadow:
        0 8px 25px var(--palette-value-c82de50367);
}

body.energy-lightbox-open {
    overflow: hidden;
}

/* =========================================================
   FAQ
========================================================= */

body .energy-faq {
    padding: 34px 0 44px;

    background: var(--palette-value-1f7a687cbc);
}

body .energy-faq .energy-section-head {
    margin-bottom: 18px;
}

body .energy-faq details {
    width: 100%;

    border-top:
        1px solid var(--palette-value-358eb49133);
}

body .energy-faq details:last-child {
    border-bottom:
        1px solid var(--palette-value-358eb49133);
}

body .energy-faq details > summary {
    position: relative;

    min-height: 66px;

    padding:
        0
        55px
        0
        0;

    display: flex;
    align-items: center;

    cursor: pointer;

    list-style: none;

    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;

    color: var(--palette-ink);

    transition:
        color 180ms ease;
}

body .energy-faq details > summary::-webkit-details-marker {
    display: none;
}

body .energy-faq details:not([open]) > summary,
body .energy-faq details:not([open]) > summary:hover,
body .energy-faq details:not([open]) > summary:focus,
body .energy-faq details:not([open]) > summary:focus-visible {
    color: var(--palette-ink) !important;
}

body .energy-faq details[open] > summary,
body .energy-faq details[open] > summary:hover,
body .energy-faq details[open] > summary:focus,
body .energy-faq details[open] > summary:focus-visible {
    color: var(--color-primary-text) !important;
}

body .energy-faq details > summary::after {
    position: absolute;

    right: 3px;
    top: 50%;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border-radius: 50%;

    font-size: 20px;

    transition:
        color 180ms ease,
        background 180ms ease;
}

body .energy-faq details:not([open]) > summary::after {
    content: "+";

    background: rgba(var(--color-accent-rgb), 0.11);
    color: var(--color-accent);
}

body .energy-faq details[open] > summary::after {
    content: "×";

    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary-text);
}

body .energy-faq details p {
    max-width: 850px;

    margin: 0;

    padding:
        0
        0
        22px;

    font-size: 14px;
    line-height: 1.7;

    color: var(--palette-value-d03a497cf9);
}

/* =========================================================
   FINAL CTA
========================================================= */

body .energy-final-cta {
    position: relative;

    width: min(1280px, calc(100vw - 80px));

    min-height: 210px;

    margin:
        16px
        auto
        68px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(340px, .65fr);

    overflow: hidden;

    border-radius: 26px;

    background: var(--palette-sand);
}

body .energy-final-cta__content {
    position: relative;
    z-index: 3;

    padding: 26px 40px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    grid-template-areas:
        "title title"
        "list button";

    gap:
        14px
        32px;

    align-items: center;
}

body .energy-final-cta__content h2 {
    grid-area: title;

    max-width: 620px;

    margin: 0;

    font-size: clamp(26px, 2.25vw, 36px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;

    color: var(--palette-ink);
}

body .energy-final-cta__content h2 span {
    color: var(--color-primary-text);
}

body .energy-final-cta__content ul {
    grid-area: list;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    gap: 7px;

    list-style: none;
}

body .energy-final-cta__content li {
    position: relative;

    margin: 0;
    padding: 0 0 0 25px;

    list-style: none;

    font-size: 13px;
    font-weight: 650;

    color: var(--palette-ink);
}

body .energy-final-cta__content li::marker {
    content: "";
}

body .energy-final-cta__content li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 0;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-accent);
    color: var(--palette-paper);

    font-size: 9px;
    font-weight: 900;
}

body .energy-final-cta__content .extern-button {
    grid-area: button;
}

body .energy-final-cta__image {
    position: relative;

    min-height: 210px;

    overflow: hidden;
}

body .energy-final-cta__image::before {
    content: "";

    position: absolute;
    z-index: 2;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            var(--palette-sand) 0%,
            var(--palette-value-105b93da3c) 15%,
            transparent 46%
        );
}

body .energy-final-cta__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    body .energy-container {
        width:min(1280px, calc(100% - 56px));
    }

    body .energy-process__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    body .energy-audience__grid {
        max-width: none;
    }

    body .energy-final-cta {
        width: calc(100vw - 50px);

        grid-template-columns:
            minmax(0, 1fr)
            320px;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    body .energy-page {

}

    body .energy-container {
        width:min(1280px, calc(100% - 30px));
    }

    /* INTRO */

    body .energy-intro {
        padding:
            30px
            0
            34px;
    }

    body .energy-intro__inner {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    body .energy-intro__text {
        padding-top: 0;
    }

    /* PROZESS */

    body .energy-process {
        padding:
            32px
            0
            40px;
    }

    body .energy-process__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    /* VORTEILE */

    body .energy-benefits {
        padding:
            34px
            0
            42px;
    }

    body .energy-benefits__inner {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    body .energy-benefits__image {
        max-width: 520px;

        margin-left: auto;
        margin-right: auto;
    }

    /* ZIELGRUPPEN */

    body .energy-audience {
        padding:
            34px
            0
            42px;
    }

    body .energy-audience__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    /* AUSWEISARTEN */

    body .energy-types {
        padding:
            34px
            0
            42px;
    }

    body .energy-types__inner {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    body .energy-types__image {
        max-width: 520px;

        margin-left: auto;
        margin-right: auto;
    }

    /* FAQ */

    body .energy-faq {
        padding:
            26px
            0
            36px;
    }

    /* CTA */

    body .energy-final-cta {
        width: calc(100vw - 20px);

        margin-bottom: 48px;

        grid-template-columns: 1fr;
    }

    body .energy-final-cta__content {
        padding:
            26px
            22px;

        grid-template-columns: 1fr;

        grid-template-areas:
            "title"
            "list"
            "button";
    }

    body .energy-final-cta__content h2 {
        font-size:
            clamp(27px, 7vw, 36px);
    }

    body .energy-final-cta__image {
        min-height: 210px;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 620px) {

    body .energy-process__grid {
        grid-template-columns: 1fr;
    }

    body .energy-process-card {
        min-height: 270px;
    }

    body .energy-audience__grid {
        grid-template-columns: 1fr;
    }

    body .energy-faq details > summary {
        padding-right: 48px;

        font-size: 14px;
    }

    body .energy-final-cta__content h2 {
        font-size:
            clamp(25px, 7.5vw, 32px);
    }

}

/* =========================================================
   LIGHTBOX MOBILE
========================================================= */

@media (max-width: 700px) {

    body .energy-lightbox {
        padding: 22px;
    }

    body .energy-lightbox__content {
        max-width: calc(100vw - 44px);
        max-height: calc(100vh - 70px);
    }

    body .energy-lightbox__image {
        max-height: calc(100vh - 70px);

        border-radius: 14px;
    }

    body .energy-lightbox__close {
        top: -18px;
        right: -10px;

        width: 42px;
        height: 42px;
    }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    body .energy-process-card__icon img {
        opacity: 1;

        transform: none;

        animation: none !important;
    }

}
/* =========================================================
   LIGHTBOX — VIEWPORTHÖHE
========================================================= */

body .energy-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--palette-value-d85fd9250a);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

body .energy-lightbox.is-open {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}

body .energy-lightbox__content {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: scale(.96);

    transition:
        transform 300ms cubic-bezier(.22, 1, .36, 1);
}

body .energy-lightbox.is-open
.energy-lightbox__content {
    transform: scale(1);
}

body .energy-lightbox__image {
    width: auto;
    height: auto;

    max-width: calc(100vw - 48px);

    /* fast volle sichtbare Bildschirmhöhe */
    max-height: calc(100dvh - 48px);

    display: block;

    border: 0;
    outline: 0;

    border-radius: 18px;

    background: var(--palette-paper);

    object-fit: contain;

    box-shadow:
        0 30px 100px var(--palette-value-ff87aec231);
}

/* Fallback für Browser ohne dvh */

@supports not (height: 100dvh) {

    body .energy-lightbox__image {
        max-height: calc(100vh - 48px);
    }

}

/* Mobile */

@media (max-width: 700px) {

    body .energy-lightbox {
        padding: 14px;
    }

    body .energy-lightbox__image {
        max-width: calc(100vw - 28px);
        max-height: calc(100dvh - 28px);

        border-radius: 14px;
    }

}

body .energy-container {
    width:min(1280px, calc(100% - 56px))!important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .energy-eyebrow {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    color: var(--color-primary-text) !important;
}

@media (max-width: 900px) {
    body .energy-container { width:min(1280px, calc(100% - 30px))!important; }

    body .energy-eyebrow {
        margin-bottom: 10px !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
        letter-spacing: .10em !important;
    }

}


/* =========================================================
   HERO: EIN DEFINIERTER AUFBAU, KEINE ALTEN HERO-OVERRIDES
   Desktop: Bildgroesse bleibt unabhaengig von der Texthoehe.
   Mobil bis 900px: hero-mobile.png (1:1), DANACH Text.
   EINSTELLUNG: --hero-content-top verschiebt den ganzen Textblock.
========================================================= */

body:has(.energy-page[data-hero-layout="media-first"]) #start,
body:has(.energy-page[data-hero-layout="media-first"]) #body-wrapper,
body:has(.energy-page[data-hero-layout="media-first"]) #body-wrapper > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body .energy-page[data-hero-layout="media-first"] {
    position: relative;
    left: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    transform: none;
    overflow: clip;
}

body .energy-page .energy-hero {
    --hero-content-top: 295px;
    --hero-content-bottom: 48px;
    --hero-copy-width: 760px;
    --hero-image-height: clamp(560px, 36.458333vw, 700px);
    position: relative;
    left: auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
    background: var(--palette-paper);
    overflow: visible;
}

body .energy-page .energy-hero,
body .energy-page .energy-hero *,
body .energy-page .energy-hero *::before,
body .energy-page .energy-hero *::after { box-sizing: border-box; }

body .energy-page .energy-hero__visual {
    grid-area: 1 / 1;
    align-self: start;
    position: relative;
    z-index: 0;
    width: 100%;
    height: var(--hero-image-height);
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--palette-paper);
}

body .energy-page .energy-hero__visual picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body .energy-page .energy-hero__visual picture > img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    transform: none;
    object-fit: cover;
    object-position: center center;
}

body .energy-page .energy-hero__visual::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg,
            var(--palette-paper) 0%,
            var(--palette-value-a6e2d8c9ce) 18%,
            var(--palette-value-3d28bf8a4c) 31%,
            var(--palette-value-5c3b44562f) 43%,
            var(--palette-value-dc237c37c9) 57%,
            var(--palette-value-9428a558ec) 72%);
    pointer-events: none;
}

body .energy-page .energy-hero__inner {
    grid-area: 1 / 1;
    align-self: start;
    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 var(--hero-content-bottom);
    display: block;
    overflow: visible;
    transform: none;
}

body .energy-page .energy-hero__content {
    position: relative;
    inset: auto;
    width: min(var(--hero-copy-width), 65%);
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: block;
    transform: none;
    background: transparent;
    overflow: visible;
}

body .energy-page .energy-hero__content .energy-eyebrow {
    position: static;
    display: block;
    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;
    text-transform: uppercase;
    white-space: normal;
    color: var(--color-primary-text);
    transform: none;
    overflow: visible;
}

body .energy-page .energy-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);
    text-shadow: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: manual;
    transform: none;
}

body .energy-page .energy-hero__title > span { display: inline; }

body .energy-page .energy-hero__subtitle {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: clamp(18px, 1.45vw, 23px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--palette-ink);
}

body .energy-page .energy-hero__text {
    width: 100%;
    max-width: 620px;
    margin: 18px 0 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--palette-value-ea1105cd5d);
}

body .energy-page .energy-hero__benefits {
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

body .energy-page .energy-hero__benefits > li {
    position: relative;
    margin: 0;
    padding: 0 0 0 28px;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--palette-ink);
}

body .energy-page .energy-hero__benefits > li::marker { content: ""; }
body .energy-page .energy-hero__benefits > li::before {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 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;
}

body .energy-page .energy-hero__actions {
    position: static;
    width: 100%;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    transform: none;
}

body .energy-page .energy-hero__actions > a {
    max-width: 100%;
    min-height: 48px;
    padding: 12px 22px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}

/* Ein echter SVG im Twig statt globalem Pfeil-Pseudoelement. */
body .energy-page .energy-hero__actions .hero-cta-icon {
    position: static;
    display: block;
    width: 12px;
    height: 14px;
    max-width: none;
    flex: 0 0 12px;
    margin: 0;
    padding: 0;
    background: none;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform .2s ease;
}
body .energy-page .energy-hero__actions > a:hover .hero-cta-icon { transform: translateX(3px); }

@media (max-width: 900px) {
    body .energy-page .energy-hero { display: block; }
    body .energy-page .energy-hero__visual {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    body .energy-page .energy-hero__visual picture { width: 100%; height: auto; display: block; }
    body .energy-page .energy-hero__visual picture > img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        object-position: center;
    }
    body .energy-page .energy-hero__visual::after { content: none; }
    body .energy-page .energy-hero__inner {
        width: calc(100% - 30px);
        max-width: none;
        padding: 32px 0 44px;
        margin: 0 auto;
    }
    body .energy-page .energy-hero__content { width: 100%; max-width: none; }
    body .energy-page .energy-hero__title { font-size: clamp(30px, 6.4vw, 42px); line-height: 1.06; }
    body .energy-page .energy-hero__content .energy-eyebrow { font-size: 10px; margin-bottom: 14px; }
    body .energy-page .energy-hero__subtitle { font-size: 19px; margin-top: 14px; }
    body .energy-page .energy-hero__text { max-width: none; font-size: 14px; line-height: 1.65; }
    body .energy-page .energy-hero__actions { margin-top: 24px; }
}
@media (max-width: 480px) {
    body .energy-page .energy-hero__actions > a { width: 100%; }
}
