/* ========================= */
/* Startseite Hero v2 Mockup */
/* ========================= */

.tpl-v2 .hero-home-v2 {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #000;
}

.tpl-v2 .hero-home-v2__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tpl-v2 .hero-home-v2__media picture,
.tpl-v2 .hero-home-v2__media img,
.tpl-v2 .hero-home-v2__img {
    width: 100%;
    height: 100%;
    display: block;
}

.tpl-v2 .hero-home-v2__img {
    object-fit: cover;
    object-position: center center;
}

.tpl-v2 .hero-home-v2__content-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    align-items: center;
    gap: 24px;

    padding: 0 42px;
}

.tpl-v2 .hero-home-v2__rechner {
    display: block;
    max-width: 320px;
    Margin-top:30%;
}

.tpl-v2 .hero-home-v2__rechner img {
    width: 100%;
    height: auto;
    display: block;
}
.tpl-v2 .hero-home-v2__rechner img:hover{
    opacity:0.7;
}

.tpl-v2 .hero-home-v2__headline {
    color: #fff;
    text-align: left;
    text-shadow: 0 3px 14px rgba(0,0,0,0.38);
}

.tpl-v2 .hero-home-v2__headline .hero-title,
.tpl-v2 .hero-home-v2__headline h1 {
    margin: 0 0 14px 0;
    font-size: clamp(3rem, 6vw, 3.6rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tpl-v2 .hero-home-v2__headline p {
    margin: 0;
    color: #222;
    text-shadow: none;
    font-size: clamp(1.65rem, 3.1vw, 2rem);
    line-height: 1.18;
    font-weight: 800;
}
/* ========================= */
/* Startseite Intro v2       */
/* ========================= */

.tpl-v2 .home-v2-intro {
    background: #f2f2f2;
    padding: 48px 0 42px;
}

/* Grid */
.tpl-v2 .home-v2-intro__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 36px;
}

/* Karten */
.tpl-v2 .home-v2-card {
    background: #ffffff;
    padding: 22px 20px 20px;
    border: 2px solid #fd1d26;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.tpl-v2 .home-v2-card h2 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.tpl-v2 .home-v2-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 10px;
}

/* Highlight Karte */
.tpl-v2 .home-v2-card--highlight {
    background: #fd1d26;
    color: #fff;
    border: none;
}

.tpl-v2 .home-v2-card--highlight h2 {
    color: #fff;
}

.tpl-v2 .home-v2-card--highlight p {
    color: rgba(255,255,255,0.95);
}

.tpl-v2 .home-v2-card--highlight ul {
    margin: 10px 0 0 18px;
}

.tpl-v2 .home-v2-card--highlight li {
    margin-bottom: 6px;
}

/* CTA Bereich */
.tpl-v2 .home-v2-cta {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: center;
}

/* Linker Bereich */
.tpl-v2 .home-v2-cta__text {
    background: #fd1d26;
    color: #fff;
    padding: 22px 20px;
}

.tpl-v2 .home-v2-cta__text h3 {
    margin: 0 0 8px;
}

.tpl-v2 .home-v2-cta__text p {
    margin: 0;
    font-size: 0.95rem;
}

/* Buttons rechts */
.tpl-v2 .home-v2-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tpl-v2 .home-v2-cta__actions .btn {
    width: 100%;
    text-align: center;
}

/* ========================= */
/* Responsive                */
/* ========================= */

@media (max-width: 1024px) {
    .tpl-v2 .home-v2-intro__grid {
        grid-template-columns: repeat(2, 1fr);
    }
/* Highlight Card bekommt volle Breite */

    .tpl-v2 .home-v2-card--highlight {
        grid-column: 1 / -1;
    }
   .tpl-v2 .home-v2-card--highlight {
    padding: 26px 24px;
    font-size: 1.02rem;
}
}


@media (max-width: 640px) {
    .tpl-v2 .home-v2-intro__grid {
        grid-template-columns: 1fr;
    }

    .tpl-v2 .home-v2-cta {
        grid-template-columns: 1fr;
    }

    .tpl-v2 .home-v2-cta__actions {
        flex-direction: column;
    }
}


/* ======================================================
   Responsive – Hero v2 abgestuft
   ====================================================== */

/* Grosse Screens */
@media (min-width: 1024px) {
    .tpl-v2 .hero-home-v2 {
        height: clamp(520px, 65vh, 700px);
        min-height: unset;
    }

    .tpl-v2 .hero-home-v2__img {
        object-position: center 25%;
    }

    .tpl-v2 .hero-home-v2__content-wrap {
        bottom: 42px;
    }
}
@media (max-width: 1023px) {
    .tpl-v2 .hero-home-v2__rechner {
        margin-top: 0;
    }
}

/* Tablet quer / kleine Laptops */
@media (max-width: 1023px) and (min-width: 769px) {
    .tpl-v2 .hero-home-v2 {
        height: 500px;
        min-height: unset;
    }

    .tpl-v2 .hero-home-v2__img {
        object-position: center 30%;
    }

    .tpl-v2 .hero-home-v2__content-wrap {
        bottom: 34px;
    }
}

/* Tablet / grosses Mobile */
@media (max-width: 768px) and (min-width: 600px) {
    .tpl-v2 .hero-home-v2 {
        height: 420px;
        min-height: unset;
    }

    .tpl-v2 .hero-home-v2__img {
        object-position: center 32%;
    }

    .tpl-v2 .hero-home-v2__content-wrap {
        bottom: 22px;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 24px;
    }

    .tpl-v2 .hero-home-v2__rechner {
        max-width: 230px;
        margin-top: 0;
    }

    .tpl-v2 .hero-home-v2__headline .hero-title,
    .tpl-v2 .hero-home-v2__headline h1 {
        font-size: clamp(2.4rem, 8vw, 3.6rem);
    }

    .tpl-v2 .hero-home-v2__headline p {
        color: #fff;
        text-shadow: 0 3px 14px rgba(0,0,0,0.45);
        font-size: clamp(1.3rem, 4.8vw, 2rem);
    }
}

/* Mobile */
@media (max-width: 599px) {
    .tpl-v2 .hero-home-v2 {
        height: 460px;
        min-height: unset;
    }

    .tpl-v2 .hero-home-v2__img {
        object-position: center 35%;
    }

    .tpl-v2 .hero-home-v2__content-wrap {
        bottom: 24px;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 22px;
    }

    .tpl-v2 .hero-home-v2__rechner {
        max-width: 220px;
        margin-top: 0;
    }

    .tpl-v2 .hero-home-v2__headline .hero-title,
    .tpl-v2 .hero-home-v2__headline h1 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .tpl-v2 .hero-home-v2__headline p {
        color: #fff;
        text-shadow: 0 3px 14px rgba(0,0,0,0.45);
        font-size: clamp(1.25rem, 6vw, 2rem);
    }
}

/* Kleine Mobile */
@media (max-width: 414px) {
    .tpl-v2 .hero-home-v2 {
        height: 430px;
    }

    .tpl-v2 .hero-home-v2__content-wrap {
        padding-top: 42px;
        bottom: 22px;
    }

    .tpl-v2 .hero-home-v2__rechner {
        max-width: 200px;
    }
}
/* =========================
    HERO V2 – HAUPTTHEMEN
    (_hero_hub_v2.php)
    ========================= */

.epx-hero--v2 {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background */
.epx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.epx-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.epx-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,var(--overlay,0.4));
}

