/*
 * IFB Homepage V5
 * Kontrolliertes Template ohne Gutenberg-Wrapper-Abhängigkeiten.
 */
:root {
    --ifb-v5-brand: #241bff;
    --ifb-v5-brand-dark: #1510c8;
    --ifb-v5-navy: #071d3b;
    --ifb-v5-navy-2: #0d3157;
    --ifb-v5-teal: #079986;
    --ifb-v5-teal-soft: #e7f8f5;
    --ifb-v5-blue-soft: #eef2ff;
    --ifb-v5-surface: #f6f8fb;
    --ifb-v5-white: #fff;
    --ifb-v5-text: #26384d;
    --ifb-v5-muted: #617087;
    --ifb-v5-line: #dce4ee;
    --ifb-v5-shell: 1280px;
    --ifb-v5-radius-sm: 12px;
    --ifb-v5-radius: 20px;
    --ifb-v5-radius-lg: 30px;
    --ifb-v5-shadow: 0 24px 70px rgba(7, 29, 59, .13);
    --ifb-v5-shadow-sm: 0 12px 36px rgba(7, 29, 59, .08);
}

/* Globaler Header: wiedererkennbare IFB-Marke. */
.site-header .site-branding,
.site-header .site-logo {
    display: none !important;
}

.site-header {
    position: relative;
    z-index: 30;
    background: rgba(255,255,255,.98) !important;
    border-bottom: 1px solid var(--ifb-v5-line) !important;
    box-shadow: 0 5px 24px rgba(7,29,59,.04);
}

.inside-header {
    width: min(calc(100% - 40px), var(--ifb-v5-shell));
    min-height: 88px;
    margin-inline: auto;
    padding: 12px 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ifb-brand {
    display: block;
    width: clamp(215px, 22vw, 295px);
    flex: 0 0 auto;
}

.ifb-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.main-navigation {
    margin-left: auto;
    border: 0 !important;
    background: transparent !important;
}

.main-navigation .inside-navigation {
    padding: 0 !important;
}

.main-navigation .main-nav ul li a {
    min-height: 50px;
    padding-inline: 14px !important;
    color: var(--ifb-v5-navy) !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 750 !important;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--ifb-v5-brand) !important;
}

.main-navigation .main-nav ul li.ifb-nav-cta > a {
    min-height: 46px !important;
    margin: 2px 0 2px 12px !important;
    padding: 0 20px !important;
    color: #fff !important;
    background: var(--ifb-v5-brand) !important;
    border-radius: 11px;
    box-shadow: 0 10px 25px rgba(36,27,255,.2);
}

.main-navigation .main-nav ul li.ifb-nav-cta:hover > a {
    background: var(--ifb-v5-brand-dark) !important;
}

.ifb-topbar {
    background: var(--ifb-v5-navy) !important;
}

.ifb-topbar__inner {
    width: min(calc(100% - 40px), var(--ifb-v5-shell));
    margin-inline: auto;
}

/* GeneratePress-Rahmen auf der Startseite neutralisieren. */
.home .site.grid-container,
.home .site-content,
.home .content-area,
.home #main,
.home .inside-article {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home .entry-content,
.home .entry-header {
    display: none !important;
}

.ifb-home-v5 {
    overflow: clip;
    color: var(--ifb-v5-text);
    background: #fff;
}

.ifb-v5-shell {
    width: min(calc(100% - 40px), var(--ifb-v5-shell));
    margin-inline: auto;
}

.ifb-home-v5 h1,
.ifb-home-v5 h2,
.ifb-home-v5 h3,
.ifb-home-v5 p {
    margin-top: 0;
}

.ifb-home-v5 h1,
.ifb-home-v5 h2,
.ifb-home-v5 h3 {
    color: var(--ifb-v5-navy);
    font-family: Manrope, Inter, system-ui, sans-serif;
    letter-spacing: -.035em;
}

.ifb-home-v5 h1 {
    max-width: 750px;
    margin-bottom: 24px;
    font-size: clamp(48px, 6.2vw, 82px);
    line-height: .98;
    font-weight: 850;
}

.ifb-home-v5 h1 span {
    color: var(--ifb-v5-brand);
}

.ifb-home-v5 h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 820;
}

.ifb-home-v5 h3 {
    margin-bottom: 12px;
    font-size: 23px;
    line-height: 1.18;
    font-weight: 800;
}

