/* =========================================================
   IMMFIMA – Startseite
   Datei: assets/css/home.css
   Vollständig neu strukturiert
========================================================= */

/* ---------------------------------------------------------
   1. Grundvariablen
--------------------------------------------------------- */

.immfima-home {
    --home-blue: #082f5a;
    --home-blue-strong: #073b70;
    --home-gold: #c99a24;
    --home-gold-light: #d8aa32;
    --home-text: #0d2745;
    --home-muted: #24384f;
    --home-line: #e2e8ef;
    --home-soft: #f7f9fc;
    --home-page-width: 1540px;
    --home-gutter: 40px;

    width: 100%;
    color: var(--home-text);
    background: #ffffff;
}

.immfima-home,
.immfima-home *,
.immfima-home *::before,
.immfima-home *::after {
    box-sizing: border-box;
}

.immfima-home img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   2. Gemeinsame Inhaltsbreite
--------------------------------------------------------- */

.immfima-home-hero__inner,
.immfima-home-goals__inner,
.immfima-home-highlights__inner,
.immfima-home-values__inner {
    width: min(
            var(--home-page-width),
            calc(100% - var(--home-gutter))
    );
    margin-inline: auto;
}

/* Falls die bestehenden Bereiche keinen separaten __inner-Wrapper haben */
.immfima-home-goals__grid,
.immfima-home-highlights__grid,
.immfima-home-values__grid {
    width: min(
            var(--home-page-width),
            calc(100% - var(--home-gutter))
    );
    margin-inline: auto;
}

/* ---------------------------------------------------------
   3. Hero
--------------------------------------------------------- */

.immfima-home-hero {
    width: 100%;
    background: #ffffff;
}

.immfima-home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    min-height: 400px;
    overflow: hidden;
}

.immfima-home-hero__content,
.immfima-home-hero__image {
    min-width: 0;
}

.immfima-home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 42px 35px 0;
}

.immfima-home-hero__eyebrow {
    margin-bottom: 10px;
    color: var(--home-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.immfima-home-hero__title {
    margin: 0;
    color: var(--home-blue);
    font-size: clamp(34px, 3vw, 50px);
    line-height: 1.08;
}

.immfima-home-hero__subtitle {
    margin: 16px 0 0;
    color: var(--home-blue);
    font-size: clamp(21px, 1.6vw, 27px);
    font-weight: 500;
    line-height: 1.4;
}

.immfima-home-hero__text {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.65;
}

.immfima-home-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
}

.immfima-home-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
            transform 180ms ease,
            background-color 180ms ease,
            border-color 180ms ease,
            box-shadow 180ms ease;
}

.immfima-home-button:hover,
.immfima-home-button:focus-visible {
    transform: translateY(-1px);
}

.immfima-home-button--gold {
    color: #ffffff;
    background: var(--home-gold);
    border-color: var(--home-gold);
    box-shadow: 0 8px 18px rgba(201, 154, 36, 0.18);
}

.immfima-home-button--gold:hover,
.immfima-home-button--gold:focus-visible {
    background: #b98a1b;
    border-color: #b98a1b;
}

.immfima-home-button--outline {
    color: var(--home-blue);
    background: #ffffff;
    border-color: var(--home-blue);
}

.immfima-home-button--outline:hover,
.immfima-home-button--outline:focus-visible {
    background: #f3f7fa;
}

.immfima-home-hero__trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.immfima-home-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 11px;
    line-height: 1.3;
}

.immfima-home-trust-item__icon {
    flex: 0 0 auto;
    color: var(--home-gold);
    font-size: 22px;
}

/* ---------------------------------------------------------
   4. Hero-Bild
--------------------------------------------------------- */

.immfima-home-hero__image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.immfima-home-hero__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.immfima-home-hero__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    min-width: 350px;
    align-items: center;
    gap: 12px;
    padding: 15px 34px;
    color: #ffffff;
    background: var(--home-blue-strong);
}

.immfima-home-hero__badge-icon {
    flex: 0 0 auto;
    color: var(--home-gold-light);
    font-size: 28px;
}

.immfima-home-hero__badge strong,
.immfima-home-hero__badge span {
    display: block;
}

.immfima-home-hero__badge strong {
    font-size: 14px;
}

.immfima-home-hero__badge span {
    font-size: 11px;
}

/* ---------------------------------------------------------
   5. Ziele
--------------------------------------------------------- */

.immfima-home-goals {
    width: 100%;
    padding: 24px 0 26px;
}

.immfima-home-section-title {
    margin: 0 0 18px;
    color: var(--home-blue);
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
}

.immfima-home-goals__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.immfima-home-goal-card {
    display: block;
    min-height: 150px;
    padding: 17px 14px 12px;
    color: var(--home-text);
    background: #ffffff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 35, 70, 0.06);
    text-align: center;
    text-decoration: none;
    transition:
            transform 180ms ease,
            box-shadow 180ms ease,
            border-color 180ms ease;
}

.immfima-home-goal-card:hover,
.immfima-home-goal-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(201, 154, 36, 0.55);
    box-shadow: 0 12px 26px rgba(0, 35, 70, 0.09);
}

.immfima-home-goal-card__icon {
    color: var(--home-gold);
    font-size: 29px;
}

.immfima-home-goal-card h3 {
    margin: 6px 0;
    color: var(--home-blue);
    font-size: 15px;
}

.immfima-home-goal-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.immfima-home-goal-card__arrow {
    display: block;
    margin-top: 6px;
    color: var(--home-gold);
    font-size: 20px;
}

/* ---------------------------------------------------------
   6. Highlight-Bereiche
--------------------------------------------------------- */

