/* ==========================================================
   real-estate-investment.css
   Styles specific to the Kapitalanlage subpage.
   Inherits all CSS variables from index.css.
   ========================================================== */

/* ===== HERO ===== */
.invest-hero {
    position: relative;
    width: 100%;
    min-height: 580px;
    max-height: 760px;
    overflow: hidden;
    aspect-ratio: 20 / 9;
    display: flex;
    align-items: flex-end;
}

.invest-hero-bg {
    position: absolute;
    inset: 0;
}

.invest-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

/* Placeholder shown until a real image is placed */
.invest-hero-bg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1c37 0%, #013485 50%, #1558a8 100%);
}

.invest-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(1, 52, 133, 0.82) 0%,
        rgba(1, 52, 133, 0.55) 50%,
        rgba(1, 52, 133, 0.20) 100%
    );
}

.invest-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 72px;
}

.invest-hero-text {
    max-width: 620px;
    flex-shrink: 0;
}

.invest-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.8rem);
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 0 3px rgba(1, 52, 133, 0.9), 0 0 20px rgba(1, 52, 133, 0.5);
    margin-bottom: 20px;
}

.invest-hero-subtitle {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.invest-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.invest-hero-actions .primary-button {
    background: var(--alt-color);
    color: #fff;
    box-shadow: 0 4px 18px rgba(201, 35, 35, 0.4);
}

.invest-hero-actions .primary-button:hover {
    background: #a81c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(201, 35, 35, 0.5);
}

/* KPI card in hero */
.invest-hero-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    padding: 28px 36px;
    flex-shrink: 0;
    align-self: flex-end;
}

.invest-kpi {
    display: flex;
    align-items: center;
    gap: 28px;
}

.invest-kpi-item {
    text-align: center;
}

.invest-kpi-val {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    white-space: nowrap;
}

.invest-kpi-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.invest-kpi-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.20);
    flex-shrink: 0;
}


/* ===== INTRO STRIP ===== */
.invest-strip {
    background: var(--main-color);
    padding: 18px 40px;
    position: relative;
    z-index: 10;
}

.invest-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.invest-strip-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 780px;
}

.invest-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #90c8f4;
    white-space: nowrap;
    transition: color 0.2s;
    flex-shrink: 0;
}

.invest-strip-link:hover {
    color: #fff;
}


/* ===== SHARED SECTION HEADER ===== */
.invest-section-header {
    margin-bottom: 48px;
}

.invest-section-header.center {
    text-align: center;
}

.invest-section-header.center .intro-text {
    margin: 0 auto;
}


/* ===== ADVANTAGES ===== */
.invest-advantages {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    cursor: default;
}

.advantage-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.advantage-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-color);
}

.advantage-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.advantage-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}


/* ===== PROPERTY TYPES ===== */
.invest-types {
    background: var(--bg-white);
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.type-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    cursor: default;
}

.type-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.type-card--featured {
    border-color: var(--main-color);
    box-shadow: var(--shadow-sm);
}

.type-image {
    height: 200px;
    overflow: hidden;
    background: var(--accent-light);
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-light) 0%, #c8dff5 100%);
    color: var(--main-color);
}

.type-body {
    padding: 24px;
}

.type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.type-badge--featured {
    color: #fff;
    background: var(--main-color);
}

.type-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.type-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}

.type-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-facts li {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.type-facts li::before {
    content: "✓";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--accent-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 1px;
}


/* ===== FUNDING ===== */
.invest-funding {
    background: var(--bg-light);
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.invest-funding-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.invest-funding-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
    background: var(--accent-light);
}

.invest-funding-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invest-funding-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c8dff5 0%, #a8c8e8 100%);
    color: var(--main-color);
}

.funding-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}

.funding-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.funding-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.funding-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--main-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.funding-abbr {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
}

.funding-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 4px;
}

.funding-item-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}


/* ===== TARGET GROUPS ===== */
.invest-groups {
    background: var(--bg-white);
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.group-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    cursor: default;
}

.group-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.group-icon {
    width: 56px;
    height: 56px;
    background: var(--main-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.group-icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

.group-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 18px;
    line-height: 1.3;
}

.group-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.55;
}

.group-benefits .check-icon {
    flex-shrink: 0;
    margin-top: 1px;
}


/* ===== PROCESS STEPS ===== */
.invest-process {
    background: var(--main-color);
    padding: 80px 0;
}

.invest-process .section-tag {
    color: #90c8f4;
}

.invest-process .section-title {
    color: #fff;
}

.invest-process .intro-text {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 48px;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

.process-step-num {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #90c8f4;
    line-height: 1;
    margin-bottom: 16px;
    transition: color 0.3s;
}

.process-step:hover .process-step-num {
    color: #90c8f4;
}

.process-step-body {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: background 0.25s, border-color 0.25s;
}

.process-step:hover .process-step-body {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.process-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.process-step-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
}

.process-connector {
    flex-shrink: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin-top: 64px; /* align with card center */
    position: relative;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.20);
    border-right: 2px solid rgba(255, 255, 255, 0.20);
    transform: rotate(45deg);
}


/* ===== FAQ ===== */
.invest-faq {
    background: var(--bg-light);
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question[aria-expanded="true"] {
    color: var(--accent-color);
}

.faq-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.2s;
    color: var(--accent-color);
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    background: var(--accent-color);
    color: #fff;
}

.faq-question[aria-expanded="true"] .faq-chevron svg {
    stroke: #fff;
}

.faq-answer {
    padding: 0 4px 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.75;
}

/* faq-answer open animation */
.faq-answer.opening {
    animation: faqOpen 0.28s ease forwards;
}

@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ===== CTA / CONTACT SECTION ===== */
.invest-cta {
    background: var(--main-color);
    padding: 80px 0;
}

.invest-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
}

.invest-contact-details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.invest-cta-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .invest-hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 48px;
        gap: 24px;
    }

    .invest-hero-card {
        align-self: flex-start;
    }

    .invest-kpi {
        gap: 20px;
    }

    .invest-funding-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .invest-funding-image {
        height: 320px;
    }

    .types-grid,
    .groups-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .process-step {
        width: 100%;
        max-width: 420px;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 0;
        margin-bottom: 12px;
    }

    .process-step-num {
        margin-bottom: 0;
        margin-right: 20px;
        font-size: 2rem;
        min-width: 52px;
    }

    .process-connector {
        display: none;
    }

    .invest-cta-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .invest-hero-card {
        display: none; /* hide KPI card on very small screens */
    }

    .invest-strip-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .invest-cta-form {
        padding: 24px 20px;
    }
}