.ifb-v5-eyebrow {
    margin-bottom: 15px !important;
    color: var(--ifb-v5-teal);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ifb-v5-lead {
    max-width: 680px;
    margin-bottom: 30px !important;
    color: var(--ifb-v5-text);
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.6;
}

.ifb-v5-lead-small {
    color: var(--ifb-v5-text);
    font-size: 19px;
    line-height: 1.7;
}

.ifb-icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

/* Hero */
.ifb-v5-hero {
    position: relative;
    min-height: 720px;
    padding: clamp(70px, 8vw, 118px) 0;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 92% 12%, rgba(36,27,255,.12), transparent 34%),
        radial-gradient(circle at 58% 95%, rgba(7,153,134,.12), transparent 34%),
        linear-gradient(130deg, #fff 0%, #f7f8ff 52%, #f1fbfa 100%);
}

.ifb-v5-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -140px;
    width: 420px;
    height: 420px;
    border: 70px solid rgba(36,27,255,.045);
    border-radius: 50%;
}

.ifb-v5-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
    align-items: center;
    gap: clamp(50px, 6vw, 90px);
}

.ifb-v5-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.ifb-v5-button {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.ifb-v5-button:hover,
.ifb-v5-button:focus-visible {
    transform: translateY(-2px);
}

.ifb-v5-button--primary {
    color: #fff !important;
    background: var(--ifb-v5-brand);
    box-shadow: 0 13px 30px rgba(36,27,255,.22);
}

.ifb-v5-button--primary:hover {
    background: var(--ifb-v5-brand-dark);
}

.ifb-v5-button--secondary {
    color: var(--ifb-v5-navy) !important;
    background: #fff;
    border-color: #cfd9e7;
    box-shadow: var(--ifb-v5-shadow-sm);
}

.ifb-v5-button--secondary:hover {
    color: var(--ifb-v5-brand) !important;
    border-color: var(--ifb-v5-brand);
}

.ifb-v5-button--light {
    color: var(--ifb-v5-navy) !important;
    background: #fff;
}

.ifb-v5-button--outline-light {
    color: #fff !important;
    border-color: rgba(255,255,255,.65);
    background: transparent;
}

.ifb-v5-trust {
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    list-style: none;
}

.ifb-v5-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ifb-v5-navy);
    font-size: 14px;
    font-weight: 750;
}

.ifb-v5-trust svg {
    color: var(--ifb-v5-teal);
}

.ifb-v5-hero__media {
    position: relative;
    min-height: 570px;
}

.ifb-v5-image-frame {
    position: absolute;
    inset: 0 0 0 45px;
    overflow: hidden;
    border: 10px solid #fff;
    border-radius: 34px;
    box-shadow: var(--ifb-v5-shadow);
}

.ifb-v5-image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ifb-v5-advisor-card {
    position: absolute;
    left: 0;
    bottom: 42px;
    width: min(330px, 78%);
    padding: 24px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--ifb-v5-shadow);
    backdrop-filter: blur(12px);
}

.ifb-v5-advisor-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--ifb-v5-teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ifb-v5-advisor-card strong {
    display: block;
    margin-bottom: 15px;
    color: var(--ifb-v5-navy);
    font-size: 25px;
    line-height: 1.15;
}

.ifb-v5-advisor-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ifb-v5-brand);
    font-weight: 800;
    text-decoration: none;
}

/* Trust strip */
.ifb-v5-proof {
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--ifb-v5-line);
    border-bottom: 1px solid var(--ifb-v5-line);
    background: #fff;
}

.ifb-v5-proof__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ifb-v5-proof__grid > div {
    min-height: 116px;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--ifb-v5-line);
}

.ifb-v5-proof__grid > div:last-child { border-right: 0; }
.ifb-v5-proof strong { color: var(--ifb-v5-brand); font-size: 22px; }
.ifb-v5-proof span { color: var(--ifb-v5-muted); font-size: 14px; }

/* Sections */
.ifb-v5-section {
    padding: clamp(78px, 8vw, 112px) 0;
}

.ifb-v5-section--compact { padding: 52px 0; }
.ifb-v5-section--soft { background: var(--ifb-v5-surface); }
.ifb-v5-section--blue-soft { background: linear-gradient(180deg, #f4f6ff, #fff); }
.ifb-v5-section--cta { padding-top: 42px; background: var(--ifb-v5-surface); }

.ifb-v5-section-head {
    max-width: 760px;
    margin-bottom: 48px;
}

.ifb-v5-section-head p:not(.ifb-v5-eyebrow) {
    color: var(--ifb-v5-muted);
    font-size: 18px;
    line-height: 1.7;
}

.ifb-v5-section-head--center {
    margin-inline: auto;
    text-align: center;
}

/* Services */
.ifb-v5-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ifb-v5-service-card {
    min-height: 340px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ifb-v5-line);
    border-radius: var(--ifb-v5-radius);
    background: #fff;
    box-shadow: 0 8px 28px rgba(7,29,59,.045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ifb-v5-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(36,27,255,.3);
    box-shadow: var(--ifb-v5-shadow-sm);
}

.ifb-v5-service-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--ifb-v5-brand), #554dff);
}

.ifb-v5-service-icon svg { width: 27px; height: 27px; }

