/* ========================= */
/* GRUNDLAGEN                */
/* ========================= */

:root {
    --layout-left: 100px;
    --layout-right: 100px;
}

html, body {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ========================= */
/* BOOTSTRAP RESET           */
/* ========================= */

.no-bootstrap .container,
.no-bootstrap .container-fluid {
    max-width: none;
}

.no-bootstrap .row {
    margin-left: 0;
    margin-right: 0;
}

.no-bootstrap *,
.no-bootstrap *::before,
.no-bootstrap *::after {
    box-sizing: border-box;
}

/* ========================= */
/* HEADER / TOP               */
/* ========================= */

/* ========================= */
/* STICKY HEADER KOMPLETT    */
/* ========================= */

.top-white-area {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    padding-top: 20px;
}

.top-bar {
    margin-top: 40px;
    height: 90px;
    background: #222f3e;
    display: flex;
    align-items: center;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

.logo {
    height: 72px;
}

/* ========================= */
/* NAVIGATION                 */
/* ========================= */

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;   /* vorher 15px */
    font-weight: 500;
}


.main-nav a:hover {
    opacity: 0.7;
}
/* ========================= */
/* NAVIGATION – AKTIVE SEITE */
/* ========================= */

.main-nav a.active {
    color: #1e6f63;          /* Grün */
    font-weight: 600;
}

/* Optional: Hover auf aktiver Seite leicht abdämpfen */
.main-nav a.active:hover {
    opacity: 0.9;
}

/* ========================= */
/* TOP CTA – MAIL + TEXT     */
/* TELEFONNUMMER BEI HOVER   */
/* ========================= */

.top-cta {
    position: absolute;
    top: 20px;
    right: var(--layout-right);

    display: inline-flex;
    align-items: stretch;
    gap: 10px;

    background: transparent;
    padding: 0;

    font-size: 15px;
    font-weight: 600;
    z-index: 20;
}

/* ========================= */
/* MAIL BUTTON               */
/* ========================= */

.top-cta-mail {
    text-decoration: none;
}

.top-cta-icon {
    width: 48px;
    height: 48px;
    background: #1e6f63;
    border-radius: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-cta-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;

    filter: brightness(0) invert(1);
}

/* ========================= */
/* TEXT BUTTON               */
/* ========================= */

.top-cta-text {
    text-decoration: none;
}

.top-cta-text span {
    position: relative;

    background: #1e6f63;
    border-radius: 6px;

    height: 48px;
    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    overflow: hidden;

    color: #ffffff;
}

/* ⬅️ OPTISCHE FEINKORREKTUR NUR FÜR CEO-CTA */
.ceo-cta-text span:hover::after {
    transform: translateY(1px);
}




/* Hover – NUR TEXT */
.top-cta-text span:hover,
.ceo-cta-text span:hover {
    color: transparent;
}

.top-cta-text span::after,
.ceo-cta-text span::after {
    content: "Jetzt beraten lassen";
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;

    color: #ffffff;
}
.top-cta-text span:hover::after,
.ceo-cta-text span:hover::after {
    opacity: 1;
}
.ceo-cta-text span {
    position: relative;   /* ⬅️ DAS FEHLT */
}


/* ========================= */
/* CEO CTA – DUNKLES BLAU    */
/* ========================= */

/* Text-Button */
.ceo-cta-text span {
    background: #222f3e !important;
}

/* Mail-Button */
.ceo-cta-icon {
    background: #222f3e !important;
}



/* ========================= */
/* HERO BACKGROUND            */
/* ========================= */

.hero {
    position: relative;
    height: 820px;
    margin-top: -90px;
    padding-bottom: 120px; /* NEU – mehr Abstand nach unten */
    background-image: url("../images/hintergrund-ohne-Auto.png");
    background-size: cover;
    background-position: 40% 25%;
    background-repeat: no-repeat;
}
/* ========================= */
/* HERO BACKGROUND – SEITEN  */
/* ========================= */

/* Startseite */
body.home .hero {
    background-image: url("../images/startseite.png");
    background-position: 40% 35%;
}


/* Baufinanzierung */
body.baufinanzierung .hero {
    background-image: url("../images/hintergrund-ohne-Auto.png");
}
/* Versicherungen */
body.versicherungen .hero {
    background-image: url("../images/versicherung.png");
    background-position: center center; /* optional */
}

body.kapitalanlage .hero {
    background-image: url("../images/kapitalanlagen_2.png");
    background-position: center;
    
}
/* ========================= */
/* HERO TEXTBOX               */
/* ========================= */

.hero-text {
    position: absolute;
    top: 260px;      /* ⬅️ HIER steuerst du die Höhe */
    transform: none; /* ❗ wichtig */
    width: 100%;
    z-index: 5;
}



.hero-text .container-fluid {
    padding-left: var(--layout-left);
}

.hero-box {
    background: rgba(255, 255, 255, 0.75);
    padding: 48px;                 /* 🔹 größer */
    width: 620px;          /* breiter */
    max-width: 90vw;       /* bleibt responsive */
    border-radius: 14px;           /* 🔹 abgerundete Ecken */

    box-shadow: 0 14px 45px rgba(0,0,0,0.25);
    backdrop-filter: blur(5px);
}

/* Überschrift – analog zu anderen Überschriften */
.hero-box h1 {
    font-size: 28px;               /* 🔹 angepasst */
    font-weight: 600;
    color: #0b1f3a;
    margin-bottom: 15px;
}

/* Fließtext – einheitlich mit restlichem Layout */
.hero-box p {
    font-size: 17px;               /* 🔹 angepasst */
    line-height: 1.65;
    color: #222;
    margin-bottom: 14px;
}


/* ========================= */
/* ZINS SECTION               */
/* ========================= */

.zins-section {
    padding-top: 130px; /* vorher 60px */
    padding-bottom: 120px;
}


.zins-section .container-fluid {
    padding-left: var(--layout-left);
}

.zins-heading {
    font-size: 28px;
    margin-bottom: 40px;
}
/* ========================= */
/* ZINS BILDER AUSRICHTEN    */
/* ========================= */

.zins-section .row {
    align-items: center; /* vertikal gleiche Höhe */
}

.zins-section img {
    height: 320px;       /* identische Höhe */
    width: auto;
    display: block;
}
.zins-text p {
    margin-bottom: 0;
    
}
/* Zins-Text größer & besser lesbar */
.zins-text p {
    font-size: 17px;     /* vorher ca. 15px */
    line-height: 1.2;    /* luftiger */
    margin-bottom: 10px;
}

/* ========================= */
/* SUPPORT SECTION            */
/* ========================= */

.support-section {
    background: #eef5f3;
    padding: 80px 0;
}

.support-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}