/* Content */
.epx-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.epx-hero-content {
    max-width: 640px;
    color: #fff;
}

/* Eyebrow */
.epx-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 10px;
}

/* H1 */
.epx-hero .hero-title,
.epx-hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Lead */
.epx-hero-lead {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* CTA */
.epx-hero-cta .btn {
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Mobile */
@media (max-width: 800px) {
    .epx-hero--v2 {
        min-height: 340px;
    }

  .epx-hero .hero-title,
    .epx-hero h1 {
        font-size: 1.8rem;
    }
    .epx-hero-lead {
        font-size: 1rem;
    }
}
/* =========================
   HERO V2 – HAUPTTHEMEN
   basiert auf Startseiten-Hero
   ========================= */

.hero-home-v2--hub .hero-home-v2__headline {
    max-width: 620px;
}

.hero-home-v2--hub .hero-home-v2__headline .hero-title,
.hero-home-v2--hub .hero-home-v2__headline h1 {
    text-wrap: balance;
}

.hero-home-v2--hub .hero-home-v2__headline p {
    max-width: 520px;
}
/* =========================
   REFERENZEN V2 – Karten Feinschliff
   ========================= */

.epx-referenzen .epx-ref-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 45px 0;
}

.epx-referenzen .ref-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.epx-referenzen .ref-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.epx-referenzen .ref-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.epx-referenzen .ref-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.epx-referenzen .ref-card__body {
    padding: 24px;
}

.epx-referenzen .ref-card__title {
    margin: 0 0 10px;
    color: #222;
    font-size: 1.25rem;
    line-height: 1.25;
}

.epx-referenzen .ref-card__teaser {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.55;
}


/* Tags */
.epx-referenzen .ref-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.epx-referenzen .ref-card__tags li {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #555;
    font-size: 0.82rem;
}

.epx-referenzen .ref-card__tags li::before {
    content: none;
}


/* Facts */
.epx-referenzen .ref-card__facts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.epx-referenzen .ref-card__facts div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
}

