/* Protokolle - Akzent und Sonderbausteine fuer den Bildschirm. Das gemeinsame Bild kommt aus firmen.css,
   der Ausdruck aus styles.css. Farben nur ueber die Variablen aus firmen.css - ausser dem Unterschriftenfeld und dem
   Platzhalter: beide sind Papier, hell in jedem Farbschema. */
:root {
  --g: linear-gradient(135deg, #a5b4fc 0%, #0e7490 60%, #083344 120%);
  --accent: #0891b2;
}

nav.tabs { flex-wrap: wrap; }
.muster { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); font-weight: 600; font-size: 14px; }
#gError { margin-bottom: 10px; }
.buttons { display: grid; margin-bottom: 12px; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kopf h3 { min-width: 0; overflow-wrap: anywhere; }
.kopf > .muted { white-space: nowrap; flex: none; }
.card p.muted { overflow-wrap: anywhere; line-height: 1.5; }
.card h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.card p.text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; margin-top: 8px; }
.liste { list-style: none; padding: 0; display: grid; gap: 0; }
.liste li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.liste li:first-child { border-top: 0; padding-top: 0; }
.liste li > span:first-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; flex: 1; }
.knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 48%; }
.badge.zu { color: var(--muted); }
.durch h3, .durch .angaben, .durch p.text { opacity: .6; text-decoration: line-through; }
.gespeichert { color: var(--ok); font-weight: 600; font-size: 14px; text-align: right; margin-top: 8px; }
.gespeichert.links-buendig { text-align: left; margin: 0 4px 10px; }
.beleg { border: 1px solid var(--border-stark); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin-top: 12px; }

/* Der Platzhalter fuer einen Text, den erst der Anwalt prueft: gelb, damit ihn niemand fuer den Wortlaut haelt */
.platzhalter { background: #fde047; color: #1c1917; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.platzhalter b { display: block; font-size: 13px; margin-bottom: 4px; }
.platzhalter p.text { margin-top: 0; }
.badge.platz { background: #fde047; color: #1c1917; border-color: #fde047; }

/* Suche ueber der Liste, Knopfreihe ueber dem Protokoll */
.planwahl { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.planwahl input { flex: 1; min-width: 180px; }
.planwahl button { flex: none; }

/* Die Angaben eines Protokolls, wenn sie nicht mehr zu aendern sind: Beschriftung links, Angabe rechts */
.angaben { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 14px; font-size: 14px; margin-top: 8px; }
.angaben dt { color: var(--muted); overflow-wrap: anywhere; }
.angaben dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pflicht { color: var(--off); }

/* Fotos: Kacheln, die sich die Breite teilen */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.fotos figure { margin: 0; display: grid; gap: 6px; align-content: start; }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: var(--border); }
.fotos figcaption { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.4; }
.vorschau { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; margin-bottom: 10px; }

/* Unterschriften: das Bild auf weissem Grund, darunter Name, Rolle und Zeitpunkt */
.zeichen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.zeichen > div { border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: grid; gap: 6px; align-content: start; font-size: 14px; }
.zeichen img { width: 100%; aspect-ratio: 3 / 1; object-fit: contain; background: #fff; border-radius: 6px; }
.zeichen .leer { aspect-ratio: 3 / 1; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--border-stark); border-radius: 6px; }
#signFeld { width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 1px solid var(--border-stark); border-radius: 10px; touch-action: none; cursor: crosshair; margin-bottom: 10px; }

label.haken { display: flex; align-items: center; gap: 8px; font-size: 14px; }
label.haken input { width: auto; flex: none; }
dialog { width: min(560px, calc(100vw - 24px)); }
dialog textarea, form.inline textarea { min-height: 96px; }
