/* ===========================================
   I.D. Demertzi – Design System Override v4
   =========================================== */

/* ── Base ────────────────────────────────── */

html, body {
    color: #384a5c;
    letter-spacing: 0 !important;
    overflow-x: clip !important;
}

@media (min-width: 992px) {
    body {
        padding-top: 90px;
    }
}

h1, h2, h3, h4, h5, h6,
p, li, td, dd, a, span, strong, b,
.section-title,
.section-heading .section-title,
.title,
.subtitle {
    letter-spacing: 0 !important;
}

p, li, td, dd, .accordion-body {
    color: #384a5c;
    font-weight: 400;
    line-height: 1.7;
}

/* ── Heading Hierarchy ───────────────────── */
/* H1 = 700 (einziges Bold), alles andere 600 */

h1, h2, h3, h4, h5, h6 {
    color: #0a2540;
}

h1 {
    font-weight: 700 !important;
}

h2, h3, h4, h5 {
    font-weight: 600 !important;
}

h3.h5 {
    font-size: 1.25rem !important;
}

/* ── Subtitles ───────────────────────────── */

.text-dark,
.sideimage__img__points > p.text-dark,
.section-heading p {
    color: #3a5a7c !important;
    font-weight: 400 !important;
}

/* ── Hero Section ────────────────────────── */

.sideimage h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #0a2540 !important;
}

.sideimage__img__points {
    padding: 35px 45px !important;
    margin-top: 30px !important;
}

.sideimage__img__points > p {
    font-size: 16px !important;
    line-height: 1.65;
    color: #384a5c;
    font-weight: 400 !important;
}

.sideimage__img__points > p.text-dark {
    font-size: 17px !important;
    color: #3a5a7c !important;
    font-weight: 500 !important;
    margin-bottom: 12px;
}

.liststyle li span {
    color: #384a5c;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
}

.liststyle li strong {
    color: #0a2540;
    font-weight: 600;
    font-size: 16px;
}

/* ── CTA Buttons: NUR Icon-Kreis grün ────── */
/* Original-Design bleibt komplett erhalten   */

/* Normal: weißes Icon auf grünem Kreis */
.site-btn .icon span.icon-phone,
.site-btn .icon span.icon-phone::before {
    color: #fff !important;
}

.site-btn .icon span.icon-form::before {
    filter: brightness(0) invert(1) !important;
}

/* Hover: grünes Icon auf grünem Kreis (weiß bleibt) */
.site-btn:hover .icon span.icon-phone,
.site-btn:hover .icon span.icon-phone::before {
    color: #fff !important;
}

.site-btn:hover .icon span.icon-form::before {
    filter: brightness(0) invert(1) !important;
}

/* ── Service Box (Mittelteil) ────────────── */

.service_box {
    padding: 60px 0 !important;
}

.service_box h2 {
    font-weight: 600 !important;
    font-size: 26px !important;
    color: #0a2540 !important;
}

.service_box p {
    font-size: 16px;
    color: #384a5c;
    font-weight: 400;
}

/* ── WUB Label ───────────────────────────── */

.wub {
    color: #0062a3 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* ── Detail Section ──────────────────────── */

.sideimage.sideimage-image h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #0a2540 !important;
}

.sideimage.sideimage-image p.text-dark {
    font-size: 17px !important;
    color: #3a5a7c !important;
    font-weight: 500 !important;
    margin-bottom: 16px;
}

.sideimage.sideimage-image p {
    font-size: 16px;
    color: #384a5c;
    font-weight: 400;
    margin-bottom: 12px;
}

.sideimage.sideimage-image p strong {
    color: #0a2540;
    font-weight: 600;
}

/* ── Pros 4-Box ──────────────────────────── */

.services-box h3.h5, .services-box h5, .services-text h3.h5, .services-text h5 {
    color: #0a2540 !important;
    font-weight: 600 !important;
    font-size: 17px !important;
}

.services-box p, .services-text p {
    color: #384a5c !important;
    font-weight: 400 !important;
    font-size: 16px !important;
}

.services-box a {
    color: #0062a3;
}
.services-box a:hover {
    color: #004976;
}

/* ── FAQ Accordion ───────────────────────── */

