.hq-sync-transparenzbericht__top-aktionen {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hq-sync-transparenzbericht__top-btn {
    flex: 1 1 260px;
    text-align: center;
    padding: 18px 20px;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.05em;
    text-decoration: none;
}

.hq-sync-transparenzbericht__top-btn--bericht {
    background: var(--wp--preset--color--signal);
    color: var(--wp--preset--color--flaeche);
    border: 2px solid var(--wp--preset--color--signal);
}

/* !important + Eltern-Kontext (3 Klassen) fuer :hover/:focus noetig: Die
   Theme-Bruecke ([class*="__top-btn"]) erzwingt die Farben per !important
   unabhaengig vom Zustand - siehe ausfuehrliche Begruendung bei
   .hq-sync-dokumente__button:hover in assets/dokumente/style.css. */
.hq-sync-transparenzbericht .hq-sync-transparenzbericht__top-btn--bericht:hover,
.hq-sync-transparenzbericht .hq-sync-transparenzbericht__top-btn--bericht:focus {
    background: var(--wp--preset--color--tinte) !important;
    border-color: var(--wp--preset--color--tinte) !important;
    color: var(--wp--preset--color--flaeche) !important;
}

/* "Mittelverwendungsnachweis" ist als Outline-Sekundaerbutton gedacht
   (transparent, Navy-Rahmen/-Text) - die Theme-Bruecke matcht aber
   ebenfalls per Substring auf "__top-btn" und erzwingt sonst denselben
   vollflaechig roten Stil wie den Primaerbutton, wodurch die beiden
   Buttons optisch nicht mehr unterscheidbar waeren. !important + Eltern-
   Kontext stellen den beabsichtigten Outline-Stil wieder her. */
.hq-sync-transparenzbericht .hq-sync-transparenzbericht__top-btn.hq-sync-transparenzbericht__top-btn--mittelverwendung {
    background: transparent !important;
    color: var(--wp--preset--color--tinte) !important;
    border: 2px solid var(--wp--preset--color--tinte) !important;
}

.hq-sync-transparenzbericht .hq-sync-transparenzbericht__top-btn--mittelverwendung:hover,
.hq-sync-transparenzbericht .hq-sync-transparenzbericht__top-btn--mittelverwendung:focus {
    background: transparent !important;
    color: var(--wp--preset--color--signal) !important;
    border-color: var(--wp--preset--color--signal) !important;
}

.hq-sync-transparenzbericht__archiv {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.hq-sync-transparenzbericht__archiv th,
.hq-sync-transparenzbericht__archiv td {
    padding: 10px 12px;
    text-align: left;
    overflow-wrap: break-word;
}

.hq-sync-transparenzbericht__archiv thead th {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--wp--preset--color--text-leise);
    border-bottom: 2px solid var(--wp--preset--color--tinte);
}

.hq-sync-transparenzbericht__archiv th:nth-child(1),
.hq-sync-transparenzbericht__archiv td:nth-child(1) {
    width: 60%;
}

.hq-sync-transparenzbericht__archiv th:nth-child(2),
.hq-sync-transparenzbericht__archiv td:nth-child(2) {
    width: 20%;
}

.hq-sync-transparenzbericht__archiv th:nth-child(3),
.hq-sync-transparenzbericht__archiv td:nth-child(3) {
    width: 20%;
}

/* Trennung zwischen den Jahresgruppen: vorher eine 8px dicke graue
   Vollflaeche (wirkte wie ein Layout-Fehler statt Gestaltungsmittel).
   Jetzt eine schlanke Zeile mit dem Jahr als Kicker ueber einer duennen
   Konzept-Trennlinie - konsistent mit den uebrigen duennen Linien im
   Theme (var(--wp--preset--color--linie)) statt einer wuchtigen Flaeche. */
.hq-sync-transparenzbericht__archiv tbody.hq-sync-transparenzbericht__jahresgruppe {
    border-top: 1px solid var(--wp--preset--color--linie);
}

.hq-sync-transparenzbericht__archiv tbody.hq-sync-transparenzbericht__jahresgruppe:first-of-type {
    border-top: none;
}

.hq-sync-transparenzbericht__archiv tbody.hq-sync-transparenzbericht__jahresgruppe tr:first-child td {
    padding-top: 22px;
}

.hq-sync-transparenzbericht__archiv tbody.hq-sync-transparenzbericht__jahresgruppe td {
    border-bottom: 1px solid var(--wp--preset--color--linie-fein);
}

.hq-sync-transparenzbericht__archiv tbody tr:hover {
    background: var(--wp--preset--color--flaeche-gesenkt);
}

/* "Ansehen" ist eine pro Zeile wiederholte Tabellenaktion (potenziell
   viele Zeilen im vollen Archiv) und bewusst als dezenter, sekundaerer
   Chip gestaltet statt als vollflaechig roter Button - sonst wirkt eine
   lange Tabelle mit lauter roten Buttons schnell unruhig. Die Theme-
   Bruecke matcht aber per Substring auf "__ansehen-btn" und erzwingt
   sonst denselben Stil wie die Haupt-CTAs; !important + Eltern-Kontext
   stellen den beabsichtigten dezenten Stil wieder her (analog zum
   Mittelverwendungsnachweis-Button weiter oben in dieser Datei). */
.hq-sync-transparenzbericht .hq-sync-transparenzbericht__archiv .hq-sync-transparenzbericht__ansehen-btn {
    display: inline-block;
    background: var(--wp--preset--color--flaeche-gesenkt) !important;
    border: 1px solid var(--wp--preset--color--linie) !important;
    color: var(--wp--preset--color--tinte) !important;
    font-weight: 600;
    font-size: 0.88em;
    padding: 6px 14px;
    border-radius: 0 !important;
    text-decoration: none;
}

.hq-sync-transparenzbericht__archiv .hq-sync-transparenzbericht__ansehen-btn:hover,
.hq-sync-transparenzbericht__archiv .hq-sync-transparenzbericht__ansehen-btn:focus {
    background: var(--wp--preset--color--tinte) !important;
    border-color: var(--wp--preset--color--tinte) !important;
    color: var(--wp--preset--color--flaeche) !important;
}

@media (max-width: 640px) {
    .hq-sync-transparenzbericht__archiv thead {
        display: none;
    }

    .hq-sync-transparenzbericht__archiv,
    .hq-sync-transparenzbericht__archiv tbody,
    .hq-sync-transparenzbericht__archiv tr,
    .hq-sync-transparenzbericht__archiv td {
        display: block;
        width: 100%;
    }

    .hq-sync-transparenzbericht__archiv tbody.hq-sync-transparenzbericht__jahresgruppe {
        border: 1px solid var(--wp--preset--color--linie-fein);
        border-radius: 0;
        margin-bottom: 12px;
        padding: 6px 12px;
    }

    .hq-sync-transparenzbericht__archiv tr {
        padding: 6px 0;
    }

    .hq-sync-transparenzbericht__archiv tbody.hq-sync-transparenzbericht__jahresgruppe tr:first-child td {
        padding-top: 6px;
    }

    .hq-sync-transparenzbericht__archiv tbody.hq-sync-transparenzbericht__jahresgruppe td {
        border-bottom: none;
        padding: 3px 0;
    }

    .hq-sync-transparenzbericht__archiv td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75em;
        text-transform: uppercase;
        color: var(--wp--preset--color--text-leise);
    }
}
