@import url("schriften.css");
/* Snackautomaten-Umfrage · Farben wie /snackautomaten/style.css */
:root {
  --red: #D82126; --red-deep: #A8161B; --red-wash: #FBEDED; --ink: #16161A; --ground: #FAF7F6;
  --surface: #FFFFFF; --surface-2: #F3EEEC; --line: #E3DCD9; --line-strong: #CFC5C1; --muted: #6E6461;
  --ok: #1E7A46; --ok-wash: #E8F4EC;
  --shadow: 0 1px 2px rgba(30,18,16,.05), 0 8px 24px -16px rgba(30,18,16,.28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.5 "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3 { font-family: Archivo, Helvetica, Arial, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
a { color: var(--red-deep); }
.kopf { background: var(--surface); border-bottom: 1px solid var(--line); }
.kopf-innen, .inhalt, .fuss-innen { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.admin .kopf-innen, .admin .inhalt, .admin .fuss-innen { max-width: 1040px; }
.kopf-innen { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.marke { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.marke-fsh { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.1rem; }
.marke-zweig { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.inhalt { padding-top: 20px; padding-bottom: 120px; }
.admin .inhalt { padding-bottom: 40px; }
.fuss { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; padding: 18px 0 28px; }
.fuss a { color: var(--muted); }
.ueberzeile { font-family: "IBM Plex Mono", monospace; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 0 0 16px; box-shadow: var(--shadow); }
.standort { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: .9rem; margin-bottom: 12px; }
.standort::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.karte > :first-child { margin-top: 0; }
.karte > :last-child { margin-bottom: 0; }
.gedaempft { color: var(--muted); }
.klein { font-size: .88rem; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(216,33,38,.25); border-color: var(--red); }
.code-feld { font-family: "IBM Plex Mono", monospace; font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--red); color: #fff; font: 700 .98rem/1.15 Archivo, Helvetica, Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--red-deep); }
.knopf:disabled { background: var(--line-strong); cursor: not-allowed; }
.knopf.zweit { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.knopf.zweit:hover { background: var(--surface-2); }
.knopf.klein-k { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.knopf.breit { width: 100%; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hinweis { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; background: var(--surface-2); }
.hinweis.fehler { background: var(--red-wash); color: var(--red-deep); font-weight: 600; }
.hinweis.ok { background: var(--ok-wash); color: var(--ok); font-weight: 600; }
.gruppe-titel { font-family: "IBM Plex Mono", monospace; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.produkte { display: grid; gap: 8px; }
.produkt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; margin: 0; }
.produkt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.produkt .haken { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; color: #fff; font-weight: 800; }
.produkt input:checked ~ .haken { background: var(--red); border-color: var(--red); }
.produkt input:checked ~ .haken::after { content: "✓"; }
.produkt:has(input:checked) { border-color: var(--red); background: var(--red-wash); }
.produkt:has(input:disabled:not(:checked)) { opacity: .5; cursor: not-allowed; }
.produkt input:focus-visible ~ .haken { outline: 3px solid rgba(216,33,38,.35); }
.leiste { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(0,0,0,.4); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.leiste-innen { max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.zaehler { flex: 1; font-weight: 700; }
.balken { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.balken > i { display: block; height: 100%; background: var(--red); width: 0; transition: width .2s; }
.wunschliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wunschliste li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.wunschliste .anzahl { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-weight: 500; white-space: nowrap; }
.wunschliste .rang { font-family: "IBM Plex Mono", monospace; color: var(--muted); width: 2ch; text-align: right; }
.trenner { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: .9rem; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fertig-haken { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; margin-bottom: 12px; }
/* Admin */
.reiter { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.reiter a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.reiter a.an { color: var(--ink); border-bottom-color: var(--red); }
.reiter .zahl { background: var(--red); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 7px; margin-left: 4px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kachel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kachel b { display: block; font: 800 1.6rem/1.1 Archivo, sans-serif; }
.kachel span { color: var(--muted); font-size: .88rem; }
.tabelle-huelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.stab { height: 10px; background: var(--surface-2); border-radius: 5px; min-width: 80px; }
.stab > i { display: block; height: 100%; border-radius: 5px; background: var(--red); }
.marke-klein { display: inline-block; font-size: .75rem; border-radius: 999px; padding: 1px 8px; background: var(--surface-2); color: var(--muted); }
.marke-klein.rot { background: var(--red-wash); color: var(--red-deep); }
.marke-klein.gruen { background: var(--ok-wash); color: var(--ok); }
.formzeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
td input[type=text], td input[type=number], td select { padding: 7px 9px; }
.codes-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: 1.1rem; }
.codes-raster div { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 8px; text-align: center; }
@media print {
  .kopf, .fuss, .reiter, .nicht-drucken { display: none !important; }
  body { background: #fff; }
  .inhalt { padding: 0; max-width: none; }
}
