/* Restorante – das Bestell-Journal. Schreibtisch, aufgeschlagenes Buch, Register, Zettel, Kassenbuch. */
:root {
  --desk: #2b1d16;
  --desk-2: #3b281d;
  --paper: #fbf6ec;
  --paper-2: #f3ead9;
  --edge: #e6dac6;
  --ink: #2a2420;
  --ink-soft: #6f6357;
  --line: #e2d6c3;
  --accent: #8b2a1e;
  --gold: #b8893a;
  --green: #3f6b3a;
  --red: #b3261e;
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body: 'Lora', Georgia, serif;
  --f-hand: 'Caveat', 'Segoe Print', cursive;
  --radius: 10px;
  --page-pad: clamp(18px, 3vw, 38px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--desk);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
code, .mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; }
.muted { color: var(--ink-soft); }
.ico { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }

/* ------------------------------------------------------------ Startbild */
.boot { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #4a3226, var(--desk) 70%); }
.boot-cover {
  width: min(320px, 70vw); aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; display: grid; place-content: center; text-align: center;
  background: linear-gradient(90deg, #5d1a12 0 14px, #7a2418 14px), #7a2418;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 10px rgba(255, 255, 255, .04), inset 22px 0 30px -18px rgba(0, 0, 0, .5);
  animation: bootPulse 1.6s ease-in-out infinite alternate;
}
.boot-title { font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; color: #e9c77b; letter-spacing: .06em; text-shadow: 0 1px 0 #3b0f09; }
.boot-sub { font-family: var(--f-body); font-style: italic; color: #e7d3a8; margin-top: 6px; }
@keyframes bootPulse { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* ------------------------------------------------------------ Schreibtisch */
.desk {
  min-height: 100vh;
  padding: 10px clamp(10px, 2vw, 26px) 26px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 220, 170, .10), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(0, 0, 0, .35), transparent 60%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--desk-2), var(--desk));
}
.deskbar { max-width: 1380px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #e9dcc6; font-size: .9rem; min-height: 34px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); letter-spacing: .04em; }
.brand b { font-weight: 700; }
.brand em { font-style: normal; color: #e9c77b; font-family: var(--f-body); font-size: .85em; border: 1px solid rgba(233, 199, 123, .5); border-radius: 20px; padding: 0 9px; }
.deskbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.who { display: inline-flex; gap: 6px; align-items: center; }
.net-warn { display: inline-flex; gap: 6px; align-items: center; background: #b8893a; color: #2b1d16; border-radius: 20px; padding: 3px 12px; font-size: .85rem; font-weight: 600; }
.net-warn svg { animation: net-spin 1.6s linear infinite; }
@keyframes net-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .net-warn svg { animation: none; } }
.who small { opacity: .7; }
.bar-btn { background: transparent; border: 1px solid rgba(233, 220, 198, .3); color: #e9dcc6; border-radius: 20px; padding: 3px 12px; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.bar-btn:hover { background: rgba(255, 255, 255, .08); }
.bar-btn.update { background: #3f6b3a; border-color: #3f6b3a; color: #fff; font-weight: 600; }
.bar-btn.update:hover { background: #4d8247; }

.book { position: relative; max-width: 1380px; margin: 0 auto; padding-right: 54px; }

/* ------------------------------------------------------------ Register-Reiter am Buchrand */
.tabs { position: absolute; right: 0; top: 30px; display: flex; flex-direction: column; gap: 5px; z-index: 5; width: 58px; max-height: calc(100vh - 110px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.tab {
  --tab: #6b5a4c;
  position: relative; border: 0; color: #fff; background: var(--tab);
  border-radius: 0 9px 9px 0; padding: 12px 6px 12px 8px; min-height: 58px;
  writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--f-display); font-weight: 700; letter-spacing: .04em; font-size: .86rem;
  box-shadow: inset 6px 0 8px -6px rgba(0, 0, 0, .55), 2px 3px 6px rgba(0, 0, 0, .3);
  transform: translateX(-12px); transition: transform .18s ease, filter .18s ease;
  filter: saturate(.75) brightness(.92);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.tab:hover { transform: translateX(-6px); filter: none; }
.tab.active { transform: translateX(0); filter: none; box-shadow: inset 6px 0 8px -6px rgba(0, 0, 0, .35), 3px 4px 10px rgba(0, 0, 0, .4); }
.tab-badge { writing-mode: horizontal-tb; display: inline-block; margin-top: 6px; background: #fff; color: var(--tab); border-radius: 10px; font-size: .72rem; padding: 0 6px; font-family: var(--f-body); }

/* ------------------------------------------------------------ Doppelseite */
.spread {
  display: grid; grid-template-columns: 1fr 1fr; position: relative;
  height: calc(100vh - 80px); min-height: 560px;
}
.spread::before { content: ''; position: absolute; inset: 14px 10px -6px; border-radius: 14px; box-shadow: 0 26px 40px rgba(0, 0, 0, .45); pointer-events: none; z-index: -1; }
.spread.single { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.page {
  position: relative; background: var(--paper); overflow: hidden;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .7), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.36 0 0 0 0 0.25 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-inner { height: 100%; overflow-y: auto; overflow-x: hidden; padding: var(--page-pad); scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .25) transparent; }
.page.left { border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: inset -42px 0 40px -38px rgba(60, 35, 15, .55), -1px 1px 0 var(--edge), -3px 3px 0 #d8cab2, -4px 4px 0 var(--edge), -6px 6px 0 #cdbda4; }
.page.right { border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: inset 42px 0 40px -38px rgba(60, 35, 15, .5), 1px 1px 0 var(--edge), 3px 3px 0 #d8cab2, 4px 4px 0 var(--edge), 6px 6px 0 #cdbda4; }
.spread.single .page.right { border-radius: var(--radius); box-shadow: 0 1px 0 var(--edge), 0 3px 0 #d8cab2, 0 5px 0 var(--edge); }
.leaf-shadow { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 40%); }

/* Umblättern */
.spread.turning .page.right { transform-origin: left center; animation: turnIn .6s cubic-bezier(.2, .7, .2, 1); }
.spread.turning .page.right .leaf-shadow { animation: leafShade .6s ease-out; }
.spread.turning .page.left .page-inner { animation: fadeUp .45s ease-out; }
.spread.single.turning .page.right { transform-origin: left center; }
@keyframes turnIn { 0% { transform: perspective(2200px) rotateY(-80deg); } 100% { transform: perspective(2200px) rotateY(0); } }
@keyframes leafShade { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ Kopf der Zeitung / des Journals */
.masthead { text-align: center; margin-bottom: 18px; }
.mast-top { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.mast-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 2px; line-height: 1; color: var(--ink); }
.mast-rule { height: 6px; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.mast-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-style: italic; color: var(--ink-soft); font-size: .92rem; padding-top: 5px; flex-wrap: wrap; }
.mast-right { font-style: normal; }
.page-heading { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.2; margin: 6px 0 10px; color: var(--ink); }
.lead { color: var(--ink-soft); margin: 0 0 14px; }
.hand { font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.2; }
.hand.big { font-size: 1.9rem; }

/* ------------------------------------------------------------ Knöpfe & Formulare */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font-family: var(--f-display); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  transition: background .15s, color .15s, transform .08s, box-shadow .15s; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: rgba(42, 36, 32, .06); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff8ee; box-shadow: 0 2px 0 #5b170f; }
.btn.primary:hover:not(:disabled) { background: #a03224; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; }
.btn.small { padding: 4px 12px; font-size: .82rem; }
.btn.wide { width: 100%; margin-top: 8px; padding: 11px 18px; }
.danger-text { color: var(--red) !important; }
.icon-btn { border: 0; background: transparent; padding: 5px; border-radius: 6px; color: var(--ink-soft); display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.back-btn { margin: 0 0 8px; background: var(--paper); }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field-hint { font-size: .8rem; color: var(--ink-soft); font-style: italic; }
.input {
  width: 100%; border: 0; border-bottom: 1.5px solid #bdae97; background: rgba(255, 255, 255, .55); padding: 8px 10px; border-radius: 6px 6px 0 0;
  outline: none; transition: border-color .15s, background .15s;
}
.input:focus { border-color: var(--accent); background: #fff; }
.input.small { padding: 5px 8px; font-size: .9rem; }
.input.date { width: auto; padding: 3px 8px; font-size: .85rem; }
textarea.input { resize: vertical; }
select.input { cursor: pointer; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline .input { max-width: 150px; }
.inline.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.check { display: flex; gap: 8px; align-items: center; margin: 6px 0 4px; color: var(--ink-soft); }
.card-paper { background: #fffdf8; border-radius: 8px; padding: 22px; box-shadow: 0 1px 0 var(--edge), 0 8px 24px rgba(60, 40, 20, .12); }
.form.card-paper { max-width: 460px; margin: 10px auto; }
.np-label { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; color: var(--gold); text-align: center; margin-bottom: 8px; }
.steps { padding-left: 1.2em; color: var(--ink-soft); }
.steps li { margin-bottom: 6px; }

/* Schalter */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; margin: 4px 14px 4px 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 46px; height: 26px; border-radius: 20px; background: #cfc3b1; position: relative; transition: background .2s; flex: none; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s; }
.switch.on .switch-track { background: var(--green); }
.switch.on .switch-knob { transform: translateX(20px); }
.switch.disabled { opacity: .5; cursor: not-allowed; }
.switch-label { font-size: .95rem; }

/* ------------------------------------------------------------ Stempel */
.stamp {
  display: inline-block; transform: rotate(-7deg); margin: 14px 0 8px; padding: 6px 16px; border: 3px double currentColor; border-radius: 8px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: 1.15rem; opacity: .86;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: stampIn .35s cubic-bezier(.3, 1.6, .5, 1);
}
.stamp-red { color: var(--red); }
.stamp-green { color: var(--green); }
.stamp.small { font-size: .78rem; padding: 2px 10px; border-width: 2.5px; margin: 0; }
@keyframes slipPulse0 { 0% { transform: rotate(.4deg); } 35% { transform: rotate(-.6deg) scale(1.012); } 100% { transform: rotate(.4deg); } }
@keyframes slipPulse1 { 0% { transform: rotate(.4deg); } 35% { transform: rotate(-.6deg) scale(1.012); } 100% { transform: rotate(.4deg); } }
@keyframes stampIn { 0% { transform: rotate(-7deg) scale(1.8); opacity: 0; } 100% { transform: rotate(-7deg) scale(1); opacity: .86; } }

/* ------------------------------------------------------------ Hinweise, Leere Seite, Laden */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; width: min(92vw, 460px); pointer-events: none; }
.toast { background: #2a2420; color: #fbf6ec; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: toastIn .25s ease-out; font-size: .95rem; border-left: 5px solid var(--gold); }
.toast-ok { border-left-color: #6fae5f; }
.toast-error { border-left-color: #e2584d; background: #3a1f1b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.empty { text-align: center; color: var(--ink-soft); padding: 30px 10px; }
.empty h3 { font-family: var(--f-display); color: var(--ink); font-size: 1.4rem; margin: 8px 0; }
.empty-art { width: 180px; color: #c8b89f; }
.empty-text { max-width: 420px; margin: 0 auto; }
.busy, .connecting { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-style: italic; padding: 16px; }
.connecting { justify-content: center; min-height: 40vh; font-size: 1.1rem; }
.busy-pen { width: 18px; height: 18px; border: 2.5px solid var(--gold); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dialoge */
.modal-back { position: fixed; inset: 0; background: rgba(25, 15, 10, .55); display: grid; place-items: center; z-index: 80; padding: 16px; animation: fadeIn .15s; backdrop-filter: blur(2px); }
.modal { width: min(460px, 100%); position: relative; max-height: 90vh; overflow: auto; animation: popIn .2s ease-out; }
.modal.wide { width: min(820px, 100%); }
.modal-title { font-family: var(--f-display); font-size: 1.35rem; margin: 0 0 10px; }
.modal-body { color: var(--ink-soft); margin-bottom: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.modal-x { position: absolute; right: 10px; top: 10px; border: 0; background: transparent; padding: 6px; border-radius: 50%; color: var(--ink-soft); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(8px); } }

/* Bildbetrachter */
.lightbox { position: fixed; inset: 0; background: rgba(15, 10, 8, .92); z-index: 90; display: flex; flex-direction: column; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #eee; padding: 8px 14px; font-size: .9rem; }
.lb-hint { opacity: .6; font-style: italic; }
.lb-btn { border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 50%; padding: 8px; }
.lb-stage { flex: 1; overflow: auto; display: grid; place-items: center; padding: 0 50px 20px; }
.lb-stage img { max-height: calc(100vh - 80px); max-width: 100%; box-shadow: 0 10px 40px #000; cursor: zoom-in; background: #fff; }
.lb-stage.zoom { place-items: start center; }
.lb-stage.zoom img { max-height: none; max-width: none; width: 2000px; cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; border-radius: 50%; padding: 12px; font-size: 1.3rem; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-nav:disabled { opacity: .2; }

/* ------------------------------------------------------------ Namensschild */
.nameplate { max-width: 520px; margin: 4vh auto; text-align: center; padding: 34px 30px; border: 1.5px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; border-radius: 4px; background: #fffdf8; }
.nameplate h2 { font-family: var(--f-display); font-size: 2rem; margin: 6px 0; }
.nameplate p { color: var(--ink-soft); }
.hand-input { width: 100%; border: 0; border-bottom: 2px dashed #bdae97; background: transparent; font-family: var(--f-hand); font-size: 1.6rem; padding: 2px 4px; outline: none; color: #1f3a6e; }
.hand-input.huge { font-size: 2.6rem; text-align: center; margin: 10px 0 18px; }
.hand-input:focus { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------ Katalog: Inhalt & Kacheln */
.toc { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: toc; }
.toc li button { width: 100%; text-align: left; border: 0; background: transparent; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "name dots page" "sub sub status"; gap: 0 8px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.toc li button:hover { background: rgba(0, 0, 0, .03); }
.toc-name { grid-area: name; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.toc-dots { grid-area: dots; border-bottom: 2px dotted #b9a98f; margin-bottom: 7px; }
.toc-page { grid-area: page; font-family: var(--f-display); font-style: italic; }
.toc-sub { grid-area: sub; color: var(--ink-soft); font-size: .9rem; }
.toc-status { grid-area: status; font-size: .8rem; color: var(--green); }
.toc-status.closed { color: var(--red); }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cover-tile { position: relative; border: 0; padding: 0; background: var(--r-paper); border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: transform .2s; }
.cover-tile:hover { transform: translateY(-3px) rotate(-.6deg); }
.cover-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cover-tile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; color: #fff; font-family: var(--r-logo); font-size: 1.1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); text-align: left; }
.cover-tile .stamp { position: absolute; top: 10px; right: 8px; background: rgba(255, 255, 255, .85); }
.cover-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; font-family: var(--r-logo, var(--f-display)); font-size: 1.4rem; color: var(--r-primary, var(--accent)); background: var(--r-paper2, var(--paper-2)); padding: 10px; text-align: center; }
.chapter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.chip { --chip: var(--accent); border: 1.5px solid var(--chip); color: var(--chip); background: var(--paper); border-radius: 20px; padding: 3px 14px; font-family: var(--f-display); font-weight: 700; font-size: .88rem; }
.chip.on { background: var(--chip); color: #fff; }
.catalog > .chapter-chips { position: relative; z-index: 2; }
.catalog:has(> .chapter-chips) > .spread { height: calc(100vh - 124px); }

.notes-page { min-height: 100%; }
.mini-order { border-bottom: 1px dashed #cdbfa9; padding: 8px 0; position: relative; }
.mini-order.big { padding: 12px 0 16px; }
.mini-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mini-head span { color: var(--ink-soft); font-size: .85rem; }
.mini-head b:last-of-type { margin-left: auto; }
.mini-line { font-size: .92rem; padding-left: 8px; }
.mini-order .stamp { position: absolute; right: 0; bottom: 8px; }

/* ------------------------------------------------------------ Restaurant-Titelblatt (linke Seite) */
.rcover-panel { display: grid; grid-template-columns: minmax(150px, 42%) 1fr; gap: 20px; align-items: start; margin-bottom: 22px; }
.rcover-panel.compact { grid-template-columns: 96px 1fr; gap: 14px; margin-bottom: 14px; }
.rc-photo { position: relative; transform: rotate(-1.5deg); }
.rc-photo-btn { border: 0; padding: 7px 7px 26px; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); display: block; width: 100%; }
.rc-photo-btn img { display: block; width: 100%; max-height: 380px; object-fit: cover; object-position: top; }
.compact .rc-photo-btn { padding: 4px 4px 12px; }
.compact .rc-photo-btn img { max-height: 120px; }
.tape { position: absolute; width: 70px; height: 22px; background: rgba(255, 246, 214, .7); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.tape-a { top: -9px; left: 18px; transform: rotate(-8deg); }
.tape-b { top: -8px; right: 14px; transform: rotate(6deg); }
.compact .tape { width: 40px; height: 14px; }
.rc-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--r-muted); }
.rc-name { font-family: var(--r-logo); color: var(--r-primary); font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.05; margin: 2px 0 6px; }
.compact .rc-name { font-size: 1.7rem; }
.rc-sub { font-family: var(--r-display); color: var(--r-ink); font-size: 1rem; margin-bottom: 8px; }
.rc-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 20px; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.rc-status.open { background: rgba(63, 107, 58, .14); color: #2f5a2a; }
.rc-status.closed { background: rgba(179, 38, 30, .14); color: var(--red); }
.rc-info { list-style: none; padding: 0; margin: 6px 0; font-size: .88rem; color: var(--r-ink); }
.rc-info li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.rc-info .ico { margin-top: 3px; color: var(--r-primary); }
.rc-info.dark { color: var(--ink); }
.rc-info.dark .ico { color: var(--accent); }
.rc-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rc-pages-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--r-muted); margin-right: 4px; }
.rc-thumb { border: 1px solid rgba(0, 0, 0, .15); padding: 2px; background: #fff; width: 54px; height: 40px; border-radius: 3px; }
.rc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-thumb:hover { outline: 2px solid var(--r-accent); }

/* ------------------------------------------------------------ Bestellzettel */
.slip {
  position: relative; background: #fffef9; color: #22313f; border-radius: 3px; padding: 22px 20px 18px 54px; margin: 6px 4px 18px;
  background-image: linear-gradient(90deg, transparent 40px, #e8a3a0 40px 41.5px, transparent 41.5px), repeating-linear-gradient(transparent 0 29px, #cfe0ee 29px 30px);
  background-position: 0 0, 0 14px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .15), 0 10px 22px rgba(0, 0, 0, .22);
  transform: rotate(.4deg); font-family: var(--f-body);
}
.slip-perf { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 8px -2px, transparent 5px, #fffef9 5.5px) 0 0 / 16px 10px repeat-x; transform: translateY(-9px); }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.slip-title { font-family: var(--f-display); font-weight: 900; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: #22313f; }
.slip-meta { font-size: .8rem; color: #64748b; }
.slip-name { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid #a9bccd; margin-bottom: 8px; }
.slip-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #64748b; }
.slip-name .hand { color: #1f3a6e; }
.slip-rename { margin-left: auto; color: #64748b; }
.slip-name .hand-input { border-bottom: 0; font-size: 1.7rem; }
.slip-lines { list-style: none; padding: 0; margin: 0 0 6px; font-family: var(--f-hand); font-size: 1.35rem; color: #1f3a6e; }
.slip-lines li { padding: 2px 0; }
.sl-row { display: flex; align-items: center; gap: 8px; }
.sl-name { flex: 1; line-height: 1.1; }
.sl-name small { font-family: var(--f-body); font-size: .7rem; color: #64748b; }
.sl-name em { font-style: normal; color: #4b6584; font-size: .9em; }
.sl-price { white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 2px; font-family: var(--f-body); font-size: .95rem; }
.qty button { border: 1px solid #a9bccd; background: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; color: #1f3a6e; }
.qty b { min-width: 20px; text-align: center; }
.sl-note { width: 100%; border: 0; background: transparent; font-family: var(--f-hand); font-size: 1.1rem; color: #b04a3c; padding: 0 0 0 64px; outline: none; }
.sl-note::placeholder { color: #b9c6d3; }
.sl-note-ro { color: #b04a3c; font-size: .9em; margin-left: 4px; }
.sl-onote { color: #b04a3c; }
.slip-empty { color: #8aa0b5; font-size: 1.2rem; }
.slip-note { width: 100%; border: 1px dashed #a9bccd; background: rgba(255, 255, 255, .6); border-radius: 4px; font-family: var(--f-hand); font-size: 1.2rem; color: #1f3a6e; padding: 4px 8px; resize: vertical; outline: none; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid #22313f; margin-top: 8px; padding-top: 4px; font-family: var(--f-display); font-size: 1.1rem; }
.slip-total b { font-size: 1.35rem; }
.slip-lines.readonly .slip-total { font-family: var(--f-display); color: #22313f; }
.slip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.stamp-btn { letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.slip-hint { font-size: .82rem; color: #b04a3c; font-style: italic; }
.slip-history { margin-top: 16px; border-top: 1px dashed #a9bccd; padding-top: 8px; font-size: .92rem; }
.slip-history .mini-head b:last-of-type { margin-left: auto; }

/* ------------------------------------------------------------ Speisekarte (rechte Seite) */
.menu-loading { padding: 40px; text-align: center; font-style: italic; color: var(--r-muted); }
.menu-head { position: sticky; top: calc(-1 * var(--page-pad)); margin: calc(-1 * var(--page-pad)) calc(-1 * var(--page-pad)) 14px; padding: 14px var(--page-pad) 10px; background: var(--r-paper); z-index: 3; border-bottom: 1px solid color-mix(in srgb, var(--r-rule) 40%, transparent); }
.menu-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.menu-logo { font-family: var(--r-logo); color: var(--r-primary); font-size: 1.5rem; line-height: 1.1; }
.menu-kicker { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--r-muted); }
.menu-search { width: 100%; margin: 8px 0 6px; border: 1px solid color-mix(in srgb, var(--r-ink) 25%, transparent); background: color-mix(in srgb, var(--r-paper) 85%, #fff); color: var(--r-ink); border-radius: 20px; padding: 6px 14px; outline: none; font-family: var(--r-body); }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cat-chip { flex: none; border: 1px solid color-mix(in srgb, var(--r-primary) 55%, transparent); color: var(--r-ink); background: transparent; border-radius: 16px; padding: 2px 11px; font-size: .8rem; font-family: var(--r-body); }
.cat-chip:hover { background: var(--r-primary); color: var(--r-paper); }
.menu-closed { background: rgba(179, 38, 30, .12); color: var(--red); padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.menu-cat { margin-bottom: 26px; scroll-margin-top: 130px; }
.cat-title { font-family: var(--r-display); color: var(--r-primary); font-size: 1.45rem; margin: 0 0 4px; }
.cat-note { color: var(--r-muted); font-style: italic; font-size: .9rem; margin: 0 0 8px; }
.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 9px 0 10px; border-bottom: 1px dotted color-mix(in srgb, var(--r-ink) 22%, transparent); font-family: var(--r-body); color: var(--r-ink); }
.item.na { opacity: .45; }
.item-head { display: flex; align-items: baseline; gap: 8px; }
.item.has-img { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.item-body { min-width: 0; }
.item-img { border: 0; padding: 3px; background: #fff; border-radius: 8px; width: 84px; height: 84px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); cursor: zoom-in; transform: rotate(-1.2deg); transition: transform .15s; }
.item-img:hover { transform: rotate(0) scale(1.04); }
.item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }
.item.has-img .item-desc, .item.has-img .item-variants { margin-left: 0; }
.cat-img { display: block; width: fit-content; max-width: min(100%, 420px); border: 0; padding: 5px 5px 14px; background: #fff; margin: 8px auto 14px; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); transform: rotate(-.8deg); cursor: zoom-in; }
.cat-img img { display: block; max-width: 100%; max-height: 170px; width: auto; height: auto; }
.pe-img { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.pe-img img { width: 38px; height: 38px; object-fit: cover; border-radius: 5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.item-no { font-weight: 700; color: var(--r-secondary); min-width: 1.8em; font-variant-numeric: tabular-nums; }
.item-name { font-weight: 700; font-size: 1.04rem; display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.leader { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--r-ink) 30%, transparent); transform: translateY(-4px); min-width: 12px; }
.item-price { font-weight: 700; white-space: nowrap; color: var(--r-ink); }
.item-size { font-weight: 400; font-size: .8em; opacity: .8; }
.item-head .vbtn.single { flex: none; align-self: center; }
.item-desc { color: var(--r-muted); font-size: .9rem; margin: 1px 0 6px 2.4em; line-height: 1.35; }
.item-variants { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 2.4em; }
.vbtn {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid color-mix(in srgb, var(--r-primary) 70%, transparent);
  background: color-mix(in srgb, var(--r-paper) 70%, #fff); color: var(--r-ink); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: .86rem;
  transition: background .12s, transform .1s, color .12s; font-family: var(--r-body);
}
.vbtn.single { padding: 2px; border-width: 1.5px; }
.vbtn .vl { font-weight: 600; }
.vbtn .vp { font-weight: 700; }
.vadd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--r-primary); color: var(--r-paper); }
.vbtn:hover:not(:disabled) { background: var(--r-primary); color: var(--r-paper); }
.vbtn:hover:not(:disabled) .vadd { background: var(--r-paper); color: var(--r-primary); }
.vbtn:active:not(:disabled) { transform: scale(.96); }
.vbtn:disabled { opacity: .5; cursor: default; }
.vbtn.flash { background: #3f6b3a !important; border-color: #3f6b3a !important; color: #fff !important; }
.vbtn.flash .vadd { background: #fff !important; color: #3f6b3a !important; }
.ico-leaf { color: #4f8a2f; width: 1em; height: 1em; }
.ico-chili { width: 1em; height: 1em; }
.price .p-cur { font-weight: 400; }
.menu-none { font-style: italic; color: var(--r-muted); }
.menu-end { text-align: center; font-family: var(--r-display); color: var(--r-muted); font-style: italic; padding: 20px 0 40px; }

/* Bestellschluss: Karte geschlossen */
.closed-page { min-height: 60%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 10px; color: var(--r-ink); font-family: var(--r-body); }
.closed-page .stamp { font-size: 1.8rem; margin-bottom: 18px; background: rgba(255, 255, 255, .85); }
.closed-title { font-family: var(--r-display); color: var(--r-primary); font-size: 1.9rem; margin: 6px 0 10px; }
.closed-text { max-width: 440px; margin: 4px auto; color: var(--r-ink); }
.closed-delivery { margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; color: var(--r-muted); }

/* Bestellzettel als Knopf auf dem Handy */
.slip-fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; border: 0; border-radius: 999px; background: #2a2420; color: #fbf6ec; padding: 12px 20px; display: inline-flex; gap: 10px; align-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); font-family: var(--f-display); font-weight: 700; }
.slip-fab.has { background: var(--accent); }
.slip-fab b { background: rgba(255, 255, 255, .18); border-radius: 20px; padding: 1px 10px; font-family: var(--f-body); }
.slip-spacer { height: 80px; }
.sheet-back { position: fixed; inset: 0; background: rgba(20, 12, 8, .55); z-index: 60; display: flex; align-items: flex-end; animation: fadeIn .15s; }
.sheet { width: 100%; max-height: 88vh; overflow: auto; background: var(--paper); border-radius: 16px 16px 0 0; padding: 26px 10px 20px; position: relative; animation: sheetUp .25s ease-out; }
.sheet .slip { transform: none; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } }

/* ------------------------------------------------------------ Admin: Freischaltung */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-card { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: #fffdf8; border-radius: 8px; padding: 8px; transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.cat-card.sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.cat-card.on::after { content: ''; position: absolute; top: -1px; right: 14px; width: 14px; height: 22px; background: var(--green); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.cc-img { width: 64px; height: 80px; overflow: hidden; border-radius: 4px; background: var(--r-paper); display: block; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cc-img .cover-ph { font-size: .8rem; min-height: 0; }
.cc-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cc-name { font-family: var(--r-logo); font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.15; }
.cc-city { font-size: .8rem; color: var(--ink-soft); }
.cc-flag { font-size: .75rem; font-weight: 700; }
.cc-flag.open { color: var(--green); } .cc-flag.closed { color: var(--red); }
.cc-count { font-size: .78rem; color: var(--ink-soft); }
.activation { margin: calc(-1 * var(--page-pad)); min-height: calc(100% + 2 * var(--page-pad)); background: var(--paper); }
.act-cover { position: relative; height: 210px; overflow: hidden; background: var(--r-paper); }
.act-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(1.05); }
.act-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px var(--page-pad) 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; }
.act-title h2 { font-family: var(--r-logo); font-size: 2.3rem; margin: 0; line-height: 1; }
.act-body { padding: 18px var(--page-pad) var(--page-pad); }
.act-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fffdf8; }
.act-switch .switch-label { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.act-status { color: var(--ink-soft); font-size: .9rem; margin: 6px 2px 0; }
.act-row { margin-top: 16px; }
.act-row.buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.act-facts { display: flex; gap: 12px; margin: 18px 0 12px; }
.act-facts > div { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fffdf8; }
.act-facts b { display: block; font-family: var(--f-display); font-size: 1.5rem; }
.act-facts span { font-size: .8rem; color: var(--ink-soft); }

/* ------------------------------------------------------------ Lieferung */
.delivery { margin: 16px 0 6px; padding: 14px 16px 12px; border: 1.5px solid var(--line); border-left: 5px solid var(--accent); border-radius: 10px; background: #fffdf8; }
.delivery .field { margin-bottom: 8px; }
.delivery .btn { margin-top: 4px; }
.dl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.dl-head h3 { font-family: var(--f-display); font-size: 1.15rem; margin: 0; display: flex; gap: 6px; align-items: center; color: var(--ink); }
.tag.green { background: rgba(63, 107, 58, .14); color: var(--green); }
.tag { background: rgba(184, 137, 58, .18); color: #7a5a1e; }
.saved-addr-card { margin-top: 18px; padding: 12px 16px; border: 1.5px dashed #bdae97; border-radius: 10px; background: rgba(255, 253, 248, .7); }
.saved-addr-card .dl-addr { font-weight: 600; margin-bottom: 2px; }
.saved-addr { margin-top: 18px; }
.missing-text { color: var(--red); font-style: italic; }
.dl-wrap { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; }
.dl-wrap .dl-sum { flex: 1; }
.dl-sum { display: grid; grid-template-columns: 1fr auto; gap: 14px; border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 12px; background: #fffdf8; }
.dl-sum > div { display: flex; flex-direction: column; }
.dl-sum.missing { display: flex; gap: 8px; align-items: center; border-color: var(--red); color: var(--red); font-style: italic; }
.dl-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.dl-addr { white-space: pre-line; line-height: 1.3; }
.dl-time { font-family: var(--f-display); font-size: 1.35rem; }
.dl-small { font-size: .85rem; color: var(--ink-soft); }
.rc-delivery { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; margin: 0 0 8px 8px; color: var(--r-ink); }

/* ------------------------------------------------------------ Admin: Bestellliste (Kassenbuch) */
.sum-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 3px double var(--ink); padding-bottom: 6px; margin-bottom: 8px; }
.sum-name { font-family: var(--r-logo); color: var(--r-primary); margin: 0; font-size: 2rem; line-height: 1.1; }
.sum-head .sum-name { color: color-mix(in srgb, var(--r-primary) 80%, #000); }
.sum-phone { font-size: 1.05rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.sum-facts { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-soft); font-size: .92rem; margin-bottom: 10px; }
.sum-facts b { color: var(--ink); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; align-items: center; }
.toolbar.sticky { position: sticky; top: calc(-1 * var(--page-pad)); background: var(--paper); z-index: 3; padding: 8px 0; margin-top: -8px; }
.ledger-title { font-family: var(--f-display); font-size: 1.15rem; margin: 10px 0 4px; }
table.agg { width: 100%; border-collapse: collapse; font-size: .93rem; }
.agg td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.agg-q { font-weight: 700; width: 3em; }
.agg-n { color: var(--ink-soft); width: 3em; }
.agg em { color: var(--ink-soft); font-style: normal; }
.agg th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1.5px solid var(--ink); padding: 4px; }
.agg th.num { text-align: right; }
.agg-who { font-family: var(--f-hand); color: #1f3a6e; font-size: 1.15rem; line-height: 1.15; }
.agg-note { font-family: var(--f-hand); color: #b04a3c; font-size: 1.1rem; line-height: 1.1; }
.agg tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.num { text-align: right; white-space: nowrap; }
.ledger { min-height: 100%; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; }
.check-all { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-soft); font-size: .9rem; }
.selbar { position: sticky; top: calc(-1 * var(--page-pad) + 4px); z-index: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #2a2420; color: #fbf6ec; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; animation: fadeUp .2s; }
.selbar .btn { border-color: rgba(255, 255, 255, .5); color: #fff; }
.selbar .btn.danger { border-color: var(--red); }
.selbar span { margin-right: auto; }
.ledger-rows { list-style: none; padding: 0; margin: 0; background: repeating-linear-gradient(transparent 0 27px, #d9e4ec 27px 28px); background-position: 0 4px; position: relative; }
.ledger-rows::before { content: ''; position: absolute; top: 0; bottom: 0; left: 34px; width: 1.5px; background: #e8a3a0; }
.ledger-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid #c9d6e0; transition: background .15s; }
.ledger-row.checked { background: rgba(184, 137, 58, .14); }
.lr-check { display: grid; place-items: start center; padding-top: 4px; }
.lr-check input, .check-all input { width: 18px; height: 18px; accent-color: var(--accent); }
.lr-top { display: flex; gap: 10px; align-items: baseline; }
.lr-name { font-family: var(--f-hand); font-size: 1.6rem; color: #1f3a6e; line-height: 1; }
.lr-time { color: var(--ink-soft); font-size: .8rem; }
.lr-sum { margin-left: auto; font-family: var(--f-display); font-weight: 700; }
.lr-line { font-size: .92rem; }
.lr-line small { color: var(--ink-soft); }
.lr-line i, .lr-note { color: #b04a3c; }
.lr-note { font-size: .88rem; font-style: italic; }
.lr-by { font-size: .75rem; color: var(--ink-soft); font-style: italic; }
.lr-actions { display: flex; gap: 2px; align-items: flex-start; }
.oe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.oe-head { font-family: var(--f-display); margin: 12px 0 4px; }
.oe-lines { list-style: none; margin: 0; padding: 0; }
.oe-line { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.oe-qty { display: inline-flex; align-items: center; }
.oe-qty b { min-width: 1.5em; text-align: center; }
.oe-name small, .oe-dish small { color: var(--ink-soft); }
.oe-price { font-weight: 700; white-space: nowrap; }
.oe-note { grid-column: 1 / -1; font-size: .88rem; }
.oe-total { display: flex; justify-content: space-between; padding: 8px 0; font-family: var(--f-display); font-size: 1.1rem; }
.oe-menu { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px 8px; }
.oe-cat { font-family: var(--f-display); font-weight: 700; margin: 10px 0 2px; }
.oe-dish { width: 100%; display: flex; justify-content: space-between; gap: 10px; border: 0; background: transparent; padding: 6px 4px; text-align: left; border-radius: 6px; }
.oe-dish:hover { background: rgba(0, 0, 0, .05); }
.oe-dish b { white-space: nowrap; }
.archive { list-style: none; padding: 0; margin: 0; }
.archive button { width: 100%; display: grid; grid-template-columns: 7em 1fr auto auto; gap: 12px; align-items: baseline; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.archive button:hover { background: rgba(0, 0, 0, .03); }
.ar-date { font-family: var(--f-display); font-weight: 700; }
.ar-label { color: var(--ink-soft); font-size: .9rem; }
.ar-sum { font-weight: 700; }

/* ------------------------------------------------------------ Abhakliste */
.roll-count { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 6px; }
.roll-count b { font-family: var(--f-display); font-size: 3rem; line-height: 1; color: var(--green); }
.roll-count span { color: var(--ink-soft); }
.roll-bar { height: 10px; border-radius: 6px; background: var(--paper-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); overflow: hidden; margin-bottom: 14px; }
.roll-bar span { display: block; height: 100%; background: linear-gradient(90deg, #3f6b3a, #6fae5f); border-radius: 6px; transition: width .4s; }
.roll-rest { list-style: none; padding: 0; margin: 0 0 14px; }
.roll-rest li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.roll-rest li span:last-child { margin-left: auto; color: var(--ink-soft); }
.roll-rest .open { color: var(--green); font-size: .88rem; }
.roll-rest .closed { color: var(--red); font-size: .88rem; }
.roll-list { list-style: none; padding: 0; margin: 0; background: repeating-linear-gradient(transparent 0 37px, #d9e4ec 37px 38px); }
.roll-list li { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "box name kinds" "box info info"; gap: 0 10px; align-items: center; padding: 6px 0; min-height: 38px; }
.roll-box { grid-area: box; width: 26px; height: 26px; border: 2px solid #22313f; border-radius: 4px; display: grid; place-items: center; font-family: var(--f-hand); font-size: 1.9rem; line-height: 1; color: var(--green); background: #fffef9; }
.roll-name { grid-area: name; font-family: var(--f-hand); font-size: 1.6rem; color: #1f3a6e; line-height: 1.1; }
.roll-kinds { grid-area: kinds; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.roll-info { grid-area: info; display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.roll-list li.done .roll-name { text-decoration: line-through; text-decoration-color: rgba(63, 107, 58, .55); text-decoration-thickness: 2px; }
.roll-list li.todo .roll-box { border-color: var(--red); }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline dotted; cursor: pointer; text-align: left; }
.dev-list { list-style: none; padding: 4px 0 0; margin: 0; font-size: .85rem; }
.dev-list li { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); }
.dev-list li small:first-of-type { margin-left: auto; }

/* ------------------------------------------------------------ Root */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rlist, .ulist { list-style: none; padding: 0; margin: 0; }
.rlist li { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.rlist li.sel { background: rgba(184, 137, 58, .14); }
.rlist li.off { opacity: .55; }
.rlist-main { flex: 1; display: flex; gap: 12px; align-items: center; border: 0; background: transparent; text-align: left; padding: 8px 4px; }
.rlist-img { width: 44px; height: 56px; border-radius: 4px; overflow: hidden; background: var(--r-paper); color: var(--r-primary); display: grid; place-items: center; font-family: var(--r-logo); flex: none; }
.rlist-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rlist-text { display: flex; flex-direction: column; }
.rlist-text small { color: var(--ink-soft); }
.rlist-move { display: flex; flex-direction: column; }
.ulist li button { width: 100%; text-align: left; border: 0; background: transparent; border-bottom: 1px solid var(--line); padding: 9px 4px; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "role name" "role sub"; gap: 0 10px; align-items: center; }
.ulist li.sel button { background: rgba(184, 137, 58, .14); }
.ulist li.off { opacity: .55; }
.ulist .role { grid-area: role; }
.ulist small { grid-area: sub; color: var(--ink-soft); }
.role { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; border-radius: 4px; padding: 2px 6px; color: #fff; background: #6a4c7a; }
.role-admin { background: var(--green); }
.role-web { background: #b8893a; }
.editor-head { position: sticky; top: calc(-1 * var(--page-pad)); background: var(--paper); z-index: 4; margin: calc(-1 * var(--page-pad)) calc(-1 * var(--page-pad)) 10px; padding: var(--page-pad) var(--page-pad) 0; border-bottom: 1px solid var(--line); }
.editor-head .page-heading { margin: 0 0 6px; }
.subtabs { display: flex; gap: 2px; flex-wrap: wrap; }
.subtab { border: 1px solid var(--line); border-bottom: 0; background: var(--paper-2); border-radius: 8px 8px 0 0; padding: 5px 14px; font-family: var(--f-display); font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.subtab.on { background: #fffdf8; color: var(--ink); box-shadow: 0 2px 0 #fffdf8; }
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px; }
.color { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); }
.color input { width: 38px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0; background: none; }
.preview-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.preview { border-radius: 8px; padding: 18px; max-height: 360px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.preview .menu-head { position: static; margin: -18px -18px 12px; padding: 14px 18px 10px; }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.cover-now { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink-soft); font-size: .9rem; }
.cover-now img, .cover-now .cover-ph { width: 80px; height: 104px; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pg { background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.pg img { width: 100%; height: 120px; object-fit: contain; background: #eee; }
.pg-tools { display: flex; justify-content: center; }
.pg-no { text-align: center; font-size: .8rem; color: var(--ink-soft); }
.prices { padding-bottom: 40px; }
.pe-cat { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fffdf8; }
.pe-cat-head { display: flex; align-items: center; gap: 4px; padding: 6px; }
.pe-toggle { border: 0; background: transparent; padding: 4px; }
.pe-cat-name { font-family: var(--f-display); font-weight: 700; }
.pe-count { font-size: .78rem; background: var(--paper-2); border-radius: 10px; padding: 0 8px; color: var(--ink-soft); }
.pe-body { padding: 4px 10px 12px; }
.pe-item { border-top: 1px dashed var(--line); padding: 8px 0; display: flex; flex-direction: column; gap: 5px; }
.pe-item.na { opacity: .6; }
.pe-row { display: flex; gap: 6px; align-items: center; }
.pe-no { width: 64px; flex: none; }
.pe-name { font-weight: 600; }
.pe-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pe-var { display: inline-flex; gap: 4px; align-items: center; background: var(--paper-2); border-radius: 8px; padding: 3px 4px 3px 6px; }
.pe-var .input { width: 130px; }
.pe-var .pe-price { width: 80px; text-align: right; }
.pe-flags { display: flex; flex-wrap: wrap; font-size: .85rem; }
.pe-flags .switch-track { width: 36px; height: 20px; }
.pe-flags .switch-knob { width: 14px; height: 14px; }
.pe-flags .switch.on .switch-knob { transform: translateX(16px); }
.import-prev { max-height: 220px; overflow: auto; font-size: .85rem; background: var(--paper-2); border-radius: 6px; padding: 8px 10px; margin-top: 8px; }
table.dtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dtable th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding: 6px 4px; }
.dtable td { border-bottom: 1px solid var(--line); padding: 7px 4px; }
.dtable tr.off td { opacity: .6; }
.dtable .actions { white-space: nowrap; text-align: right; }
.tag { font-size: .7rem; border-radius: 4px; padding: 1px 6px; }
.tag.red { background: rgba(179, 38, 30, .14); color: var(--red); }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); padding-top: 2px; }
.facts dd { margin: 0; }
ol.log { list-style: none; padding: 0; margin: 0; font-size: .84rem; }
.log li { display: grid; grid-template-columns: 7.5em 8em 7em 1fr; gap: 8px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.log-time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.log-actor { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-act { color: var(--accent); }

/* ------------------------------------------------------------ Schmale Bildschirme (Handy) */
@media (max-width: 899px) {
  :root { --page-pad: 16px; }
  .desk { padding: 6px 6px 20px; }
  .book { padding-right: 0; }
  .tabs { position: sticky; top: 0; flex-direction: row; width: auto; overflow-x: auto; gap: 4px; padding: 4px 2px 0; margin-bottom: -2px; scrollbar-width: none; background: linear-gradient(var(--desk-2), var(--desk-2) 80%, transparent); }
  .tab { writing-mode: horizontal-tb; min-height: 0; padding: 8px 14px 10px; border-radius: 9px 9px 0 0; transform: translateY(5px); white-space: nowrap; font-size: .88rem; }
  .tab:hover { transform: translateY(3px); }
  .tab.active { transform: none; }
  .tab-badge { margin: 0 0 0 6px; }
  .spread { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .page-inner { height: auto; overflow: visible; }
  .page.left { border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; border-bottom: 1px dashed #d4c6ae; }
  .page.right { border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 3px 0 #d8cab2; }
  .spread.single .page.right { border-radius: var(--radius); }
  .menu-head { top: 38px; }
  .rcover-panel { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .colors { grid-template-columns: repeat(2, 1fr); }
  .mast-title { font-size: 2.1rem; letter-spacing: .1em; }
  .editor-head, .toolbar.sticky, .selbar { position: static; }
  .log li { grid-template-columns: 1fr 1fr; }
  .archive button { grid-template-columns: 1fr auto; }
  .oe-grid { grid-template-columns: 1fr; }
  .oe-menu { max-height: 40vh; }
  .item-desc, .item-variants { margin-left: 0; }
  .item.has-img { grid-template-columns: 64px 1fr; gap: 10px; }
  .item-img { width: 64px; height: 64px; }
  .cat-img img { max-height: 130px; }
  .spread.turning .page.right { animation: fadeUp .35s ease-out; }
}

/* ------------------------------------------------------------ Druck */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { background: #fff; }
  body.printing #app { display: none; }
  body.printing #print-root { display: block; }
  .print { font-family: Arial, Helvetica, sans-serif; color: #222; font-size: 10.5pt; }
  .print h1 { font-family: Georgia, serif; font-size: 24pt; margin: 2pt 0; }
  .print h2 { font-family: Georgia, serif; font-size: 13pt; margin: 14pt 0 4pt; }
  .pr-kicker { font-size: 8pt; letter-spacing: .12em; text-transform: uppercase; color: #777; }
  .pr-sub { font-size: 9.5pt; }
  .pr-delivery { display: grid; grid-template-columns: 3fr 2fr; gap: 10pt; border: 1.6pt solid #8b2a1e; padding: 8pt 10pt; margin: 8pt 0 2pt; }
  .pr-delivery > div + div { border-left: .6pt solid #ddd; padding-left: 10pt; }
  .pr-label { font-size: 7.5pt; letter-spacing: .1em; text-transform: uppercase; color: #777; font-weight: bold; margin-top: 2pt; }
  .pr-big { font-size: 12.5pt; font-weight: bold; }
  .pr-time { font-size: 20pt; font-weight: bold; }
  .pr-missing { color: #b3261e; font-style: italic; }
  .pr-sum { display: flex; justify-content: space-between; background: #f4eee4; padding: 6pt 8pt; margin-top: 8pt; border-top: 1.5pt solid #8b2a1e; }
  .print table { width: 100%; border-collapse: collapse; }
  .print th { text-align: left; border-bottom: 1pt solid #222; font-size: 9pt; padding: 3pt; }
  .print td { border-bottom: .4pt solid #ddd; padding: 3pt; vertical-align: top; }
  .print tfoot td { border-top: 1pt solid #222; font-weight: bold; }
  .print .num { text-align: right; }
  .print .box { font-size: 14pt; }
  .pr-note { color: #777; font-style: italic; font-size: 8.5pt; }
  .pr-foot { margin-top: 14pt; font-size: 8pt; color: #888; }
  .pr-newpage { break-before: page; page-break-before: always; height: 0; }
  .print tr { break-inside: avoid; }
}
.sheet .modal-x { z-index: 6; top: 2px; right: 8px; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
