/**
 * NVBW Ressourcen-Manager – Accordion
 */

.nvbw-ressourcen-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.nvbw-ressourcen-title {
    margin-bottom: 1em;
    font-size: 1.5rem;
}

.nvbw-ressourcen-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.nvbw-ressourcen-details {
    border-bottom: 1px solid #e0e0e0;
}

.nvbw-ressourcen-details:last-child {
    border-bottom: none;
}

.nvbw-ressourcen-summary {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    background: #F6EFE2;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
}

.nvbw-ressourcen-summary::-webkit-details-marker {
    display: none;
}

.nvbw-ressourcen-summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 10px;
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.nvbw-ressourcen-details[open] .nvbw-ressourcen-summary::before {
    transform: rotate(90deg);
}

.nvbw-ressourcen-summary:hover {
    background: #eee;
}

.nvbw-ressourcen-list {
    margin: 0;
    padding: 12px 18px 16px 42px;
    list-style: none;
    background: #fff;
}

.nvbw-ressourcen-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.nvbw-ressourcen-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.nvbw-ressourcen-link {
    font-weight: 500;
    text-decoration: underline;
}

.nvbw-ressourcen-link:hover {
    text-decoration: none;
}

.nvbw-ressourcen-desc {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
    color: #666;
}

.nvbw-ressourcen-empty {
    padding: 20px;
    background: #F6EFE2;
    border-radius: 4px;
    color: #666;
}

@media (max-width: 768px) {
    .nvbw-ressourcen-list {
        padding-left: 18px;
    }
}

/* --- Bibliographie: nutzt gleiche Klassen wie Ressourcen (.nvbw-ressourcen-*) + Einrückung der Epochen --- */

.nvbw-bibliographie-inner {
    padding: 8px 0 12px 0;
    background: #fff;
}

/* Epochen (Antike, Mittelalter …) etwas eingerückt */
.nvbw-bibliographie-container .nvbw-bibliographie-epoche .nvbw-ressourcen-summary {
    padding-left: 32px;
}

.nvbw-bibliographie-container .nvbw-bibliographie-inner .nvbw-ressourcen-list {
    padding-left: 42px;
}

.nvbw-bibliographie-item a {
    font-weight: 500;
    text-decoration: underline;
}

.nvbw-bibliographie-item a:hover {
    text-decoration: none;
}

.nvbw-bibliographie-empty {
    padding: 20px;
    background: #F6EFE2;
    border-radius: 4px;
    color: #666;
}

@media (max-width: 768px) {
    .nvbw-bibliographie-container .nvbw-bibliographie-epoche .nvbw-ressourcen-summary {
        padding-left: 18px;
    }
    .nvbw-bibliographie-container .nvbw-bibliographie-inner .nvbw-ressourcen-list {
        padding-left: 18px;
    }
}