.support-heading {
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
    color: #0b1f3a;
}
/* Support-Kacheln exakt linksbündig zur Überschrift */
.support-row {
    margin-left: 0;
}

/* Blaue Kacheln */
.support-tile {
    min-height: 200px;   /* statt height */
    background: #222f3e;
    border-radius: 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 25px;
    text-align: center;
}

/* Pikto */
.support-tile img {
    height: 130px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

/* Text im Kasten */
.support-tile span {
    position: absolute;
    padding: 24px;
    text-align: center;

    font-size: 20px;
    font-weight: 600;
    color: #ffffff;

    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Hover */
.support-tile:hover img {
    opacity: 0;
}

.support-tile:hover span {
    opacity: 1;
}
/* Akzent-Kacheln: Hausbau & Anschlussfinanzierung */
.support-row > div:nth-child(1) .support-tile,
.support-row > div:nth-child(3) .support-tile {
    background: #1e6f63;
}

/* ========================= */
/* SERVICE SECTION – FINAL   */
/* ========================= */

.service-section {
    padding: 80px 0;
}

.service-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}



/* Grid – exakt wie Support-Sektion */
.service-text-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* gleiche Breite */
    gap: 30px;
}

/* Einzelner Service-Kasten */
.service-blue-box {
    position: relative;
    height: 360px;   /* 🔹 höher – sonst alles gleich */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

/* Bild füllt Kasten komplett aus */
.service-blue-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* 🔹 füllt vollständig */
    object-position: center;    /* Fokus Mitte */
    display: block;
}

