* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  background: #f2f4f7;
  color: #1a1a1a;
}
#kopf {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px;
  background: #1f4e79; color: #fff;
}
#titel { color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; }
#sprachwahl { font-size: 16px; padding: 6px; border-radius: 6px; border: 0; }
main { max-width: 640px; margin: 0 auto; padding: 14px; padding-bottom: 80px; }
h1 { font-size: 24px; margin: 6px 0 4px; }
h2 { font-size: 19px; margin: 22px 0 8px; }
.unter { color: #555; margin: 0 0 14px; }
.karte { background: #fff; border-radius: 12px; padding: 14px; margin: 10px 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

button, .knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; margin: 10px 0; padding: 12px 16px;
  font-size: 19px; font-weight: 600; text-align: center; text-decoration: none;
  border: 0; border-radius: 12px; cursor: pointer;
  background: #1f4e79; color: #fff;
}
button:disabled { opacity: .45; }
.knopf.gross, button.gross { min-height: 84px; font-size: 22px; }
.gruen { background: #2e7d32; }
.orange { background: #e67e22; }
.rot { background: #c62828; }
.hell { background: #e3e8ef; color: #1a1a1a; }
.zurueck { width: auto; min-height: 0; padding: 6px 0; margin: 0 0 4px; background: none; color: #1f4e79; font-size: 17px; justify-content: flex-start; }
.symbol { font-size: 28px; line-height: 1; }

.liste-eintrag {
  display: block; width: 100%; text-align: left; justify-content: flex-start;
  background: #fff; color: #1a1a1a; box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.liste-eintrag small { display: block; font-weight: 400; color: #666; font-size: 15px; }

input[type=text], input[type=password], input[type=search], textarea, select.feld {
  width: 100%; font-size: 18px; padding: 12px; border: 2px solid #c5ccd6; border-radius: 10px; background: #fff;
}
textarea { min-height: 170px; resize: vertical; font-family: inherit; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; background: #fff; padding: 12px; border-radius: 10px; }
.check input { width: 28px; height: 28px; flex: none; }

.hinweis { background: #fff8e1; border-left: 4px solid #f9a825; padding: 10px 12px; border-radius: 6px; margin: 10px 0; }
.fehler { background: #fdecea; border-left: 4px solid #c62828; padding: 10px 12px; border-radius: 6px; margin: 10px 0; }
.ok { background: #e8f5e9; border-left: 4px solid #2e7d32; padding: 10px 12px; border-radius: 6px; margin: 10px 0; }
.status { min-height: 1.4em; color: #555; font-size: 16px; }

.sprachen button { min-height: 64px; font-size: 21px; }

#unterschrift {
  display: block; width: 100%; height: 220px;
  background: #fff; border: 2px dashed #8a96a8; border-radius: 10px; touch-action: none;
}
.dokument-text { white-space: pre-wrap; background: #fff; padding: 12px; border-radius: 10px; max-height: 50vh; overflow: auto; font-size: 16px; }

.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 8px 0; }
.fotos a, .fotos div { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #dde3ea; display: block; }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }

.aufnahme {
  width: 150px; height: 150px; border-radius: 50%; margin: 16px auto;
  font-size: 17px; flex-direction: column; gap: 4px; background: #c62828;
}
.aufnahme .symbol { font-size: 44px; }
.aufnahme.laeuft { animation: puls 1.2s infinite; background: #8e0000; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(198,40,40,.6); } 100% { box-shadow: 0 0 0 26px rgba(198,40,40,0); } }

.zeiten { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feld-zeit { width: 100%; font-size: 24px; padding: 10px; border: 2px solid #c5ccd6; border-radius: 10px; background: #fff; text-align: center; }
button.jetzt { min-height: 44px; font-size: 16px; margin: 6px 0 0; }
textarea.klein { min-height: 80px; }
.aufnahme-zeile { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.aufnahme-zeile audio { flex: 1; min-width: 0; }
button.mini { width: auto; min-height: 40px; font-size: 15px; margin: 0; padding: 6px 10px; }
.bericht audio { width: 100%; margin-top: 6px; }
.bericht dd { white-space: pre-wrap; }
.bericht dt { font-weight: 700; margin-top: 8px; }
.bericht dd { margin: 2px 0 0; }
.notiz { white-space: pre-wrap; border-left: 3px solid #c5ccd6; padding: 4px 10px; margin: 8px 0; font-size: 16px; }

#meldung {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  max-width: 92vw; padding: 12px 18px; border-radius: 10px;
  background: #222; color: #fff; font-size: 17px; z-index: 10; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
