/* CI Schul-IT Region Osnabrück e. V. – Farben und Schrift wie schulit-os.de */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: local("Figtree"), url("fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: local("Figtree Medium"), url("fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: local("Figtree SemiBold"), url("fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: local("Figtree Bold"), url("fonts/figtree-700.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: local("Figtree ExtraBold"), url("fonts/figtree-800.woff2") format("woff2"); }

:root {
  --navy: #123f6e; --navy-2: #0d2f53; --blue: #1d5fa3; --ink: #16233a; --muted: #5a6a7e;
  --line: #e3e9ef; --soft: #f4f7fa; --steel: #a7bec8; --steel-2: #dfe8ed; --white: #fff;
  --radius: 14px; --shadow: 0 10px 30px -12px rgba(18, 63, 110, .25);
  --bg: var(--soft); --card: var(--white); --faint: var(--muted); --line2: #eef2f6;
  --accent: var(--navy); --accent-dark: var(--navy-2); --accent-bg: #e8eff7;
  --warn-bg: #fff4e0; --warn-ink: #6b4500; --err-bg: #fdecea; --err-ink: #8a1c12; --ok-bg: #e6f4ea; --ok-ink: #1e5b31;
  --focus: var(--blue);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Figtree, system-ui, "Segoe UI", sans-serif; }
a { color: var(--blue); } a:hover { color: var(--navy); }
h1, h2, h3 { font-family: inherit; color: var(--navy-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 16px; align-items: center; }
.brand img { height: 52px; width: auto; display: block; }
.brand-text { border-left: 1px solid var(--line); padding-left: 16px; }
.brand-title { font-weight: 700; font-size: 18px; color: var(--navy-2); }
.brand-sub { font-size: 13px; color: var(--muted); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--ink); padding: 9px 12px; border-radius: 8px; }
.top nav a:hover { background: var(--soft); color: var(--navy); }
.top nav a[aria-current] { background: var(--navy); color: #fff; font-weight: 600; }

main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 48px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
h1 { margin: 4px 0 0; font-size: 34px; line-height: 1.15; font-weight: 800; }
.headrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.chip.warn { background: var(--steel-2); border-color: transparent; color: var(--navy-2); font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.namebar { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.namebar label { font-weight: 600; color: var(--navy-2); }
.namebar input { flex: 1 1 240px; max-width: 360px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--steel); border-radius: 8px; background: #fff; }
.namebar .hint { font-size: 13px; color: var(--muted); flex: 1 1 260px; }

.layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.days { flex: 999 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.day { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.day-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.day-head span { font-size: 13px; color: var(--muted); }
.status { font-size: 12px; font-weight: 600; color: var(--blue); }
.status.closed { color: var(--muted); }
.dish { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; min-height: 96px; }
.dish:hover { border-color: var(--steel); }
.dish:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dish.on { border-color: var(--navy); background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--navy); }
.dish[aria-disabled="true"] { cursor: default; opacity: .7; }
.dish.on[aria-disabled="true"] { opacity: 1; }
.dish-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.tag-veg { font-size: 11px; font-weight: 600; color: var(--ok-ink); background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; }
.dish-name { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.dish-meta { font-size: 12px; color: var(--muted); }
.none { all: unset; box-sizing: border-box; text-align: center; padding: 10px; min-height: 44px; border-radius: 10px; border: 1.5px dashed var(--steel); font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.none.on { border-style: solid; border-color: var(--muted); background: var(--soft); color: var(--ink); }
.none[aria-disabled="true"] { cursor: default; }
.none:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.note { width: 100%; padding: 8px 10px; min-height: 40px; border: 1px solid var(--steel); border-radius: 8px; font-size: 13px; background: #fff; }

.summary { flex: 1 1 280px; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.summary h2 { margin: 0; font-size: 21px; font-weight: 700; }
.summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.summary li { display: flex; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--line2); padding-bottom: 10px; }
.summary li b { width: 28px; flex: none; color: var(--muted); }
.summary li .empty { color: var(--muted); }
.btn { all: unset; box-sizing: border-box; text-align: center; padding: 12px 20px; min-height: 44px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn[disabled] { background: var(--steel); border-color: var(--steel); cursor: default; }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn.secondary:hover { background: var(--accent-bg); }
.msg { margin: 0; font-size: 13px; padding: 10px 12px; border-radius: 8px; }
.msg.ok { color: var(--ok-ink); background: var(--ok-bg); }
.msg.err { color: var(--err-ink); background: var(--err-bg); }
.msg.info { color: var(--warn-ink); background: var(--warn-bg); }
.legend { padding: 14px 18px; font-size: 12px; color: var(--muted); white-space: pre-line; box-shadow: none; border-style: dashed; border-color: var(--steel); }
.empty-state { padding: 32px; text-align: center; color: var(--muted); }

.foot { background: var(--navy-2); color: #cfdbe6; font-size: 14px; }
.foot-inner { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: #cfdbe6; } .foot a:hover { color: #fff; }
@media (max-width: 700px) { h1 { font-size: 26px; } .summary { position: static; } .brand img { height: 42px; } }