/* Hover-Overlay mit Text */
.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 47, 62, 0.9);
    color: #ffffff;

    padding: 26px;
    font-size: 18px;
    line-height: 1.6;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Hover-Effekt */
.service-blue-box:hover .service-overlay {
    opacity: 1;
}

/* ========================= */
/* SERVICE SECTION – FINAL   */
/* ========================= */

.service-section {
    padding: 80px 0;
}

.service-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}



/* Grid – exakt wie Support-Sektion */
.service-text-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* gleiche Breite */
    gap: 30px;
}

/* Einzelner Service-Kasten */
.service-blue-box {
    position: relative;
    height: 360px;   /* 🔹 höher – sonst alles gleich */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

/* Bild füllt Kasten komplett aus */
.service-blue-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* 🔹 füllt vollständig */
    object-position: center;    /* Fokus Mitte */
    display: block;
}

/* Hover-Overlay mit Text */
.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 47, 62, 0.9);
    color: #ffffff;

    padding: 26px;
    font-size: 18px;
    line-height: 1.6;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Hover-Effekt */
.service-blue-box:hover .service-overlay {
    opacity: 1;
}

.support-section .support-row {
    display: flex;
    gap: 30px; /* Abstand zwischen Kacheln */
}
.support-section .support-row > [class*="col-"] {
    flex: 1;   /* 4 gleich breite Spalten */
}
/* ========================= */
/* VORTEILE SECTION          */
/* ========================= */

.benefits-section {
    padding: 80px 0;
    background: #ffffff;
}


.benefits-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

.benefits-text {
    max-width: 1250px;   /* 🔹 vorher 900px */
}


/* Fließtext */
.benefits-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #222;
}


/* Überschrift */
.benefits-heading {
    font-size: 32px;
    font-weight: 600;
    margin: 30px 0 25px;
    color: #0b1f3a;
}
.benefits-text p.benefits-highlight {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Zwei Spalten */
.benefits-columns {
    display: grid;
    grid-template-columns: 1.25fr 1fr; /* 🔹 linke Spalte breiter */
    gap: 90px;
    margin-top: 30px;
}



/* Liste mit Haken */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.7;
    white-space: nowrap;
}



.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -3px;

    font-size: 30px;     /* 🔹 deutlich größer */
    line-height: 1;
    color: #1e6f63; /* neuer Akzentton */
    font-weight: 700;
}
.benefits-footer-text {
    margin-top: 40px;
    font-size: 15px;
    line-height: 1.6;
    color: #222;


}
.benefits-highlight {
    font-size: 22px;      /* größer */
    font-weight: 600;     /* stärker */
    margin-top: 50px;     /* mehr Abstand nach oben */
    margin-bottom: 0;
}

/* ========================= */
/* Versicherungsarten SECTION */
/* ========================= */

.benefits-section {
    padding: 80px 0;
    background: #ffffff;
}

.benefits-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

.benefits-text {
    max-width: 1250px;   /* 🔹 vorher 900px */
}


/* Fließtext */
.benefits-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #222;
}


/* Überschrift */
.benefits-heading {
    font-size: 32px;
    font-weight: 600;
    margin: 30px 0 25px;
    color: #0b1f3a;
}
.benefits-text p.benefits-highlight {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Zwei Spalten */
.benefits-columns {
    display: grid;
    grid-template-columns: 1.25fr 1fr; /* 🔹 linke Spalte breiter */
    gap: 90px;
    margin-top: 30px;
}



/* Liste mit Haken */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.7;
    white-space: nowrap;
}



.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -3px;

    font-size: 30px;     /* 🔹 deutlich größer */
    line-height: 1;
    color: #1e6f63; /* neuer Akzentton */
    font-weight: 700;
}
.benefits-footer-text {
    margin-top: 40px;
    font-size: 15px;
    line-height: 1.6;
    color: #222;

    
}
.benefits-highlight {
    font-size: 22px;      /* größer */
    font-weight: 600;     /* stärker */
    margin-top: 50px;     /* mehr Abstand nach oben */
    margin-bottom: 0;
}
/* ========================= */
/* LEISTUNGEN ÜBERBLICK      */
/* ========================= */

