/* MDB Dokumente Widget v2 — pixo.dev for Mitteldeutsche Baustoffe GmbH */

/* Grid: auto-fill, responsive */
.mdb-dok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
}

/* Kategorie-Box */
.mdb-dok-box {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px;
}

.mdb-dok-box-heading {
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Liste */
.mdb-dok-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mdb-dok-item {
    margin: 0;
    padding: 0;
}

.mdb-dok-item a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mdb-dok-item a:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* Icon */
.mdb-dok-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.mdb-dok-icon i,
.mdb-dok-icon svg {
    display: block;
    font-size: 18px;
    color: #6D7220;
    transition: color 0.2s ease;
}

/* Label */
.mdb-dok-label {
    flex: 1;
    line-height: 1.4;
}

/* Badge */
.mdb-dok-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
    background-color: #6D7220;
    color: #ffffff;
    flex-shrink: 0;
    align-self: center;
    line-height: 1.5;
}

/* Empty */
.mdb-dok-empty {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

/* ============================================================
   MDB Dokumente Akkordeon — pixo.dev for Mitteldeutsche Baustoffe GmbH
   Natives <details>/<summary> — kein JavaScript erforderlich.
   ============================================================ */

.mdb-dok-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.mdb-dok-acc-item {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

/* Native Marker (Dreieck) entfernen, eigenes Chevron per ::after zeichnen */
.mdb-dok-acc-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background-color: #f7f7f5;
    color: #333333;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.mdb-dok-acc-summary::-webkit-details-marker {
    display: none;
}

.mdb-dok-acc-summary::marker {
    content: '';
}

.mdb-dok-acc-summary::after {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-left: 12px;
}

details[open] > .mdb-dok-acc-summary::after {
    transform: rotate(-135deg);
}

details[open] > .mdb-dok-acc-summary {
    background-color: #6D7220;
    color: #ffffff;
}

.mdb-dok-acc-body {
    padding: 16px 18px;
    background-color: #ffffff;
}

/* Unterkategorie-Gruppe innerhalb eines Panels */
.mdb-dok-acc-group {
    margin-bottom: 14px;
}

.mdb-dok-acc-group:last-child {
    margin-bottom: 0;
}

.mdb-dok-acc-subheading {
    margin: 0 0 6px 0;
    font-size: 0.85em;
    font-weight: 600;
    color: #6D7220;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Liste */
.mdb-dok-acc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mdb-dok-acc-list--flat {
    margin-bottom: 14px;
}

.mdb-dok-acc-list--flat:last-child {
    margin-bottom: 0;
}

.mdb-dok-acc-item-row {
    margin: 0;
    padding: 0;
}

.mdb-dok-acc-item-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mdb-dok-acc-item-link:hover {
    text-decoration: none;
    opacity: 0.85;
}

.mdb-dok-acc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.mdb-dok-acc-icon i,
.mdb-dok-acc-icon svg {
    display: block;
    font-size: 16px;
    color: #6D7220;
}

.mdb-dok-acc-label {
    flex: 1;
    line-height: 1.4;
    color: #333333;
}

.mdb-dok-acc-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
    background-color: #6D7220;
    color: #ffffff;
    flex-shrink: 0;
    align-self: center;
    line-height: 1.5;
}
