:root {
  --teal: #2f4f4f;
  --teal-dark: #1f3838;
  --ink: #222;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #f7f6f3;
  --card: #ffffff;
  --grün: #3a8a4a;
  --rot: #c0392b;
  --gelb: #b8860b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 40px;
}

header.kopf {
  background: var(--teal);
  color: #fff;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
header.kopf h1 { margin: 0; font-size: 22px; flex: 1 1 auto; }
header.kopf p { margin: 0; opacity: 0.85; font-size: 14px; width: 100%; }

.sprache-btn {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.sprache-btn:hover { background: rgba(255, 255, 255, 0.22); }

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

.banner {
  background: #fff8e6;
  border: 1px solid #e9d9a0;
  color: #5a4a12;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.banner.nach-schluss {
  background: #fdeceb;
  border-color: #f0b8b2;
  color: #7a2a20;
}

.karte {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.karte h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--teal-dark);
}

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 14px;
}

.wohnung-wahl { display: flex; gap: 8px; margin-bottom: 14px; }
.wohnung-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
}
.wohnung-btn.aktiv { background: var(--teal); color: #fff; border-color: var(--teal); }

.suche {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 12px;
}

.kategorie-titel {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  margin: 22px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--teal);
}
.kategorie-titel:first-of-type { margin-top: 0; }

.artikel-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.artikel-zeile:last-child { border-bottom: none; }
.artikel-name { font-size: 15px; }
.artikel-preis { font-size: 13px; color: var(--muted); }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.stepper button.plus { background: var(--teal); color: #fff; border-color: var(--teal); }
.stepper .menge { min-width: 22px; text-align: center; font-size: 15px; }

.warenkorb-zeile {
  display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px;
}
.warenkorb-summe {
  display: flex; justify-content: space-between; font-weight: 600; padding-top: 8px;
  border-top: 1px solid var(--line); margin-top: 6px;
}

button.absenden {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
}
button.absenden:disabled { background: #aaa; cursor: not-allowed; }

.fehler { color: var(--rot); font-size: 14px; margin-top: 8px; }

.bestaetigung { text-align: center; padding: 30px 16px; }
.bestaetigung .haken {
  font-size: 40px; color: var(--grün); margin-bottom: 10px;
}
.bestaetigung h2 { margin: 0 0 8px; }
.bestaetigung p { color: var(--muted); }

.neue-bestellung-link {
  display: block; text-align: center; margin-top: 18px; color: var(--teal-dark);
}

/* Admin-Seite */
.admin-zeile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 15px;
}
.admin-hinweis { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.schalter { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.schalter input { opacity: 0; width: 0; height: 0; }
.schalter-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #ccc; border-radius: 26px; transition: 0.15s;
}
.schalter-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: 0.15s;
}
.schalter input:checked + .schalter-slider { background: var(--grün); }
.schalter input:checked + .schalter-slider::before { transform: translateX(20px); }

.admin-aktionen { display: flex; flex-direction: column; gap: 8px; }
.admin-aktionen button {
  padding: 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; cursor: pointer;
}
.admin-aktionen button.gefahr { border-color: var(--rot); color: var(--rot); }
.admin-ergebnis {
  margin-top: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto;
}

.tagesstatus-zeile { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tagesstatus-zeile:last-child { border-bottom: none; }
.tagesstatus-erledigt { color: var(--grün); }
.tagesstatus-fehler { color: var(--rot); }
.tagesstatus-ausstehend { color: var(--gelb); }

.admin-wohnung-titel { font-weight: 700; color: var(--teal-dark); margin: 12px 0 4px; }
.admin-wohnung-titel:first-child { margin-top: 0; }
.admin-bestellung-zeile { font-size: 14px; padding: 3px 0; }
