:root {
  --grund: #0d1b3d; --knopf: #1e5bd8; --knopf-hell: #3b76f0; --rot: #e0263a; --gruen: #1f9d55;
  --text: #f4f6fb; --leise: #a9b4cf;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--grund); color: var(--text);
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
body { padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); }
[hidden] { display: none !important; }

main { display: flex; flex-direction: column; height: 100%; padding: 14px; gap: 12px; }
#knopf { flex: 1; width: 100%; border: 0; border-radius: 28px; background: var(--knopf); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  font-size: 1.6rem; font-weight: 600; touch-action: none; transition: background .12s, transform .12s;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); }
#knopf:active { transform: scale(.995); }
#knopf.aufnahme { background: var(--rot); animation: puls 1s ease-in-out infinite; }
#knopf.gespeichert { background: var(--gruen); }
#knopf.bereit-nicht { background: #475574; }
@keyframes puls { 50% { box-shadow: 0 0 0 18px rgba(224,38,58,.25); } }
.mikro { width: 72px; height: 112px; position: relative; }
.mikro::before { content: ""; position: absolute; left: 14px; top: 0; width: 44px; height: 70px; border-radius: 22px; background: #fff; }
.mikro::after { content: ""; position: absolute; left: 0; top: 34px; width: 64px; height: 50px; border: 6px solid #fff;
  border-top: 0; border-radius: 0 0 40px 40px; }
#dauer { font-variant-numeric: tabular-nums; font-size: 1.2rem; min-height: 1.4em; opacity: .9; }

#fotoleiste { display: flex; align-items: center; gap: 6px; min-height: 64px; }
#fotoleiste.mit-fotos #kamera { padding: 0 12px; }
#fotoleiste.mit-fotos .kameratext { display: none; }
#kamera { flex: none; height: 64px; padding: 0 18px; border: 0; border-radius: 18px; background: #24345e; color: var(--text);
  font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
#kamera:disabled { opacity: .45; }
.linse { width: 30px; height: 22px; border: 3px solid currentColor; border-radius: 6px; position: relative; }
.linse::after { content: ""; position: absolute; left: 6px; top: 2px; width: 10px; height: 10px; border: 3px solid currentColor; border-radius: 50%; }
#fotos { display: flex; gap: 6px; flex: 1; min-width: 48px; overflow-x: auto; }
#fotos img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; border: 2px solid #3b76f0; }
#fotos .laedt { width: 48px; height: 48px; border-radius: 10px; flex: none; background: #24345e; animation: blass 1s ease-in-out infinite; }
@keyframes blass { 50% { opacity: .4; } }
#nurfoto { flex: none; border: 0; border-radius: 14px; background: #24345e; color: var(--text); padding: 10px 12px; font-size: .9rem; }
#fotoweg { flex: none; border: 0; background: none; color: var(--leise); font-size: 1.5rem; padding: 0 4px; }
footer { min-height: 84px; }
#meldung { min-height: 1.4em; font-weight: 600; }
#letzte { color: var(--leise); font-size: .95rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zeile { display: flex; justify-content: space-between; align-items: center; color: var(--leise); font-size: .9rem; margin-top: 4px; }
#menue { background: none; border: 0; color: var(--leise); font-size: 1.6rem; padding: 0 6px; }

section { padding: 28px 22px; max-width: 520px; margin: 0 auto; -webkit-user-select: text; user-select: text; }
h1 { font-size: 2.2rem; margin: 10px 0 18px; }
button.gross, section button { display: block; width: 100%; margin: 12px 0; padding: 16px; font-size: 1.1rem; border-radius: 14px;
  border: 0; background: #24345e; color: var(--text); }
button.gross { background: var(--knopf); font-weight: 600; }
#anmeldestatus { color: var(--leise); }
