:root {
  --hg: #f4f6f4; --karte: #ffffff; --text: #1a1f1b; --grau: #6b746d; --rand: #d9dfd9;
  --gruen: #2f9e44; --gruen-text: #ffffff; --rot: #c92a2a; --feld: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --hg: #121512; --karte: #1c211d; --text: #eef2ee; --grau: #98a39a; --rand: #323a33; --feld: #151915; --rot: #ff6b6b; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--hg); color: var(--text);
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.app { max-width: 520px; margin: 0 auto; min-height: 100vh;
  padding: calc(14px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 18px; margin: 24px 0 8px; }
.kopf { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 8px; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.klein { font-size: 14px; color: var(--grau); margin: 6px 0 0; }
.fehler { color: var(--rot); font-size: 15px; margin: 8px 0; }
.hinweis { background: #fff3bf; color: #5c4a00; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 15px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=tel], textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--rand); border-radius: 12px; background: var(--feld); color: var(--text); }
textarea { resize: none; display: block; }
button { font: inherit; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--rand);
  background: var(--karte); color: var(--text); cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button.gross { width: 100%; min-height: 56px; font-size: 18px; font-weight: 600; }
button.gruen { background: var(--gruen); border-color: var(--gruen); color: var(--gruen-text); }
button.link { border: 0; background: none; color: var(--gruen); padding: 0 8px; }
button.rot { border: 0; background: none; color: var(--rot); min-height: 44px; font-size: 15px; }
button.icon { border: 0; background: none; font-size: 24px; min-width: 48px; }
.zeile { display: flex; gap: 10px; }
.zeile > * { flex: 1; }
.zeile.eng { align-items: center; }
.zeile .fest { flex: 0 0 auto; }
.umschalter { display: flex; gap: 6px; margin-top: 8px; }
.umschalter button { flex: 1; padding: 0 6px; font-size: 15px; }
.umschalter button.an { background: var(--gruen); border-color: var(--gruen); color: var(--gruen-text); font-weight: 600; }
.vorschau { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vorschau .bild { position: relative; width: 72px; height: 72px; }
.vorschau img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.vorschau .weg { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; min-height: 28px; padding: 0;
  border-radius: 50%; background: var(--rot); border: 2px solid var(--karte); color: #fff; font-size: 16px; line-height: 1; }
.versteckt { display: none !important; }
.reiter { display: flex; gap: 6px; margin-bottom: 10px; }
.reiter button { flex: 1; }
.reiter button.an { background: var(--gruen); border-color: var(--gruen); color: var(--gruen-text); font-weight: 600; }
.eintrag { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 8px; text-align: left; margin-bottom: 8px; }
.eintrag img, .eintrag .leer { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: 0 0 48px; background: var(--rand); }
.eintrag .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintrag .p { color: var(--grau); font-size: 15px; white-space: nowrap; }
.leiste { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px -16px 12px; padding: 0 16px; }
.leiste img { height: 220px; width: auto; max-width: 85%; border-radius: 12px; scroll-snap-align: start; flex: 0 0 auto; object-fit: cover; }
.feldkopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feldkopf label { margin: 14px 0 6px; }
.feldkopf button { min-height: 40px; margin-top: 8px; }
.zaehler { font-size: 14px; color: var(--grau); }
.laden { text-align: center; padding: 40px 10px; color: var(--grau); }
.kreis { width: 36px; height: 36px; margin: 0 auto 12px; border: 4px solid var(--rand); border-top-color: var(--gruen); border-radius: 50%; animation: dreh 1s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.abstand { margin-top: 14px; }
.mitte { text-align: center; }
