.hq-sync-mitglieder__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.hq-sync-mitglieder__card {
    flex: 1 1 160px;
    background: var(--wp--preset--color--flaeche);
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 10, 20, 0.1);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hq-sync-mitglieder__card--gesamt {
    background: var(--wp--preset--color--signal);
    color: var(--wp--preset--color--flaeche);
}

/* Ueberschreibt die generische Theme-Bruecke [class*="__zahl"]/[class*="__label"]
   (assets/css/components.css), die Ueberschrift-/gedaempfte Textfarben ohne
   Kenntnis des Kartenhintergrunds vergibt - auf der roten "Gesamt"-Karte war
   die Zahl dadurch schwarz auf rot und kaum lesbar (WCAG-Kontrastfehler,
   siehe Auftrag Punkt 2). Selektor-Spezifitaet bewusst hoeher als die
   Theme-Bruecke (3 statt 2 Klassen), damit dies unabhaengig von der
   Ladereihenfolge der Stylesheets gewinnt. */
.hq-sync-mitglieder__cards .hq-sync-mitglieder__card--gesamt .hq-sync-mitglieder__zahl,
.hq-sync-mitglieder__cards .hq-sync-mitglieder__card--gesamt .hq-sync-mitglieder__label {
    color: var(--wp--preset--color--flaeche);
}

.hq-sync-mitglieder__card--gesamt .hq-sync-mitglieder__label {
    color: rgba(255, 255, 255, 0.85);
}

.hq-sync-mitglieder__zahl {
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
}

.hq-sync-mitglieder__label {
    font-size: 0.85em;
    color: var(--wp--preset--color--text-leise);
}

.hq-sync-mitglieder__chart-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.hq-sync-mitglieder__ueberschrift {
    margin: 0;
}

.hq-sync-mitglieder__umschalter {
    display: flex;
    gap: 8px;
}

.hq-sync-mitglieder__zeitraum-btn {
    background: var(--wp--preset--color--flaeche-gesenkt);
    border: 1px solid var(--wp--preset--color--linie);
    border-radius: 0;
    padding: 7px 14px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--wp--preset--color--text-gedaempft);
    cursor: pointer;
}

.hq-sync-mitglieder__zeitraum-btn.is-aktiv {
    background: var(--wp--preset--color--tinte);
    border-color: var(--wp--preset--color--tinte);
    color: var(--wp--preset--color--flaeche);
}

.hq-sync-mitglieder__legende {
    display: flex;
    gap: 18px;
    font-size: 0.85em;
    color: var(--wp--preset--color--text-gedaempft);
    margin-bottom: 6px;
}

.hq-sync-mitglieder__punkt {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 0;
    margin-right: 4px;
}

.hq-sync-mitglieder__punkt--beitritte {
    background: var(--wp--preset--color--bestaetigt);
}

.hq-sync-mitglieder__punkt--austritte {
    background: var(--wp--preset--color--signal);
}

.hq-sync-mitglieder__linie {
    display: inline-block;
    width: 16px;
    height: 2px;
    background: var(--wp--preset--color--tinte);
    margin-right: 4px;
    vertical-align: middle;
}

.hq-sync-mitglieder__chart {
    background: var(--wp--preset--color--flaeche);
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 10, 20, 0.1);
    padding: 12px 8px 4px;
    overflow-x: auto;
}

/* Feste Mindestbreite fuer das generierte SVG (siehe assets/mitglieder/script.js)
   statt proportionalem Schrumpfen auf schmalen Viewports - sonst wuerden
   Balken/Achsen-Labels/"Gruendung"-Text auf Mobilgeraeten unlesbar klein;
   stattdessen scrollt der Chart-Container horizontal. */
.hq-sync-mitglieder__chart svg {
    min-width: 480px;
}

.hq-sync-mitglieder__balken--beitritte {
    fill: var(--wp--preset--color--bestaetigt);
}

.hq-sync-mitglieder__balken--austritte {
    fill: var(--wp--preset--color--signal);
}

.hq-sync-mitglieder__achsentext {
    font-size: 11px;
    fill: var(--wp--preset--color--text-leise);
}

.hq-sync-mitglieder__gruendung-text {
    font-size: 10px;
    font-weight: 700;
    fill: var(--wp--preset--color--signal);
}

.hq-sync-mitglieder__nulllinie {
    stroke: var(--wp--preset--color--linie);
    stroke-width: 1;
}

.hq-sync-mitglieder__nettolinie {
    stroke: var(--wp--preset--color--tinte);
    stroke-width: 2;
}

.hq-sync-mitglieder__nettopunkt {
    fill: var(--wp--preset--color--tinte);
}

.hq-sync-mitglieder__nettotext {
    font-size: 11px;
    font-weight: 600;
    fill: var(--wp--preset--color--tinte);
}

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