/*
 Theme Name: Neve Child
 Template: neve
*/

/* Optional: nichts Grundlegendes überschreiben, Neve kümmert sich um Layout */

/* ========= DOKUMENTEN-BIBLIOTHEK ========= */

/* Kompakte Filterleiste */
.dokumenten-filters {
    margin: 1rem 0 0.5rem;
}

.dokumenten-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    font-size: 1rem;
}

.dfilter-item label {
    font-size: 1rem;
}

.dfilter-item input[type="text"],
.dfilter-item select {
    min-width: 180px;
    padding: 0.25rem 0.4rem;
    font-size: 1rem;
}

.dfilter-submit button,
.dfilter-reset {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Reset-Link wie kleiner Button */
.dfilter-reset {
    margin-left: 0.3rem;
    text-decoration: none;
    border: 1px solid #0073aa;
    background: #fff;
    color: #0073aa;
}

.dfilter-reset:hover {
    background: #0073aa;
    color: #fff;
}

/* Tabelle */
.dokumenten-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 1rem;
}

.dokumenten-tabelle thead {
    border-bottom: 2px solid #ddd;
}

.dokumenten-tabelle th,
.dokumenten-tabelle td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.dokumenten-tabelle th {
    font-weight: 700;
}

.dokumenten-tabelle tbody tr:nth-child(odd) {
    background: #f7f7f7;
}

.dokumenten-tabelle tbody tr:hover {
    background: #e9f4ff;
}

.dokumenten-tabelle .dokumenten-titel a {
    text-decoration: none;
}

.dokumenten-tabelle .dokumenten-titel a:hover {
    text-decoration: underline;
}

/* Pagination */
.dokumenten-pagination {
    margin: 1rem 0 2rem;
}

.dokumenten-pagination .dp-page {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    margin-right: 0.2rem;
    border: 1px solid #ccc;
    text-decoration: none;
    font-size: 1rem;
}

.dokumenten-pagination .dp-current {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .dokumenten-filters-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dfilter-item input[type="text"],
    .dfilter-item select {
        width: 100%;
        min-width: 0;
    }

    .dokumenten-tabelle {
        font-size: 1rem;
    }

    .dokumenten-tabelle th,
    .dokumenten-tabelle td {
        padding: 0.4rem 0.5rem;
    }
}

/* Button in der Spalte "Anhang" */
.dokumenten-anhang-btn {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 1rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.dokumenten-anhang-btn:hover {
    background: #005b86;
    color: #fff;
}

/* Download-Icon im Button */
.dokumenten-anhang-btn .download-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Weißes Download-SVG */
.dokumenten-anhang-btn .download-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M5 20h14v-2H5v2zm7-18l-5 5h3v6h4V7h3l-5-5z"/></svg>');
}

/* Spaltenbreiten in der Dokumenten-Tabelle */
.dokumenten-tabelle th:nth-child(1),
.dokumenten-tabelle td:nth-child(1) {
    width: 50%;
}

.dokumenten-tabelle th:nth-child(2),
.dokumenten-tabelle td:nth-child(2) {
    width: 12%;
    white-space: nowrap;
}

.dokumenten-tabelle th:nth-child(3),
.dokumenten-tabelle td:nth-child(3) {
    width: 20%;
}

.dokumenten-tabelle th:nth-child(4),
.dokumenten-tabelle td:nth-child(4) {
    width: 8%;
    white-space: nowrap;
}

.dokumenten-tabelle th:nth-child(5),
.dokumenten-tabelle td:nth-child(5) {
    width: 6%;
    text-align: center;
    white-space: nowrap;
}

/* =========================
   HERO für Dokumente (Titelbild oben)
   ========================= */
.dokument-hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 40px 20px;
    min-height: 14rem;
}

.dokument-hero.no-image {
    background-color: #222;
}

@media (min-width: 960px) {
    .dokument-hero {
        padding: 60px 40px 60px 40px;
        min-height: 20rem;
    }
}

.dokument-hero__overlay {
    background: rgba(0, 0, 0, 0.55);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.dokument-hero__inner {
    text-align: center;
}

.dokument-hero__title {
    margin: 0 0 1rem;
    font-size: 2.2rem;
    line-height: 1.25;
}

.dokument-hero__meta {
    font-size: 0.95rem;
}

.dokument-hero__cats {
    color: #fff;   /* категории без ссылок */
}

/* =========================
   Dokument-Inhalt als kompakte Infokarte
   ========================= */
.dokument-single-main {
    margin-top: 2rem;
}

.dokument-single-container .nv-single-post-wrap {
    max-width: 900px;
    margin: 2rem auto 3rem;   /* центрируем и даём отступы */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    font-size: 1rem;
}

/* одинаковый вертикальный ритм внутри карточки */
.dokument-single-header,
.dokument-single-content,
.dokument-single-preview,
.dokument-single-summary,
.dokument-single-attachment {
    margin-bottom: 1.5rem;
}

/* Автор и подписи компактнее */
.dokument-single-meta,
.dokument-single-summary p,
.dokument-single-attachment p {
    margin: 0 0 0.5rem;
}

/* Vorschaubild по центру */
.dokument-single-preview {
    text-align: center;
}
.dokument-single-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

/* Заголовки "Beschreibung" и "Anhang" чуть меньше */
.dokument-single-summary p strong,
.dokument-single-attachment p strong {
    font-size: 1.05rem;
}

/* Кнопка загрузки компактнее и единая */
.dokumenten-anhang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.95rem;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.dokumenten-anhang-btn:hover {
    background: #005b86;
    color: #fff;
}

/* Иконка загрузки (белый стрелочный пиктограмм) */
.dokumenten-anhang-btn .download-icon {
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: invert(100%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M5 20h14v-2H5v2zm7-18l-5 5h3v6h4V7h3l-5-5z"/></svg>');
}

/* Mobile-Feintuning */
@media (max-width: 768px) {
    .dokument-single-container .nv-single-post-wrap {
        padding: 1.25rem 1.25rem;
        margin-top: 1.5rem;
    }
    .dokument-hero__title {
        font-size: 1.6rem;
    }
}


/* Zurück-zur-Bibliothek Button in der Karte (unten rechts) */
/* Container der Rückkehr-Schaltfläche */
.dokument-single-back {
    display: flex;
    justify-content: flex-end; /* КНОПКА СПРАВА */
    margin-top: 2rem;          /* Отступ сверху, чтобы отделить от Anhang */
}

/* Сама кнопка */
.dokument-back-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.dokument-back-btn:hover {
    background: #005b86;
    color: #fff;
}