.epx-referenzen .ref-card__facts dt {
    color: #777;
    font-size: 0.82rem;
}

.epx-referenzen .ref-card__facts dd {
    margin: 0;
    color: #222;
    font-weight: 600;
}


/* Hover */
.epx-referenzen .ref-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.epx-referenzen .ref-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}


/* Mobile */
@media (max-width: 850px) {
    .epx-referenzen .epx-ref-grid {
        grid-template-columns: 1fr;
    }

    .epx-referenzen .ref-card__body {
        padding: 20px;
    }
}
/* =========================
   REFERENZ DETAIL – FACTS BOX
   ========================= */

.epx-box--facts {
    background: #f7f9fb;
    border: 1px solid rgba(0,0,0,0.05);
}

.epx-box--facts h2 {
    margin-bottom: 18px;
}


/* Grid */
.epx-ref-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 26px;
}


/* einzelne Zeile */
.epx-ref-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/* Label */
.epx-ref-label {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8f96;
}


/* Value */
.epx-ref-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e1f21;
}


/* Highlight-Optik (optional leicht stärker) */
.epx-box--facts {
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}


/* Mobile */
@media (max-width: 720px) {
    .epx-ref-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .epx-ref-value {
        font-size: 1rem;
    }
}
.epx-ref-row {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.epx-ref-row:last-child {
    border-bottom: none;
}

/* Budget-Rechner – V2 Look */


.epx-rechner .rechner-box {
    margin-top: 1.75rem;
    padding: clamp(1rem, 2vw, 2rem);
    border-radius: 22px;
    background: #f3f0ea;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.epx-rechner .rechner-info {
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    background: #e2e3e7;
    color: #fff;
}

.epx-rechner .rechner-price {
    margin: 0 0 .35rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.epx-rechner .rechner-explain {
    margin: 0;
    opacity: .86;
}

.epx-rechner fieldset {
    margin: 0 0 1rem;
    padding: 1.15rem 1.25rem;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.055);
}

.epx-rechner legend {
    padding: 0;
    margin-bottom: .85rem;
    font-weight: 800;
    color: #1f2b24;
}

.epx-rechner label {
    line-height: 1.45;
}

.epx-rechner input[type="text"],
.epx-rechner input[type="email"],
.epx-rechner input[type="tel"],
.epx-rechner input[type="number"],
.epx-rechner textarea {
    width: 100%;
    max-width: 100%;
    margin-top: .25rem;
    padding: .72rem .8rem;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 12px;
    background: #fafafa;
    font: inherit;
    box-sizing: border-box;
}

.epx-rechner input:focus,
.epx-rechner textarea:focus {
    outline: 3px solid rgba(186,72,14,.22);
    border-color: var(--accent);
    background: #fff;
}

.epx-rechner textarea {
    min-height: 125px;
    resize: vertical;
}

.epx-rechner .rechner-radio-list label,
.epx-rechner #ausfuehrungGroup label,
.epx-rechner .thema {
    cursor: pointer;
}

.epx-rechner .rechner-radio-list label,
.epx-rechner #ausfuehrungGroup > label,
.epx-rechner fieldset:nth-of-type(4) > label {
    display: block;
    padding: .62rem .75rem;
    margin: .42rem 0;
    border-radius: 12px;
    background: #f7f5f0;
    transition: background .18s ease, transform .18s ease;
}

.epx-rechner .rechner-radio-list label:hover,
.epx-rechner #ausfuehrungGroup > label:hover,
.epx-rechner fieldset:nth-of-type(4) > label:hover {
    background: #eee7dc;
    transform: translateX(2px);
}

.epx-rechner input[type="radio"],
.epx-rechner input[type="checkbox"] {
    margin-right: .45rem;
    accent-color: var(--accent);
}

.req {
    color: var(--accent);
    font-weight:700;
}

.epx-rechner .rechner-mini-hint,
.epx-rechner .rechner-privacy,
.epx-rechner .conv-hint {
    font-size: .95rem;
    opacity: .82;
}

#reqHint {
    padding: .75rem .9rem;
    border-radius: 12px;
    background: rgba(240,90,0,.12);
    color:#000;
}

