/* aufnahme.css - Handy/Tablet-Aufnahme (A1): große Bedienflächen, eine Spalte */
:root {
  --blau: #1f4e79; --blau-hell: #e7eff7; --text: #1b2430; --leise: #5b6875; --linie: #d5dde5;
  --gruen: #1e7a45; --gruen-hell: #e4f3ea; --rot: #a3261b; --rot-hell: #fbe6e3; --gelb-hell: #fbf0dc;
  --flaeche: #ffffff; --grund: #f4f6f8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); color: var(--text);
  font: 17px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
[hidden] { display: none !important; }

#kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; background: var(--blau); color: #fff; }
#kopfTitel { flex: 1; font-weight: 600; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopfknopf { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 22px;
  width: 44px; height: 40px; border-radius: 8px; }
.netz { font-size: 20px; color: #9fb3c8; }
.netz.online { color: #7be0a2; }

main { padding: 12px; max-width: 760px; margin: 0 auto; }
h2 { font-size: 20px; margin: 12px 0 6px; }
.hinweis { color: var(--leise); margin: 4px 0 12px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 12px; margin: 10px 0; }
.karte h3 { margin: 0 0 8px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.marke { font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.marke.ok { background: var(--gruen-hell); color: var(--gruen); }
.marke.fehlt { background: var(--rot-hell); color: var(--rot); }
.marke.frei { background: var(--blau-hell); color: var(--blau); }

label.feld { display: block; margin: 8px 0; font-size: 15px; color: var(--leise); }
label.feld input, label.feld select, label.feld textarea { display: block; width: 100%; margin-top: 4px; font: inherit;
  color: var(--text); padding: 10px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; }
textarea { min-height: 72px; resize: vertical; }

button.gross, a.gross { display: block; width: 100%; padding: 14px; margin: 8px 0; font: inherit; font-weight: 600;
  border-radius: 10px; border: 1px solid var(--blau); background: var(--blau); color: #fff; text-align: center; text-decoration: none; }
button.zweit { background: #fff; color: var(--blau); }
button.warn { background: #fff; color: var(--rot); border-color: var(--rot); }
button.klein { padding: 8px 12px; font: inherit; font-size: 15px; border-radius: 8px; border: 1px solid var(--linie); background: #fff; }

.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.foto { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #dfe5ea; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: 16px; }
.kamera { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; border-radius: 8px;
  border: 2px dashed var(--blau); color: var(--blau); background: var(--blau-hell); font-size: 15px; font-weight: 600;
  text-align: center; padding: 6px; }
.kamera input { display: none; }

.liste .eintrag { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.liste .eintrag div { min-width: 0; }
.liste .eintrag strong { display: block; }
.leise { color: var(--leise); font-size: 14px; }
.fehltliste { margin: 6px 0 0 18px; padding: 0; color: var(--rot); }

.beschr { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.beschr img { width: 110px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }

#fuss { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--linie); }
#fuss button { flex: 1; margin: 0; padding: 14px; font: inherit; font-weight: 700; border-radius: 10px;
  border: 2px solid var(--blau); background: #fff; color: var(--blau); }
#fuss button.vor { background: var(--blau); color: #fff; }

.meldung { position: fixed; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 9;
  background: #263238; color: #fff; padding: 12px 14px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.meldung.fehler { background: var(--rot); }
.balken { height: 6px; background: var(--linie); border-radius: 3px; overflow: hidden; margin: 6px 0; }
.balken > span { display: block; height: 100%; background: var(--gruen); }

/* Unterschriften (A2) */
.pad { display: block; width: 100%; height: 180px; margin-top: 8px; background: #fff; border: 2px dashed var(--blau);
  border-radius: 8px; touch-action: none; }
.padknoepfe { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.padknoepfe .haupt { background: var(--blau); color: #fff; border-color: var(--blau); font-weight: 600; }
details summary { cursor: pointer; color: var(--blau); font-weight: 600; padding: 6px 0; }
.doktext { white-space: pre-wrap; max-height: 45vh; overflow: auto; font-size: 15px; background: var(--grund);
  border: 1px solid var(--linie); border-radius: 8px; padding: 10px; }
img.sig { display: block; max-width: 100%; height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--linie);
  border-radius: 8px; margin: 6px 0; }

/* Sprachnotizen */
.ton { display: grid; gap: 6px; margin-top: 6px; }
.ton audio { width: 100%; }
[data-tonauf] { margin-top: 6px; width: 100%; padding: 12px; font-weight: 600; }