.services-overview-section {
    padding: 90px 0;
    background: #ffffff;
}

.services-overview-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

/* Überschrift */
.services-overview-heading {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #0b1f3a;
}

/* Liste */
.services-overview-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 80px;
}

/* Einzelne Leistung */
.service-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e6f63; /* Akzentfarbe */
}

.service-item p {
    font-size: 17px;
    line-height: 1.6;
    color: #222;
    margin: 0;
}

/* ========================= */
/* SERVICE ÜBERSCHRIFT       */
/* ========================= */

.service-heading {
    font-size: 28px;
    font-weight: 600;
    color: #0b1f3a;
    margin-bottom: 40px;
}

/* ========================= */
/* FINANZRECHNER SECTION     */
/* ========================= */

.calculator-section {
    padding: 80px 0;
    background: #ffffff;
} /* gleicher Grünton wie Support & Vorteile */

.calculator-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

/* Überschrift */
.calculator-heading {
    font-size: 28px;
    font-weight: 600;
    color: #0b1f3a;
    margin-bottom: 35px;
}
/* Text unter der Überschrift */
.calculator-text {
    font-size: 18px;
    line-height: 1.7;     /* ← hier steuerst du den Zeilenabstand */
    margin-bottom: 25px;  /* Abstand zum Button */
    color: #222;
    max-width: 900px;     /* optional für bessere Lesbarkeit */
}
/* Button */
.calculator-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    padding: 18px 26px;
    background: #ffffff;
    border-radius: 8px;

    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #1e6f63;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease; /* nur Schatten */
}

.calculator-button:hover {
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}


/* Pikto einfärben */
.calculator-button img {
    height: 72px;   /* 🔹 größer */
    width: auto;

    filter: brightness(0) saturate(100%) invert(32%) sepia(28%)
            saturate(680%) hue-rotate(125deg)
            brightness(92%) contrast(92%);
}
/* ========================= */
/* FOOTER                    */
/* ========================= */

.site-footer {
    background: #222f3e; /* gleicher Blauton wie Header */
    color: #ffffff;
    padding: 40px 0;
    font-size: 14px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-inner {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Linke Spalte */
.footer-left {
    line-height: 1.6;
}

/* Rechte Spalte */
.footer-right {
    display: flex;
    gap: 24px;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
    }

    .footer-right {
        margin-top: 20px;
    }
}
/* Footer-Logo */
.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.footer-logo {
    height: 48px;
    width: auto;
}

/* Kontakttext */
.footer-contact {
    line-height: 1.6;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .footer-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-logo {
        margin-bottom: 10px;
    }
}

/* ========================= */
/* SCROLL ANIMATION          */
/* ========================= */

.scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* HERO PIKTO – 35 JAHRE     */
/* ========================= */

.hero-pikto {
    position: absolute;
    right: 80px;
    bottom: 370px;

    width: 280px;
    height: auto;

filter:
    drop-shadow(0 0 18px rgba(255,255,255,0.55))
    drop-shadow(0 0 36px rgba(30,111,99,0.35));


    z-index: 5;
}

/* ========================= */
/* HERO AUFZÄHLUNG MIT HAKEN */
/* ========================= */

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.hero-benefits li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 10px;

    font-size: 17px;
    line-height: 1.5;
    color: #222;
}

.hero-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;

    transform: translateY(-60%); /* ⬅️ HIER steuern */
    
    font-size: 22px;
    font-weight: 700;
    color: #1e6f63;
}

/* ========================= */
/* KUNDENSTIMMEN             */
/* ========================= */

.testimonials-section {
    padding: 90px 0;
    background: #ffffff;
}

.testimonials-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

/* Einleitung */
.testimonials-intro {
    max-width: 900px;
    margin-bottom: 60px;
}

.testimonials-intro h2 {
    font-size: 32px;
    font-weight: 600;
    color: #0b1f3a;
    margin-bottom: 20px;
}

.testimonials-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: #222;
}

/* Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Einzelne Stimme */
.testimonial {
    background: #eef5f3;
    border-radius: 10px;
    padding: 32px;
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.6;
    color: #222;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 15px;
    font-weight: 600;
    color: #1e6f63;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================= */
/* GESCHÄFTSFÜHRER SECTION  */
/* ========================= */

.ceo-section {
    background: #eef5f3; /* gleicher heller Grünton wie Support & Vorteile */
    padding: 90px 0;
}


.ceo-inner {
    display: flex;
    align-items: flex-start; /* ⬅️ Text oben bündig zum Bild */    
    gap: 60px;
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

.ceo-image img {
    width: 420px;
    height: 420px;
    object-fit: cover;
    object-position: center 40%;   /* ⬅️ Fokus nach oben */
    border-radius: 12px;
    display: block;
}



/* Text rechts */
.ceo-text {
    max-width: 640px;
    color: #222;

    position: relative;   /* ⬅️ WICHTIG */
    min-height: 420px;    /* ⬅️ Bildhöhe */
}




/* Überschrift */
.ceo-text h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Text */
.ceo-text p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 14px;
}

/* Mobile */
@media (max-width: 900px) {
    .ceo-inner {
        flex-direction: column;
        gap: 40px;
    }

    .ceo-image img {
        width: 100%;
        max-width: 420px;
    }

    .ceo-text {
        max-width: 100%;
    }
}
/* ========================= */
/* CEO CTA                  */
/* ========================= */

.ceo-inner {
    position: relative;
}

/* CTA exakt auf Bildunterkante */
.ceo-cta {
    position: absolute;
    left: 0;      /* linksbündig mit Text */
    bottom: 0;    /* bündig mit Bildunterkante */

    display: inline-flex;
    gap: 12px;
}

/* Mail Button */
.ceo-cta-mail {
    text-decoration: none;
}

.ceo-cta-icon {
    width: 48px;
    height: 48px;
    background: #1e6f63;
    border-radius: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ceo-cta-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* Text Button */
.ceo-cta-text {
    text-decoration: none;
}

.ceo-cta-text span {
    height: 48px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #1e6f63;
    border-radius: 6px;

    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

/* Mobile Fallback */
@media (max-width: 900px) {
    .ceo-cta {
        position: static;
        margin-top: 24px;
    }
}


/* ========================= */
/* CEO BILD – HELL → NORMAL */
/* ========================= */

.ceo-image {
    position: relative;
    overflow: hidden;
}

.ceo-image img {
    display: block;
    width: 420px;
    height: 420px;
    object-fit: cover;
    object-position: center 40%;
    border-radius: 12px;
}

/* Heller Startzustand */
.ceo-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35); /* Bild wirkt heller */
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* Hover → echtes Bild */
.ceo-image:hover::after {
    opacity: 0;
}

/* ========================= */
/* TRUST / ALTERSVORSORGE    */
/* ========================= */

.trust-section {
    padding: 80px 0;                 /* identisch zu Benefits & Service */
    background: #ffffff;
}

.trust-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

/* Überschrift */
.trust-heading {
    font-size: 28px;
    font-weight: 600;
    color: #0b1f3a;
    margin-bottom: 35px;
    text-align: left;
}

/* Unterüberschrift (neu) */
.trust-subheading {
    font-size: 22px;
    font-weight: 600;
    color: #0b1f3a;
    margin: 20px 0 25px;
}

/* Textblock */
.trust-content {
    max-width: 1250px;                /* wie benefits-text */
    font-size: 18px;                  /* gleiche Lesbarkeit */
    line-height: 1.6;
    color: #222;
}

/* Absätze */
.trust-content p {
    margin-bottom: 20px;              /* identisch zu benefits-text p */
}

/* ========================= */
/* GRAFIKEN                  */
/* ========================= */

.trust-graphic {
    margin: 20px 0 40px;
    text-align: left;   /* ← erzwingt linksbündig */
}

.trust-graphic img {
    display: block;
    margin-left: 0;     /* ← kein Auto-Zentrieren */
}

.trust-graphic img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Bildunterschrift */
.graphic-caption {
    display: block;
    margin-top: 10px;
    font-size: 14px;                  /* wie Footer-/Hinweistext */
    color: #666;
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */

@media (max-width: 768px) {
    .trust-section {
        padding: 60px 0;
    }

    .trust-content {
        max-width: 100%;
    }
}
/* ========================= */
/* TILGUNGSPLAN LAYOUT       */
/* ========================= */


.tilgungsplan-image img {
    width: 100%;
    max-width: 700px; /* optional anpassen */
    height: auto;
    display: block;
}

.tilgungsplan-text {
    font-size: 18px;
    line-height: 1.6;
    color: #222;
}

.tilgungsplan-text p {
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .tilgungsplan-row {
        flex-direction: column;
        gap: 30px;
    }
}
/* ========================= */
/* TILGUNGSPLAN SECTION      */
/* ========================= */

.tilgungsplan-section {
    background: #eef5f3;
    padding: 30px 0 40px 0;   /* oben | rechts | unten | links */
}

.tilgungsplan-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}

.tilgungsplan-row {
    display: flex;
    align-items: flex-end;   /* ← unten bündig */
    gap: 60px;
}

.tilgungsplan-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
}

.tilgungsplan-text {
    font-size: 17px;
    line-height: 1;
    color: #222;
}

.tilgungsplan-text p {
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .tilgungsplan-row {
        flex-direction: column;
        gap: 30px;
    }
}
/* ========================= */
/* MIETENTWICKLUNG SECTION   */
/* ========================= */

.mietentwicklung-section {
    background: #eef5f3;   /* exakt wie Finanzrechner */
    padding: 80px 0;       /* identisch zu anderen Sektionen */
}

.mietentwicklung-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}
/* ========================= */
/* MIETENTWICKLUNG – HEADING */
/* ========================= */

