/* seiten-p1.css – /offerte/, /bewertung/, /newsletter/ (+ EN) (Agent «p1», Paket 1234, Version 20261113e)
   Grundbausteine: site.css §49 (dz-). Hier nur Ergänzungen mit Präfix of- (Offerte), bw- (Bewertung),
   nl- (Newsletter). Farben nur über Bereichs- und Tonvariablen (--akzent, --dz-*, --line, --muted, --dim).
   Am Ende: Kontrastmodus, Bewegung und die Druckansicht der Offerte (@media print). */

/* ---------- gemeinsam */
.of-kopf-text > *, .bw-kopf > *, .nl-kopf > *, .of-rf-kopf > *, .of-an-kopf > * { margin: 0; }
.of-kopf-text .eyebrow, .bw-kopf .eyebrow { margin-bottom: 6px; }
.bw-kopf, .nl-kopf, .of-rf-kopf, .of-an-kopf { display: grid; gap: 8px; }
/* Ladekreisel im Knopf auch ausserhalb von Formularen (Newsletter-Knöpfe, D.zustand «laden») */
.nl-aktion[data-dz-zustand="laden"] .dz-knopf-lader,
.of-annahme[data-dz-zustand="laden"] .dz-knopf-lader { display: inline-block; }
.nl-aktion[data-dz-zustand="laden"] [data-nl-knopf] { opacity: 0.7; cursor: progress; }
/* Checkbox-Texte mit Links: Links unterstrichen (nicht nur Farbe, WCAG 1.4.1) */
.of-an-form .check a, .bw-form .check a, .nl-form .check a { text-decoration: underline; text-underline-offset: 2px; }
.dz-pflicht-hinweis .req { font-weight: 700; }

/* Mehrere Karten im Inhalt (Offerte + Annahme + Rückfrage, Abmelden + Anmelden): gleicher Abstand wie .dz-seite.
   :not([hidden]), damit das hidden-Attribut wirksam bleibt. */
.of-seite > .dz-inhalt:not([hidden]), .bw-seite > .dz-inhalt:not([hidden]), .nl-seite > .dz-inhalt:not([hidden]) {
  display: grid; gap: clamp(18px, 2.4vw, 28px);
}

/* ---------- Offerte */
.of-offerte { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.of-offerte:empty { display: none; }
.of-karte .dz-karte-kopf .dz-abzeichen { margin-top: 4px; }
.of-banner { margin: 0; }
@media (min-width: 640px) {
  .of-werte { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .of-werte > div:nth-child(2) { border-top: 1px solid var(--line); }
}
.of-tabelle { margin-top: 4px; }
.of-zeilentext { white-space: pre-line; }
.dz-tabelle tr[data-art="titel"] .of-zeilentext { white-space: normal; }
.of-abschnitt { display: grid; gap: 10px; }
.of-abschnitt > * { margin: 0; }
.of-h3 { font-size: 1.02rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.of-liste { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink); }
.of-liste li { overflow-wrap: anywhere; white-space: pre-line; }
.of-liste li::marker { color: var(--akzent-text); }
.of-link-gueltig { margin: 0; font-size: 0.88rem; color: var(--dim); }
.of-druck-absender { display: none; }
.of-an-form { gap: 18px; }
.of-an-form textarea { min-height: 110px; }
.of-annahme .muted { max-width: 68ch; }
.of-rueckfrage { gap: 16px; }
.of-rueckfrage .form { padding-top: 6px; }
@media (max-width: 639px) {
  /* gestapelte Positionen: leere Zahlenzellen weglassen (sonst leere Rasterzelle) */
  .dz-tabelle--stapeln tbody td.of-leer { display: none; }
  /* Textzeilen und Total-Linie im gestapelten Modus: seit der Integration 20261113e zentral in site.css §49 */
  .of-an-form .actions .btn, .of-rueckfrage .actions .btn { width: 100%; }
}

/* ---------- Bewertung */
.bw-form { gap: 22px; }
.bw-form .dz-sterne-text { min-height: 1.5em; }
.bw-form .dz-zaehler { margin-top: -2px; }
.bw-danke:focus { outline: none; }
.bw-danke:focus-visible { outline: 3px solid var(--fokus); outline-offset: 4px; }

/* ---------- Newsletter */
.nl-form { gap: 22px; }
.nl-themen { display: grid; gap: 10px; }
.nl-themen > legend { margin-bottom: 4px; }
.nl-themen > .field-hint { margin: 0; }
.nl-themen-liste { display: grid; gap: 12px 24px; }
@media (min-width: 560px) { .nl-themen-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nl-themen-liste .check { min-height: 28px; align-items: center; }
.nl-themen:has([aria-invalid="true"]) .nl-themen-liste .check input { border-color: #ff9a8a; }
.nl-anmelden:focus { outline: none; }
.nl-anmelden:focus-visible { outline: 3px solid var(--fokus); outline-offset: 4px; }

/* ---------- Kontrast und Bewegung */
@media (forced-colors: active) {
  .of-liste li::marker { color: CanvasText; }
  .of-an-form .check a, .bw-form .check a, .nl-form .check a { color: LinkText; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-aktion .dz-knopf-lader, .of-annahme .dz-knopf-lader { animation: none; }
}

/* ---------- Druckansicht der Offerte (Knopf «Drucken oder als PDF speichern») */
@media print {
  @page { margin: 14mm 12mm; }
  .skip, .site-footer, main[data-seite="offerte"] .page-hero,
  .of-annahme, .of-rueckfrage, .of-fuss, .of-link-gueltig, .dz-lader,
  main[data-seite="offerte"] [data-dz-bereich] > .dz-meldung { display: none !important; }
  main[data-seite="offerte"] .section { padding: 0 !important; }
  main[data-seite="offerte"] .wrap { max-width: none; padding: 0; }
  .of-druck-absender { display: block !important; margin: 0 0 6mm; font-size: 9pt; color: #000 !important; }
  .of-karte { padding: 0 !important; border: 0 !important; gap: 5mm; }
  .of-karte .eyebrow, .of-h3, .of-liste, .of-liste li, .of-link-gueltig, .dz-banner-text p, .dz-banner-titel { color: #000 !important; }
  .of-liste li::marker { color: #000; }
  .dz-tabelle { font-size: 10pt; }
  .dz-tabelle caption { color: #000 !important; text-align: left; }
  .dz-tabelle thead { display: table-header-group; }
  .dz-tabelle tr, .of-abschnitt, .dz-banner { break-inside: avoid; page-break-inside: avoid; }
  .dz-tabelle th, .dz-tabelle td { border-bottom-color: #bbb !important; }
  .dz-tabelle tfoot tr.dz-total th, .dz-tabelle tfoot tr.dz-total td { border-top-color: #000 !important; }
  .dz-werte > div { border-color: #bbb !important; }
  .dz-abzeichen { border-color: #000 !important; background: none !important; }
}
