/* AGB in Pulse G-A: die wenigen neuen Regeln fuer Rechtliches (Reiter AGB,
 * gemeinsamer Fassungs-Baustein fuer AGB und AV-Vertrag) und die Karte
 * "AGB" im Angebots-Editor. Woertlich aus dem abgenommenen Prototyp
 * (docs/prototyp/agb/assets/agb.css); der Stapel .pulse-page-stack steht
 * zentral in style.css (Blueprint A.1.l). Farben nur ueber Tokens (Lint
 * no_low_contrast_text); Pillen, Karten, Tabellen und Knoepfe sind die
 * vorhandenen (status-pill, ang-karte, pulse-data-table,
 * pulse-action-button). */

/* Hinweis über einer Karte (Rückfall, deaktiviert) */
.agb-hinweis {
    margin: 0;
    padding: var(--space-3, 12px) var(--space-4, 16px);
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
    font-size: 13px;
    line-height: 1.5;
}
.agb-hinweis--rueckfall {
    border-color: var(--color-warning);
    background: var(--color-warning-soft);
}

/* Name in der Tabelle, "Alle Bereiche": Knopf im Aussehen eines Links */
.agb-link {
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.agb-link:hover { color: var(--color-brand-light); }
.agb-leise { color: var(--color-text-secondary); }
.agb-hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--color-text-secondary);
}
.agb-zurueck { margin: 0; }
.agb-entwurf { margin-top: var(--space-4, 16px); }

/* Runde 9c, M6/M7: gemeinsamer Fassungs-Baustein (rechtstext-fassungen.js).
 * Lese-Ansicht direkt unter dem Kopf, Verlauf eingeklappt (Klasse, nicht
 * [hidden]: Hausregel zur Kaskade), gezeigte Zeile mit dem Streifen-Muster
 * von .pulse-data-table__row--selected. */
.rt-lese {
    margin-top: var(--space-4, 16px);
    max-width: 78ch;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-primary);
}
.rt-lese p { margin: 0 0 10px; }
.rt-lese p > strong:only-child { display: block; margin-top: 14px; }
.rt-lese ul, .rt-lese ol { margin: 0 0 10px; padding-left: 20px; }
.rt-andere { margin-top: var(--space-4, 16px); }
.rt-leer { margin-top: var(--space-4, 16px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rt-leer p { margin: 0; }
.rt-verlauf__kopf {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--color-text-primary);
    cursor: pointer;
    text-align: left;
}
.rt-verlauf__titel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.rt-verlauf__pfeil { color: var(--color-text-secondary); display: inline-flex; }
.rt-verlauf__inhalt { margin-top: var(--space-4, 16px); }
.rt-verlauf:not(.is-offen) .rt-verlauf__inhalt { display: none; }
.pulse-data-table__row.rt-zeile--gezeigt { box-shadow: inset 3px 0 0 var(--color-brand-light); }
#rtKnoepfe { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Vorschau des Texts im Dialog: Überschriften sind fette Absätze */
.agb-text-vorschau { max-height: 60vh; overflow: auto; font-size: 13px; line-height: 1.55; }
.agb-text-vorschau p > strong:only-child { display: block; margin-top: 10px; }

/* Karte "AGB" im Angebot: Chips (status-pill als Knopf, Muster Tag-Wahl der Notizen) */
.agb-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 6px 0 4px; }
.agb-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border-strong);
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
    font-size: 13px;
    line-height: 1.25;
}
.agb-chip__kopf { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.agb-chip__unter { font-size: 12px; color: var(--color-text-secondary); }
.agb-chip--fest { border-style: dashed; }
.agb-chip--ohne { border-color: var(--color-warning); }
.agb-chip--ohne .agb-chip__unter { color: var(--color-warning); }
.agb-chip__weg {
    border: 0; background: none; padding: 0 2px; cursor: pointer;
    color: var(--color-text-secondary); font-size: 15px; line-height: 1;
}
.agb-chip__weg:hover { color: var(--color-text-primary); }
.agb-nachweis { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }

/* Einstellungen > Angebote: Hinweis am AGB-Link */
.agb-feld-hinweis { margin-top: 6px; font-size: 12px; color: var(--color-text-secondary); }

/* Rechtliches > AV-Vertrag, Kunden-Übersicht: Blättern ab 50 Kunden (G4). */
.avv-kunden-seiten { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: var(--space-3, 12px); }
.avv-kunden-seiten.is-leer { display: none; }
