@font-face { font-family: "Exo"; font-weight: 400; font-display: swap; src: url("fonts/exo-v25-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Exo"; font-weight: 600; font-display: swap; src: url("fonts/exo-v25-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Exo"; font-weight: 900; font-display: swap; src: url("fonts/exo-v25-latin-900.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-v19-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-v19-latin-700.woff2") format("woff2"); }
/* Farben und Formen nach auge-dresden.de: Orange #F18700, Grau #4A4A4A, Hellgrau #F5F6F5, Hellblau #DFF1F8 */
:root {
  --paper: #f5f6f5; --card: #ffffff; --ink: #4a4a4a; --strong: #222222; --muted: #6b6d63; --line: #e5e3db;
  --brand: #f18700; --brand-h: #d97a00; --on-brand: #222222; --link: #b05c00; --grey-m: #949689; --blue-l: #dff1f8;
  --ok: #1f7a4d; --ok-bg: #dff2e7; --bad: #a3322b; --bad-bg: #f8e1df; --warn-bg: #fdeed3;
  --serif: "Exo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.5 var(--sans); }
a { color: var(--link); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4rem; color: var(--strong); }
h1 { font-size: 1.7rem; } h2 { font-size: 1.2rem; }
main { max-width: 860px; margin: 0 auto; padding: 1rem 1rem 6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
:focus-visible { outline: 3px solid var(--strong); outline-offset: 2px; }

/* Kopfzeile */
.top { background: #fff; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 10; border-bottom: 4px solid var(--brand); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--strong); }
.brand img { height: 50px; width: auto; max-width: 60vw; object-fit: contain; display: block; }
.brand span { font: 600 1.15rem var(--serif); line-height: 1.1; }
.nav { display: flex; gap: .25rem; overflow-x: auto; flex: 1 1 100%; order: 3; -webkit-overflow-scrolling: touch; }
.nav a { color: var(--ink); text-decoration: none; padding: .4rem .9rem; border-radius: 999px; white-space: nowrap; font-family: var(--serif); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.who { margin-left: auto; display: flex; align-items: center; gap: .8rem; font-size: .95rem; }
.whoname { color: var(--ink); text-decoration: none; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn { background: none; border: 0; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; padding: .3rem; }
@media (min-width: 900px) { .nav { flex: 0 1 auto; order: 0; } .top { flex-wrap: nowrap; } }

/* Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem; margin: 0 0 1rem; }
.narrow { max-width: 420px; margin: 2rem auto; } .narrow-lg { max-width: 560px; }
.pagehead { margin: .5rem 0 1rem; } .pagehead .sub { margin: 0; color: var(--muted); }
.pagehead.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stack { display: grid; gap: .9rem; }
label { display: grid; gap: .25rem; font-weight: 600; }
label.check { display: flex; gap: .6rem; align-items: center; font-weight: 400; min-height: 44px; }
input, select, textarea { font: inherit; padding: .65rem .7rem; border: 1px solid var(--grey-m); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
input[type=checkbox], input[type=radio] { width: 1.25rem; height: 1.25rem; min-height: 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; margin: 0; }
legend { font-weight: 600; padding: 0 .3rem; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem var(--serif); min-height: 44px; padding: .55rem 1.3rem; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--strong); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--paper); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .btn.primary:hover { background: var(--brand-h); border-color: var(--brand-h); }
.btn.danger { border-color: var(--bad); color: var(--bad); } .btn.danger:hover { background: var(--bad-bg); }
.btn.small { min-height: 38px; padding: .3rem .95rem; font-size: .92rem; }
.btn.big { min-height: 54px; font-size: 1.1rem; flex: 1; }
.chip { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: var(--blue-l); color: var(--strong); vertical-align: middle; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: #7a4300; }
.chip.half { background: var(--brand); color: var(--on-brand); }
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid var(--line); background: #fff; }
.flash.ok { background: var(--ok-bg); border-color: #b5dcc6; } .flash.error { background: var(--bad-bg); border-color: #e8bcb8; }
.flash.secret { background: var(--warn-bg); border-color: var(--brand); } .flash.secret p { margin: 0; font-weight: 600; word-break: break-all; }
.flash.secret p.small { font-weight: 400; margin-top: .3rem; }
.empty { padding: 1.2rem; border: 1px dashed var(--grey-m); border-radius: 20px; color: var(--muted); }

/* Wochen-/Monatsnavigation */
.weeknav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.weeklabel { text-align: center; display: grid; line-height: 1.25; } .weeklabel span { color: var(--muted); font-size: .85rem; }
.rules { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; max-width: 70ch; }
.daytabs { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: 1rem; }
.daytabs a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; background: #fff; }
.daytabs a[aria-current="page"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Tageskarten */
.day { background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--brand); border-radius: 20px; padding: .9rem 1rem; margin-bottom: .8rem; }
.day.holiday, .day.closed, .day.nomenu, .day.past { border-left-color: var(--line); background: #f8faf9; }
.day.locked { border-left-color: var(--grey-m); }
.day header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.day h2 .date { font: 400 1rem var(--sans); color: var(--muted); margin-left: .3rem; }
.meals { list-style: none; padding: 0; margin: .3rem 0 .8rem; display: grid; gap: .35rem; }
.meals li { display: grid; grid-template-columns: 5.2rem 1fr; gap: .1rem .6rem; align-items: baseline; }
.slot { color: var(--muted); font-size: .85rem; } .mname { font-weight: 600; } .mnote { grid-column: 2; font-size: .85rem; color: var(--muted); }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin-bottom: .7rem; }
.choice label { display: block; font-weight: 400; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: .4rem .6rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; text-align: center; cursor: pointer; }
.choice span small { font-weight: 400; color: var(--muted); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.choice input:checked + span small { color: var(--on-brand); }
.choice input:focus-visible + span { outline: 3px solid var(--strong); outline-offset: 2px; }
.locsel { max-width: 22rem; margin-bottom: .6rem; font-weight: 600; }
.allloc { margin-bottom: 1rem; max-width: 22rem; }
.orderline { margin: .2rem 0 .6rem; }
.late summary { cursor: pointer; font-weight: 600; color: var(--link); min-height: 44px; display: flex; align-items: center; }
.late[open] summary { margin-bottom: .4rem; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(245,246,245,.96); border-top: 1px solid var(--line); display: flex; gap: .6rem; justify-content: center; z-index: 5; }
.savebar > * { max-width: 520px; }

/* Konto, Tabellen */
.sums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.sums div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .8rem 1rem; display: grid; }
.sums .num { font: 600 1.6rem var(--serif); color: var(--strong); } .sums span:last-child { color: var(--muted); font-size: .9rem; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .85rem; color: var(--muted); background: var(--paper); }
tfoot td { font-weight: 700; border-bottom: 0; background: var(--paper); }
.r { text-align: right; }
.searchbar { display: flex; gap: .5rem; margin-bottom: 1rem; } .searchbar input { flex: 1; }

/* Küche */
.decisions { border-left: 8px solid var(--brand); }
.decision { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid var(--line); }
.decision:first-of-type { border-top: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; } .actions form { margin: 0; }
.menuhead { display: grid; gap: .3rem; margin-bottom: 1rem; font-weight: 600; }
.kitchen { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: .5rem; }
.loccard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .9rem 1rem; }
.loccard.total { border-color: var(--brand); border-width: 2px; }
.loccard table th, .loccard table td { padding: .4rem .3rem; }
.people { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .25rem; font-size: .95rem; }
.mealrow { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .7rem; margin-bottom: .6rem; }
.mealrow .muted, .mealrow .actions { grid-column: 1 / -1; }
.newmeal { padding: .5rem 1rem; } .newmeal summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.exportbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.holidays { list-style: none; padding: 0; display: grid; gap: .25rem; } .holidays span { display: inline-block; min-width: 8.5rem; color: var(--muted); }

/* Benutzerliste auf dem Smartphone als Karten */
@media (max-width: 640px) {
  .userlist thead { display: none; }
  .userlist tr { display: grid; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
  .userlist td { border: 0; padding: .15rem 0; }
  .userlist td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .userlist td.r { text-align: left; padding-top: .4rem; }
  .two { grid-template-columns: 1fr; } .mealrow { grid-template-columns: 1fr; }
  h1 { font-size: 1.45rem; }
}
@media print { .top, .weeknav, .daytabs, .savebar, .decisions, .btn { display: none !important; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.weeknav .btn { white-space: nowrap; }
@media (max-width: 420px) { .weeknav .btn.small { padding: .3rem .55rem; font-size: .85rem; } }

.loginlogo { display: block; margin: 0 auto 1rem; max-width: 280px; width: 100%; height: auto; }
@media (max-width: 420px) { .brand span { display: none; } }
.check.dessert { margin: 0 0 .6rem; align-items: flex-start; }
.check.dessert input { margin-top: .25rem; flex: none; }
.cook-dessert-row th .small { font-weight: 400; }
.closedlist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.closedrow { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.closedrow:first-child { border-top: 0; } .closedrow form { margin: 0; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 640px) { .formgrid { grid-template-columns: 1fr; } }
.result-ok { border-left: 8px solid var(--ok); } .result-error { border-left: 8px solid var(--bad); }
.errlist { margin: .4rem 0 1rem; padding-left: 1.2rem; display: grid; gap: .25rem; }
code.pw { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .03em; }
input[type=file] { padding: .5rem; }

/* Meldungen */
.bell { position: relative; display: inline-flex; align-items: center; color: var(--ink); padding: .5rem .6rem .35rem .35rem; margin-right: .2rem; border-radius: 999px; }
.bell:hover { background: var(--paper); }
.badge { position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 700 .74rem/18px var(--serif); text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.badge[hidden] { display: none; }
.noticebox { background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--brand); border-radius: 20px; padding: .8rem 1rem; margin-bottom: 1rem; }
.notice { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; padding: .35rem 0; }
.notice.approved strong { color: var(--ok); } .notice.rejected strong { color: var(--bad); } .notice.request strong { color: #7a4300; }
.noticeactions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.noticeactions form { margin: 0; }
.notiflist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.notiflist .notice { display: grid; gap: .15rem; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--grey-m); border-radius: 20px; padding: .8rem 1rem; }
.notiflist .notice.approved { border-left-color: var(--ok); } .notiflist .notice.rejected { border-left-color: var(--bad); } .notiflist .notice.request { border-left-color: var(--brand); }
.notiflist .notice.isnew { background: var(--warn-bg); }
.nhead { display: flex; gap: .5rem; align-items: center; }

.flash.fleetwarn { background: var(--warn-bg); border-color: var(--brand); font-weight: 600; }
.appfoot { text-align: center; color: var(--muted, #777); font-size: .75rem; padding: 1.5rem 1rem 2rem; }
.prewrap { white-space: pre-wrap; }

.locform { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0; } .locform input { flex: 1 1 12rem; }
.locbtns { display: flex; gap: .35rem; } .locbtns form { margin: 0; }
.logoprev { max-height: 80px; max-width: 100%; width: auto; display: block; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