.ifb-v5-tag {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 5px 10px;
    color: var(--ifb-v5-teal);
    border-radius: 999px;
    background: var(--ifb-v5-teal-soft);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ifb-v5-service-card p {
    color: var(--ifb-v5-muted);
    line-height: 1.65;
}

.ifb-v5-service-card > a,
.ifb-v5-text-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ifb-v5-brand) !important;
    font-weight: 800;
    text-decoration: none;
}

/* About */
.ifb-v5-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(50px, 7vw, 94px);
}

.ifb-v5-about__media {
    position: relative;
}

.ifb-v5-about__media > img {
    width: 100%;
    min-height: 480px;
    display: block;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--ifb-v5-shadow);
}

.ifb-v5-about__badge {
    position: absolute;
    right: -24px;
    bottom: 28px;
    max-width: 280px;
    padding: 22px;
    color: #fff;
    border-radius: 18px;
    background: var(--ifb-v5-brand);
    box-shadow: var(--ifb-v5-shadow);
}

.ifb-v5-about__badge strong,
.ifb-v5-about__badge span { display: block; }
.ifb-v5-about__badge strong { margin-bottom: 5px; font-size: 21px; }
.ifb-v5-about__badge span { font-size: 14px; opacity: .9; }

.ifb-v5-feature-list {
    margin: 30px 0;
    display: grid;
    gap: 18px;
}

.ifb-v5-feature-list > div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
}

.ifb-v5-feature-list > div > svg {
    width: 29px;
    height: 29px;
    padding: 6px;
    color: #fff;
    border-radius: 50%;
    background: var(--ifb-v5-teal);
}

.ifb-v5-feature-list span,
.ifb-v5-feature-list strong { display: block; }
.ifb-v5-feature-list strong { color: var(--ifb-v5-navy); }
.ifb-v5-feature-list span { color: var(--ifb-v5-muted); }

/* Finder */
.ifb-v5-finder {
    padding: 34px 38px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(36,27,255,.13);
    border-radius: 24px;
    background: linear-gradient(115deg, #fff, #f2f3ff 58%, #edfbf9);
    box-shadow: var(--ifb-v5-shadow-sm);
}

.ifb-v5-finder__icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 20px;
    background: var(--ifb-v5-brand);
}

.ifb-v5-finder__icon svg { width: 35px; height: 35px; }
.ifb-v5-finder h2 { margin-bottom: 7px; font-size: 31px; }
.ifb-v5-finder p { margin-bottom: 0; color: var(--ifb-v5-muted); }
.ifb-v5-finder .ifb-v5-eyebrow { margin-bottom: 7px !important; }

/* Locations */
.ifb-v5-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ifb-v5-location-card {
    min-height: 118px;
    padding: 24px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    color: var(--ifb-v5-text) !important;
    border: 1px solid var(--ifb-v5-line);
    border-radius: 18px;
    background: #fff;
    text-decoration: none !important;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ifb-v5-location-card:hover {
    transform: translateY(-3px);
    border-color: var(--ifb-v5-brand);
    box-shadow: var(--ifb-v5-shadow-sm);
}

.ifb-v5-location-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--ifb-v5-brand);
    border-radius: 14px;
    background: var(--ifb-v5-blue-soft);
}

.ifb-v5-location-card strong,
.ifb-v5-location-card small { display: block; }
.ifb-v5-location-card strong { color: var(--ifb-v5-navy); font-size: 20px; }
.ifb-v5-location-card small { margin-top: 3px; color: var(--ifb-v5-muted); font-size: 13px; }
.ifb-v5-location-card > svg { color: var(--ifb-v5-brand); }
.ifb-v5-locations-button { margin-top: 24px; }

/* Process */
.ifb-v5-process {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    counter-reset: none;
}

.ifb-v5-process li {
    min-height: 265px;
    padding: 28px;
    border: 1px solid var(--ifb-v5-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--ifb-v5-shadow-sm);
}

.ifb-v5-process li > span {
    width: 42px;
    height: 42px;
    margin-bottom: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--ifb-v5-brand);
    font-weight: 850;
}

.ifb-v5-process strong {
    display: block;
    margin-bottom: 10px;
    color: var(--ifb-v5-navy);
    font-size: 22px;
    line-height: 1.2;
}

.ifb-v5-process p { color: var(--ifb-v5-muted); line-height: 1.6; }

/* FAQ */
.ifb-v5-faq-layout {
    display: grid;
    grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
    gap: clamp(44px, 7vw, 90px);
}

.ifb-v5-faq-layout .ifb-v5-section-head { margin-bottom: 0; }
.ifb-v5-faq { display: grid; gap: 12px; }

.ifb-v5-faq details {
    border: 1px solid var(--ifb-v5-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(7,29,59,.035);
}

.ifb-v5-faq summary {
    padding: 21px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--ifb-v5-navy);
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    list-style: none;
}

