/* =====================================================
   TABS — durobo / rico-l.de
   Universell für alle .nav-tabs auf der Seite
   ===================================================== */

/* ── Tab-Leiste ── */
.nav-tabs {
    border-bottom: 2px solid var(--moosgold);
    gap: 4px;
    flex-wrap: nowrap;
    align-items: flex-end;
}

/* ── Volle Breite: jeder Tab bekommt gleich viel Platz ── */
.nav-tabs .nav-item {
    flex: 1;
}

/* ── Einzelner Tab ── */
.nav-tabs .nav-link {
    font-family: "PlayfairDisplay-Regular", "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #3A6028 !important;
    background-color: var(--heidesand);
    border: 1px solid var(--moosgold);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 8px 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, padding-top 0.2s ease;
    position: relative;
    bottom: -2px;
    display: block;
    text-align: center;
    width: 100%;
}

/* ── Hover: weiß + wächst sanft auf Active-Höhe ── */
.nav-tabs .nav-link:hover {
    background-color: var(--weiss);
    color: #3A6028 !important;
    padding-top: 13px;
    border: 1px solid var(--moosgold);
    border-bottom: none;
}

/* ── Aktiver Tab: dicker Moosgold-Strich oben ── */
.nav-tabs .nav-link.active {
    background-color: var(--weiss);
    color: #3A6028 !important;
    border: 1px solid var(--moosgold);
    border-top: 3px solid var(--moosgold);
    border-bottom: 2px solid var(--weiss);
    font-weight: 500;
    padding-top: 11px;
}

/* ── Tab-Inhalt ── */
.tab-content {
    background-color: var(--weiss);
    border: 1px solid var(--moosgold);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 28px 35px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* ── Breakpoints ── */
@media (max-width: 767px) {
    .nav-tabs .nav-link {
        font-size: 1.3rem;
        padding: 7px 8px;
    }
    .nav-tabs .nav-link.active {
        padding-top: 11px;
    }
    .tab-content {
        padding: 20px 25px;
    }
}

@media (max-width: 575px) {
    .nav-tabs .nav-link {
        font-size: 1.15rem;
        padding: 6px 6px;
    }
    .nav-tabs .nav-link.active {
        padding-top: 10px;
    }
    .tab-content {
        padding: 15px 18px;
    }

    /* ── Icon-only für Tab-Gruppe nav-36191 auf XS ── */
    #nav-36191-tab-1,
    #nav-36191-tab-2,
    #nav-36191-tab-3 {
        font-size: 0 !important;
        padding: 12px 6px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 28px 28px;
        min-height: 52px;
        position: relative;
    }
    #nav-36191-tab-1.active,
    #nav-36191-tab-2.active,
    #nav-36191-tab-3.active {
        padding-top: 14px;
    }

    /* Haus — Allgemeines */
    #nav-36191-tab-1 {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233A6028' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpolyline points='5 12 3 12 12 3 21 12 19 12'/%3E%3Cpath d='M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6'/%3E%3C/svg%3E");
    }

    /* Buch — Dorfchronik */
    #nav-36191-tab-2 {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233A6028' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0'/%3E%3Cpath d='M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0'/%3E%3Cline x1='3' y1='6' x2='3' y2='19'/%3E%3Cline x1='12' y1='6' x2='12' y2='19'/%3E%3Cline x1='21' y1='6' x2='21' y2='19'/%3E%3C/svg%3E");
    }

    /* Chart — Zahlen, Daten, Fakten */
    #nav-36191-tab-3 {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233A6028' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Crect x='3' y='12' width='4' height='8' rx='1'/%3E%3Crect x='9' y='8' width='4' height='12' rx='1'/%3E%3Crect x='15' y='4' width='4' height='16' rx='1'/%3E%3Cline x1='4' y1='20' x2='18' y2='20'/%3E%3C/svg%3E");
    }

    /* ── Tooltips per CSS ── */
    #nav-36191-tab-1::after,
    #nav-36191-tab-2::after,
    #nav-36191-tab-3::after {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: #2a2318;
        color: #fff;
        font-family: 'Lato', sans-serif;
        font-size: 0.75rem !important;
        font-weight: 400;
        padding: 4px 10px;
        border-radius: 4px;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        z-index: 100;
    }
    #nav-36191-tab-1::after { content: "Allgemeines"; }
    #nav-36191-tab-2::after { content: "Dorfchronik"; }
    #nav-36191-tab-3::after { content: "Zahlen, Daten, Fakten"; }

    #nav-36191-tab-1:hover::after,
    #nav-36191-tab-2:hover::after,
    #nav-36191-tab-3:hover::after {
        opacity: 1;
    }
}
