@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lobster"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/lobster-latin-400-normal.woff2") format("woff2"); }

/* Farben aus dem Flyer: dunkles Holz, Creme-Pillen, Grün, Orange, Bordeaux */
:root {
  --bg: #f6efe2;
  --surface: #fffdf8;
  --ink: #241e1b;
  --muted: #6a5d52;
  --line: #e3d5bb;
  --accent: #00843a;
  --accent-hover: #006c2f;
  --accent-ink: #ffffff;
  --accent-soft: #d9eedd;
  --brand-green: #009641;
  --orange: #ef7d00;
  --tan: #efc581;
  --tan-soft: #f9ebcf;
  --deep: #16423d;
  --burgundy: #582125;
  --wood: #1f1a19;
  --wood-2: #2d2726;
  --h2: #16423d;
  --warn: #9a4a00;
  --warn-soft: #fde6c8;
  --bad: #a8231b;
  --bad-soft: #f8dcd9;
  --blue: #1f5f9f;
  --blue-soft: #dbe8f5;
  --font-display: "Lobster", "Brush Script MT", cursive;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181413; --surface: #26201f; --ink: #f4ead8; --muted: #bba99a; --line: #3d3431;
    --accent: #3cc874; --accent-hover: #5fd68e; --accent-ink: #08170d; --accent-soft: #1d3a29;
    --tan-soft: #3a3022; --h2: #efc581;
    --warn: #f4a655; --warn-soft: #3c2a14; --bad: #f08a82; --bad-soft: #3d1f1c;
    --blue: #86b6ea; --blue-soft: #1c2f44;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font-body); }
h1, h2, h3 { font-family: var(--font-body); line-height: 1.2; margin: 0 0 .5rem; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.4rem; color: var(--h2); }
h3 { font-size: 1rem; margin-top: 1rem; font-weight: 600; }
a { color: var(--accent); }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hidden { display: none !important; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Kopfleiste: dunkles Holz mit grün-orangem Band wie im Flyer */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px max(16px, env(safe-area-inset-left)); color: #f4ead8;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px), linear-gradient(180deg, var(--wood-2), var(--wood)); position: sticky; top: 0; z-index: 20; }
.ribbon { height: 7px; background: linear-gradient(104deg, var(--brand-green) 0 64%, var(--orange) 64% 100%); }
.brand { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; color: var(--tan); font: 400 1.5rem var(--font-display); }
.brand .stars { color: var(--brand-green); font: 600 .62rem var(--font-body); letter-spacing: .25em; }
.brand small { font: 500 .66rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #cdbfae; }
.bar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.bar nav a { padding: 7px 10px; border-radius: 99px; text-decoration: none; color: #eadfcc; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.bar nav a:hover { background: rgba(255,255,255,.08); }
.bar nav a.on { background: var(--tan); color: var(--deep); font-weight: 600; }
.logout { margin: 0 0 0 6px; }
.logout .btn { background: transparent; color: #eadfcc; border-color: rgba(255,255,255,.28); }
.logout .btn:hover { border-color: var(--tan); }
.whoami { color: #cdbfae; font-weight: 400; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--tan); font: 600 .95rem var(--font-body); cursor: pointer; }
@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .bar nav { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; padding: 6px 0 10px; border-top: 1px solid rgba(255,255,255,.12); }
  .bar.open nav { display: flex; }
  .bar nav a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .logout { margin: 6px 0 0; }
  .logout .btn { width: 100%; min-height: 48px; justify-content: center; }
  .bar { max-height: 100vh; overflow-y: auto; }
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-left)) 56px; display: flex; flex-direction: column; gap: 16px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.card.narrow { max-width: 440px; margin: 8vh auto 0; width: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.count { font: 600 .8rem var(--font-body); background: var(--warn-soft); color: var(--warn); border-radius: 99px; padding: 1px 9px; margin-left: 6px; vertical-align: middle; }

/* Knöpfe und Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; min-width: 0; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; min-height: 44px; padding: 0 11px; width: 100%; min-width: 0; font-weight: 400; }
textarea { padding: 9px 11px; resize: vertical; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--accent); }
input[type="color"] { width: 44px; padding: 2px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; padding: 0 6px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.eventform .card { display: flex; flex-direction: column; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label { min-width: 150px; }
.filters label.check { min-width: 0; min-height: 44px; }
.override { background: var(--warn-soft); padding: 10px 12px; border-radius: 10px; color: var(--warn); }

.flash { border-radius: 10px; padding: 10px 14px; margin: 0; background: var(--accent-soft); color: var(--ink); }
.flash.err { background: var(--bad-soft); }
.flash.warn { background: var(--warn-soft); }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash p { margin: .5rem 0 0; }

/* Veranstaltungsliste */
.elist { display: flex; flex-direction: column; }
.erow { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.elist .erow:first-child { border-top: 0; }
.erow:hover { background: var(--bg); }
.erow .when { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.erow .when span { color: var(--muted); font-size: .88rem; }
.erow .what { display: flex; flex-direction: column; min-width: 0; }
.erow .what .muted { font-size: .9rem; overflow-wrap: anywhere; }
.erow.s-abgesagt .what b { text-decoration: line-through; color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font: 700 .78rem var(--font-body); white-space: nowrap; background: var(--bg); color: var(--muted); }
.badge.s-bestaetigt { background: var(--accent-soft); color: var(--accent); }
.badge.s-angebot { background: var(--blue-soft); color: var(--blue); }
.badge.s-anfrage { background: var(--warn-soft); color: var(--warn); }
.badge.s-abgesagt { background: var(--bad-soft); color: var(--bad); }

/* Kalender */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.toolbar .heading { font: 700 1.05rem var(--font-display); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg a { padding: 7px 16px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 700; text-align: center; }
.seg a.on { background: var(--accent); color: var(--accent-ink); }
.nav3 { display: flex; gap: 6px; }
.roomfilter { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.pill.on { border-color: var(--c, var(--accent)); box-shadow: inset 0 0 0 1px var(--c, var(--accent)); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.week { border-collapse: collapse; width: 100%; min-width: 860px; table-layout: fixed; }
.week th, .week td { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px; vertical-align: top; text-align: left; }
.week thead th { border-top: 0; font-size: .88rem; }
.week th:first-child, .week td:first-child { border-left: 0; }
.week .roomcol { width: 120px; font-size: .92rem; }
.week .roomcol .dot { margin-right: 6px; }
.week td { height: 84px; }
.week .today { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.chip { display: block; margin-bottom: 4px; padding: 3px 7px; border-radius: 7px; border-left: 4px solid var(--c, var(--accent)); background: var(--accent-soft); color: var(--ink); text-decoration: none; font-size: .82rem; line-height: 1.25; overflow-wrap: anywhere; }
.chip b { font-variant-numeric: tabular-nums; }
.chip.s-angebot { background: var(--blue-soft); }
.chip.s-anfrage { background: transparent; border: 1px dashed var(--c, var(--accent)); border-left-width: 4px; }
.add { display: inline-block; color: var(--muted); text-decoration: none; padding: 0 6px; border-radius: 6px; opacity: .55; }
.add:hover { opacity: 1; background: var(--bg); }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mh { background: var(--surface); padding: 6px; font-weight: 700; font-size: .85rem; text-align: center; color: var(--muted); }
.mday { background: var(--surface); min-height: 104px; padding: 4px; overflow: hidden; }
.mday.other { background: var(--bg); }
.mday.other .dnum { color: var(--muted); }
.mday.today .dnum { background: var(--accent); color: var(--accent-ink); }
.dnum { display: inline-block; min-width: 24px; text-align: center; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: 3px; }
.mday .chip { font-size: .74rem; padding: 2px 5px; margin-bottom: 3px; }
.more { font-size: .76rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }

/* Detail */
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.plain { border-collapse: collapse; width: 100%; }
.plain td { padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.plain tr:first-child td { border-top: 0; }
.plain .num { width: 56px; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.list td { padding: 10px 4px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.log li { border-top: 1px solid var(--line); padding-top: 10px; }
.log li:first-child { border-top: 0; padding-top: 0; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; }
details.danger { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
details.danger summary { cursor: pointer; font-weight: 700; color: var(--bad); }

/* Formulare mit Listen */
.items { display: flex; flex-direction: column; gap: 8px; }
.item { display: grid; grid-template-columns: minmax(0, 2fr) 76px 96px minmax(0, 1.4fr) 40px; gap: 8px; }
.roomrow, .userrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.roomrow:first-of-type, .userrow:first-of-type { border-top: 0; }
.roomrow input[type="text"] { flex: 1 1 160px; width: auto; }
.offer-table th { text-align: left; }
.offer-table .num, .offer-table th.num { text-align: right; }
.roomrow input[type="number"] { width: 90px; }
.userrow input[type="text"] { flex: 1 1 160px; width: auto; }
.userrow input[type="password"] { flex: 1 1 180px; width: auto; }
.userrow select { width: auto; }
.userrow .email { flex: 1 1 100%; }
.userrow.off { opacity: .6; }

/* Küche */
.kday h3 { font-size: .95rem; color: var(--muted); }
.total td { font-size: 1.15rem; }
.kevent { border-top: 1px solid var(--line); padding: 10px 0; }
.khead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kevent.s-angebot { opacity: .8; }
.warnline { color: var(--warn); }
.kitems { margin: 6px 0 0; padding-left: 20px; }
.printonly { display: none; }

@media (max-width: 640px) {
  .erow { grid-template-columns: 78px 1fr; }
  .erow .badge { grid-column: 2; justify-self: start; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .item { grid-template-columns: 1fr 64px 84px 36px; }
  .item input[name="item_note"] { grid-column: 1 / 4; grid-row: 2; }
  .month .chip b { display: none; }
  .mday { min-height: 78px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .bar, .noprint, .btn, .flash, details { display: none !important; }
  .printonly { display: block; }
  .wrap { max-width: none; padding: 0; gap: 8px; }
  .card { border: 0; padding: 0; break-inside: avoid-page; }
  .kday { page-break-after: always; }
  .kday:last-of-type { page-break-after: auto; }
  .muted { color: #333; }
}

/* Lieferdienst */
.weeknav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
form.inline { display: inline-flex; gap: 6px; margin: 0; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.day { min-height: 58px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; color: var(--ink); }
.day b { font-size: 1.05rem; }
.day span { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.day[data-on="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.day.heute b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 5px; vertical-align: middle; }
.pack { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.pack li { display: flex; align-items: baseline; gap: 6px; }
.pack .n { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pack .c { font-size: .78rem; font-weight: 700; color: var(--muted); }
.pack li.zero { opacity: .38; }
.prog { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.prog .row { display: flex; justify-content: space-between; font-size: .92rem; }
.pbar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); }
.stops { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stop { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 18px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.stop::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--line); }
.stop[data-state="geliefert"]::before { background: var(--accent); }
.stop[data-state="nicht"]::before { background: var(--warn); }
.stop .head { display: flex; gap: 12px; align-items: flex-start; }
.nr { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 700; display: grid; place-items: center; }
.who { flex: 1; min-width: 0; }
.who h3 { margin: 0; font-size: 1.2rem; }
.who p { margin: 2px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.route { flex: none; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--accent); }
.portions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.portions li { display: flex; align-items: baseline; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.portions li small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.portions li.gs { background: var(--accent-soft); border-color: transparent; }
.note { margin: 0; border-radius: 9px; padding: 8px 11px; font-size: .95rem; }
.note.extras { background: var(--warn-soft, #fbe8d3); color: var(--warn); }
.note.hinweis { background: var(--bg); color: var(--muted); }
.actions2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.actions2 form, .toggles form { display: contents; }
.btn.big { min-height: 50px; width: 100%; }
.done { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; }
.done strong { color: var(--accent); }
.stop[data-state="nicht"] .done strong { color: var(--warn); }
.link { background: none; border: 0; text-decoration: underline; color: var(--muted); min-height: 44px; padding: 0 4px; font: inherit; cursor: pointer; }
.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.toggles.two { grid-template-columns: 1fr 1fr; }
.tg { line-height: 1.2; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; padding: 0 6px; cursor: pointer; }
.tg[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ab { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ab li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ab .l1 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.betrag { font-weight: 700; font-variant-numeric: tabular-nums; }
.sum { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; padding: 3px 0; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.tag.rech { background: var(--warn-soft, #fbe8d3); color: var(--warn); }
.planedit { border-collapse: collapse; width: 100%; }
.planedit th { font-size: .8rem; color: var(--muted); padding: 4px; text-align: center; }
.planedit tbody th { text-align: left; color: var(--ink); font-size: 1rem; padding-right: 8px; }
.planedit td { padding: 3px; }
.planedit input[type="number"] { width: 58px; text-align: center; }
.planedit input[type="text"] { min-width: 140px; }
tr.off { opacity: .6; }
.kdeliv h3 { margin-top: 14px; }
@media (max-width: 380px) { .actions2 { grid-template-columns: 1fr; } }
.kt { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.kt th { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 6px 4px; text-align: center; }
.kt tbody th, .kt tfoot th { text-align: left; font-size: .95rem; color: var(--ink); white-space: nowrap; padding-right: 8px; }
.kt td { text-align: center; font-size: 1.15rem; padding: 9px 4px; border-top: 1px solid var(--line); }
.kt tbody th { border-top: 1px solid var(--line); }
.kt td.z { color: var(--muted); opacity: .5; }
.kt td.tot { font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.kt tr.heute th::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 5px; vertical-align: middle; }
.kt tfoot th, .kt tfoot td { border-top: 2px solid var(--ink); font-weight: 700; }
.exl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exl ul { margin: 2px 0 0; padding-left: 18px; }

/* Dienstplan */
.week.plan { min-width: 900px; }
.week .hcol { width: 56px; text-align: right; }
.week td { vertical-align: top; }
.chip.off { background: var(--warn-soft, #fbe8d3); border-left-color: var(--warn); color: var(--warn); font-weight: 700; }
span.chip { cursor: default; }
@media print { .week.plan { min-width: 0; font-size: 9pt; } .tablewrap { border: 0; } }

/* ---------- Flyer-Look: Bauteile ---------- */
.pagehead h1 { display: inline-block; margin: 0; padding: .12em .75em .18em; border-radius: 99px; background: var(--tan); color: var(--deep); font-size: 1.65rem; line-height: 1.2; }
.pagehead h1 .muted { font: 500 .8rem var(--font-body); color: var(--deep); opacity: .75; }
.pagehead h2 { margin: 0; }
.card { border-radius: 18px; border-color: var(--line); box-shadow: 0 1px 0 rgba(60,40,20,.04), 0 6px 18px -12px rgba(60,40,20,.25); }
.btn { border-radius: 99px; font-family: var(--font-body); font-weight: 600; }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:hover { border-color: var(--accent); }
.btn.small { min-height: 38px; }
a { color: var(--accent); }
input, select, textarea { border-radius: 12px; background: var(--surface); border-color: var(--line); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.flash { border-radius: 14px; background: var(--tan-soft); border: 2px dashed var(--tan); color: var(--ink); }
.flash.err { background: var(--bad-soft); border-color: var(--bad); }
.flash.warn { background: var(--warn-soft); border-color: var(--orange); }
.pill { background: var(--surface); }
.pill.on { background: var(--tan); border-color: var(--tan); box-shadow: none; color: var(--deep); font-weight: 600; }
.seg a.on { background: var(--accent); }
.count { background: var(--orange); color: #fff; }
.badge.s-anfrage { background: var(--warn-soft); color: var(--warn); }
.erow:hover { background: var(--tan-soft); }
.week .today, .mday.today { background: color-mix(in srgb, var(--tan-soft) 80%, transparent); }
.tag { background: var(--accent-soft); color: var(--accent); }
.nr { background: var(--wood); color: var(--tan); }
.day[data-on="true"] { border-color: var(--accent); background: var(--tan-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.kt td.tot { background: var(--tan-soft); color: var(--deep); }
.tablewrap { border-radius: 18px; }
.total td { font-size: 1.1rem; }
.printonly h2, h2.printonly { color: #000; }

/* Anmeldeseite: Holz mit Creme-Pille */
body.guest { background: radial-gradient(1200px 500px at 50% -10%, #3a3130, transparent 70%), repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, transparent 2px 9px), var(--wood); min-height: 100vh; }
body.guest .wrap { justify-content: center; min-height: 100vh; }
.login-hero { text-align: center; color: #f4ead8; margin-bottom: 4px; }
.login-hero .logo { display: inline-block; padding: .18em .8em .22em; border-radius: 22px; background: #fffdf8; color: var(--burgundy); border: 4px solid var(--orange); font: 400 2.2rem/1.1 var(--font-display); }
.login-hero .stars { display: block; color: var(--brand-green); font: 600 .7rem var(--font-body); letter-spacing: .35em; margin-bottom: 2px; }
.login-hero p { margin: 10px 0 0; font-weight: 500; color: var(--tan); }
body.guest .card.narrow { margin-top: 0; background: var(--surface); }
body.guest .card.narrow h1 { display: none; }
body.guest .flash { color: var(--ink); }

/* ---------- Handy ---------- */
.mobile-only { display: none; }
.agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda .aday h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .95rem; color: var(--h2); }
.agenda .aday.today h3::after { content: "Heute"; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 600; padding: 1px 9px; border-radius: 99px; }
.agenda .aitem { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--accent)); text-decoration: none; color: var(--ink); margin-bottom: 6px; }
.agenda .aitem .t { font-weight: 600; font-variant-numeric: tabular-nums; font-size: .88rem; }
.agenda .aitem .w { min-width: 0; overflow-wrap: anywhere; }
.agenda .aitem .w small { display: block; color: var(--muted); }
.agenda .aitem.s-anfrage { border-style: dashed; border-left-style: solid; }
.agenda .none { color: var(--muted); font-size: .88rem; margin: 0; }
.artrow { display: grid; grid-template-columns: minmax(0, 2fr) 96px 120px 90px minmax(0, 2fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.artrow.off { opacity: .6; }
.artrow input { min-height: 40px; }
.artview { display: grid; grid-template-columns: minmax(0, 2fr) auto auto; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); align-items: baseline; }

@media (max-width: 720px) {
  .mobile-only { display: block; }
  .desktop-only { display: none !important; }
  h1 { font-size: 1.45rem; }
  .pagehead { align-items: center; }
  .pagehead h1 { font-size: 1.45rem; }
  .pagehead .btn.primary, .pagehead .actions .btn { min-height: 44px; }
  .wrap { padding-top: 14px; gap: 14px; }
  .card { padding: 14px; }
  .erow { grid-template-columns: 74px 1fr; }
  .erow .badge { grid-column: 2; justify-self: start; }
  /* Monat: nur Punkte, Details in der Liste darunter */
  .mday { min-height: 54px; padding: 3px; text-align: center; }
  .mday .chip { display: inline-block; width: 9px; height: 9px; padding: 0; margin: 1px; border-radius: 50%; border: 0; background: var(--c, var(--accent)); overflow: hidden; color: transparent; font-size: 0; vertical-align: top; }
  .mday .chip.s-anfrage { background: transparent; border: 2px solid var(--c, var(--accent)); width: 9px; height: 9px; }
  .mday .chip b { display: none; }
  .mday .more { display: none; }
  .dnum { min-width: 28px; line-height: 28px; font-size: .9rem; }
  .artrow { grid-template-columns: minmax(0, 1fr) 96px; }
  .artrow .a-note, .artrow .a-check { grid-column: 1 / -1; }
  .artrow .a-unit { grid-column: 1; }
  .artrow .a-min { grid-column: 2; }
  .artrow .a-save { grid-column: 1 / -1; }
  .artrow .a-save .btn { width: 100%; }
  .artview { grid-template-columns: 1fr auto; }
  .artview .a-meta { grid-column: 1 / -1; }
  .roomrow { align-items: stretch; }
  .roomrow > * { flex: 1 1 100%; }
  .roomrow input[type="number"], .roomrow input[type="color"], .roomrow label.check { flex: 0 0 auto; }
  .roomrow input[type="text"], .roomrow input[type="tel"], .roomrow select, .roomrow input[type="date"] { width: 100%; }
  .week .roomcol { width: 100px; }
  .planedit input[type="text"] { min-width: 110px; }
}

/* Angebot, Versand, Kundenseite */
.offer-head { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.offer h2 { margin: 0; }
.offer-title { font-family: 'Lobster', cursive; font-weight: 400; font-size: 1.7rem; color: var(--deep); margin: 4px 0 10px; }
.offerline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 16px; }
.offerline .flash { flex: 1 0 100%; margin: 0; }
.steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.steps li { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.steps li.done { background: var(--accent-soft); border-color: var(--accent); }
.steps li.now { background: var(--tan-soft); border-color: var(--tan); }
.linkbox { display: block; overflow-wrap: anywhere; padding: 6px 10px; background: var(--tan-soft); border-radius: 8px; margin-top: 4px; }
.custwrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.custh { font-family: 'Lobster', cursive; font-weight: 400; color: var(--tan); text-align: center; font-size: 2.2rem; margin: 0 0 16px; }
body.guest .custwrap .muted { color: #d9cdb8; }
body.guest .custwrap .card { color: var(--ink); }
body.guest .custwrap .card .muted { color: var(--muted); }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.presets{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 10px}.more{border:1px solid var(--line);border-radius:14px;padding:8px 14px;margin:8px 0}.more summary{cursor:pointer;font-weight:600}.more label{margin-top:10px}
.custwrap > .card, .custwrap > .actions, .custwrap > .flash { margin-bottom: 14px; }

/* Küchenzettel, Chips */
.kz-title { font-family: 'Lobster', cursive; font-weight: 400; font-size: 2rem; color: var(--deep); margin: 0 0 6px; }
.kz-meta { font-size: 1.1rem; line-height: 1.6; }
.kz-allergy { background: var(--bad-soft); border: 2px solid var(--bad); border-radius: 12px; padding: 10px 14px; font-size: 1.15rem; margin: 10px 0; }
.kz-table td { font-size: 1.25rem; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kz-table .num { width: 4.5rem; text-align: right; white-space: nowrap; }
.kz-table .kz-check { width: 2rem; font-size: 1.6rem; text-align: center; }
.kz-note { font-size: .95rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }

/* Beratungsmodus (Tablet) */
#beratung { width: 100%; max-width: 1000px; margin: 0 auto; padding-bottom: 96px; }
.bsteps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; overflow-x: auto; }
.bsteps li { flex: 1 0 auto; text-align: center; padding: 12px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; white-space: nowrap; }
.bsteps li.on { background: var(--tan); color: var(--deep); border-color: var(--tan); }
.bsteps li.done { background: var(--accent-soft); }
.bstep h2 { margin: 18px 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile { min-height: 64px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.tile b { font-weight: 600; }
.tile span { font-size: .85rem; color: var(--muted); }
.tile.on { border-color: var(--brand-green); background: var(--accent-soft); }
.tile[data-busy="1"] { border-color: var(--bad); background: var(--bad-soft); }
.tile.on[data-busy="1"] { border-color: #c0392b; }
.dietcell { cursor: default; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper .btn { min-width: 48px; min-height: 48px; font-size: 1.4rem; padding: 0; }
.stepper input { width: 80px; text-align: center; font-size: 1.2rem; min-height: 48px; }
.stepper .cnt { min-width: 1.6rem; text-align: center; font-weight: 700; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 10px; }
.bfield { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin-bottom: 10px; }
.bfield input, #beratung input[type=search], #beratung input[type=text] { min-height: 48px; font-size: 1.05rem; }
.sel { display: grid; grid-template-columns: 1fr auto minmax(120px, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.selname { display: flex; flex-direction: column; }
.bcustom { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bcustom input { flex: 1 1 180px; }
.bcustom .cprice { flex: 0 0 120px; }
.bwarn { color: #b45309; font-weight: 600; }
.bfoot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--wood); color: #fff; z-index: 20; }
.bfoot .btotal { font-size: 1.15rem; color: var(--tan); text-align: center; }
.bfoot .btotal .muted { color: #d9cdb8; }
.bfoot .btn { min-height: 52px; min-width: 120px; }
.sigwrap { border: 2px dashed var(--tan); border-radius: 14px; background: #fff; margin: 8px 0; }
.sigpad { width: 100%; height: auto; aspect-ratio: 10 / 3; touch-action: none; display: block; }
.btn.big { min-height: 56px; font-size: 1.1rem; }
.sigimg { max-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 640px) { .sel { grid-template-columns: 1fr auto; } .sel .selnote { grid-column: 1 / -1; } }
.offer-table th, .offer-table td { padding: 6px 8px; }

.todorow { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.todorow:first-of-type { border-top: 0; }
.todo { border-left: 6px solid var(--orange); }

.tile .tdesc { font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sel .selnote { min-width: 0; }
.dish { margin: 6px 0 2px; font-size: .98rem; }
.dish b:first-child { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-right: .2em; border-radius: 6px; background: var(--bg); text-align: center; }
.menuday { margin: 0 0 14px; }
.menuday h3 { margin: 0 0 6px; font-size: 1rem; }
.card .menuslot { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 4px 0; }
.menuslot .sl { flex: 0 0 1.8em; text-align: center; font-weight: 700; background: var(--bg); border-radius: 6px; padding: 8px 0; }
.card .menuslot input { flex: 1 1 auto; min-width: 0; width: auto; margin: 0; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dish-edit { border-top: 1px solid var(--line, #ddd); padding: 8px 0; }
.dish-edit summary { cursor: pointer; }
.dish-edit.off { opacity: .6; }

/* Menügruppen (aufklappbar) */
.navgroup { position: relative; }
.navgroup > summary { list-style: none; cursor: pointer; padding: 7px 10px; border-radius: 99px; color: #eadfcc; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary::after { content: " ▾"; font-size: .75em; }
.navgroup > summary:hover { background: rgba(255,255,255,.08); }
.navgroup.on > summary { background: var(--tan); color: var(--deep); font-weight: 600; }
.navmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.bar .navmenu a, .navmenu a { color: var(--ink, #2b2118); padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.bar .navmenu a:hover, .navmenu a:hover { background: rgba(0,0,0,.06); }
.pillgroup { display: inline-block; }
.pillgroup > summary.pill::after { content: " ▾"; font-size: .75em; }
.pillgroup .navmenu { right: auto; left: 0; }
.pillgroup.on > summary { background: var(--tan); }
@media (max-width: 1099px) {
  .bar nav .navgroup > summary { padding: 13px 14px; font-size: 1rem; }
  .bar nav .navmenu { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.06); margin: 0 0 4px 12px; }
  .bar nav .navmenu a { color: #eadfcc; }
  .bar nav .navmenu a:hover { background: rgba(255,255,255,.08); }
}
.pillgroup > summary.pill { color: var(--ink, #2b2118); font-weight: 600; font-size: inherit; }
.pillgroup > summary.pill:hover { background: var(--surface); }

/* Postfach */
.badge-n { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--accent, #00843d); color: #fff; font-size: .72rem; line-height: 18px; text-align: center; font-weight: 700; }
.bar nav a .badge-n { background: var(--tan); color: var(--deep); }
.mailgrid { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
.mailfolders { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.mailfolders a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: inherit; font-weight: 500; }
.mailfolders a:hover { background: rgba(0,0,0,.05); }
.mailfolders a.on { background: var(--tan); font-weight: 700; }
.mailrow { display: grid; grid-template-columns: 190px 1fr auto; gap: 4px 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: baseline; }
.mailrow:hover { background: rgba(0,0,0,.03); }
.mailrow .who, .mailrow .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailrow.unread .who, .mailrow.unread .subj { font-weight: 700; }
.mailrow .tag { grid-column: 2 / 4; justify-self: start; margin-left: 0; }
.mailhead { display: grid; grid-template-columns: 70px 1fr; gap: 4px 12px; margin: 0 0 14px; }
.mailhead dt { color: var(--muted, #6b5f50); font-weight: 600; }
.mailhead dd { margin: 0; overflow-wrap: anywhere; }
.mailbody { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: transparent; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.atts { margin: 0; padding-left: 18px; }
.err-text { color: var(--bad); }
@media (max-width: 760px) {
  .mailgrid { grid-template-columns: 1fr; }
  .mailfolders { flex-direction: row; flex-wrap: wrap; }
  .mailrow { grid-template-columns: 1fr auto; }
  .mailrow .subj { grid-column: 1 / 3; grid-row: 2; }
  .mailrow .tag { grid-column: 1 / 3; }
}
@media (min-width: 1100px) and (max-width: 1399px) { .bar nav .whoami { display: none; } }

/* Zettel-Erkennung */
#zettel canvas { width: 100%; max-width: 720px; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.planedit td.unsure input, .planedit td.unsure select { outline: 3px solid #e07b00; border-radius: 8px; }
.hidden { display: none !important; }

/* Tourenkarte */
.tourmap > summary { cursor: pointer; }
#tourmap { height: 320px; border-radius: 12px; margin: 10px 0 6px; border: 1px solid var(--line); z-index: 0; }
.mk span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1b1b1b; border: 3px solid #e07b00; font: 700 .85rem var(--font-body, sans-serif); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.mk.geliefert span { background: #00843d; border-color: #00843d; color: #fff; }
.mk.nicht span { background: #b3261e; border-color: #b3261e; color: #fff; }
.mk.depot span { background: #1d2b24; border-color: #1d2b24; color: #f0c987; }
@media (max-width: 760px) { #tourmap { height: 260px; } }
.zb td { vertical-align: top; }
.zb img { width: 90px; height: auto; border: 1px solid var(--line); border-radius: 6px; display: block; }
.zb .warn { color: #b45f00; font-weight: 600; }
.zb select { min-width: 170px; }

/* Waren */
.tbl { border-collapse: collapse; width: 100%; }
.tbl th, .tbl td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: .82rem; color: var(--muted); font-weight: 700; }
.tbl tfoot td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
ul.plain { list-style: none; margin: 0 0 10px; padding: 0; }
ul.plain li { padding: 4px 0; }
.tbl input[type="text"], .tbl input[type="date"] { min-height: 38px; width: 100%; min-width: 90px; }
.tbl .qty { max-width: 130px; }
.bad { color: var(--bad); font-weight: 700; }
.good { color: var(--accent); font-weight: 700; }
.reciperow { display: grid; grid-template-columns: 1fr 140px; gap: 8px; margin-bottom: 8px; }
.alg { display: inline-block; min-width: 1.5em; text-align: center; padding: 0 5px; margin-right: 3px; border-radius: 6px; background: var(--warn-soft, #fbe8d3); color: var(--warn); font-weight: 700; font-size: .8rem; }