.accordion-item {
    border: 1px solid #e4e9ee !important;
    margin-bottom: 8px;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-item:first-child,
.accordion-item:last-child {
    border-radius: 12px !important;
}

.accordion-button {
    color: #0a2540 !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
    color: #0062a3 !important;
    background-color: #f4f8fc !important;
    box-shadow: none;
    border-radius: 12px 12px 0 0 !important;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    color: #384a5c !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* ── Vorteile Section ────────────────────── */

/* Vorteile cards: consistent 12px */
.services-cards .card,
.entrumpelungen__taflaj .card {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #e8ecf0 !important;
    background: #fff !important;
    transition: all 0.25s ease !important;
    cursor: default;
}

.services-cards .card:hover,
.entrumpelungen__taflaj .card:hover {
    border-color: #c8d8e8 !important;
    box-shadow: 0 6px 20px rgba(10,37,64,0.08) !important;
    transform: translateY(-2px);
}

.entrumpelungen__taflaj {
    padding-top: 50px !important;
    padding-bottom: 60px !important;
}

.entrumpelungen__taflaj .heading h4 {
    font-weight: 600 !important;
    font-size: 26px !important;
    color: #0a2540 !important;
}

.entrumpelungen__taflaj .heading p {
    color: #384a5c !important;
    font-size: 16px;
}

.entrumpelungen__taflaj .card h4 {
    font-weight: 600 !important;
    font-size: 18px !important;
    color: #0a2540 !important;
}

.service-card-content h3.h5, .service-card-content h5 {
    color: #3a5a7c !important;
    font-weight: 500 !important;
    letter-spacing: 0;
}

.service-card-content h3 {
    color: #0a2540 !important;
    font-weight: 700 !important;
}

.cleaning-service .service-cards {
    gap: 40px;
    flex-wrap: wrap;
}

.stat-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f4f0;
    border: 2px solid #c2e4d8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Section Headings ────────────────────── */

.section-heading .section-title {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #0a2540 !important;
}

.section-heading p {
    font-size: 16px !important;
    color: #384a5c !important;
    font-weight: 400 !important;
}

/* ── Navigation ──────────────────────────── */

.main-menu ul a {
    color: #0a2540;
    font-weight: 600;
}
.main-menu ul a:hover,
.main-menu ul li:hover > a {
    color: #0062a3;
}

/* ── Links ───────────────────────────────── */

a:not(.site-btn):not(.main-menu a) {
    color: #0062a3;
}
a:not(.site-btn):not(.main-menu a):hover {
    color: #004976;
}

/* ── CTA Section (legacy cleanup) ────────── */

/* Service cards (Leistungen on Index/Footer) */
.single-service-box {
    border-radius: 12px !important;
    overflow: hidden;
}

.single-service-box .service-thumb {
    border-radius: 12px 12px 0 0 !important;
}

.service-content {
    border-radius: 0 0 12px 12px !important;
}

/* ── NavBottom + Mobile ──────────────────── */

.navBottom {
    background: #0a2540;
}

.header_phone_mobile {
    background: #0a2540;
}

/* ── Sticky Detail Section (desktop) ─────── */

@media (min-width: 992px) {
    .sideimage.sideimage-image {
        overflow: visible !important;
    }
    .sideimage.sideimage-image > .container,
    .sideimage.sideimage-image > .container > .row,
    .sideimage.sideimage-image > .container > .row > .col-lg-6 {
        overflow: visible !important;
    }
    .sideimage.sideimage-image .sideimage__content {
        height: 100%;
    }
    .sideimage.sideimage-image .sideimage__img__points {
        position: sticky;
        top: 100px;
    }
}

/* ── Spacing Fixes ───────────────────────── */

.sideimage.pb-120 {
    padding-bottom: 50px !important;
}

section[class*="pt-60"] {
    padding-top: 50px !important;
}

section[class*="pb-60"] {
    padding-bottom: 50px !important;
}

/* FAQ section needs less top since it follows detail content */
section.pt-40.pb-60 {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
}

/* ── Footer ──────────────────────────────── */

.site-footer,
.site-footer p,
.site-footer a,
.site-footer li a,
.site-footer .title,
.site-footer .footer-contact-info p,
.site-footer .footer-contact-info strong,
.site-footer .copyright p,
.site-footer .copyright a {
    color: #fff !important;
}

.site-footer {
    padding-top: 50px !important;
    background-color: #0a2540;
}

/* Fix: sideimage z-index -1 hid images behind section background.
   Box must stack ABOVE image because .sideimage-image .sideimage__img__points
   has margin-right: -115px and overlaps into the image column. */
.sideimage__img {
    position: relative;
    z-index: 1 !important;
}
.sideimage .sideimage__img__points,
.sideimage.sideimage-image .sideimage__img__points {
    position: relative;
    z-index: 2;
}

/* Index hero: show full portrait image instead of object-fit cover crop */
.hero-bg .about-thumb-big {
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg .about-thumb-big img {
    object-fit: contain !important;
    height: auto !important;
    width: auto !important;
    max-height: 100%;
    max-width: 100%;
}

/* Footer Title: Uppercase mit Trennlinie */
.site-footer .footer-widget .title {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-left: 0 !important;
}

.site-footer .footer-widget .title::after {
    display: none !important;
}

/* Footer Links: Kompakter Abstand */
.site-footer .footer-widget ul li:not(:first-child) {
    margin-top: 6px !important;
}

.site-footer .footer-widget ul li a {
    font-size: 16px !important;
    font-weight: 400 !important;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.site-footer .footer-widget ul li a:hover {
    opacity: 1;
    color: #fff !important;
}

/* Footer Kontakt-Block */
.site-footer .footer-contact-info p {
    font-size: 16px !important;
    line-height: 1.6;
    opacity: 0.9;
}

.site-footer .footer-contact-info strong {
    color: #fff !important;
    opacity: 1;
}

.site-footer .footer-social-info a {
    display: block;
    font-size: 16px !important;
    padding: 2px 0;
    opacity: 0.9;
}

.site-footer .footer-social-info a:hover {
    opacity: 1;
}

/* Footer Kontakt-Trennlinie entfernen */
.site-footer .footer-contact-info {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.site-footer .footer-contact-info + .title {
    margin-top: 28px !important;
}

/* Footer widgets: each column full-width on mobile */
@media (max-width: 767px) {
    .site-footer .row > div[class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 36px !important;
    }
    .site-footer .row > div[class*="col-"]:first-child {
        margin-top: 0 !important;
    }
    .site-footer .footer-widget { margin-bottom: 0; }
}

/* Copyright Bar */
.site-footer .copyright {
    margin-top: 30px !important;
    padding-top: 15px !important;
    padding-bottom: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.site-footer .copyright p {
    font-size: 16px !important;
    opacity: 0.7;
}

/* ── Mobile ──────────────────────────────── */

@media (max-width: 991px) {
    .sideimage h1 {
        font-size: 26px !important;
    }
    .service_box h2,
    .sideimage.sideimage-image h3,
    .section-heading .section-title,
    .entrumpelungen__taflaj .heading h4 {
        font-size: 22px !important;
    }
    .sideimage__img__points {
        padding: 25px 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 15px !important;
    }
    .service_box {
        padding: 40px 0 !important;
    }
    .branchen-section,
    .leistungen-detail {
        padding-top: 50px !important;
        padding-bottom: 40px !important;
    }
    .branche-card,
    .leistung-card-inner {
        padding: 22px 20px 18px;
    }
}

@media (max-width: 575px) {
    .sideimage h1 {
        font-size: 24px !important;
    }
    .service_box h2,
    .sideimage.sideimage-image h3,
    .section-heading .section-title {
        font-size: 20px !important;
    }
}

/* ── Fix 2: Footer Hintergrund dunkler ──── */

.site-footer::before {
    background: #0a2540 !important;
    opacity: 0.97 !important;
}

/* ── Fix 5: Index Subtitle ──────────────── */

.subtitle,
p.subtitle {
    color: #3a5a7c !important;
    text-shadow: none;
}

/* ── Hero Hintergrund hell (wie Service-Pages) ── */

@media (max-width: 991px) {
    .hero-bg .col-xl-6.col-lg-6.my-auto {
        padding-top: 24px !important;
    }
}

.hero-bg {
    background: #e8f2ff !important;
}

.hero-bg .mobile_img img {
    aspect-ratio: 768 / 500;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-bg .title,
.hero-bg h1,
.hero-bg h2 {
    color: #0a2540 !important;
}

.hero-bg p,
.hero-bg .content p,
.hero-bg .about-list-wrapper p,
.hero-bg .subtitle,
.hero-bg .sub-title {
    color: #3a5a7c !important;
}

.hero-bg .about-list-wrapper p,
.hero-bg .content p {
    color: #3a5a7c !important;
    text-shadow: none !important;
}

.hero-bg .liststyle li span {
    color: #384a5c !important;
}

.hero-bg .liststyle li strong {
    color: #0a2540 !important;
}

/* ── Buttons: Normal = grün gefüllt, Hover = weiß/invertiert ── */

.site-btn {
    background: #1a8a5c !important;
    color: #fff !important;
    border-color: #1a8a5c !important;
}

@media (max-width: 991px) {
    .banner-btns {
        align-items: flex-start !important;
        margin-top: 24px !important;
    }
    .banner-btns .site-btn {
        width: fit-content !important;
    }
}

.site-btn .icon {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.site-btn:hover {
    background: #fff !important;
    color: #1a8a5c !important;
    border-color: #1a8a5c !important;
    scale: 1.03;
}

.site-btn:hover .icon {
    background: #1a8a5c !important;
    color: #fff !important;
}

/* ── Branchen Cards ──────────────────────── */

.branche-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 28px 24px;
    height: 100%;
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
    position: relative;
}

.branche-card:hover {
    border-color: #c8d8e8;
    box-shadow: 0 8px 30px rgba(10,37,64,0.07);
    transform: translateY(-4px);
}

.branche-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.branche-card h3.h5, .branche-card h5 {
    color: #0a2540 !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    margin-bottom: 10px;
}

.branche-card p {
    color: #4a6178 !important;
    font-size: 16px !important;
    line-height: 1.65;
    margin: 0;
}

/* ── Kontakt-Karten Mobile Abstand ──────── */
@media (max-width: 767px) {
    .kk-card {
        margin-bottom: 20px;
    }
}

/* ── Leistungen Link Cards ──────────────── */

.leistung-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.leistung-card:hover {
    box-shadow: 0 10px 36px rgba(10,37,64,0.10);
    transform: translateY(-5px);
    border-color: #c8d8e8;
}

.leistung-card-body {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.leistung-card-body .leistung-link {
    margin-top: auto;
}

.leistung-card-body h3 {
    color: #0a2540 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 10px;
}

.leistung-card-body p {
    color: #4a6178 !important;
    font-size: 16px !important;
    line-height: 1.65;
    margin-bottom: 0;
}

.leistung-card-body .liststyle li {
    margin-bottom: 8px;
    align-items: center;
}

.leistung-card-body .liststyle li span {
    color: #384a5c;
    font-size: 15px;
}

.leistung-card-body .liststyle li .icon-checkmark {
    margin-left: 0 !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border-radius: 0;
}

.leistung-card-body .liststyle li .icon-checkmark img {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.sideimage__img__points .liststyle li .icon-checkmark {
    margin-left: 0 !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border-radius: 0;
    margin-top: 4px !important;
}

.sideimage__img__points .liststyle li .icon-checkmark img {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.leistung-card .site-btn {
    font-size: 15px;
}

@media (max-width: 991px) {
    .leistung-card-body {
        padding: 20px 20px 22px;
    }
    .leistung-card-body h3 {
        font-size: 18px !important;
    }
}

.leistung-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.leistung-card-img + .leistung-card-inner {
    border: none;
    border-left: 4px solid #1a8a5c;
    border-radius: 0;
}

.leistung-card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 28px 28px 24px;
    height: 100%;
    border: 1px solid #e8ecf0;
    border-left: 4px solid #1a8a5c;
    transition: all 0.3s ease;
    position: relative;
}

.leistung-card:hover .leistung-card-inner {
    border-left-color: #0062a3;
    box-shadow: 0 8px 30px rgba(10,37,64,0.07);
    transform: translateY(-4px);
}

.leistung-card-inner h3.h5, .leistung-card-inner h5 {
    color: #0a2540 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    margin-bottom: 10px;
}

.leistung-card:hover .leistung-card-inner h3.h5, .leistung-card:hover .leistung-card-inner h3.h5, .leistung-card-inner h5 {
    color: #0062a3 !important;
}

.leistung-card-inner p {
    color: #4a6178 !important;
    font-size: 16px !important;
    line-height: 1.65;
    margin-bottom: 16px;
}

.leistung-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a8a5c;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
}

.leistung-card:hover .leistung-link {
    color: #0062a3;
}

.leistung-link svg {
    transition: transform 0.2s;
}

.leistung-card:hover .leistung-link svg {
    transform: translateX(4px);
}

/* ── Services-Box Mobile ─────────────────── */

@media (max-width: 575px) {
    .services-boxes .container { padding-left: 20px !important; padding-right: 20px !important; }
    .services-boxes .row { --bs-gutter-x: 14px; }
    .services-boxes .row > [class*="col-"] {
        margin-bottom: 14px;
    }
    .services-boxes .row > [class*="col-"]:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
    .services-box {
        padding: 20px 18px !important;
    }
    .services-box .services-img {
        margin-bottom: 12px !important;
    }
    .services-box h3.h5, .services-box h5 {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }
    .services-box p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
}

/* ── Services-Box (Pros 4-Kacheln) ──────── */

.services-box {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.25s ease;
    height: 100%;
    flex-direction: column !important;
    text-align: left !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

.services-box:hover {
    border-color: #c8d8e8;
    box-shadow: 0 6px 20px rgba(10,37,64,0.06);
}

/* Icon: farbiges Quadrat statt runder Kreis */
.services-box .services-img {
    min-width: 48px !important;
    min-height: 48px !important;
    width: 48px;
    height: 48px;
    border: none !important;
    border-radius: 12px !important;
    background: #e8f4f0 !important;
    padding: 10px !important;
    margin-bottom: 16px;
}

.services-box .services-img img {
    width: 28px !important;
    height: 28px !important;
    filter: brightness(0) saturate(100%) invert(35%) sepia(80%) saturate(500%) hue-rotate(130deg);
}

.services-box h3.h5, .services-box h5 {
    margin-bottom: 8px !important;
    font-size: 17px !important;
}

.services-box .services-text {
    width: 100%;
}

/* ── Section Spacing (mehr Luft) ─────────── */

.branchen-section,
.leistungen-detail {
    padding-top: 70px !important;
    padding-bottom: 60px !important;
}

/* ── Mid-Page CTA Strip ─────────────────── */

.mid-cta {
    background: #0a2540;
    padding: 60px 0 !important;
    margin: 20px 0 40px 0;
}

.mid-cta .container {
    padding-left: 48px !important;
    padding-right: 48px !important;
}

.mid-cta .d-flex.gap-3 {
    gap: 16px !important;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 575px) {
    .mid-cta {
        padding: 44px 0 !important;
    }
    .mid-cta .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .mid-cta-text {
        font-size: 22px !important;
    }
    .mid-cta-subtext {
        font-size: 15px !important;
    }
    .mid-cta .d-flex.gap-3 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .mid-cta .site-btn {
        width: auto;
        min-width: 200px;
        max-width: 260px;
        justify-content: center;
    }
    .cta-oder {
        display: none !important;
    }
    .mid-cta-pill {
        padding: 5px 14px 5px 5px;
    }
}

.mid-cta-text {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    margin-bottom: 10px !important;
}

.mid-cta-subtext {
    color: rgba(255,255,255,0.7) !important;
    font-size: 17px !important;
    margin-bottom: 28px !important;
    max-width: 540px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.mid-cta .site-btn {
    margin: 4px;
    font-size: 17px;
}

/* Pill on dark background */
.mid-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 40px;
    margin-bottom: 20px;
}

.mid-cta-pill img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mid-cta-pill-info {
    text-align: left;
    line-height: 1.3;
}

.mid-cta-pill-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 17px;
}

.mid-cta-pill-status {
    display: block;
    font-size: 16px;
    color: rgba(255,255,255,0.6);
}

.mid-cta-pill-status.online-text {
    color: #5ce0a0;
}

.mid-cta-pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,0.3);
}

.mid-cta-pill-dot.online {
    background: #5ce0a0;
    box-shadow: 0 0 6px rgba(92,224,160,0.5);
}

.mid-cta-pill-dot.offline {
    background: rgba(255,255,255,0.3);
}

.mid-cta .btn-outline-cta {
    border-color: rgba(255,255,255,0.4) !important;
    color: #fff !important;
}

.mid-cta .btn-outline-cta .icon {
    background: rgba(255,255,255,0.15) !important;
}

.mid-cta .btn-outline-cta .icon span.icon-form::before {
    filter: brightness(0) invert(1) !important;
}

.mid-cta .btn-outline-cta:hover {
    background: #fff !important;
    color: #0a2540 !important;
    border-color: #fff !important;
}

.mid-cta .btn-outline-cta:hover .icon {
    background: #0a2540 !important;
}

.mid-cta .btn-outline-cta:hover .icon span.icon-form::before {
    filter: brightness(0) invert(1) !important;
}

/* "oder" Separator */
.cta-oder {
    color: #8a9bb0;
    font-size: 16px;
    font-weight: 500;
    padding: 0 4px;
}

/* Secondary Outline Button */
.btn-outline-cta {
    background: transparent !important;
    border: 2px solid #0a2540 !important;
    color: #0a2540 !important;
}

.btn-outline-cta .icon {
    background: #0a2540 !important;
    color: #fff !important;
}

.btn-outline-cta:hover {
    background: #0a2540 !important;
    color: #fff !important;
}

.btn-outline-cta:hover .icon {
    background: #fff !important;
}

.btn-outline-cta:hover .icon span.icon-form::before {
    filter: brightness(0) !important;
}

/* Trust Badges */
.mid-cta-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
}

.trust-badge svg {
    flex-shrink: 0;
    stroke: rgba(255,255,255,0.5) !important;
}

/* Weniger Luft zwischen FAQ und Mid-CTA */
.mid-cta + section,
.mid-cta + .entrumpelungen__taflaj,
section + .mid-cta {
    margin-top: 0 !important;
}

/* ── Kontakt Page Cards ─────────────────── */

.kontakt-section {
    padding-top: 70px !important;
    padding-bottom: 60px !important;
}

.kontakt-card {
    display: block;
    text-decoration: none !important;
    height: 100%;
}

.kontakt-card-inner {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.kontakt-card:hover .kontakt-card-inner {
    border-color: #c8d8e8;
    box-shadow: 0 8px 30px rgba(10,37,64,0.07);
    transform: translateY(-4px);
}

.kontakt-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.kontakt-card-inner h3.h5, .kontakt-card-inner h5 {
    color: #0a2540 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    margin-bottom: 6px;
}

.kontakt-highlight {
    color: #0062a3 !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    margin-bottom: 10px !important;
}

.kontakt-card-inner p {
    color: #4a6178 !important;
    font-size: 16px !important;
    line-height: 1.6;
}

/* Hide mobile sub-menu on desktop */
@media (min-width: 992px) {
    .mega-mobile-sub { display: none !important; }
}

/* Leistung cards: gap + shadow on mobile */
@media (max-width: 991px) {
    #leistungen .row > [class*="col-"] {
        margin-bottom: 28px;
    }
    #leistungen .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    .leistung-card {
        border: 1.5px solid #dde5ee;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(10,37,64,0.07);
    }
    .leistung-card-body {
        padding-bottom: 28px !important;
    }
}

/* ── Ablauf Grid ─────────────────────────── */

.ablauf-section {
    padding-top: 70px !important;
    padding-bottom: 130px !important;
}

.ablauf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    position: relative;
}

/* Connecting line between icons */
.ablauf-grid::before {
    content: "";
    position: absolute;
    top: 26px;
    left: calc(16.66% + 26px);
    right: calc(16.66% + 26px);
    height: 2px;
    background: #e0e8f0;
    z-index: 0;
}

.ablauf-step {
    position: relative;
}

.ablauf-icon-wrap {
    margin-bottom: 18px;
}

.ablauf-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ablauf-step h3.h5, .ablauf-step h5 {
    color: #0a2540 !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    margin-bottom: 8px;
}

.ablauf-step p {
    color: #4a6178 !important;
    font-size: 16px !important;
    line-height: 1.55;
    margin-bottom: 10px;
}

.ablauf-badge {
    display: inline-block;
    background: #f0f6fb;
    color: #0062a3;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Impressum / Datenschutz: pt-130 auf mobile reduzieren */
@media (max-width: 767px) {
    .about-area.pt-130 {
        padding-top: 40px !important;
    }
    .about-area.pb-120 {
        padding-bottom: 60px !important;
    }
}

@media (max-width: 767px) {
    .ablauf-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ablauf-grid::before {
        display: none;
    }
    .ablauf-step {
        text-align: left !important;
        display: flex;
        gap: 16px;
        align-items: flex-start;
        background: #fff;
        border: 1px solid #e8ecf0;
        border-radius: 12px;
        padding: 18px 16px;
    }
    .ablauf-icon-wrap {
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: center;
    }
    .ablauf-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ablauf-body h3.h5, .ablauf-body h5 {
        margin-bottom: 0 !important;
        font-size: 16px !important;
    }
    .ablauf-body p {
        margin-bottom: 6px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    .ablauf-body .ablauf-badge {
        margin-top: 2px;
    }
}

/* ── NavBottom Trust Bar Icons ───────────── */

.navBottom-item span {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.navBottom-item span svg {
    width: 22px !important;
    height: 22px !important;
}

.navBottom-item p {
    font-size: 16px !important;
}

/* ── Mobile Menu (meanmenu) ──────────────── */

/* Hide desktop mega-menu inside mean-nav (MeanMenu copies full nav HTML) */
.mean-nav .mega-menu,
.mean-nav .mega-menu-inner,
.mean-nav .mega-col,
.mean-nav .mega-col-title,
.mean-nav .mega-col ul {
    display: none !important;
}

/* Mean bar: solid background, no transparent override */
.mean-container .mean-bar,
.mean-bar,
.header_main .mean-container .mean-bar {
    background: #0a2540 !important;
    padding: 0 !important;
}

/* Mean nav container: needs solid background so it doesn't show content behind */
.mean-container .mean-nav,
.mean-nav,
.header_main .mean-nav,
.header_main.menufixcustom .mean-nav {
    background: #0a2540 !important;
    margin-top: 0 !important;
    height: auto !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255,255,255,0.2) transparent !important;
}

/* Remove gap between submenu parent and child items */
.mean-container .mean-nav ul li > ul,
.mean-nav ul li > ul {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hamburger button (3 lines) - DARK on white header */
.mean-container a.meanmenu-reveal {
    border: none !important;
    background: transparent !important;
    color: #0a2540 !important;
}

.mean-container a.meanmenu-reveal span,
a.meanmenu-reveal span {
    background: #0a2540 !important;
}

/* X close button - also dark on white header */
.mean-container a.meanmenu-reveal.meanclose {
    color: #0a2540 !important;
    font-size: 26px !important;
    border: none !important;
}

/* Menu links */
.mean-container .mean-nav ul li a,
.mean-nav ul li a {
    background: #0a2540 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding: 10px 5% !important;
    text-transform: none !important;
}

.mean-container .mean-nav ul li a:hover,
.mean-nav ul li a:hover {
    background: rgba(255,255,255,0.08) !important;
}

/* Submenu links (2. Ebene) */
.mean-container .mean-nav ul li li a,
.mean-nav ul li li a {
    background: #0f2e4c !important;
    font-size: 16px !important;
    padding-left: 8% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mean-container .mean-nav ul li li a:hover,
.mean-nav ul li li a:hover {
    background: rgba(255,255,255,0.08) !important;
}

/* Sub-submenu (3. Ebene) */
.mean-container .mean-nav ul li li li a,
.mean-nav ul li li li a {
    background: #132d48 !important;
    padding-left: 11% !important;
}

/* Hamburger: 3 bars */
.mean-container a.meanmenu-reveal {
    width: 28px !important;
    height: 28px !important;
    padding: 4px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    overflow: visible !important;
}

.mean-container a.meanmenu-reveal span,
a.meanmenu-reveal span {
    display: block !important;
    background: #0a2540 !important;
    height: 3px !important;
    width: 26px !important;
    margin: 0 !important;
    border-radius: 2px;
    flex-shrink: 0 !important;
}

/* Expand/Collapse (+/-) Button */
.mean-container .mean-nav ul li a.mean-expand,
.mean-nav ul li a.mean-expand {
    background: #0a2540 !important;
    color: #fff !important;
    border: none !important;
    border-left: 1px solid rgba(255,255,255,0.15) !important;
    font-size: 18px !important;
    width: 44px !important;
    height: auto !important;
    padding: 10px 0 !important;
    text-align: center !important;
    line-height: 1 !important;
}

.mean-container .mean-nav ul li a.mean-expand:hover,
.mean-nav ul li a.mean-expand:hover {
    background: rgba(255,255,255,0.08) !important;
}

/* Mobile sub-menu category headings */
.mean-nav ul li.mobile-sub-heading > a,
.mean-nav ul li.mobile-sub-heading a {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    border-top: 2px solid rgba(255,255,255,0.25) !important;
    padding-top: 16px !important;
    margin-top: 6px !important;
    background: rgba(255,255,255,0.05) !important;
}

/* Desktop: header always fixed at top */
@media (min-width: 992px) {
    body {
        padding-top: 77px;
    }
    .nav-area {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        background: #fff !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    }
}

/* Mobile header wrapper — phone bar + hamburger as one fixed block (mobile only) */
@media (min-width: 992px) {
    #mobileHeaderWrap {
        position: static !important;
        transform: none !important;
        transition: none !important;
    }
    /* Force-hide phone bar on desktop regardless of show_mobile class */
    #navbartops,
    .header_phone_mobile.show_mobile {
        display: none !important;
    }
}

#mobileHeaderWrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: transform .3s ease;
}

#mobileHeaderWrap.hide-bar {
    transform: translateY(-100%);
}

/* Prevent child elements from breaking out of fixed wrapper (theme JS uses position:fixed on these) */
#mobileHeaderWrap #navbartops,
#mobileHeaderWrap .header_phone_mobile.show_mobile {
    position: relative !important;
    top: auto !important;
}

#mobileHeaderWrap #header-lower,
#mobileHeaderWrap #header-lower.menufixcustom {
    position: relative !important;
    top: auto !important;
    box-shadow: none !important;
}

/* Mobile phone header bar */
.header_phone_mobile {
    background: #0a2540 !important;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.header_phone_mobile p {
    margin: 0 !important;
}

.header_phone_mobile > a p {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.header_phone_mobile > p > a {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header_phone_mobile > p > a .icon-phone {
    font-size: 18px !important;
    color: #fff !important;
    background: rgba(26,138,92,.15);
    border-radius: 50%;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Exit-Intent Popup ──────────────────── */

.exit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,37,64,0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.exit-overlay.active {
    display: flex;
}

.exit-popup {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 460px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(10,37,64,0.2);
}

.exit-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #8a9bb0;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.exit-close:hover {
    color: #0a2540;
}

.exit-content {
    text-align: center;
}

.exit-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 22px 8px 8px;
    background: #f8fafb;
    border: 1px solid #e8ecf0;
    border-radius: 50px;
    margin-bottom: 20px;
}

.exit-pill img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.exit-pill-text {
    text-align: left;
    line-height: 1.3;
}

.exit-pill-name {
    display: block;
    color: #0a2540;
    font-weight: 700;
    font-size: 17px;
}

.exit-pill-status {
    display: block;
    color: #1a8a5c;
    font-size: 14px;
}

.exit-title {
    color: #0a2540 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
}

.exit-text {
    color: #4a6178 !important;
    font-size: 16px !important;
    margin-bottom: 24px;
    line-height: 1.6;
}

.exit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.exit-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8e0e8;
    border-radius: 10px;
    font-size: 16px;
    color: #0a2540;
    background: #f8fafb;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.exit-input:focus {
    border-color: #0062a3;
    background: #fff;
}

.exit-input::placeholder {
    color: #8a9bb0;
}

.exit-submit {
    width: 100%;
    padding: 14px 24px;
    background: #1a8a5c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.exit-submit:hover {
    background: #147a4f;
}

.exit-trust {
    color: #8a9bb0 !important;
    font-size: 16px !important;
    margin-top: 12px !important;
}

.exit-sent {
    color: #1a8a5c !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 20px 0;
}

/* ── Modal: Privat / NoOffer Kompakt ─────── */

#anfrage .modal-dialog.modal-no-offer {
    min-height: unset !important;
    height: auto !important;
    align-self: center;
}

#anfrage .modal-dialog.modal-no-offer .modal-content {
    min-height: unset !important;
    height: auto !important;
    padding-bottom: 40px;
}

/* ── Service Cards: remove white overlay ── */

.single-service-box .service-thumb::after {
    display: none !important;
}

/* ── Cookie Consent Banner ──────────────── */

#cc-main {
    --cc-font-family: inherit;
    --cc-bg: #fff;
    --cc-primary-color: #0a2540;
    --cc-secondary-color: #384a5c;
    --cc-btn-primary-bg: #14724d;
    --cc-btn-primary-color: #fff;
    --cc-btn-primary-border-color: #14724d;
    --cc-btn-primary-hover-bg: #0f5e3f;
    --cc-btn-primary-hover-color: #fff;
    --cc-btn-primary-hover-border-color: #0f5e3f;
    --cc-btn-secondary-bg: #e8f2ff;
    --cc-btn-secondary-color: #0a2540;
    --cc-btn-secondary-border-color: #e8f2ff;
    --cc-btn-secondary-hover-bg: #d4e6f9;
    --cc-btn-secondary-hover-color: #0a2540;
    --cc-btn-secondary-hover-border-color: #d4e6f9;
    --cc-separator-border-color: #e4e9ee;
    --cc-toggle-on-bg: #1a8a5c;
    --cc-toggle-off-bg: #c5ced6;
    --cc-toggle-readonly-bg: #0062a3;
    --cc-overlay-bg: rgba(10, 37, 64, 0.5);
    --cc-cookie-category-block-bg: #f4f8fc;
    --cc-cookie-category-block-border: #e4e9ee;
}

