.hq-sync-projekt-detail__beendet-hinweis {
    display: inline-block;
    background: var(--wp--preset--color--signal);
    color: var(--wp--preset--color--flaeche);
    font-weight: 700;
    font-size: 0.85em;
    padding: 6px 16px;
    border-radius: 0;
    margin-bottom: 16px;
}

.hq-sync-projekt-detail__titel {
    color: var(--wp--preset--color--tinte);
    margin: 0 0 12px;
}

/* Hoehere Spezifitaet (2 statt 1 Klasse) noetig, da WordPress' globale
   Regel ":root :where(p) { line-height: 1.6 }" bei gleicher Spezifitaet
   sonst je nach Ladereihenfolge das hier gesetzte line-height ueberschreibt
   (siehe ausfuehrlicher Kommentar bei .hq-sync-standort-card__beschreibung). */
.hq-sync-projekt-detail .hq-sync-projekt-detail__subtitel {
    font-size: 1.15em;
    color: var(--wp--preset--color--text-gedaempft);
    line-height: 1.5;
    min-height: calc(1.5em * 3);
    margin-bottom: 28px;
    max-width: 760px;
}

.hq-sync-projekt-detail__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .hq-sync-projekt-detail__grid {
        grid-template-columns: 1fr;
    }
}

.hq-sync-projekt-detail__content h2 {
    color: var(--wp--preset--color--signal);
    margin: 34px 0 14px;
}

.hq-sync-projekt-detail__content h2:first-child {
    margin-top: 0;
}

.hq-sync-projekt-detail__bild {
    margin: 0 0 6px;
}

.hq-sync-projekt-detail__bild img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.hq-sync-projekt-detail__bild figcaption {
    font-size: 0.85em;
    color: var(--wp--preset--color--text-leise);
    font-style: italic;
    margin-top: 6px;
    max-height: calc(1.4em * 2);
    overflow: hidden;
}

/* Punkt 8 der Arbeitsanweisung: Fliesstext der Projektbeschreibung im
   Blocksatz. text-align: justify allein erzeugt bei schmalen Spalten haeufig
   grosse Wortabstaende ("Lueckentext") - hyphens sorgt fuer automatische
   Trennung und mildert das ab. */
.hq-sync-projekt-detail__text {
    line-height: 1.6;
    color: var(--wp--preset--color--korpus);
    text-align: justify;
    hyphens: auto;
}

.hq-sync-projekt-detail__text ul,
.hq-sync-projekt-detail__text ol {
    margin: 8px 0 8px 22px;
}

/* Partner & Foerderer: eigener, volle-Breite Abschnitt UNTER dem
   Inhalt/Sidebar-Grid (statt wie zuvor in die 2/3-Spalte gequetscht) -
   passend zum allgemeinen Struktur-Konzept des Themes, das eine
   Partner-/Foerderer-Leiste als eigenstaendigen unteren Bereich fuehrt. */
.hq-sync-projekt-detail__partner {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--wp--preset--color--linie);
}

.hq-sync-projekt-detail__partner h2 {
    color: var(--wp--preset--color--signal);
    margin: 0 0 20px;
}

.hq-sync-projekt-detail__partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.hq-sync-projekt-detail__partner-kachel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--wp--preset--color--flaeche-gesenkt);
    border-radius: 0;
    padding: 14px 10px;
    text-align: center;
    font-size: 0.85em;
    color: var(--wp--preset--color--text-gedaempft);
}

.hq-sync-projekt-detail__partner-kachel img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.hq-sync-projekt-detail__box {
    background: var(--wp--preset--color--flaeche-gesenkt);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
}

.hq-sync-projekt-detail__box h3 {
    margin: 0 0 14px;
    color: var(--wp--preset--color--tinte);
    font-size: 1.05em;
}

.hq-sync-projekt-detail__kennzahl {
    margin-bottom: 14px;
}

.hq-sync-projekt-detail__kennzahl-zahl {
    display: block;
    font-size: 1.7em;
    font-weight: 700;
    color: var(--wp--preset--color--tinte);
    line-height: 1.1;
}

.hq-sync-projekt-detail__kennzahl-label {
    font-size: 0.82em;
    color: var(--wp--preset--color--text-leise);
}

.hq-sync-projekt-detail__status-tabelle-wrapper {
    background: var(--wp--preset--color--flaeche);
    padding: 10px 12px;
    margin-top: 10px;
}

.hq-sync-projekt-detail__status-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}

.hq-sync-projekt-detail__status-tabelle td {
    padding: 6px 0;
}

.hq-sync-projekt-detail__status-tabelle td:last-child {
    text-align: right;
    font-weight: 700;
}

.hq-sync-projekt-detail__betrag--gedeckt {
    color: var(--wp--preset--color--bestaetigt);
}

.hq-sync-projekt-detail__betrag--offen {
    color: var(--wp--preset--color--signal);
}

.hq-sync-projekt-detail__box p {
    margin: 0 0 8px;
    font-size: 0.92em;
}

.hq-sync-projekt-detail__helfer-liste {
    list-style: none;
    margin: 0 0 8px;
    padding-left: 20px;
    font-size: 0.92em;
    line-height: 1.6;
}

.hq-sync-projekt-detail__helfer-zahl {
    font-weight: 700;
    color: var(--wp--preset--color--tinte);
}

.hq-sync-projekt-detail__position {
    color: var(--wp--preset--color--text-leise);
}

.hq-sync-projekt-detail__kontakt-btn {
    display: inline-block;
    background: var(--wp--preset--color--signal);
    color: var(--wp--preset--color--flaeche);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9em;
    margin-top: 6px;
}

/* !important + Eltern-Kontext (3 Klassen) noetig: Die Theme-Bruecke
   ([class*="__kontakt-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-projekt-detail .hq-sync-projekt-detail__kontakt-btn:hover,
.hq-sync-projekt-detail .hq-sync-projekt-detail__kontakt-btn:focus {
    background: var(--wp--preset--color--tinte) !important;
    border-color: var(--wp--preset--color--tinte) !important;
    color: var(--wp--preset--color--flaeche) !important;
}

.hq-sync-projekt-detail__dokumente {
    list-style: none;
    background: var(--wp--preset--color--flaeche);
    margin: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hq-sync-projekt-detail__dokumente li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed var(--wp--preset--color--linie);
    padding-bottom: 8px;
}

.hq-sync-projekt-detail__dokumente a {
    color: var(--wp--preset--color--signal);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92em;
}

.hq-sync-projekt-detail__dokumente a:hover,
.hq-sync-projekt-detail__dokumente a:focus {
    text-decoration: underline;
}

.hq-sync-projekt-detail__dokument-groesse {
    font-size: 0.78em;
    color: var(--wp--preset--color--text-leise);
    white-space: nowrap;
}
