/* DFB Babel & Betel — Pergament & Oxblod-stil */

.dfb-bb-wrap {
    position: relative;
    max-width: 720px;
    margin: 1.5em auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dfb-bb-diagram {
    line-height: 0;
}

/* SVG typografi */
.dfb-bb-svg .dfb-bb-heading {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
    fill: #5a3a1a;
}

.dfb-bb-svg .dfb-bb-subheading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    fill: #8c6d4a;
}

.dfb-bb-svg .dfb-bb-panel-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.dfb-bb-svg .dfb-bb-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 400;
}

.dfb-bb-svg .dfb-bb-label-bold {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 500;
}

.dfb-bb-svg .dfb-bb-hebraisk {
    font-family: "SBL Hebrew", "Ezra SIL", "Times New Roman", serif;
    font-size: 14px;
    font-weight: 500;
    direction: rtl;
}

/* Klik-elementer */
.dfb-bb-klik {
    cursor: pointer;
    transition: opacity 0.2s;
}

.dfb-bb-klik:hover {
    opacity: 0.75;
}

/* ======= Info-panel ======= */
.dfb-bb-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f0e4;
    border-top: 2px solid #c4975a;
    border-radius: 0 0 10px 10px;
    padding: 20px 24px 24px;
    box-shadow: 0 -4px 20px rgba(90, 58, 26, 0.12);
    z-index: 10;
    animation: dfb-bb-slide-up 0.25s ease-out;
}

@keyframes dfb-bb-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dfb-bb-panel-luk {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #8c6d4a;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.dfb-bb-panel-luk:hover {
    color: #5a3a1a;
}

.dfb-bb-panel-zone {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.dfb-bb-panel-zone[data-zone="babel"] {
    background: rgba(196, 151, 90, 0.2);
    color: #7a5a2a;
}

.dfb-bb-panel-zone[data-zone="betel"] {
    background: rgba(107, 143, 107, 0.2);
    color: #3a5a3a;
}

.dfb-bb-panel-zone[data-zone="kontrast"] {
    background: rgba(139, 26, 26, 0.15);
    color: #8b1a1a;
}

.dfb-bb-panel-titel {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
    color: #5a3a1a;
    margin: 0 0 4px;
}

.dfb-bb-panel-hebraisk {
    font-family: "SBL Hebrew", "Ezra SIL", "Times New Roman", serif;
    font-size: 16px;
    color: #8c6d4a;
    direction: rtl;
    text-align: left;
    margin-bottom: 8px;
}

.dfb-bb-panel-hebraisk:empty {
    display: none;
}

.dfb-bb-panel-tekst {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.65;
    color: #4a3a2a;
    margin: 0 0 10px;
}

.dfb-bb-panel-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dfb-bb-panel-refs a {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #8b1a1a;
    background: rgba(139, 26, 26, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.15s;
}

.dfb-bb-panel-refs a:hover {
    background: rgba(139, 26, 26, 0.18);
    text-decoration: none;
}

/* Responsivt */
@media (max-width: 500px) {
    .dfb-bb-panel {
        padding: 16px 16px 20px;
    }

    .dfb-bb-panel-tekst {
        font-size: 13px;
    }
}
