/* ═══════════════════════════════════════
   TBH Document Manager – Frontend Styles
   ═══════════════════════════════════════ */

/* ─── Download-Bereich ─── */
.tbh-downloads {
    margin: 30px 0;
}

.tbh-download-heading {
    font-size: 1.3em;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e4e7;
}

.tbh-download-grid {
    display: grid;
    gap: 15px;
}

.tbh-download-grid.tbh-columns-1 {
    grid-template-columns: 1fr;
}

.tbh-download-grid.tbh-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tbh-download-grid.tbh-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tbh-download-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tbh-download-item:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tbh-download-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.tbh-download-info {
    flex: 1;
    min-width: 0;
}

.tbh-download-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.tbh-download-fallback {
    display: inline-block;
    background: #fcf0c3;
    color: #6e4e00;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tbh-download-link {
    display: inline-block;
    color: #2271b1;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
}

.tbh-download-link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ─── Produkt-Dokumente ─── */
.tbh-product-documents {
    margin: 20px 0;
}

.tbh-doc-type-heading {
    font-size: 1.1em;
    margin: 15px 0 8px;
    color: #333;
}

.tbh-doc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.tbh-doc-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tbh-doc-item:last-child {
    border-bottom: none;
}

.tbh-doc-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d2327;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.tbh-doc-item a:hover {
    color: #2271b1;
}

.tbh-doc-icon {
    flex-shrink: 0;
}

.tbh-fallback-hint {
    color: #999;
    font-size: 12px;
}

/* ─── Restricted Notice ─── */
.tbh-restricted-notice {
    background: #f0f6fc;
    border: 1px solid #c3daf5;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 20px 0;
}

.tbh-restricted-notice p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1d2327;
}

.tbh-restricted-notice p:last-child {
    margin-bottom: 0;
}

.tbh-restricted-inline {
    padding: 10px 15px;
    margin: 10px 0;
}

.tbh-restricted-inline p {
    font-size: 13px;
    margin: 0;
}

.tbh-contact-btn {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    transition: background 0.15s;
}

.tbh-contact-btn:hover {
    background: #135e96;
    color: #fff;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .tbh-download-grid.tbh-columns-2,
    .tbh-download-grid.tbh-columns-3 {
        grid-template-columns: 1fr;
    }
}
