/* ============================================================
   Franchise Ausstattung – Frontend CSS
   Gold/Kupfer-Design passend zu franchise.studio-enjoy.de
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.fa-wrapper {
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Konzept-Tabs ────────────────────────────────────────── */
.fa-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.fa-tab {
    position: relative;
    padding: 10px 28px;
    background: transparent;
    border: 2px solid #B9823D;
    border-radius: 3px;
    color: #B9823D;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
    overflow: hidden;
    z-index: 0;
}

.fa-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #F4D28A, #B9823D);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: -1;
}

.fa-tab:hover::before,
.fa-tab--active::before {
    opacity: 1;
}

.fa-tab:hover,
.fa-tab--active {
    color: #1a1a1a;
    border-color: transparent;
}

/* ── Panel ───────────────────────────────────────────────── */
.fa-panel--hidden {
    display: none;
}

/* ── Icon-Grid ───────────────────────────────────────────── */
.fa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Einzelne Karte ──────────────────────────────────────── */
.fa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px 16px;
    border-radius: 6px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

/* Aktiv: volle Darstellung mit Gold-Akzent */
.fa-item--active {
    background: #1e1e1e;
    border: 1px solid rgba(185, 130, 61, .4);
}

.fa-item--active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(185, 130, 61, .2);
    border-color: #B9823D;
}

/* Inaktive Items werden serverseitig gar nicht gerendert */

/* ── Icon ────────────────────────────────────────────────── */
.fa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

/* Icon via CSS mask — ermöglicht echten Farbverlauf (identisch H4/H5) */
/* Schwarze SVG/PNG-Icons werden als Maske verwendet, Gradient liegt dahinter */
.fa-icon-mask {
    display: block;
    width: 52px;
    height: 52px;
    flex-shrink: 0;

    /* Farbverlauf identisch zu H4/H5 und Buttons */
    background: linear-gradient(to right, #F4D28A, #B9823D);

    /* Icon als Maske — schwarze Pixel werden sichtbar, Rest transparent */
    -webkit-mask-image: var(--fa-icon-url);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: var(--fa-icon-url);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* Placeholder wenn kein Icon vorhanden — komplett unsichtbar */
.fa-icon-placeholder {
    display: block;
    width: 40px;
    height: 40px;
    background: transparent;
}

/* ── Label ───────────────────────────────────────────────── */
.fa-label {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: .02em;
}

.fa-label {
    color: #e8e0d0;
}

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet: 3 Spalten explizit */
@media (max-width: 720px) {
    .fa-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Mobil: 2 Spalten — verhindert abgeschnittene 3. Box auf Android/iPhone */
@media (max-width: 540px) {
    .fa-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .fa-item {
        padding: 16px 8px 12px;
    }
    .fa-tab {
        padding: 9px 18px;
        font-size: 13px;
    }
}