.mietentwicklung-section .trust-subheading {
    margin-top: 0;       /* kein Abstand nach oben */
    margin-bottom: 20px; /* optional etwas kompakter */
}
/* ========================= */
/* BAUFINANZIERUNG – GRÜNE SECTIONS */
/* ========================= */

body.baufinanzierung .benefits-section,
body.baufinanzierung .calculator-section {
    background: #eef5f3;
}
/* ========================= */
/* KAPITALANLAGE – GRÜNE SECTIONS */
/* ========================= */

body.kapitalanlage .kapitalanlage-main {
    background: #eef5f3;
}

/* ================================================= */
/* GLOBAL RESPONSIVE ERWEITERUNG – OHNE INHALTSÄNDERUNG */
/* ================================================= */

/* Basis-Optimierung für Tablets & kleinere Laptops */
@media (max-width: 1200px) {

    :root {
        --layout-left: 60px;
        --layout-right: 60px;
    }

    .service-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Tablet */
@media (max-width: 992px) {

    :root {
        --layout-left: 30px;
        --layout-right: 30px;
    }

    .hero {
        height: 700px;
    }

    .hero-text {
        top: 200px;
    }

    .hero-box {
        width: 100%;
        max-width: 100%;
    }

    .benefits-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefits-list li {
        white-space: normal;
    }

    .services-overview-list {
        grid-template-columns: 1fr;
    }

    .service-text-grid {
        grid-template-columns: 1fr;
    }

    .zins-section img {
        height: auto;
        max-width: 100%;
    }

    .tilgungsplan-row {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 20px;
    }
}


/* Mobile */
@media (max-width: 768px) {

    :root {
        --layout-left: 20px;
        --layout-right: 20px;
    }

    .top-bar {
        height: auto;
        padding: 20px 0;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .main-nav {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        height: 600px;
        background-position: center;
    }

    .hero-text {
        position: relative;
        top: -80px;
    }

    .hero-box {
        padding: 30px;
    }

    .hero-box h1 {
        font-size: 22px;
    }

    .hero-box p {
        font-size: 16px;
    }

    .support-row {
        flex-direction: column;
    }

    .support-section .support-row > [class*="col-"] {
        flex: unset;
        width: 100%;
    }

    .ceo-inner {
        flex-direction: column;
    }

    .ceo-text {
        min-height: auto;
    }

    .ceo-image img {
        width: 100%;
        height: auto;
    }

    .hero-pikto {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .footer-right {
        flex-wrap: wrap;
        white-space: normal;
        gap: 12px;
    }
}


/* Sehr kleine Geräte */
@media (max-width: 480px) {

    .hero {
        height: 520px;
    }

    .hero-box {
        padding: 22px;
    }

    .calculator-button {
        width: 100%;
        justify-content: center;
    }

    .calculator-button img {
        height: 52px;
    }

    .benefits-heading {
        font-size: 24px;
    }

    .services-overview-heading {
        font-size: 24px;
    }

    .trust-heading {
        font-size: 24px;
    }
}
/* ======================================= */
/* SUPPORT SECTION – MOBILE ANPASSUNG     */
/* ======================================= */

@media (max-width: 768px) {

    .support-tile {
        height: auto;          /* Höhe flexibel */
        min-height: 140px;     /* optische Mindesthöhe */
        padding: 30px 20px;    /* mehr Luft */
        flex-direction: column;
        text-align: center;
    }

    .support-tile img {
        height: 90px;          /* etwas kleiner */
        margin-bottom: 12px;
    }

    .support-tile span {
        position: static;      /* kein Overlay mehr */
        opacity: 1;            /* Text immer sichtbar */
        padding: 0;
        font-size: 18px;
    }

    /* Hover-Effekt auf Mobile deaktivieren */
    .support-tile:hover img {
        opacity: 1;
    }

    .support-tile:hover span {
        opacity: 1;
    }
}
/* ======================================= */
/* SUPPORT SECTION – MOBILE FIX            */
/* ======================================= */

@media (max-width: 768px) {

    .support-tile {
        height: auto;          /* keine feste Höhe mehr */
        min-height: 160px;     /* optische Grundhöhe */
        padding: 25px;
        flex-direction: column;
    }

    .support-tile span {
        position: static;      /* entfernt absolute Position */
        opacity: 1;            /* immer sichtbar */
        margin-top: 15px;
        padding: 0;
        font-size: 18px;
        line-height: 1.4;
    }

    /* Hover auf Touch-Geräten deaktivieren */
    .support-tile:hover img {
        opacity: 1;
    }

    .support-tile:hover span {
        opacity: 1;
    }

}
/* ======================================= */
/* SUPPORT SECTION – TEXT WIRD ABGESCHNITTEN FIX */
/* ======================================= */

@media (max-width: 768px) {

    .support-tile {
        height: auto;
        min-height: 160px;
        padding: 25px;
        overflow: visible;     /* WICHTIG */
    }

    .support-tile span {
        position: static;      /* absolute Position entfernen */
        opacity: 1;
        padding: 0;
        margin-top: 12px;
        line-height: 1.4;
        font-size: 18px;
    }

    .support-tile img {
        height: 80px;
    }

    /* Hover auf Mobile deaktivieren */
    .support-tile:hover img {
        opacity: 1;
    }

    .support-tile:hover span {
        opacity: 1;
    }
}
/* ========================= */
/* LEGAL / IMPRESSUM SECTION */
/* ========================= */

.legal-section {
    padding: 80px 0;
    background: #ffffff;
}

.legal-section .container-fluid {
    padding-left: var(--layout-left);
    padding-right: var(--layout-right);
}
.footer-right a.active {
    font-weight: 600;
    text-decoration: underline;
}

/* ========================= */
/* FOOTER – AKTIVE SEITE     */
/* ========================= */

body.impressum .footer-right a[href="/impressum"],
body.datenschutz .footer-right a[href="/datenschutz"],
body.erstinformation .footer-right a[href="/erstinformation"],
body.status .footer-right a[href="/status-und-registrierung"] {
    color: #1e6f63;
    font-weight: 600;
}
body.kontaktformular .main-nav a.active {
    color: #ffffff !important;
}

.visible {
    display: flex !important;
}

.nav-toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

button {
    border: 0;
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    #nav-toggle {
        display: none;
    }

    .main-nav {
        display: flex;
    }

    .nav-toggle-wrapper {
        width: auto;
    }
}