/* Brief per Post mit Antrag (0306) – Kasten im Reiter „Dateien“ der Kundenakte */
.pb { border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); padding: 12px; display: grid; gap: 10px; margin-bottom: 10px; }
.pb-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pb-titel { font-weight: 700; color: var(--nav); font-size: 14px; }
.pb-modus { font-size: 11.5px; border-radius: 999px; padding: 2px 8px; background: #eef0f3; color: var(--text-leise); white-space: nowrap; }
.pb-modus.an { background: #dcfce7; color: #166534; }
.pb-modus.test { background: #fef3c7; color: #92400e; }
.pb-feld { display: grid; gap: 4px; font-size: 12px; color: var(--text-leise); }
.pb-absender { height: 32px; border: 1px solid var(--feldrand); border-radius: 8px; padding: 0 8px; background: #fff; color: var(--text); font-size: 13px; }
.pb-zone { border: 2px dashed var(--feldrand); border-radius: 10px; padding: 14px; display: grid; gap: 4px; text-align: center; cursor: pointer; background: var(--kopf); }
.pb-zone b { color: var(--navy-text); }
.pb-zone span { font-size: 12px; color: var(--text-leise); }
.pb-zone.ueber, .pb-zone:hover { border-color: var(--nav); background: var(--nav-soft); }
.pb-zone.laeuft { cursor: progress; border-style: solid; border-color: var(--blau); background: var(--tab-aktiv); }
.pb-vorschau { border: 1.5px solid var(--nav); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; background: #fff; }
.pb-v-titel { font-weight: 700; font-size: 12.5px; color: var(--navy-text); }
.pb-v-zeile { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; font-size: 12.5px; }
.pb-v-zeile span { color: var(--text-leise); }
.pb-v-zeile b { font-weight: 600; overflow-wrap: anywhere; }
.pb-warn { margin: 2px 0; padding: 6px 8px 6px 22px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; font-size: 12px; color: #78350f; display: grid; gap: 3px; }
.pb-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-frage { display: grid; gap: 8px; padding: 8px; border-radius: 8px; background: var(--nav-soft); font-size: 12.5px; font-weight: 600; color: var(--nav-dunkel); }
.pb-meine { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 12px; color: var(--text-leise); }
.pb-link { border: 0; background: none; padding: 0; color: var(--blau); font-size: 12px; text-decoration: underline; }
.pb-unterschrift { display: grid; gap: 6px; }
.pb-padrahmen { position: relative; border: 1px solid var(--feldrand); border-radius: 8px; background: #fff; max-width: 680px; touch-action: none; }
.pb-pad { display: block; touch-action: none; cursor: crosshair; }
.pb-linie { position: absolute; left: 8%; right: 8%; bottom: 26%; border-bottom: 1px dashed #c3cad6; pointer-events: none; }
.pb-hilfe { font-size: 12px; color: var(--text-leise); }
.pb-fehler { font-size: 12px; color: var(--warn-text); }
.pb-liste { display: grid; gap: 4px; border-top: 1px solid var(--linie); padding-top: 8px; }
.pb-brief { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.pb-brief-t { flex: 1; min-width: 0; color: var(--text-leise); overflow-wrap: anywhere; }
.pb-status { font-size: 11px; border-radius: 999px; padding: 1px 7px; background: #eef0f3; white-space: nowrap; }
.pb-status.GESENDET { background: #dcfce7; color: #166534; }
.pb-status.FEHLER { background: #fee2e2; color: #991b1b; }
.pb-status.VORSCHAU, .pb-status.SENDET { background: #e0e7ff; color: #3730a3; }
.pb-status.GEPLANT { background: #fef3c7; color: #92400e; } /* 0343: nachts geplant, geht um 8 Uhr raus */
.ikon.posthorn { color: #b45309; } /* Brief per Post – gleiche Farbe wie im Verlauf */
a.pb-qr { text-decoration: none; cursor: pointer; } a.pb-qr:hover { text-decoration: underline; }
/* 0313: „Kundenansicht“ ist ein Link im Knopf-Stil */
.pb a.knopf { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* 0314: Vorschaubilder der Briefseiten und IBAN-Frage (Zahn/DKV) */
.pb-bilder { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scroll-snap-type: x proximity; }
.pb-bild { flex: 0 0 auto; display: grid; gap: 2px; justify-items: center; border: 1px solid var(--feldrand); border-radius: 6px; background: #fff; padding: 3px; cursor: zoom-in; scroll-snap-align: start; }
.pb-bild img { display: block; height: 190px; width: auto; border-radius: 3px; background: #f4f6f8; }
.pb-bild span { font-size: 11px; color: var(--text-leise); }
.pb-bild:hover, .pb-bild:focus-visible { border-color: var(--nav); }
.pb-iban { display: grid; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid #f59e0b; background: #fffbeb; font-size: 12.5px; color: #78350f; }
.pb-iban b { color: #78350f; }
.pb-iban.ok { border: 1px solid var(--linie); background: var(--kopf); color: var(--text); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
/* Thomas 28.10.: „soll hier nicht so weit nach rechts gehen“ – der Kasten bleibt in der Spaltenbreite; nur die Seitenbilder scrollen quer */
.pb, .pb-vorschau { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pb > *, .pb-vorschau > * { min-width: 0; max-width: 100%; }
.pb-bilder { max-width: 100%; }
.pb-iban.ok > span, .pb-meine > span { min-width: 0; overflow-wrap: anywhere; }
.pb-padrahmen { width: 100%; }
.pb-mehrere { display: grid; gap: 4px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid #16a34a; background: #f0fdf4; font-size: 12.5px; color: #14532d; }
.pb-mehrere ol { margin: 0; padding-left: 20px; } .pb-mehrere li { font-weight: 600; } .pb-mehrere span { font-size: 12px; }

/* 0353 Rubrik „Unterschriftenlink versenden“ (unterschriftlink.js) */
.ul-overlay { z-index: 9100; }
.ul-box { max-width: 760px; min-height: min(560px, calc(100dvh - 32px)); align-content: start; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 18px 20px; border-width: 2px; box-sizing: border-box; }
.ul-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ul-kopf h2 { margin: 0; font-size: 20px; }
.ul-hilfe { margin: 0; font-size: 13px; color: var(--af-mute, #57606a); }
.ul-form { display: grid; gap: 6px; }
.ul-form label { font-weight: 700; font-size: 13px; margin-top: 4px; }
.ul-form input[type=text], .ul-form input[type=tel] { font: inherit; padding: 8px 10px; border: 1px solid #d0d7de; border-radius: 8px; width: 100%; box-sizing: border-box; }
.ul-knoepfe { display: flex; gap: 8px; margin-top: 6px; }
.ul-meldung { color: #b42318; font-weight: 600; margin: 2px 0 0; min-height: 0; }
.ul-meldung:empty { display: none; }
.ul-kunde { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: #f6f8fa; border-radius: 8px; margin-bottom: 8px; }
.ul-kunde .af-knopf { margin-left: auto; }

/* 0354 Zusatz für den Kunden */
.pb-hinweis { display: grid; gap: 4px; margin: 8px 0 4px; }
.pb-hinweis-text { font: inherit; padding: 6px 8px; border: 1px solid #d0d7de; border-radius: 8px; resize: vertical; width: 100%; box-sizing: border-box; }
.pb-hinweis-stand { font-size: 12px; color: #57606a; min-height: 1em; }

.pb-hinweis-vorschau { font-size: 12px; color: #1a7f37; }
.ul-vertrag { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid #d0d7de; border-radius: 8px; margin-bottom: 8px; }
.ul-vertrag label { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.ul-vertrag label > span:first-child { font-weight: 700; min-width: 70px; }
.ul-vertrag select { font: inherit; padding: 4px 6px; border-radius: 6px; border: 1px solid #d0d7de; }
.ul-prov span { font-weight: 400 !important; }
.ka-box textarea { font: inherit; padding: 8px 10px; border: 1px solid #d0d7de; border-radius: 8px; width: 100%; box-sizing: border-box; resize: vertical; }
.pb-weg { align-items: center; }
.pb-weg > span { font-weight: 700; }