.is-invalid {
    outline: 2px solid rgba(240,90,0,.55);
    outline-offset: 3px;
}

.rechner-radio-list.is-invalid,
#ausfuehrungGroup.is-invalid {
    outline: 2px solid rgba(240,90,0,.55);
    outline-offset: 5px;
}

.epx-rechner .rechner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem !important;
}

.epx-rechner .rechner-actions .btn {
    min-height: 46px;
}

.epx-rechner hr {
    margin: 1.75rem 0;
    border: 0;
    border-top: 1px solid rgba(0,0,0,.12);
}

.rechner-result {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.45rem;
    border-radius: 20px;
    background: #e2e3e7;
    color: #000;
    box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

.rechner-result::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--accent);
}

.rechner-result h2 {
    margin-top: 0;
    color: #fff;
}

.rechner-result p {
    margin: .45rem 0;
}

.rechner-result #outTotal,
.rechner-result #outRange {
    font-size: 1.12em;
    font-weight: 800;
}

.rechner-result ul {
    margin: .85rem 0 0;
    padding-left: 1.15rem;
}

.rechner-result .is-advice {
    font-weight:700;
}

.rechner-disclaimer {
    margin-top: 1rem !important;
    font-size: .92rem;
    opacity: .75;
}

@media (min-width: 900px) {
    .epx-rechner .rechner-box {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
        gap: 1.35rem;
        align-items: start;
    }

    .epx-rechner .rechner-info,
    .epx-rechner form {
        grid-column: 1;
    }

    .epx-rechner hr {
        display: none;
    }

    .epx-rechner .rechner-result {
        grid-column: 2;
        grid-row: 1 / span 2;
        position: sticky;
        top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .epx-rechner .rechner-box {
        padding: .85rem;
        border-radius: 18px;
    }

    .epx-rechner fieldset {
        padding: 1rem;
        border-radius: 16px;
    }

    .epx-rechner .rechner-actions .btn {
        width: 100%;
    }
}
.epx-rechner fieldset {
    position: relative;
    margin: 0 0 1rem;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.055);
}

.epx-rechner legend {
    display: block;
    margin-bottom: 0.75rem;
    padding-top:60px;
    font-weight: 800;
    color: #1f2b24;
}
.epx-rechner .btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}