.immfima-home-highlights {
    width: 100%;
    padding: 0 0 22px;
}

.immfima-home-highlights__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.immfima-home-public {
    min-height: 245px;
    padding: 25px 32px;
    color: #ffffff;
    background: var(--home-blue-strong);
    border-radius: 8px;
}

.immfima-home-public__eyebrow {
    color: var(--home-gold-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.immfima-home-public h2 {
    margin: 8px 0 20px;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.3;
}

.immfima-home-public__stages {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.immfima-home-public__stage {
    text-align: center;
}

.immfima-home-public__stage span {
    display: block;
    font-size: 26px;
}

.immfima-home-public__stage small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.25;
}

/* ---------------------------------------------------------
   7. Finanz-Check
--------------------------------------------------------- */

.immfima-home-check {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    min-height: 245px;
    align-items: center;
    gap: 25px;
    padding: 25px 32px;
    background: var(--home-soft);
    border: 1px solid var(--home-line);
    border-radius: 8px;
}

.immfima-home-check__eyebrow {
    color: var(--home-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.immfima-home-check h2 {
    margin: 7px 0;
    color: var(--home-blue);
    font-size: 22px;
}

.immfima-home-check p,
.immfima-home-check li {
    font-size: 12px;
}

.immfima-home-check ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.immfima-home-check li {
    margin-bottom: 7px;
}

.immfima-home-check__action {
    text-align: center;
}

.immfima-home-check__circle {
    display: flex;
    width: 120px;
    height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 11px solid #d9e3f1;
    border-top-color: var(--home-blue-strong);
    border-radius: 50%;
}

.immfima-home-check__circle strong {
    color: var(--home-blue-strong);
    font-size: 38px;
    line-height: 1;
}

.immfima-home-check__circle span {
    font-size: 11px;
}

/* ---------------------------------------------------------
   8. Werte
--------------------------------------------------------- */

.immfima-home-values {
    width: 100%;
    padding: 8px 0 22px;
}

.immfima-home-values__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.immfima-home-value {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.immfima-home-value__icon {
    flex: 0 0 auto;
    color: var(--home-blue-strong);
    font-size: 30px;
}

.immfima-home-value h3 {
    margin: 0;
    color: var(--home-blue-strong);
    font-size: 14px;
}

.immfima-home-value p {
    margin: 3px 0 0;
    font-size: 11px;
}

/* ---------------------------------------------------------
   9. Für wen wir da sind
--------------------------------------------------------- */

.audience-section {
    padding: 78px 0 88px;
    background: #f5f8fc;
}

.audience-section__container {
    width: min(
            var(--home-page-width),
            calc(100% - var(--home-gutter))
    );
    margin-inline: auto;
}

.audience-section__header {
    max-width: 920px;
    margin-bottom: 54px;
}

.audience-section__eyebrow {
    margin: 0 0 14px;
    color: #b88408;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.audience-section__header h1,
.audience-section__header h2 {
    max-width: 900px;
    margin: 0;
    color: #07396f;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.audience-section__intro {
    max-width: 760px;
    margin: 22px 0 0;
    color: #68788e;
    font-size: 1.05rem;
    line-height: 1.75;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.audience-card {
    display: flex;
    min-height: 300px;
    padding: 30px 28px;
    border: 1px solid #d7e1ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(7, 57, 111, 0.06);
    transition:
            transform 0.22s ease,
            box-shadow 0.22s ease,
            border-color 0.22s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 154, 36, 0.5);
    box-shadow: 0 20px 48px rgba(7, 57, 111, 0.1);
}

.audience-card__content {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.audience-card::before {
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: var(--home-gold);
    content: "";
}

.audience-card h3 {
    margin: 0 0 18px;
    color: #07396f;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.audience-card p {
    margin: 0;
    color: #68788e;
    font-size: 0.98rem;
    line-height: 1.72;
}

/* ---------------------------------------------------------
   10. Responsive
--------------------------------------------------------- */

@media (max-width: 1100px) {
    .immfima-home-hero__inner {
        grid-template-columns: 1fr;
    }

    .immfima-home-hero__content {
        padding: 42px 0;
    }

    .immfima-home-hero__image {
        min-height: 420px;
    }

    .immfima-home-goals__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .immfima-home-highlights__grid {
        grid-template-columns: 1fr;
    }

    .immfima-home-values__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .audience-card {
        min-height: auto;
    }
}

@media (max-width: 650px) {
    .immfima-home {
        --home-gutter: 24px;
    }

    .immfima-home-hero__content {
        padding: 32px 0;
    }

    .immfima-home-hero__title {
        font-size: clamp(32px, 10vw, 42px);
    }

    .immfima-home-hero__subtitle {
        font-size: 20px;
    }

    .immfima-home-hero__buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .immfima-home-button {
        width: 100%;
    }

    .immfima-home-hero__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .immfima-home-hero__image {
        min-height: 300px;
    }

    .immfima-home-hero__badge {
        min-width: 0;
        width: min(94%, 330px);
        padding: 14px 20px;
    }

    .immfima-home-goals__grid {
        grid-template-columns: 1fr;
    }

    .immfima-home-public {
        padding: 24px 20px;
    }

    .immfima-home-public__stages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .immfima-home-check {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .immfima-home-values__grid {
        grid-template-columns: 1fr;
    }

    .audience-section {
        padding: 56px 0 64px;
    }

    .audience-section__header {
        margin-bottom: 34px;
    }

    .audience-section__header h1,
    .audience-section__header h2 {
        font-size: 2.55rem;
    }

    .audience-card {
        padding: 26px 22px;
    }

    .audience-card h3 {
        font-size: 2rem;
    }
}