#cc-main .cm {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(10, 37, 64, 0.2);
    max-width: 380px;
    will-change: transform, opacity;
}

#cc-main .cm__title {
    color: #0a2540;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

#cc-main .cm__desc {
    color: #384a5c;
    line-height: 1.55;
    font-size: 14px;
}

#cc-main .cm .cm__body .cm__btns,
#cc-main .cm--box .cm__btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 1rem 1.3rem !important;
}

#cc-main .cm .cm__body .cm__btns .cm__btn-group,
#cc-main .cm--box .cm__btn-group {
    display: contents !important;
}

#cc-main .cm .cm__btn,
#cc-main .cm--box .cm__btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
}

#cc-main .cm__btn--secondary {
    background: transparent !important;
    border: 1.5px solid #c5ced6 !important;
    color: #384a5c !important;
}

#cc-main .cm__btn--secondary:hover {
    border-color: #0a2540 !important;
    color: #0a2540 !important;
    background: transparent !important;
}


/* Make whole .leistung-card clickable via stretched anchor on heading */
.leistung-card { position: relative; }
.leistung-card .stretched-link { color: inherit; text-decoration: none; }
.leistung-card .stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.leistung-card * { position: relative; }
.leistung-card .leistung-card-img,
.leistung-card .leistung-card-inner { position: relative; }

/* ── Team Gallery (Masonry) ──────────────────────── */
.team-gallery { background: #f5f8fc; }
.team-gallery .section-title { color: #0a2540; }
.team-gallery-grid {
    column-count: 3;
    column-gap: 16px;
}
@media (max-width: 991px) { .team-gallery-grid { column-count: 2; column-gap: 14px; } }
@media (max-width: 575px) { .team-gallery-grid { column-count: 1; } }
.team-gallery-item {
    margin: 0 0 16px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(10,37,64,.08);
    transition: transform .3s ease, box-shadow .3s ease;
    background: #fff;
}
.team-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
.team-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10,37,64,.15);
}
