/* =====================================================================
   Liste Detail - tabbed detail section
   ===================================================================== */
.malt-folders {
    position: relative;
    --mf-cream: #EFE6D2;
    width: 100%;
    box-sizing: border-box;
    padding: 8vh 6vw;
    background: var(--bg-color, #0B0C33);
    color: var(--color-white, #fff);
    font-family: var(--font-family-base);
}

.malt-folders__header {
    margin: 0 0 2rem;
}

.malt-folders__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    width: fit-content;
    margin-bottom: var(--space-lg);
    color: var(--gold, #D8B452);
    font-family: var(--font-family-base);
    font-size: var(--font-size-eyebrow);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-eyebrow);
}

.malt-folders__eyebrow::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--gold, #D8B452);
}

.malt-folders__title {
    margin: 0 0 var(--space-lg);
    color: var(--color-white, #fff);
    font-family: var(--font-family-base);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

.malt-folders__title-line {
    display: block;
}

.malt-folders__title-gold {
    color: var(--gold, #D8B452);
    font-style: normal;
}

.malt-folders__subtitle-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 760px;
}

.malt-folders__subtitle {
    margin: 0;
}

.malt-folders__subtitle > * {
    margin: 0;
}

.malt-folders__subtitle > * + * {
    margin-top: var(--space-sm);
}

.malt-folders__purchase-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 18px;
    border: 1px solid rgba(var(--color-white-rgb), 0.3);
    border-radius: var(--button-radius, 4px);
    background: transparent;
    color: var(--color-white, #fff);
    font-family: var(--font-family-base);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-button);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.malt-folders__purchase-btn:hover,
.malt-folders__purchase-btn:focus-visible {
    border-color: var(--gold, #D8B452);
    color: var(--gold, #D8B452);
}

.malt-folders__purchase-btn:focus-visible {
    outline: 2px solid var(--gold, #D8B452);
    outline-offset: 3px;
}

.malt-folders__tabs-bar {
    position: relative;
    z-index: 2;
    margin-bottom: -1px;
}

.malt-folders__tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.malt-folders__tab {
    padding: 1rem;
    border: none;
    background: var(--color-white, #fff);
    color: var(--bg-color, #0B0C33);
    font-family: var(--font-family-base);
    font-size: var(--font-size-xs-2);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-button);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.malt-folders__tab:nth-child(even) {
    background: var(--mf-cream);
}

.malt-folders__tab:first-child {
    border-radius: 6px 0 0 0;
}

.malt-folders__tab:last-child {
    border-radius: 0 6px 0 0;
}

.malt-folders__tab:hover {
    color: var(--bg-color, #0B0C33);
    opacity: 0.85;
}

.malt-folders__tab.is-active {
    background: var(--gold, #D8B452);
    color: var(--bg-color, #0B0C33);
}

.malt-folders__tab:focus-visible {
    outline: 2px solid var(--gold, #D8B452);
    outline-offset: 2px;
}

.malt-folders__panel {
    position: relative;
    height: 70vh;
    overflow: hidden;
    border-radius: 0 12px 12px 12px;
    background: var(--color-white, #fff);
}

.malt-folders__body {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.malt-folders__body.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.malt-folders__body--no-media {
    grid-template-columns: 1fr;
}

.malt-folders__media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.malt-folders__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.malt-folders__content {
    margin: auto;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: var(--bg-color, #0B0C33);
    overflow: scroll;
    height: 100%;
    width: 100%;
}

.malt-folders__body-title {
    margin: 0;
    color: var(--bg-color, #0B0C33);
    font-family: var(--font-family-base);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.malt-folders__body-text {
    margin: 0;
    color: rgba(var(--color-dark-blue-rgb), 0.75);
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: var(--line-height-copy);
    margin: var(--space-lg) 0px;
}

.malt-folders__body-text > * {
    margin: 0;
}

.malt-folders__body-text > * + * {
    margin-top: var(--space-sm);
}

.malt-folders__content .hero-cta {
    align-self: flex-start;
    margin-top: var(--space-xs);
    text-decoration: none;
    display: inline-block;
}

.malt-folders__header,
.malt-folders__tabs-bar,
.malt-folders__panel {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.malt-folders.is-visible .malt-folders__header {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}

.malt-folders.is-visible .malt-folders__tabs-bar {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}

.malt-folders.is-visible .malt-folders__panel {
    opacity: 1;
    transform: none;
    transition-delay: 0.3s;
}

@media (max-width: 900px) {
    .malt-folders {
        padding: 5vh 1.5rem;
    }

    .malt-folders__tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .malt-folders__tabs::-webkit-scrollbar {
        display: none;
    }

    .malt-folders__tab {
        flex-shrink: 0;
        padding: 0.75rem 1rem;
        font-size: var(--font-size-xs-3);
    }

    .malt-folders__panel {
        height: auto;
        min-height: 320px;
        border-radius: 0 0 12px 12px;
    }

    .malt-folders__body {
        position: relative;
        grid-template-columns: 1fr;
        grid-template-rows: 220px auto;
    }

    .malt-folders__body--no-media {
        grid-template-rows: auto;
    }

    .malt-folders__body:not(.is-active) {
        display: none;
    }

    .malt-folders__content {
        padding: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .malt-folders__header,
    .malt-folders__tabs-bar,
    .malt-folders__panel {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