.ifb-v5-faq summary::-webkit-details-marker { display: none; }
.ifb-v5-faq summary::after { content: "+"; color: var(--ifb-v5-brand); font-size: 24px; line-height: 1; }
.ifb-v5-faq details[open] summary::after { content: "–"; }
.ifb-v5-faq details p { padding: 0 24px 22px; color: var(--ifb-v5-muted); line-height: 1.7; }

/* CTA */
.ifb-v5-cta {
    padding: clamp(40px, 5vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 40px;
    color: #fff;
    border-radius: 28px;
    background: linear-gradient(125deg, var(--ifb-v5-navy), #123e6c 62%, var(--ifb-v5-brand));
    box-shadow: var(--ifb-v5-shadow);
}

.ifb-v5-cta h2,
.ifb-v5-cta p { color: #fff; }
.ifb-v5-cta h2 { margin-bottom: 13px; font-size: clamp(32px, 4vw, 48px); }
.ifb-v5-cta p:not(.ifb-v5-eyebrow) { margin-bottom: 0; opacity: .9; }
.ifb-v5-cta .ifb-v5-eyebrow { color: #80eadc; }

/* Footer/logo improvements */
.ifb-footer-brand img {
    width: min(100%, 270px);
    height: auto;
    margin-bottom: 20px;
}

.site-info { display: none !important; }

/* Responsive */
@media (max-width: 1120px) {
    .ifb-brand { width: 225px; }
    .main-navigation .main-nav ul li a { padding-inline: 10px !important; font-size: 14px; }
    .ifb-v5-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(370px, .8fr); gap: 42px; }
    .ifb-v5-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ifb-v5-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .inside-header { min-height: 76px; }
    .ifb-brand { width: 205px; }
    .main-navigation { margin-left: auto; }
    .menu-toggle { color: var(--ifb-v5-navy) !important; background: transparent !important; }
    .ifb-v5-hero { min-height: 0; padding-top: 70px; }
    .ifb-v5-hero__grid,
    .ifb-v5-about,
    .ifb-v5-faq-layout,
    .ifb-v5-cta { grid-template-columns: 1fr; }
    .ifb-v5-hero__media { min-height: 540px; max-width: 650px; width: 100%; margin-inline: auto; }
    .ifb-v5-proof__grid { grid-template-columns: repeat(2, 1fr); }
    .ifb-v5-proof__grid > div:nth-child(2) { border-right: 0; }
    .ifb-v5-proof__grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--ifb-v5-line); }
    .ifb-v5-location-grid { grid-template-columns: repeat(2, 1fr); }
    .ifb-v5-finder { grid-template-columns: 65px 1fr; }
    .ifb-v5-finder > .ifb-v5-button { grid-column: 2; justify-self: start; }
    .ifb-v5-about__badge { right: 20px; }
    .ifb-v5-cta .ifb-v5-actions { justify-content: flex-start; }
}

@media (max-width: 650px) {
    .ifb-v5-shell,
    .inside-header,
    .ifb-topbar__inner { width: min(calc(100% - 28px), var(--ifb-v5-shell)); }
    .ifb-topbar__trust { display: none; }
    .ifb-topbar__inner { justify-content: center; }
    .ifb-brand { width: 185px; }
    .ifb-home-v5 h1 { font-size: clamp(42px, 13vw, 62px); }
    .ifb-v5-hero__media { min-height: 450px; }
    .ifb-v5-image-frame { inset: 0; }
    .ifb-v5-advisor-card { left: 18px; right: 18px; bottom: 18px; width: auto; }
    .ifb-v5-service-grid,
    .ifb-v5-location-grid,
    .ifb-v5-process { grid-template-columns: 1fr; }
    .ifb-v5-service-card { min-height: 0; }
    .ifb-v5-proof__grid { grid-template-columns: 1fr 1fr; }
    .ifb-v5-proof__grid > div { padding: 20px 16px; }
    .ifb-v5-about__media > img { min-height: 390px; }
    .ifb-v5-about__badge { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .ifb-v5-finder { padding: 28px; grid-template-columns: 1fr; }
    .ifb-v5-finder > .ifb-v5-button { grid-column: auto; }
    .ifb-v5-finder__icon { width: 58px; height: 58px; }
    .ifb-v5-process li { min-height: 0; }
    .ifb-v5-process li > span { margin-bottom: 25px; }
    .ifb-v5-cta { padding: 32px 24px; }
    .ifb-v5-actions { align-items: stretch; }
    .ifb-v5-actions .ifb-v5-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ifb-v5-button,
    .ifb-v5-service-card,
    .ifb-v5-location-card { transition: none; }
}
/* Hero-Foto so ausrichten, dass die angeschnittene Infokarte verschwindet */
.ifb-v5-image-frame img {
    object-position: 22% center;
}