/* =========================================================
   JUNG LEBEN CORE – FRONTEND POLISH
   ========================================================= */

/* Hero: die kleine Zeile muss auf dem Foto klar lesbar bleiben. */
.home-hero .eyebrow {
    color: #eef5e9 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 14px rgba(10, 42, 31, 0.42);
}

/* Die gewünschte Reihenfolge wird zusätzlich per JS semantisch gesetzt. */
.home-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
}

/* =========================================================
   DE / EN IN DER HAUPTNAVIGATION
   ========================================================= */

.main-nav-list > .jl-language-switcher-item {
    display: flex;
    align-items: center;
    margin-left: 0.45rem;
}

.jl-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(41, 85, 69, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 5px 18px rgba(31, 61, 49, 0.05);
}

.main-nav .jl-language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: #496259;
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.055em;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.main-nav .jl-language-switcher a:hover,
.main-nav .jl-language-switcher a:focus-visible {
    color: #173c32;
    background: #edf3ed;
}

.main-nav .jl-language-switcher a.is-active {
    color: #ffffff;
    background: #365d4f;
    box-shadow: 0 4px 12px rgba(35, 76, 61, 0.18);
}

/* =========================================================
   ÜBER MICH – PORTRAIT + PROFILKARTE
   ========================================================= */

/*
 * Der Hero soll auf Desktop wie ein ruhiges Editorial-Layout wirken:
 * links der Inhalt, rechts ein kompakter Portrait-/Profilblock.
 */
.about-page .about-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.82fr);
    align-items: center;
    gap: clamp(48px, 7vw, 88px);
}

.about-page .about-hero__content {
    align-self: center;
}

.jl-about-profile-column {
    width: min(100%, 420px);
    justify-self: end;
}

/* Das frühere kleine Overlay «Roberto / Hinter Jung Leben» wird ersetzt. */
.about-page .about-hero__caption,
.jl-about-profile-column .about-hero__caption {
    display: none !important;
}

.about-page .about-hero__media.jl-profile-card-host {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #e7ebe8;
    box-shadow: 0 18px 46px rgba(35, 68, 55, 0.08);
}

.about-page .about-hero__media.jl-profile-card-host .about-hero__image,
.about-page .about-hero__media.jl-profile-card-host img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 4.55;
    display: block;
    object-fit: cover;
    object-position: center 34%;
}

.jl-about-profile-card {
    width: 100%;
    margin-top: 14px;
    padding: 24px 26px 22px;
    border: 1px solid rgba(40, 83, 68, 0.09);
    border-radius: 20px;
    background: #e8f2ee;
    box-shadow: 0 12px 30px rgba(35, 68, 55, 0.055);
}

.jl-about-profile-card__eyebrow {
    margin: 0 0 10px;
    color: #315d4f;
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jl-about-profile-card__name {
    margin: 0;
    color: #123d35;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    line-height: 1.02;
}

.jl-about-profile-card__subtitle {
    max-width: 100%;
    margin: 8px 0 0;
    color: #5e746c;
    font-size: 0.9rem;
    line-height: 1.55;
}

.jl-about-profile-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.jl-about-profile-card__stat {
    min-width: 0;
    padding: 14px 8px 2px;
    border-top: 1px solid rgba(42, 82, 68, 0.12);
    text-align: center;
}

.jl-about-profile-card__value {
    display: block;
    color: #123d35;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 820;
    line-height: 1;
}

.jl-about-profile-card__label {
    display: block;
    margin-top: 7px;
    color: #5c736b;
    font-size: 0.74rem;
    line-height: 1.4;
}

/* =========================================================
   WISSEN – FILTER UND SUCHE
   ========================================================= */

.jl-knowledge-filter {
    display: grid;
    gap: 16px;
    margin: 28px 0 30px;
    padding: 18px;
    border: 1px solid rgba(42, 82, 68, 0.09);
    border-radius: 18px;
    background: #f8faf7;
}

.jl-knowledge-filter__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.jl-knowledge-filter__search-wrap {
    position: relative;
    flex: 1 1 340px;
}

.jl-knowledge-filter__search {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid rgba(47, 84, 71, 0.16);
    border-radius: 12px;
    outline: 0;
    background: #ffffff;
    color: #243b34;
    font: inherit;
    font-size: 0.92rem;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.jl-knowledge-filter__search:focus {
    border-color: #6f917f;
    box-shadow: 0 0 0 3px rgba(74, 115, 94, 0.1);
}

.jl-knowledge-filter__count {
    flex: 0 0 auto;
    color: #708078;
    font-size: 0.8rem;
    white-space: nowrap;
}

.jl-knowledge-filter__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jl-knowledge-filter__button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(45, 82, 69, 0.13);
    border-radius: 999px;
    background: #ffffff;
    color: #516860;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 680;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.jl-knowledge-filter__button:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 82, 69, 0.24);
    color: #173e33;
}

.jl-knowledge-filter__button.is-active {
    border-color: #365d4f;
    background: #365d4f;
    color: #ffffff;
}

.jl-knowledge-filter__button-count {
    margin-left: 5px;
    opacity: 0.72;
    font-size: 0.74rem;
}

.jl-knowledge-card[hidden] {
    display: none !important;
}

.jl-knowledge-filter__empty {
    margin: 8px 0 0;
    padding: 22px;
    border-radius: 14px;
    background: #f5f7f4;
    color: #61736b;
    text-align: center;
}

@media (max-width: 860px) {
    .main-nav-list > .jl-language-switcher-item {
        margin: 0.35rem 0 0;
    }

    .jl-language-switcher {
        width: fit-content;
    }

    .about-page .about-hero__grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 34px;
    }

    .jl-about-profile-column {
        width: min(100%, 520px);
        justify-self: start;
    }

    .jl-knowledge-filter__top {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .jl-knowledge-filter__count {
        padding-left: 2px;
    }
}

@media (max-width: 560px) {
    .jl-about-profile-column {
        width: 100%;
    }

    .about-page .about-hero__media.jl-profile-card-host {
        border-radius: 18px;
    }

    .about-page .about-hero__media.jl-profile-card-host .about-hero__image,
    .about-page .about-hero__media.jl-profile-card-host img {
        aspect-ratio: 4 / 4.35;
        object-position: center 30%;
    }

    .jl-about-profile-card {
        padding: 22px 20px 20px;
        border-radius: 18px;
    }

    .jl-about-profile-card__stats {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 18px;
    }

    .jl-about-profile-card__stat {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 11px 4px 2px;
        text-align: left;
    }

    .jl-about-profile-card__label {
        margin-top: 0;
        font-size: 0.78rem;
    }

    .jl-knowledge-filter {
        margin-inline: -2px;
        padding: 14px;
        border-radius: 15px;
    }

    .jl-knowledge-filter__categories {
        flex-wrap: nowrap;
        margin-inline: -14px;
        padding-inline: 14px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .jl-knowledge-filter__button {
        flex: 0 0 auto;
    }
}
