/* ==================================================================
 * angebote.css  (v5.23.0, Angebote Etappe B)
 *
 * Die wenigen Klassen des Moduls Angebote, fuer die Pulse keinen Baustein
 * hat. Alles andere kommt aus style.css (module-header, card, field, input,
 * pulse-segmented, switch-label, pulse-action-button, pulse-list-card).
 * Jede Klasse traegt das Praefix ang-. Farben und Abstaende kommen aus den
 * Tokens von Pulse. Einzige Ausnahme: die weisse Flaeche unter dem Logo in
 * den Einstellungen (.ang-logo), weil das dunkle Logo auf Weiss steht wie
 * auf dem Beleg.
 *
 *   .ang-editor     zweispaltiges Raster Formular | Vorschau. Pulse kennt
 *                   Detailseiten mit Seitenleiste, aber kein Raster mit
 *                   einer A4-Vorschau als zweiter Spalte.
 *   .ang-pos        eine Positionszeile mit Griff, Menge, Preis, Nachlass.
 *   .ang-summe      Summenzeile (Bezeichnung links, Betrag rechts).
 *   .ang-plan       eine Zeile des Zahlungsplans.
 *   .ang-laufzeit   der gemeinsame Laufzeit-Block (Einstellungen, Artikel,
 *                   Position).
 *   .ang-vorschau   die Spalte mit dem Beleg-Blatt.
 *   .ang-wahl       Trefferliste in Dialogen (Empfaenger, Artikel).
 *
 * Das Blatt selbst steht in beleg-blatt.css unter .pulse-beleg.
 * ================================================================== */
/* Die Spalten haengen an der Breite der Arbeitsflaeche, nicht des Fensters:
   das Hauptmenue laesst sich einklappen. */
.ang-rahmen { container-type: inline-size; }
.ang-editor { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-6, 24px); align-items: start; }
.ang-editor > div > .card { margin-bottom: var(--space-5, 20px); }
.ang-editor .field-fehler, .ang-fehler { color: var(--color-danger, #f87171); font-size: 12px; margin: 4px 0 0; }
.ang-fehler:empty { display: none; }
.ang-hinweis { margin: 0 0 var(--space-4, 16px); padding: 10px 14px; border-radius: var(--radius-md, 10px); border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12)); background: var(--color-surface-2, rgba(255, 255, 255, 0.03)); font-size: 13px; }
.ang-hinweis[hidden] { display: none; }
/* v5.25.0: die Hinweise zu PDF und Seitenueberlauf schalten ueber die
   Klasse (ein globales .is-hidden gibt es bewusst nicht). */
.ang-hinweis.is-hidden { display: none; }

