/* Ein Arbeitsblatt auf der Baustelle: dieselben Farben und dieselbe Schrift wie die Akte. */
.doku-einstieg { display: grid; gap: 12px; margin: 20px 0; }
.doku-einstieg h3, .doku-einstieg p { margin: 0; }
.doku-blatt { max-width: 860px; margin: 0 auto; padding-bottom: 24px; }
.doku-blatt [hidden] { display: none !important; }
.doku-kopf { display: grid; gap: 12px; margin-bottom: 24px; }
.doku-kopf h2, .doku-kopf p { margin: 0; }
.doku-kopf h2 { font-size: 1.4rem; }
.doku-modus { display: flex; gap: 4px; padding: 4px; border-radius: var(--rund); background: var(--sand); }
.doku-modus button { flex: 1; }
.doku-modus button[aria-pressed="true"] { background: var(--flaeche); color: var(--primaer-tief); box-shadow: var(--schatten-s); font-weight: 700; }
.doku-blatt button, .doku-einstieg button, .doku-kamera { min-height: 44px; padding: 10px 16px; }
.doku-blatt button:focus-visible, .doku-kamera:focus-within, .doku-leitung-bild:focus-visible { outline: 3px solid var(--primaer); outline-offset: 3px; }
.doku-status { font-size: .9rem; color: var(--text-weich); }
.doku-status[data-zustand="wartend"], .doku-status[data-zustand="lokal"] { color: var(--warn); }
.doku-status[data-zustand="fehler"] { color: var(--gefahr); }
.doku-kontext { display: grid; gap: 8px; padding: 16px; border-radius: var(--rund); background: var(--sand); }
.doku-kontext label { margin: 0; }
.doku-kontext select { width: 100%; min-height: 44px; }
.doku-schritt { margin-top: 24px; }
.doku-schritt h3 { font-size: 1.25rem; margin: 0 0 8px; }
.doku-schritt > p { margin-top: 0; }
.doku-form { display: grid; gap: 16px; }
.doku-feld { display: grid; gap: 6px; margin: 0; color: var(--text); font-size: .96rem; font-weight: 600; }
.doku-feld input, .doku-feld select, .doku-feld textarea { width: 100%; min-height: 44px; font: inherit; font-weight: 400; padding: 12px; border: 1px solid var(--rahmen-stark); border-radius: var(--rund-s); background: var(--flaeche); color: var(--text); }
.doku-feld textarea { min-height: 100px; resize: vertical; }
.doku-feld input[type="checkbox"] { width: 24px; min-height: 24px; margin: 0; }
.doku-feld small { font-weight: 400; color: var(--text-weich); line-height: 1.45; }
.doku-feld .doku-diktat { justify-self: start; }
.doku-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doku-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.doku-karten { display: grid; gap: 8px; margin: 16px 0; }
.doku-karte { display: grid; gap: 6px; width: 100%; text-align: left; background: var(--flaeche); color: var(--text); border: 1px solid var(--rahmen-stark); border-radius: var(--rund); }
.doku-karte span { font-size: .9rem; color: var(--text-weich); }
.doku-karte[aria-current="step"] { border-left: 4px solid var(--primaer); }
.doku-phase { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.doku-phase button[aria-pressed="true"] { background: var(--primaer-hell); color: var(--primaer-tief); border-color: var(--primaer); }
.doku-kamera { display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--rund-s); background: var(--primaer); color: #fff; font-weight: 700; }
.doku-kamera input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.doku-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.doku-foto { margin: 0; }
.doku-foto img { width: 100%; max-height: 260px; object-fit: contain; background: var(--sand); border-radius: var(--rund-s); }
.doku-foto figcaption { font-size: .9rem; margin-top: 6px; overflow-wrap: anywhere; }
.doku-dokumentiertes-bild { display: block; width: 100%; border-radius: var(--rund-s); }
.doku-blatt summary { min-height: 44px; padding: 12px 0; cursor: pointer; }
.doku-leitung-bild { display: block; width: 100%; height: auto; touch-action: none; border-radius: var(--rund-s); background: var(--sand); cursor: crosshair; }
.doku-pruefpunkt { padding: 16px; background: var(--sand); border-radius: var(--rund); display: grid; gap: 12px; }
.doku-pruefpunkt h4 { margin: 0; }
.doku-antworten { display: flex; flex-wrap: wrap; gap: 6px; }
.doku-antworten button { flex: 1 1 90px; background: var(--flaeche); border: 1px solid var(--rahmen-stark); color: var(--text); border-radius: var(--rund-s); }
.doku-antworten button[aria-pressed="true"] { border: 2px solid var(--primaer); font-weight: 700; background: var(--primaer-hell); }
.doku-bestaetigung { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; line-height: 1.5; }
.doku-hinweis { padding: 12px 16px; border-radius: var(--rund-s); background: var(--warn-blass); color: var(--text); line-height: 1.5; }
.doku-fehler { color: var(--gefahr); white-space: pre-line; margin: 12px 0; }
.doku-fehler:empty { display: none; }
.doku-erfolg { color: var(--ok); margin: 12px 0; }
.doku-fortschritt { font-size: 1.4rem; font-weight: 700; }
.doku-bestand { display: grid; gap: 12px; }
.doku-bestand article { padding: 16px; background: var(--sand); border-radius: var(--rund); }
.doku-bestand h4, .doku-bestand p { margin: 0 0 8px; }
@media (max-width: 600px) {
  .doku-raster, .doku-fotos { grid-template-columns: 1fr; }
  .doku-blatt { padding: 0 0 24px; }
  .doku-aktionen > button { flex: 1 1 140px; }
}
