/* ==========================================================================
   Luis Smart Kitchen – Stylesheet
   Farben & Maße als Variablen: Branding später zentral hier austauschen.
   ========================================================================== */

:root {
  --navy: #0f2342;
  --navy-2: #173058;
  --navy-3: #22406f;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-50: #eaf1fe;
  --bg: #f3f5f9;
  --card: #ffffff;
  --border: #e3e8ef;
  --border-2: #d3dae5;
  --text: #16213a;
  --text-2: #4a5468;
  --muted: #6b7385;
  --green: #16a34a;  --green-50: #e8f6ed;
  --orange: #d97706; --orange-50: #fdf3e2;
  --red: #dc2626;    --red-50: #fdecec;
  --purple: #7c3aed; --purple-50: #f1ebfd;
  --yellow: #ca8a04; --yellow-50: #fdf8e1;
  --teal: #0d9488;   --teal-50: #e3f5f3;
  --gray-50: #f1f3f7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 40px rgba(16, 24, 40, .18);
  --sidebar-w: 248px;
  --tap: 44px; /* Mindestgröße für Touch-Ziele */
  font-size: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 .6rem; }
a { color: inherit; text-decoration: none; }
small { font-size: .82rem; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: .85em; }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.t-right { text-align: right; }
.t-center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.inline { display: inline; }
.text-blue { color: var(--blue); } .text-green { color: var(--green); } .text-red { color: var(--red); }
.text-orange { color: var(--orange); } .text-purple { color: var(--purple); } .text-yellow { color: var(--yellow); }
.text-gray { color: var(--muted); }
.empty { color: var(--muted); padding: 1rem; text-align: center; }
.link { color: var(--blue); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.link .icon { width: 16px; height: 16px; }

/* ───────── Grundlayout ───────── */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--navy); color: #dbe4f3;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; background: #fff; color: var(--navy); border-bottom-right-radius: 22px; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.brand__logo .icon { width: 26px; height: 26px; }
.brand__logo--lg { width: 64px; height: 64px; }
.brand__logo--lg .icon { width: 36px; height: 36px; }
.brand__text strong { display: block; font-size: 1.7rem; letter-spacing: .02em; line-height: 1; font-weight: 800; }
.brand__text small { font-size: .8rem; font-weight: 600; }

.nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav__item {
  display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 8px 14px; border-radius: 10px;
  font-size: 1.02rem; color: #dbe4f3; transition: background .15s;
}
.nav__item:hover { background: var(--navy-2); color: #fff; }
.nav__item.is-active { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .35); }
.nav__sub { display: flex; flex-direction: column; margin: 4px 0 6px 26px; border-left: 1px solid var(--navy-3); }
.nav__sub a { padding: 8px 14px; color: #b9c6dc; font-size: .93rem; position: relative; min-height: 38px; display: flex; align-items: center; }
.nav__sub a::before { content: ""; position: absolute; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy-3); }
.nav__sub a:hover { color: #fff; }
.nav__sub a.is-active { color: #fff; font-weight: 600; }
.nav__sub a.is-active::before { background: #5b8cff; }
.kitchen-switch { margin: 12px; padding: 12px; border-radius: 12px; background: var(--navy-2); display: flex; align-items: center; gap: 12px; }
.kitchen-switch strong { display: block; color: #fff; font-size: .92rem; }
.kitchen-switch small { color: #9fb0cc; }
.kitchen-switch__badge { width: 38px; height: 38px; border-radius: 9px; background: var(--navy-3); color: #fff; display: grid; place-items: center; font-weight: 700; }
.sidebar-backdrop { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar__menu { display: none; }
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 700; }
.topbar__title h1 .icon { width: 24px; height: 24px; color: var(--text-2); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs a:hover { color: var(--blue); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.content { padding: 22px 28px 110px; display: flex; flex-direction: column; gap: 18px; max-width: 1680px; width: 100%; }

/* ───────── Buttons & Formulare ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: #fff; color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--gray-50); }
.btn:focus-visible, .icon-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 1px; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--success { background: var(--green); border-color: var(--green); color: #fff; }
.btn--success:hover { background: #12883e; }
.btn--accent { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn--accent:hover { background: #6a2fd0; }
.btn--danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger:hover { background: #b91c1c; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-50); }
.btn--danger-text { color: var(--red); }
.btn--icon { width: 40px; padding: 0; }
.btn--sm { min-height: 34px; padding: 5px 12px; font-size: .88rem; }
.btn--lg { min-height: 50px; padding: 10px 22px; font-size: 1.02rem; }
.btn--lg.btn--icon { width: 50px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
input.btn { font-weight: 500; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap);
  border-radius: 50%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; list-style: none;
}
.icon-btn:hover { background: var(--gray-50); color: var(--text); }
.icon-btn--sm { width: 34px; height: 34px; border-radius: 8px; }
.icon-btn--sm .icon { width: 17px; height: 17px; }
.badge-dot {
  position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}

input, select, textarea {
  font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 9px 12px; min-height: 42px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--blue); padding: 0; }
input[readonly] { background: var(--gray-50); }
.input--sm { width: 90px; }
.input--xs { width: 70px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] { opacity: .75; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; flex: 1; min-width: 0; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { min-width: 130px; }
.field-row--tight .field { margin-bottom: 0; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; font-size: .95rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.input-group { display: flex; gap: 8px; }
.input-group input[type=date] { width: 160px; }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input { flex: 1; min-width: 0; }
.inline-form select { width: auto; max-width: 130px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

.segmented { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 8px 16px; border-radius: 22px;
  border: 1px solid var(--border-2); background: #fff; font-weight: 550;
}
.segmented input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 99, 235, .3); }
.segmented--multi span { min-width: 52px; justify-content: center; }

/* ───────── Karten, Raster ───────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card__head--pad { padding: 16px 20px 0; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); margin: 0; flex-wrap: wrap; }
.card__divider { height: 1px; background: var(--border); margin: 16px 0; }
details.card > summary { list-style: none; cursor: pointer; margin: 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 12px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.layout-aside--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.layout-aside--left { grid-template-columns: 300px minmax(0, 1fr); }
.haccp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sticky { position: sticky; top: 96px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar__title { font-size: 1.3rem; font-weight: 650; margin-right: 6px; }
.toolbar__group { display: flex; gap: 6px; align-items: center; }
.toolbar__group input[type=date] { width: 160px; }
.toolbar__spacer { flex: 1; }
.toolbar select { width: auto; }

/* ───────── Tabellen ───────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: none; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: #fafbfd; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th { background: #fafbfd; border-top: 1px solid var(--border); border-bottom: 0; color: var(--text); font-size: .9rem; }
.table--hover tbody tr[data-href] { cursor: pointer; }
.table--hover tbody tr:hover { background: #f8fafd; }
.table--compact td { padding: 8px 10px; }
.table--compact th { padding: 8px 10px; }
.card:not(.card--flush) .table th { background: transparent; }
tr.is-inactive td { opacity: .55; }
tr.is-low td { background: #fffaf0; }

/* ───────── Listen & Kleinteile ───────── */
.list { list-style: none; margin: 0; padding: 0; }
.list__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); min-height: 48px; }
.list__row:last-child { border-bottom: 0; }
.list__row strong { display: block; font-weight: 600; font-size: .95rem; }
.list__row small { display: block; color: var(--muted); }
.list__row.is-active a { color: var(--blue); font-weight: 600; }
.list--compact .list__row { padding: 6px 0; min-height: 40px; }
.list--compact .list__row strong { font-size: .92rem; }

.avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: .72rem; font-weight: 700; flex-shrink: 0; background: var(--blue-50); color: var(--blue);
}
.avatar--green { background: var(--green-50); color: var(--green); }
.avatar--orange { background: var(--orange-50); color: var(--orange); }
.avatar--purple { background: var(--purple-50); color: var(--purple); }
.avatar--red { background: var(--red-50); color: var(--red); }
.avatar--teal { background: var(--teal-50); color: var(--teal); }
.avatar--gray { background: var(--gray-50); color: var(--text-2); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; background: var(--gray-50); color: var(--text-2); white-space: nowrap; }
.pill .icon { width: 14px; height: 14px; }
.pill--green { background: var(--green-50); color: var(--green); }
.pill--orange { background: var(--orange-50); color: var(--orange); }
.pill--blue { background: var(--blue-50); color: var(--blue); }
.pill--red { background: var(--red-50); color: var(--red); }
.pill--gray { background: var(--gray-50); color: var(--muted); }

.value { font-weight: 650; font-variant-numeric: tabular-nums; }
.value--ok { color: var(--green); }
.value--warn { color: var(--orange); }
.value--alert { color: var(--red); }
.status { width: 22px; height: 22px; }
.status--ok { color: var(--green); }
.status--warn { color: var(--orange); }
.status--alert { color: var(--red); }

.allergen {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin: 1px 2px 1px 0; border-radius: 6px;
  background: #fff4e0; color: #9a5b00; font-size: .75rem; font-weight: 700; border: 1px solid #f5ddb0;
}
.allergen--sm { min-width: 19px; height: 19px; font-size: .7rem; border-radius: 5px; }
.diet { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; margin-right: 4px; border-radius: 6px; font-size: .74rem; font-weight: 700; }
.diet--veg { background: var(--green-50); color: var(--green); }
.diet--vegan { background: #dcf5e4; color: #0f7a36; }
.diet--gf { background: var(--blue-50); color: var(--blue); }

.chip { display: flex; flex-direction: column; padding: 6px 9px; border-radius: 7px; font-size: .8rem; margin-bottom: 6px; border-left: 3px solid; }
.chip span { font-weight: 600; line-height: 1.25; }
.chip small { font-size: .74rem; opacity: .8; }
.chip--green { background: var(--green-50); border-color: var(--green); color: #135d30; }
.chip--purple { background: var(--purple-50); border-color: var(--purple); color: #4c1d95; }
.chip--yellow { background: var(--yellow-50); border-color: var(--yellow); color: #744d05; }
.chip--orange { background: var(--orange-50); border-color: var(--orange); color: #7c4204; }
.chip--blue { background: var(--blue-50); border-color: var(--blue); color: #1e3a8a; }
.chip--red { background: var(--red-50); border-color: var(--red); color: #7f1d1d; }
.chip--gray { background: var(--gray-50); border-color: var(--muted); color: var(--text-2); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.details { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0 0 12px; }
.details dt { color: var(--muted); font-size: .88rem; }
.details dd { margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 10px; }
.total-row strong { font-size: 1.4rem; color: var(--green); }
.total-row--sm strong { font-size: 1.05rem; color: var(--text); }

.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.tabs--scroll { overflow-x: auto; max-width: 100%; }
.tabs__item { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 7px; font-weight: 550; color: var(--text-2); white-space: nowrap; min-height: 40px; }
.tabs__item .icon { width: 18px; height: 18px; }
.tabs__item:hover { background: var(--gray-50); }
.tabs__item.is-active { background: var(--navy); color: #fff; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-2); background: #fff; font: inherit; font-size: .9rem; font-weight: 550; cursor: pointer; }
.chip-btn .icon { width: 16px; height: 16px; }
.chip-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.search { position: relative; display: flex; align-items: center; }
.search > .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; width: 18px; height: 18px; }
.search input { padding-left: 38px; border-radius: 22px; background: var(--gray-50); border-color: transparent; width: 220px; }
.search input:focus { background: #fff; }
.search--field { flex: 1; min-width: 200px; max-width: 420px; }
.search--field input { width: 100%; border-radius: var(--radius-sm); background: #fff; border-color: var(--border-2); }
.search--sm { max-width: 240px; min-width: 150px; }
.search--sm input { min-height: 36px; }
.search--lg { max-width: 640px; }

/* Dropdowns (details/summary) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; display: flex; flex-direction: column;
}
.dropdown__panel--wide { width: 360px; max-width: calc(100vw - 24px); }
.dropdown__panel > a, .dropdown__panel button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 0; background: none; font: inherit; color: inherit;
  cursor: pointer; text-align: left; width: 100%;
}
.dropdown__panel > a:hover, .dropdown__panel button:hover { background: var(--gray-50); }
.dropdown__head { padding: 8px 12px; font-weight: 650; }
.dropdown__foot { justify-content: center; color: var(--blue); font-weight: 600; border-top: 1px solid var(--border); border-radius: 0 !important; margin-top: 4px; }
.notif { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; }
.notif:hover { background: var(--gray-50); }
.notif .icon { margin-top: 2px; color: var(--blue); }
.notif strong { display: block; font-size: .92rem; }
.notif small { display: block; color: var(--muted); }
.notif--warn .icon { color: var(--orange); }
.notif--alert .icon { color: var(--red); }
.notif--lg { padding: 14px 12px; border-bottom: 1px solid var(--border); border-radius: 0; align-items: center; }
.notif--lg:last-child { border-bottom: 0; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border-left: 1px solid var(--border); margin-left: 6px; }
.user-chip__text { text-align: right; }
.user-chip__text strong { display: block; font-size: .95rem; }
.user-chip__text small { color: var(--muted); }
.user-chip .avatar { width: 40px; height: 40px; font-size: .85rem; }
.user-chip__chev { width: 16px; height: 16px; color: var(--muted); }

/* Meldungen */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-weight: 500; border: 1px solid; transition: opacity .6s; }
.flash > span { flex: 1; }
.flash--success { background: var(--green-50); border-color: #bfe6cd; color: #135d30; }
.flash--error { background: var(--red-50); border-color: #f5c2c2; color: #8f1d1d; }
.flash--info { background: var(--blue-50); border-color: #c7d8fb; color: #1e3a8a; }
.flash.is-fading { opacity: .55; }
.flash__close { border: 0; background: none; color: inherit; cursor: pointer; padding: 4px; opacity: .7; }

/* Dialoge */
.dialog {
  border: 0; border-radius: 16px; padding: 22px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px);
  box-shadow: var(--shadow-lg); color: var(--text);
}
.dialog::backdrop { background: rgba(15, 35, 66, .45); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog__head h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.dialog__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.quick-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; text-align: center; font-weight: 600; font-size: .9rem;
}
.quick-grid a:hover { border-color: var(--blue); background: var(--blue-50); }
.quick-grid .icon { width: 28px; height: 28px; color: var(--blue); }
.quick-task label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }

/* Untere Leiste mit Plus-Knopf */
.bottombar {
  position: fixed; bottom: 0; left: var(--sidebar-w); right: 0; height: 64px; background: #fff; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: center; z-index: 30; padding: 0 16px env(safe-area-inset-bottom);
}
.bottombar a { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font-weight: 500; height: 100%; }
.bottombar a.is-active { color: var(--blue); }
.fab {
  width: 58px; height: 58px; border-radius: 50%; border: 4px solid #fff; background: var(--blue); color: #fff;
  display: grid; place-items: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(37, 99, 235, .4); cursor: pointer;
}
.fab .icon { width: 28px; height: 28px; }

/* ───────── Dashboard ───────── */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hello h2 { font-size: 1.6rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0;
}
a.kpi:hover { border-color: var(--blue); }
.kpi__icon { grid-row: 1 / 4; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; align-self: center; }
.kpi__icon .icon { width: 24px; height: 24px; }
.kpi__icon--blue { background: var(--blue-50); color: var(--blue); }
.kpi__icon--green { background: var(--green-50); color: var(--green); }
.kpi__icon--purple { background: var(--purple-50); color: var(--purple); }
.kpi__icon--orange { background: var(--orange-50); color: var(--orange); }
.kpi__label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi__value { font-size: 1.75rem; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi__sub { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi:not(:has(.kpi__icon)) { grid-template-columns: 1fr; }

.week-mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.week-mini__day { padding: 10px 8px; min-height: 120px; border-right: 1px solid var(--border); min-width: 0; }
.week-mini__day:last-child { border-right: 0; }
.week-mini__head { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.week-mini__head small { font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .75rem; }
.week-mini__head strong { font-size: 1.1rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.week-mini__head.is-weekend small, .week-mini__head.is-weekend strong { color: var(--blue); }
.week-mini__day.is-today .week-mini__head strong { background: var(--navy); color: #fff; }
.week-mini__day.is-today { background: #fbfcfe; }

.task .checkbox {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-2); background: #fff; display: grid; place-items: center;
  cursor: pointer; color: transparent; padding: 0;
}
.task .checkbox .icon { width: 16px; height: 16px; }
.task .checkbox.is-checked { background: var(--green); border-color: var(--green); color: #fff; }
.task.is-done strong { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.small-title { font-size: .85rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.menu-today { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu-today li small { display: block; color: var(--muted); font-size: .75rem; }

/* ───────── Kalender ───────── */
.cal { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 860px; }
.cal th, .cal td { border-bottom: 1px solid var(--border); padding: 6px; vertical-align: top; }
.cal td { border-left: 1px solid var(--border); width: 12.5%; }
.cal__first { text-align: left; padding: 10px 14px !important; width: 180px; font-weight: 500; vertical-align: middle !important; background: #fff; position: sticky; left: 0; z-index: 1; }
.cal__day { text-align: center; padding: 10px 4px !important; font-weight: 500; }
.cal__day small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.cal__day span { font-size: 1.35rem; font-weight: 700; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.cal__day.is-sat small, .cal__day.is-sat span { color: var(--blue); }
.cal__day.is-sun small, .cal__day.is-sun span { color: var(--red); }
.cal__day.is-today span { background: var(--blue); color: #fff; }
.cal tbody tr:last-child th, .cal tbody tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 10px; }
.person strong { display: block; font-size: .95rem; }
.person small { display: block; color: var(--muted); font-size: .8rem; }
.person .avatar { width: 38px; height: 38px; font-size: .8rem; }

.shift {
  width: 100%; min-height: 64px; border-radius: 8px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: inherit; font-size: .85rem; cursor: pointer; padding: 6px; text-align: center; gap: 2px;
}
div.shift { cursor: default; }
.shift strong { font-weight: 650; }
.shift small { font-size: .76rem; opacity: .85; }
.shift__note { font-style: italic; }
.shift--work { background: var(--green-50); color: #135d30; }
.shift--off { background: var(--blue-50); color: #1e3a8a; }
.shift--vacation { background: var(--purple-50); color: #4c1d95; }
.shift--sick { background: var(--red-50); color: #7f1d1d; }
.shift--school { background: var(--yellow-50); color: #744d05; }
.shift--empty { background: transparent; border: 1px dashed var(--border-2); color: var(--muted); }
button.shift:hover { filter: brightness(.97); box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .35); }
.shift--legend { min-height: 30px; width: auto; display: inline-flex; padding: 4px 12px; }
.legend-list { display: flex; flex-wrap: wrap; gap: 6px; }

.event {
  display: flex; flex-direction: column; align-items: center; width: 100%; border: 0; border-radius: 8px; padding: 8px 6px; margin-bottom: 4px;
  font: inherit; font-size: .8rem; text-align: center; cursor: pointer;
}
.event strong { font-weight: 650; line-height: 1.2; }
.event small { font-size: .74rem; opacity: .85; }
.event--green { background: var(--green-50); color: #135d30; }
.event--purple { background: var(--purple-50); color: #4c1d95; }
.event--yellow { background: var(--yellow-50); color: #744d05; }
.event--orange { background: var(--orange-50); color: #7c4204; }
.event--blue { background: var(--blue-50); color: #1e3a8a; }
.event--red { background: var(--red-50); color: #7f1d1d; }
.event--gray { background: var(--gray-50); color: var(--text-2); }
.cal--events td { vertical-align: middle; text-align: center; }
.dash { color: var(--border-2); }
.cat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.cat-icon--green { background: var(--green-50); color: var(--green); }
.cat-icon--purple { background: var(--purple-50); color: var(--purple); }
.cat-icon--yellow { background: var(--yellow-50); color: var(--yellow); }
.cat-icon--orange { background: var(--orange-50); color: var(--orange); }
.cat-icon--blue { background: var(--blue-50); color: var(--blue); }
.cat-icon--red { background: var(--red-50); color: var(--red); }
.cat-icon--gray { background: var(--gray-50); color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { border: 1px solid var(--border); border-radius: 10px; padding: 12px 6px; text-align: center; }
.mini-stats strong { display: block; font-size: 1.5rem; }
.mini-stats small { color: var(--muted); font-size: .74rem; line-height: 1.2; display: block; }

/* ───────── HACCP ───────── */
.device-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.device-head__img { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #eef3fb, #dde6f3); color: var(--navy-3); flex-shrink: 0; }
.device-head__img .icon { width: 38px; height: 38px; }
.device-head__img--freezer { background: linear-gradient(160deg, #e7f3fd, #cfe6fa); color: #1d6fb8; }
.device-head__img--fryer { background: linear-gradient(160deg, #fdf1e2, #fbe0bd); color: var(--orange); }
.device-head__img--sm { width: 44px; height: 44px; border-radius: 12px; }
.device-head__img--sm .icon { width: 24px; height: 24px; }
.device-head__title h2 { font-size: 1.6rem; margin-bottom: 8px; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav input[type=month] { width: 170px; }
.stat-tiles { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.stat-tile { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; min-width: 150px; }
.stat-tile .icon { width: 30px; height: 30px; }
.stat-tile small { display: block; color: var(--muted); }
.stat-tile strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }

.month-grid { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 900px; }
.month-grid th, .month-grid td { border-bottom: 1px solid var(--border); text-align: center; padding: 9px 2px; }
.month-grid tr > th:first-child { text-align: left; padding-left: 12px; min-width: 120px; font-weight: 500; color: var(--text-2); position: sticky; left: 0; background: #fff; z-index: 1; }
.month-grid tr:first-child th { font-weight: 700; color: var(--text); }
.month-grid .is-sat { color: var(--blue); }
.month-grid .is-sun { color: var(--red); }
.month-grid__dow td { font-size: .78rem; }
.month-grid__values td { font-weight: 650; font-variant-numeric: tabular-nums; padding: 16px 2px; }
.month-grid td.value--ok { color: var(--green); }
.month-grid td.value--warn { color: var(--orange); background: var(--orange-50); }
.month-grid td.value--alert { color: var(--red); background: var(--red-50); }
.month-grid .avatar { width: 26px; height: 26px; font-size: .65rem; }
.month-grid .status { width: 20px; height: 20px; }
.missing { color: var(--border-2); }
.month-grid--clean { min-width: 1100px; }
.month-grid--clean tr > th:first-child { min-width: 220px; }
.month-grid--clean th strong { display: block; color: var(--text); }
.month-grid--clean th small { display: block; font-weight: 400; }
.month-grid--clean td { padding: 4px 1px; }
.clean-cell {
  width: 30px; height: 30px; border-radius: 8px; border: 1px dashed var(--border-2); background: transparent; cursor: pointer; padding: 0;
  display: inline-grid; place-items: center;
}
.clean-cell:hover { border-color: var(--blue); background: var(--blue-50); }
.clean-cell.is-done { border: 0; }
.clean-cell .avatar { width: 28px; height: 28px; font-size: .62rem; }

.legend-bar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: .88rem; color: var(--text-2); }
.legend-bar span { display: inline-flex; align-items: center; gap: 6px; }
.legend-bar .status { width: 18px; height: 18px; }

.chart { width: 100%; height: auto; display: block; }
.chart__grid { stroke: var(--border); stroke-width: 1; }
.chart__label { font-size: 11px; fill: var(--muted); }
.chart__band { fill: var(--green-50); stroke: #cde9d6; stroke-dasharray: 3 3; }
.chart__limit { stroke: var(--red); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; }
.chart__line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.chart__dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.chart__dot--warn { fill: var(--orange); }
.chart__dot--alert { fill: var(--red); }
.chart__dot:hover { r: 7; }
.chart__bar--cur { fill: var(--blue); }
.chart__bar--prev { fill: #b9c8e4; }
.chart__bar:hover { opacity: .8; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--text-2); margin-top: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 18px; height: 10px; border-radius: 3px; vertical-align: middle; }
.swatch--line { height: 2px; background: var(--blue); }
.swatch--band { background: var(--green-50); border: 1px dashed #bfe0ca; }
.swatch--limit { height: 0; border-top: 2px dashed var(--red); border-radius: 0; }
.swatch--cur { background: var(--blue); }
.swatch--prev { background: #b9c8e4; }
.swatch--suggest { background: #efe7fe; border: 1px solid #c9b3f5; }

.notes { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.notes li { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.notes small { color: var(--muted); }
.notes p { margin: 4px 0 0; font-size: .92rem; }
.notes__action { border-color: #f5c2c2 !important; background: #fffafa; }
.alarm { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.alarm__top { display: flex; justify-content: space-between; align-items: center; }
.alarm__top small { color: var(--muted); }
.alarm--alert .alarm__top strong { color: var(--red); }
.alarm--warn .alarm__top strong { color: var(--orange); }
.alarm p { margin: 4px 0 0; font-weight: 600; }
.alarm > small { color: var(--muted); display: block; margin-top: 2px; }
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-list a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-weight: 500; font-size: .92rem; min-height: var(--tap); }
.action-list a .icon:first-child { color: var(--blue); }
.action-list a .icon:last-child { margin-left: auto; width: 16px; color: var(--muted); }
.action-list a:hover { border-color: var(--blue); }

.entry { display: flex; flex-direction: column; gap: 18px; }
.entry__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.entry__head p { margin: 4px 0 0; }
.entry__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.entry-card { border-width: 2px; transition: border-color .2s, background .2s; }
.entry-card.is-ok { border-color: #9fd9b4; background: #fbfefc; }
.entry-card.is-warn { border-color: #f5c77a; background: #fffcf5; }
.entry-card.is-alert { border-color: #f09b9b; background: #fffafa; }
.entry-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.entry-card__head strong { display: block; font-size: 1.05rem; }
.entry-card__head small { display: block; }
.entry-card__input { display: flex; align-items: center; gap: 10px; }
.entry-card__input input { font-size: 1.8rem; font-weight: 700; text-align: center; min-height: 58px; flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.entry-card__unit { font-weight: 600; color: var(--muted); min-width: 34px; }
.entry-card__status { margin: 10px 0 0; font-size: .88rem; color: var(--muted); min-height: 1.3em; }
.entry-card.is-ok .entry-card__status { color: var(--green); font-weight: 600; }
.entry-card.is-warn .entry-card__status { color: var(--orange); font-weight: 600; }
.entry-card.is-alert .entry-card__status { color: var(--red); font-weight: 600; }
.entry-card__action { margin: 10px 0 0; }
.entry__submit { position: sticky; bottom: 76px; display: flex; justify-content: center; }
.entry__submit .btn { min-width: 280px; box-shadow: 0 10px 24px rgba(37, 99, 235, .35); }

/* ───────── Bestellungen ───────── */
.supplier-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.supplier-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.supplier-card:hover { border-color: var(--blue); }
.supplier-card strong { display: block; font-size: 1.05rem; }
.supplier-card small { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.supplier-card small .icon { width: 14px; height: 14px; }
.supplier-card__logo {
  width: 52px; height: 52px; border-radius: 12px; background: #e9f5ea; color: #2e7d32; font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center; flex-shrink: 0; letter-spacing: .03em;
}
.supplier-card__logo--sm { width: 40px; height: 40px; font-size: .85rem; }
.supplier-cards--pick { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.order-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-head__title { flex: 1; min-width: 200px; }
.order-head__title h2 { font-size: 1.5rem; }
.order-head__title p { margin: 0; }
.info-tile { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
.info-tile > .icon { width: 26px; height: 26px; color: var(--text-2); }
.info-tile small { display: block; color: var(--muted); }
.info-tile input[type=date] { border: 0; padding: 0; min-height: 0; font-weight: 700; width: 150px; }
.info-tile input[type=date]:focus { box-shadow: none; }
.info-tile--supplier { min-width: 320px; flex: 0 1 420px; }
.info-tile--supplier strong { display: block; }
.order-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.product-table td { padding-top: 8px; padding-bottom: 8px; }
.product-table tr.is-selected td { background: #f6faff; }
.product { display: flex; align-items: center; gap: 12px; }
.product strong { display: block; font-weight: 600; }
.product small { display: block; color: var(--muted); }
.product__img { width: 42px; height: 42px; border-radius: 10px; background: var(--gray-50); display: grid; place-items: center; font-weight: 700; color: var(--text-2); flex-shrink: 0; }
.unit { display: inline-block; padding: 5px 10px; border: 1px solid var(--border-2); border-radius: 8px; font-size: .85rem; min-width: 52px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 42px; height: 42px; border: 0; background: #fff; cursor: pointer; color: var(--text-2); display: grid; place-items: center; }
.stepper button:hover { background: var(--gray-50); color: var(--text); }
.stepper button .icon { width: 16px; height: 16px; }
.stepper input { width: 72px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0; text-align: center; font-weight: 600; min-height: 42px; padding: 4px; }
.stepper input:focus { box-shadow: none; background: #f6faff; }
.stepper__unit { font-size: .8rem; color: var(--muted); padding: 0 8px; border-right: 1px solid var(--border); align-self: stretch; display: grid; place-items: center; }
.stepper--lg input { width: 90px; font-size: 1.3rem; }
.stepper--inv form { display: contents; }
.stepper__value { padding: 0 12px; min-width: 96px; text-align: center; font-variant-numeric: tabular-nums; }
.star { width: 18px; height: 18px; color: var(--border-2); }
.star.is-fav { color: #f5b301; fill: #f5b301; }
.mail-preview { width: 100%; height: 720px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.mail-header { background: var(--gray-50); padding: 10px 14px; border-radius: 8px; white-space: pre-wrap; margin: 0 0 12px; }

/* ───────── Rezepte ───────── */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.recipe-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.recipe-card:hover { border-color: var(--blue); }
.recipe-card__img { position: relative; height: 150px; background: linear-gradient(150deg, #eef3fb, #dfe7f3); display: grid; place-items: center; color: #9fb0cc; }
.recipe-card__img img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card__img .icon { width: 44px; height: 44px; }
.recipe-card__cat { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); padding: 3px 10px; border-radius: 14px; font-size: .75rem; font-weight: 650; color: var(--text); }
.recipe-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.recipe-card__body strong { font-size: 1.02rem; }
.recipe-card__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--text-2); }
.recipe-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.recipe-card__meta .icon { width: 15px; height: 15px; color: var(--muted); }
.recipe-card__tags { margin-top: auto; padding-top: 4px; }
.recipe__head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.recipe__photo { width: 220px; height: 160px; object-fit: cover; border-radius: 12px; }
.recipe__title { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.recipe__title h2 { font-size: 1.7rem; }
.recipe__tags .diet { font-size: .8rem; padding: 4px 10px; }
.recipe__allergens { font-size: .92rem; background: #fff8ec; border: 1px solid #f5ddb0; padding: 8px 12px; border-radius: 8px; }
.portion-calc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fafbfd; }
.portion-calc input[type=number] { -moz-appearance: textfield; }
.instructions { font-size: .98rem; line-height: 1.6; }
.calc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.calc div { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.calc small { display: block; color: var(--muted); }
.calc strong { font-size: 1.3rem; }
.photo-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.ingredient-table select { min-width: 190px; }
.allergen-picker { display: grid; grid-template-columns: 1fr; gap: 0; max-height: 330px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.allergen-picker .check { margin-bottom: 6px; font-size: .9rem; }
.allergen-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--text-2); }

.menu-grid { min-width: 1100px; }
.menu-cell { padding: 8px !important; }
.menu-cell select { font-size: .88rem; padding: 6px 8px; min-height: 38px; }
.menu-cell__free { margin-top: 6px; font-size: .85rem; min-height: 34px; padding: 5px 8px; }
.menu-cell__meta { margin-top: 5px; min-height: 20px; }
.menu-cell.is-suggested { background: #f7f2ff; }
.menu-cell.is-suggested select { border-color: #c9b3f5; }

/* ───────── Kosten ───────── */
.trend { font-weight: 650; font-size: .82rem; }
.trend--up { color: var(--red); }     /* höhere Kosten = schlecht */
.trend--down { color: var(--green); }
.bars { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bars__label { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 4px; }
.bars__track { height: 10px; background: var(--gray-50); border-radius: 6px; overflow: hidden; }
.bars__track span { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }

/* ───────── Sonstige Seiten ───────── */
.coming-soon { text-align: center; padding: 48px 24px; }
.coming-soon__icon { width: 80px; height: 80px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: inline-grid; place-items: center; margin-bottom: 16px; }
.coming-soon__icon .icon { width: 40px; height: 40px; }
.coming-soon p { max-width: 520px; margin: 10px auto 24px; }
.coming-soon__list { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.coming-soon__list li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; }
.help-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; line-height: 1.55; }
.error-page { text-align: center; padding: 48px; max-width: 560px; margin: 40px auto; }
.error-page__code { font-size: 4rem; font-weight: 800; color: var(--border-2); margin: 0; }
.error-page h2 { margin-bottom: 10px; }
.error-page .btn { margin-top: 16px; }

/* ───────── Anmeldung ───────── */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__hero { background: var(--navy); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; gap: 48px; }
.login__brand { display: flex; align-items: center; gap: 18px; }
.login__brand .brand__logo { background: #fff; color: var(--navy); }
.login__brand strong { display: block; font-size: 3rem; line-height: 1; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.login__brand span { color: #b9c6dc; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; font-weight: 600; }
.login__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 1.15rem; }
.login__features li { display: flex; align-items: center; gap: 16px; }
.login__features .icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--navy-2); }
.login__form { display: grid; place-items: center; padding: 24px; }
.login__card { width: min(420px, 100%); padding: 32px; }
.login__card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login__card .flash { margin-bottom: 14px; }

/* ───────── Druck (HACCP-Protokoll, Menükarte, Rezept) ───────── */
.print-page { background: #e9edf3; }
.print-toolbar { display: flex; gap: 10px; justify-content: center; padding: 16px; }
.print-sheet { background: #fff; width: 210mm; min-height: 297mm; margin: 0 auto 24px; padding: 16mm 14mm; box-shadow: var(--shadow-lg); }
.print-sheet__head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--text); padding-bottom: 10px; margin-bottom: 14px; }
.print-sheet__head h1 { font-size: 1.35rem; }
.print-sheet__head p { margin: 4px 0 0; color: var(--text-2); }
.print-sheet__meta { text-align: right; font-size: .85rem; line-height: 1.5; }
.print-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.print-table th, .print-table td { border: 1px solid #c9d0db; padding: 5px 7px; text-align: left; }
.print-table th { background: #f1f3f7; }
.print-table tr.is-warn td { background: #fff8e6; }
.print-table tr.is-alert td { background: #fdecec; font-weight: 600; }
.print-sheet__foot { display: flex; justify-content: space-between; margin-top: 24px; font-size: .8rem; color: var(--text-2); }
.menu-card { text-align: center; font-family: Georgia, "Times New Roman", serif; }
.menu-card__head { margin-bottom: 18px; }
.menu-card__head h1 { font-size: 2.2rem; font-style: italic; margin: 4px 0; }
.menu-card__head p { color: var(--text-2); margin: 0; letter-spacing: .06em; }
.menu-card__day { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #e3e8ef; break-inside: avoid; }
.menu-card__day h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-3); margin-bottom: 6px; }
.menu-card__dish { margin: 4px 0; font-size: 1.02rem; }
.menu-card__dish small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: Inter, system-ui, sans-serif; }
.menu-card__dish sup { color: #9a5b00; font-size: .7rem; font-family: Inter, system-ui, sans-serif; }
.menu-card__foot { font-size: .75rem; color: var(--text-2); margin-top: 18px; font-family: Inter, system-ui, sans-serif; line-height: 1.6; }

@media print {
  @page { size: A4; margin: 12mm; }
  body, .print-page { background: #fff; }
  .no-print, .sidebar, .topbar, .bottombar, .flash, .print-toolbar { display: none !important; }
  .content { padding: 0; }
  .print-sheet { box-shadow: none; margin: 0; padding: 0; width: auto; min-height: 0; }
  .page-break { break-before: page; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .grid--1-2 { grid-template-columns: 1fr 2fr; }
}

/* ───────── Responsiv: Tablet & Smartphone ───────── */
@media (max-width: 1280px) {
  .layout-aside, .haccp-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 > :last-child { grid-column: 1 / -1; }
  .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tiles { margin-left: 0; }
}

@media (max-width: 1080px) {
  :root { --sidebar-w: 0px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 35, 66, .4); z-index: 35; }
  .topbar__menu { display: inline-grid; }
  .topbar { padding: 12px 18px; }
  .content { padding: 18px 18px 110px; }
  .layout-aside, .layout-aside--wide, .layout-aside--left, .haccp-layout, .grid--2-1, .grid--1-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky { position: static; }
  .user-chip__text { display: none; }
  .search input { width: 160px; }
}

@media (max-width: 720px) {
  :root { font-size: 15px; }
  .topbar__title h1 { font-size: 1.2rem; }
  .crumbs { display: none; }
  .topbar .search { display: none; }
  .content { padding: 14px 12px 100px; gap: 14px; }
  .card { padding: 14px; }
  .card__head--pad { padding: 14px 14px 0; }
  .grid--2, .grid--3, .kpis, .kpis--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--3 > :last-child { grid-column: auto; }
  .kpi__value { font-size: 1.45rem; }
  .week-mini { grid-template-columns: minmax(0, 1fr); }
  .week-mini__day { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .week-mini__head { flex-direction: row; gap: 8px; margin: 0; width: 70px; }
  .week-mini__day .chip { margin: 0; }
  .bottombar a span { display: none; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .info-tile--supplier { min-width: 0; flex: 1 1 100%; flex-wrap: wrap; }
  .order-head__title h2 { font-size: 1.25rem; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: 1fr; }
  .login__hero { padding: 32px 24px; gap: 24px; }
  .login__features { display: grid; grid-template-columns: 1fr 1fr; font-size: .95rem; gap: 12px; }
  .login__features .icon { width: 38px; height: 38px; padding: 9px; }
  .dialog { padding: 18px; }
  .entry__grid { grid-template-columns: minmax(0, 1fr); }
  .entry__submit .btn { min-width: 0; width: 100%; }
  .toolbar__spacer { display: none; }
  .print-sheet { width: auto; min-height: 0; padding: 16px; }
}

/* Feinschliff kleine Bildschirme */
.topbar__title h1 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 720px) {
  .btn { white-space: normal; text-align: center; }
  .order-filters > .btn, .order-filters .search--field { width: 100%; max-width: none; }
  .topbar { gap: 8px; padding: 10px 12px; }
  .topbar__actions { gap: 2px; }
  .user-chip { padding-left: 6px; margin-left: 0; border-left: 0; }
  .user-chip__chev { display: none; }
  .order-head > .btn--lg { min-height: 40px; padding: 6px 12px; font-size: .95rem; }
}
.product-table { min-width: 620px; }
.product-table td:nth-child(3), .product-table td:nth-child(5) { white-space: nowrap; }

/* Sprachauswahl */
.lang-btn { width: auto; padding: 0 10px; gap: 5px; display: inline-flex; border-radius: 22px; font-weight: 650; font-size: .82rem; }
.lang-btn .icon { width: 18px; height: 18px; }
.lang-code { display: inline-block; min-width: 26px; font-weight: 700; font-size: .78rem; color: var(--muted); }
.dropdown__panel button.is-active { font-weight: 650; color: var(--blue); }
.lang-check { margin-left: auto; width: 16px; height: 16px; }
.login__lang { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.login__lang a { padding: 6px 12px; border-radius: 16px; border: 1px solid var(--border-2); font-size: .85rem; font-weight: 600; color: var(--text-2); }
.login__lang a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 720px) { .lang-btn span { display: none; } .lang-btn { padding: 0; width: var(--tap); } }
.print-toolbar__lang { display: inline-flex; gap: 4px; }