.ang-pos { border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08)); border-radius: var(--radius-md, 10px); padding: 10px 12px; margin-bottom: 8px; background: var(--color-surface-2, rgba(255, 255, 255, 0.02)); }
.ang-pos__reihe { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 34px; gap: 8px; align-items: center; }
.ang-pos__griff { cursor: grab; display: inline-flex; color: var(--color-text-muted); }
.ang-pos__betrag { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; min-width: 96px; }
.ang-pos__zahlen { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0 30px; }
.ang-pos__feld { display: grid; gap: 6px; font-size: var(--text-xs, 12px); font-weight: 500; color: var(--color-text-secondary); }
.ang-pos__feld .input { width: 112px; }
.ang-pos__zusatz { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 10px 0 0 30px; }
/* Haken mit Beschriftung: Pulse setzt .switch-label je Stelle per Inline-Stil. */
.ang-editor .switch-label, .ang-laufzeit .switch-label, .switch-label.ang-dialog-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ang-pos__text { margin: 6px 0 0 30px; font-size: 12px; color: var(--color-text-muted); }
.ang-pos__text:empty { display: none; }
.ang-pos__mehr { margin: 10px 0 0 30px; display: grid; gap: 8px; }
.ang-pos__mehr[hidden] { display: none; }
.ang-pos--titel { background: transparent; border-style: dashed; }
.ang-pos--titel .ang-pos__betrag { font-weight: 400; }
.ang-pos.sortable-ghost { opacity: 0.4; }
.ang-pos .input.is-fehler, .ang-plan .input.is-fehler, .ang-laufzeit .input.is-fehler { border-color: var(--color-danger, #f87171); }
.ang-liste-aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.ang-summe { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.ang-summe--gesamt { font-weight: 600; border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.12)); margin-top: 4px; padding-top: 8px; }
.ang-summen-titel { margin: 16px 0 4px; font-size: var(--text-sm, 14px); font-weight: 600; color: var(--color-text-primary); }
.ang-summen-titel:first-child { margin-top: 0; }

/* Zahlungsplan (v5.24.0, frei): Griff, Bezeichnung, Faelligkeit, Prozent,
   Betrag, Entfernen. Die letzte Zeile zeigt statt des Prozentfelds den Rest. */
.ang-plan { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.15fr) 96px 110px 32px; gap: 8px; align-items: center; margin-bottom: 6px; }
.ang-plan--ohne-betrag { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.15fr) 96px 32px; }
.ang-plan-vorlage { margin-bottom: var(--space-4, 16px); }
.ang-plan-kopf { margin-bottom: 2px; }
.ang-plan-kopf .leads-group-form-label { margin: 0; }
.ang-plan-kopf__betrag { text-align: right; }
.ang-plan__rest { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; box-sizing: border-box; padding: 0 10px; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-md, 10px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ang-plan__rest small { font-size: 11px; color: var(--color-text-muted); }
.ang-plan__rest.is-fehler { border-color: var(--color-danger, #f87171); }
.ang-plan-fuss { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.ang-plan-summe { margin: 0; font-size: var(--text-xs, 12px); }
.ang-plan-summe.is-ok { color: var(--color-success, #4ade80); }
.ang-plan-summe.is-hinweis { color: var(--color-warning, #fbbf24); }
.ang-plan-summe.is-fehler { color: var(--color-danger, #f87171); }

/* Laufzeit-Block: vier Zahlenfelder in einer Reihe, darunter die
   Sonderkuendigung und der fertige Satz. */
.ang-laufzeit { display: grid; gap: 10px; }
.ang-laufzeit[hidden] { display: none; }
.ang-laufzeit__reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ang-laufzeit__sonder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ang-laufzeit__sonder .input { width: 72px; }
.ang-laufzeit__sonder-felder { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ang-laufzeit__sonder-felder[hidden] { display: none; }
.ang-laufzeit__text { margin: 0; font-size: 12px; color: var(--color-text-muted); }
.ang-laufzeit__text:empty { display: none; }

/* Vorschau: klebt beim Scrollen, das Blatt wird auf die Spaltenbreite
   gezoomt. Der Rahmen ist die Unterlage des weissen Blatts. */
.ang-vorschau { position: sticky; top: 96px; }
.ang-vorschau__blatt { max-height: calc(100vh - 230px); overflow: auto; border-radius: var(--radius-md, 10px); background: var(--color-surface-2, rgba(255, 255, 255, 0.06)); padding: 12px; }
.ang-vorschau__blatt .pulse-beleg { display: grid; gap: 12px; }

/* Trefferliste in Dialogen und auf der Anlege-Seite. */
.ang-wahl { max-height: 52vh; overflow: auto; }
.ang-wahl__zeile { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08)); }
.ang-wahl__zeile:last-child { border-bottom: 0; }
.ang-wahl__text { min-width: 0; overflow-wrap: anywhere; }
.ang-wahl__rechts { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ang-neu { max-width: 720px; }
.ang-neu__gewaehlt { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }

.ang-dialog-reihe { display: flex; gap: 12px; margin-top: 10px; }
.ang-dialog-reihe > div { flex: 1 1 0; min-width: 0; }
.ang-dialog-label { margin-top: 10px; }
.ang-dialog-label[hidden] { display: none; }
.ang-zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Einstellungen: Logo auf weisser Flaeche, wie es auf dem Beleg steht. */
.ang-logo { background: #fff; border-radius: var(--radius-md, 10px); padding: 18px 22px; min-height: 92px; display: flex; align-items: center; }
.ang-logo img { height: 56px; width: auto; display: block; }
.ang-logo span { color: #4a5068; font-size: 13px; }
.ang-logo-aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ang-abschnitt { margin-bottom: var(--space-5, 20px); }

@container (max-width: 980px) {
    .ang-editor { grid-template-columns: minmax(0, 1fr); }
    .ang-vorschau { position: static; }
}
@media (max-width: 720px) {
    .ang-laufzeit__reihe { grid-template-columns: 1fr; }
}

/* ==================================================================
 * v5.24.0 (Etappe B2): Design-Durchgang nach dem Vorbild des Posteingangs.
 * Ruhige Karten mit einem Abschnittskopf (Icon, Titel, Unterzeile), EINE
 * Beschriftungsart (.leads-group-form-label wie in den Pulse-Dialogen),
 * gleich hohe Felder. Farben nur aus den Tokens.
 * ================================================================== */

/* Kopfzeile: das Muster der Detailseiten (Projekt, Vertrag). Titel und
   Aktionen stehen in EINER Reihe, darunter Status, Fassung und Firma. */
.ang-kopfzeile .lead-detail__header-actions { flex-wrap: wrap; justify-content: flex-end; }
/* v5.25.0: mit Festschreiben und Senden stehen bis zu fuenf Knoepfe im Kopf.
 * Die Knopfreihe darf schrumpfen und bricht dann um; der Titel behaelt seinen
 * Platz (sonst lief die Reihe bei 1024 Pixel seitlich aus dem Fenster). */
.ang-kopfzeile .lead-detail__header-actions { flex-shrink: 1; min-width: 0; }
.ang-kopfzeile .lead-detail__title-block { min-width: min(240px, 40%); }
.ang-kopfzeile .customer-detail__kdnr-badge { gap: 6px; }
.ang-kopfzeile__meta { justify-content: space-between; }
.ang-kopfzeile__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0; }
.ang-kopfzeile__teil { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--text-sm, 14px); color: var(--color-text-tertiary); }
.ang-kopfzeile__teil svg { flex: 0 0 auto; color: var(--color-text-muted); }
.ang-kopfzeile__stand { font-size: var(--text-xs, 12px); color: var(--color-text-muted); white-space: nowrap; }
.ang-kopfzeile__stand.is-offen { color: var(--color-warning); }

/* Abschnittskopf: Icon, Titel, Unterzeile. */
.ang-kopf { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--space-4, 16px); }
.ang-kopf--zweizeilig { align-items: flex-start; }
.ang-kopf--zweizeilig .ang-kopf__icon { margin-top: 3px; }
.ang-kopf__icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--radius-md, 10px); display: inline-flex; align-items: center; justify-content: center; background: var(--color-brand-glow); color: var(--color-brand-light); }
:root[data-theme="light"] .ang-kopf__icon { color: var(--color-brand-primary); }
.ang-kopf__text { flex: 1 1 auto; min-width: 0; }
.ang-kopf .card-title { margin: 0; line-height: 1.3; }
.ang-kopf .card-subtitle { margin: 2px 0 0; line-height: 1.45; }
.ang-kopf__rechts { flex: 0 0 auto; }
.ang-kopf--klein { gap: 10px; margin-bottom: var(--space-3, 12px); }
.ang-kopf--klein .ang-kopf__icon { width: 28px; height: 28px; border-radius: var(--radius-sm, 8px); }
.ang-kopf--klein .card-title { font-size: var(--text-base, 15px) !important; }
.ang-kopf--klein .card-subtitle { font-size: var(--text-xs, 12px); }

/* Felder: zwei Spalten, Beschriftung darueber, alle Felder gleich hoch. */
.ang-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4, 16px) var(--space-5, 20px); align-items: start; }
.ang-raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ang-feld { min-width: 0; }
.ang-feld--breit { grid-column: 1 / -1; }
.ang-karte > .ang-feld + .ang-feld, .ang-dialog-abschnitt > .ang-feld + .ang-feld,
.ang-dialog-abschnitt > .ang-feld + .ang-raster, .ang-dialog-abschnitt > .ang-raster + .ang-feld { margin-top: var(--space-4, 16px); }
.ang-feld__hilfe { margin: 6px 0 0; font-size: var(--text-xs, 12px); line-height: 1.45; color: var(--color-text-muted); }
.ang-form .leads-group-form-label, .ang-dialog .leads-group-form-label, .ang-einstellungen .leads-group-form-label { font-size: var(--text-xs, 12px); font-weight: 500; margin-bottom: 6px; }
.ang-form .input, .ang-dialog .input { width: 100%; box-sizing: border-box; }
.ang-form .ang-pos__feld .input { width: 112px; }
.ang-form .ang-laufzeit__sonder .input, .ang-dialog .ang-laufzeit__sonder .input { width: 72px; }
.ang-form .ang-plan .input { width: 100%; }
.ang-form [data-pgd-wrap], .ang-dialog [data-pgd-wrap] { display: block; width: 100%; }
.ang-form .pulse-glass-dropdown-trigger, .ang-dialog .pulse-glass-dropdown-trigger,
.ang-form .pulse-glass-datepicker__trigger { width: 100%; min-height: 44px; box-sizing: border-box; border-radius: var(--radius-md, 10px); }
.ang-form textarea.input, .ang-dialog textarea.input { resize: vertical; }

/* Empfaenger: die gewaehlte Firma als ruhige Zeile, oder die Objektsuche. */
.ang-empf { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: var(--space-4, 16px); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md, 10px); background: var(--color-surface-2, rgba(255, 255, 255, 0.03)); }
.ang-empf__icon { flex: 0 0 auto; display: inline-flex; color: var(--color-text-muted); }
.ang-empf__text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ang-empf__text .muted { font-size: var(--text-xs, 12px); margin-top: 2px; }
.ang-empf-suche { margin-bottom: var(--space-4, 16px); }
.ang-empf-suche .pulse-kalender__lp-results { max-height: 300px; }

/* Vorschau: Seitenzahl rechts im Abschnittskopf. */
.ang-vorschau .ang-kopf { margin-bottom: var(--space-3, 12px); }

/* Dialoge des Moduls (Artikel): Abschnitte mit Kopf, zwei Spalten. */
.ang-dialog { align-items: start; }
.ang-dialog-abschnitt + .ang-dialog-abschnitt { margin-top: var(--space-5, 20px); padding-top: var(--space-5, 20px); border-top: 1px solid var(--color-border-strong); }
.ang-dialog-abschnitt[hidden] { display: none; }
.ang-dialog .ang-fehler { grid-column: 1 / -1; }
.ang-dialog__schalter { margin-top: var(--space-4, 16px); }

@container (max-width: 560px) {
    .ang-form .ang-raster { grid-template-columns: minmax(0, 1fr); }
    .ang-plan-kopf { display: none; }
    .ang-plan, .ang-plan--ohne-betrag { grid-template-columns: 20px minmax(0, 1fr) 96px 32px; }
    .ang-plan [data-p="wann"] { grid-column: 2 / 4; grid-row: 2; }
    .ang-plan [data-plan-betrag] { grid-column: 2 / 4; grid-row: 3; text-align: left; }
}
@media (max-width: 720px) {
    .ang-raster, .ang-raster--3 { grid-template-columns: minmax(0, 1fr); }
}

/* v5.25.0 (Etappe C): Reiter "Angebote" in Lead- und Kundenakte
 * (akte-angebote.js). Die PDF-Knoepfe je Fassung stehen rechts in einer
 * Reihe und brechen bei Platzmangel um. */
.ang-akte-pdf { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ang-akte-pdf .btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ang-akte-laedt { padding: 6px 0; }
/* v5.25.1: drei Spalten statt sechs. Der Betreff bricht auch mitten in einem
 * langen Wort um, damit er die Spalte nicht breiter macht als die Karte. */
.ang-akte-betreff { overflow-wrap: anywhere; }
.ang-akte-status { margin: 4px 0 2px; }
/* v6.0.1: Karte nach Prototyp (seite-lead.js): Titel und Untertitel links,
 * "Angebot erstellen" rechts; im Prototyp ein style-Attribut. */
.ang-akte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ang-akte-pdf .pulse-action-button { white-space: nowrap; }
.ang-akte-umsetzung { margin-top: 6px; }
/* Die Fassungen-Karte des Editors: die Tabelle fuellt die Karte. */
#edFassungen .btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* v5.26.0 (Etappe D): Karte "Online und Rueckmeldungen" im Editor und das
 * Formular "Status von Hand setzen". Nur vorhandene Tokens, kein neuer
 * Farbton. */
.ang-online { display: flex; flex-direction: column; gap: 14px; }
.ang-online__block { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08)); }
.ang-online__block:last-child { border-bottom: 0; padding-bottom: 0; }
.ang-online__titel { font-weight: 600; font-size: 13px; }
.ang-online__link { font-size: 13px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.ang-online__knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.ang-online__knoepfe .btn { display: inline-flex; align-items: center; gap: 4px; }
.ang-online__zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.ang-online__zeile span { color: var(--color-text-muted); }
.ang-online__zeile b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.ang-online__nachweis summary { cursor: pointer; font-size: 13px; color: var(--color-text-muted); margin: 4px 0; }
.ang-online__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ang-online__zeit { color: var(--color-text-muted); }
/* v6.0.3: Stand einer Kundenfrage (Knopf "Frage erledigt" oder Pille "Erledigt"). */
.ang-online__frage { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2, 8px); margin-top: var(--space-1, 4px); }
.ang-online__text { display: block; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; color: var(--color-text-muted); }
.ang-status { display: flex; flex-direction: column; gap: 12px; }
.ang-status__feld.is-hidden { display: none; }

/* Rechnungen R-B: Abstaende und Raster der Rechnungs-Seiten (Liste, Plan an
   Projekt und Vertrag, Akte, Dialoge, Einstellungen). Keine eigenen Farben:
   alles aus den Bausteinen, hier nur Lage und Abstand (Prototyp Rechnungen,
   dort als Inline-Stil). */
.ang-re-hinweis { margin: 0 0 10px; }
.ang-re-hinweis.is-hidden { display: none; }
.ang-re-unter { margin-top: 4px; }
.ang-re-panel { margin-top: 16px; }
.ang-re-label { margin-right: 6px; }
.ang-re-auswahl { display: inline-block; min-width: 220px; }
/* R-N: zwei Felder (Abrechnung, Automatik) im Kopf der Rechnungssteuerung
   brechen um, statt die Seite breiter zu machen; Knopf und Zeilenmenue einer
   Rate stehen nebeneinander. */
.ang-re-auswahl--schmal { min-width: 150px; }
.ang-re-paar { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-right: 8px; }
.ang-re-panel > .lead-detail-card__header { flex-wrap: wrap; gap: 8px; }
.ang-re-panel > .lead-detail-card__header .lead-detail-card__header-actions { flex-wrap: wrap; row-gap: 8px; min-width: 0; }
.ang-re-aktionen { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
/* Im schmalen Fenster scrollt die Ratentabelle seitlich; die Aktionen bleiben
   dabei rechts stehen, damit "Rechnung jetzt erstellen" immer erreichbar ist. */
@media (max-width: 1280px) {
    .ang-re-plan .pulse-data-table__td:last-child, .ang-re-plan .pulse-data-table__th:last-child {
        position: sticky; right: 0; z-index: 1; background: var(--color-bg-base); }
    .ang-re-plan .ang-re-datum { min-width: 140px; }
    .ang-re-plan .ang-re-aktionen .pulse-action-button { white-space: normal; text-align: left; max-width: 130px; height: auto; }
    .ang-re-plan .ang-re-aktionen .pulse-action-button__label { white-space: normal; }
}
.ang-re-text { margin: 0 0 12px; }
.ang-re-text--unten { margin: 12px 0 0; }
.ang-re-datum { min-width: 170px; }
.ang-re-steuer { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ang-re-steuer__zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ang-re-steuer__hilfe { margin: 6px 0 0; font-size: 12px; }
.ang-re-knoepfe { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ang-re-filter { margin-bottom: 12px; }
/* R-D-C: die Filter-Pillen "Zahlung" der Vertrags- und Projektliste (nur mit
   Zahlen aus Rechnungen). */
.ang-re-filter.is-hidden { display: none; }
.ang-re-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.ang-re-abschnitt { margin-top: 12px; }
.ang-re-wahl { display: flex; justify-content: space-between; gap: 12px; }
.ang-re-summe { margin: 8px 0 0; }
/* R-D-B: Lage des Vertrags unter dem Zahlen-Kopf und die Liste "Fehlende
   Monate" (Prototyp seite-plan.js, dort inline). */
.ang-re-lage { margin: 8px 0 0; }
.ang-re-fehlt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0;
    border-bottom: 1px solid var(--color-border); }
.ang-re-fehlt__monat { min-width: 150px; }
.ang-re-fehlt__grund { flex: 1; }
.ang-re-grund { width: 100%; }
/* R-D-B-1: Hinweise der Vorschau und das Angebot "Vertragsbeginn auf <Monat>
   setzen" im Dialog "zuordnen" (Prototyp seite-bestand.js, dort inline). */
.ang-re-hinweise { margin-top: 10px; }
.ang-re-hinweise p { margin: 0 0 6px; }
.ang-re-angebot { margin-top: 8px; }
.ang-re-angebot.is-hidden { display: none; }

/* Rechnungen R-C: das eingebettete PDF im Dialog "Rechnung stellen" (Prototyp
   dialoge.js pdfRahmen, dort inline): Rahmen, Wasserzeichen ENTWURF ueber dem
   Entwurfs-PDF, darunter die Ablageorte nach dem Festschreiben. */
.ang-re-pdf { position: relative; height: 430px; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); overflow: hidden; background: var(--color-border); }
.ang-re-pdf__rahmen { width: 100%; height: 100%; border: 0; display: block; }
.ang-re-pdf__zeichen { position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; pointer-events: none; }
.ang-re-pdf__zeichen span { transform: rotate(-28deg); font-size: 84px; font-weight: 700;
    letter-spacing: .12em; color: var(--color-danger); opacity: .22; }
.ang-re-pdf__fuss { margin: 6px 0 0; font-size: 12px; }
.ang-re-warnung { margin: 0 0 14px; }
.ang-re-orte { list-style: none; padding: 0; margin: 0; }
.ang-re-orte li { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.ang-re-liste { margin: 6px 0 0; padding-left: 18px; }
/* Rechnungen R-D-C-3: der Mailtext in "Festschreiben und senden" (Klartext). */
.ang-re-mailtext { white-space: pre-wrap; margin: 0; padding: 10px 12px; font: inherit;
    color: var(--color-text-primary); border: 1px solid var(--color-border);
    border-radius: 8px; max-height: 220px; overflow: auto; }
