@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
  font-display: swap;
}
:root {
  --paper: #f7f4eb;
  --white: #fffdf7;
  --ink: #211e18;
  --muted: #655e52;
  --line: #ded6c9;
  --green: #253d32;
  --red: #a43522;
  --radius: 20px;
  --kiosk-action-clearance: calc(100px + env(safe-area-inset-bottom, 0px));
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #27694a; outline-offset: 4px; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.market-wrap { width: min(1320px, 100%); padding: 0 clamp(16px, 3.5vw, 54px) 40px; margin: auto; }
.market-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; }
.market-wordmark { font-size: 1.2rem; font-weight: 900; letter-spacing: -.065em; text-decoration: none; flex-shrink: 0; }
.market-wordmark span { color: var(--red); margin-right: .11em; }
.market-event-label { color: var(--muted); font-size: .9rem; text-align: right; }
.kiosk-hero { background: #a43522; color: #fffaf0; overflow: hidden; border-radius: 24px; display: grid; grid-template-columns: 1.55fr 1fr; min-height: 160px; margin-bottom: 22px; }
.kiosk-hero-copy { padding: clamp(19px, 3vw, 36px) clamp(22px, 4vw, 48px); position: relative; z-index: 1; }
.kiosk-hero h1, .board-heading h1, .status-heading h1 { font: 400 clamp(3.5rem, 7vw, 6.3rem)/.9 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; }
.kiosk-hero p { margin-top: .72rem; line-height: 1.35; width: min(100%, 365px); color: #fff7e9; }
.kiosk-hero-image { min-width: 0; background: linear-gradient(90deg, #a43522 0%, transparent 40%), url("PizzaBackground.webp") center 49% / cover; }
[data-shared-device="1"] .market-top { min-height: 50px; }
[data-shared-device="1"] .kiosk-hero { grid-template-columns: minmax(0, 1fr) min(34%, 280px); min-height: 0; margin-bottom: 12px; border-radius: 16px; }
[data-shared-device="1"] .kiosk-hero-copy { padding: 12px 18px; }
[data-shared-device="1"] .kiosk-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
[data-shared-device="1"] .kiosk-hero p { margin-top: .25rem; font-size: .9rem; }
.kiosk-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr); gap: 20px; align-items: start; }
.kiosk-builder, .kiosk-cart, .status-pizza {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(17px, 2.8vw, 28px);
}
.kiosk-cart { position: sticky; top: 18px; }
.market-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.market-section-head h2 { font-size: clamp(1.18rem, 2.5vw, 1.56rem); line-height: 1.1; letter-spacing: -.04em; }
.market-section-head > strong { color: var(--red); white-space: nowrap; font-size: 1.22rem; }
.kiosk-priced-head { position: sticky; top: 0; z-index: 2; padding: 8px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.kiosk-priced-head h2 { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.kiosk-draft-price { flex-shrink: 0; padding: 7px 12px; border-radius: 9px; background: #f9e7df; color: #782817; text-align: right; }
.kiosk-draft-price span { display: block; font-size: .8rem; font-weight: 750; }
.kiosk-draft-price strong { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kiosk-builder { scroll-margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
.kiosk-size-choice { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-weight: 750; }
.kiosk-size-choice select { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.pickup-phone-label { margin-top: 12px; }
.status-order-again { margin-top: 14px; }
.topping-group { margin-top: 16px; }
.topping-group-base .topping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topping-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; margin-bottom: 10px; }
.topping-title h3 { font-size: 1rem; font-weight: 800; }
.topping-title > span { font-size: .82rem; color: var(--muted); }
.topping-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 137px), 1fr)); gap: 8px; }
.topping-tile { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 50px; padding: 8px 11px; background: #f8f4e9; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; line-height: 1.1; }
.topping-tile:has(:checked) { background: #e6efe4; border-color: #56806a; color: #1b3529; }
.topping-tile:has(:focus-visible) { outline: 3px solid #27694a; outline-offset: 2px; }
.topping-tile input, .market-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topping-text { font-size: .89rem; font-weight: 700; overflow-wrap: anywhere; }
.topping-mark { display: grid; place-items: center; background: var(--white); width: 25px; height: 25px; border-radius: 50%; flex: 0 0 25px; color: var(--muted); }
.topping-mark::after { content: "+"; }
.topping-tile:has(:checked) .topping-mark { color: white; background: #345c49; }
.topping-tile:has(:checked) .topping-mark::after { content: "✓"; }
.kiosk-note { margin: 15px 0; font-size: .9rem; }
.kiosk-note summary { min-height: 44px; align-content: center; cursor: pointer; color: var(--muted); }
.kiosk-note small { display: block; margin-top: 5px; color: var(--muted); }
.kiosk-note input, .market-dialog input { width: 100%; padding: 11px 12px; border: 1px solid #bcb4a6; border-radius: 9px; background: #fffefa; min-height: 46px; }
.market-button { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 12px; width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; cursor: pointer; text-decoration: none; }
.market-button.primary { background: var(--green); color: white; }
.market-button.accent { background: var(--red); color: white; }
.market-button.secondary { background: var(--white); color: var(--ink); border-color: #bfb7a8; }
.market-button.plain { background: transparent; color: var(--muted); justify-content: center; }
.market-button:active:not(:disabled) { transform: translateY(1px); }
.market-button:disabled { cursor: default; background: #ddd8cc; color: #5e594e; }
.kiosk-builder-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kiosk-builder-actions .market-button { flex: 1 1 10rem; width: auto; justify-content: center; text-align: center; }
.kiosk-builder-actions .kiosk-reset-button { flex: 0 0 50px; width: 50px; padding: 0; font-size: 1.5rem; line-height: 1; }
.kiosk-reset-copy { margin-top: 8px; color: var(--muted); }
.kiosk-reset-actions { display: flex; gap: 8px; margin-top: 16px; }
.kiosk-reset-actions .market-button { justify-content: center; text-align: center; }
:root:has(.kiosk-fixed-actions) { scroll-padding-bottom: var(--kiosk-action-clearance); }
.kiosk-fixed-actions { padding-bottom: var(--kiosk-action-clearance); }
.kiosk-fixed-actions .kiosk-action-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 3;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 -4px 20px #211e181a;
}
.kiosk-fixed-actions .kiosk-builder-actions {
  display: grid;
  grid-template-columns: auto repeat(2, minmax(0, 1fr));
  max-width: 640px;
  margin-inline: auto;
}
.kiosk-fixed-actions .kiosk-builder-actions .market-button { min-height: 60px; padding-inline: 8px; line-height: 1.2; overflow-wrap: anywhere; }
.cart-total strong { white-space: nowrap; }
.market-count { display: grid; place-items: center; min-width: 29px; min-height: 29px; padding: 2px 6px; border-radius: 30px; background: #eee8da; font-size: .84rem; font-weight: 800; color: var(--ink); }
.cart-empty { color: var(--muted); padding: 24px 0; font-size: .92rem; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-list li > div { display: flex; justify-content: space-between; gap: 8px; }
.cart-list p { color: var(--muted); font-size: .87rem; margin-top: 5px; overflow-wrap: anywhere; }
.cart-actions { display: flex; gap: 14px; }
.cart-actions button { min-height: 44px; color: var(--green); font-size: .84rem; font-weight: 800; text-decoration: underline; border: 0; background: none; padding: 0; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 0; border-top: 1px solid var(--line); }
.cart-total strong { font-size: 1.45rem; letter-spacing: -.045em; }
.cart-methods { text-align: center; color: var(--muted); font-size: .76rem; margin-top: 11px; }
.market-test-message { background: #f4e4ba; color: #523912; border: 1px solid #e4cc92; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.market-notice, .market-error { background: #f9e7df; color: #6e2217; padding: 12px 14px; border-radius: 10px; margin-top: 14px; }
.market-notice > span { display: block; margin-top: 4px; }
.market-notice .market-button { width: fit-content; margin-top: 10px; }
.market-dialog { width: min(calc(100% - 32px), 490px); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 23px; padding: clamp(17px, 4vw, 28px); background: var(--white); color: var(--ink); box-shadow: 0 28px 120px #231a1439; }
.market-dialog::backdrop { background: #261e16aa; }
.market-close { width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.45rem; cursor: pointer; }
.market-checkout {
  position: fixed;
  inset: var(--checkout-viewport-center, 50%) 0 auto;
  margin: 0 auto;
  max-height: calc(var(--checkout-viewport-height, 100vh) - 20px);
  padding: 12px clamp(12px, 3vw, 20px);
  transform: translateY(-50%);
}
.market-checkout[open] { display: flex; flex-direction: column; }
.market-checkout form { display: flex; flex-direction: column; min-height: 0; }
.market-checkout .market-section-head { flex: none; }
.market-checkout .market-close { flex-shrink: 0; }
.checkout-fields { min-height: 0; margin-inline: -7px; padding: 7px; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 7px; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 5px 10px; border-radius: 10px; background: var(--paper); }
.checkout-total strong { font-size: 1.4rem; }
.market-field { display: block; margin-bottom: 5px; font-weight: 750; }
.market-field span { color: var(--muted); font-weight: 400; font-size: .81rem; }
.payment-buttons { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 3px; }
.payment-buttons .market-button { min-height: 44px; padding: 8px 10px; justify-content: center; text-align: center; line-height: 1.2; }
.payment-buttons .primary { grid-column: 1 / -1; }
.market-confirm { text-align: center; }
.confirm-heading p, .status-heading p { margin: 4px 0; color: var(--muted); }
.confirm-heading h2 { font: 400 4.3rem/.95 "Instrument Serif", Georgia, serif; }
.confirm-heading p:last-child { font-weight: 750; color: var(--ink); }
.qr-block { margin: 12px auto; }
.qr-block img { display: block; margin: auto; max-width: min(100%, 30vh); height: auto; border-radius: 8px; background: white; }
.qr-block p { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.market-confirm .market-button { justify-content: center; margin-top: 10px; }
.status-wrap { max-width: 730px; }
.status-heading { background: #e7ecdf; text-align: center; border-radius: 24px; padding: 30px 16px; }
.status-heading h1 { font-size: 5.7rem; }
.status-heading .market-button { width: fit-content; margin: 15px auto 0; }
.test-payment-heading h1 { font-size: clamp(3.5rem, 10vw, 5.7rem); }
.test-payment-heading form { margin-top: 16px; }
#status-pickup-name, .confirm-heading h2#confirm-title {
  font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: 1; overflow-wrap: anywhere;
}
.status-pizzas { display: grid; gap: 12px; margin-top: 16px; }
.status-pizza p { margin-top: 9px; }
.status-chip { display: inline-block; color: #235037; background: #e7ecdf; font-size: .91rem; font-weight: 750; padding: 4px 9px; border-radius: 6px; }
.market-board { background: #eeede5; min-height: 100vh; }
.board-wrap { width: min(1550px, 100%); }
.board-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; font-size: .85rem; }
.board-nav a { display: flex; align-items: center; min-height: 44px; padding: 5px 9px; color: var(--muted); border-radius: 8px; font-weight: 750; text-decoration: none; }
.board-nav [aria-current] { color: white; background: var(--green); }
.board-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 0 22px; }
.board-heading h1 { font-size: clamp(2.55rem, 5.7vw, 4.4rem); }
.board-heading p { margin-top: 6px; color: var(--muted); }
.board-connection { flex-shrink: 0; max-width: 39%; padding: 5px 9px; border-radius: 6px; color: var(--muted); background: #e4dfd0; font-size: .8rem; white-space: normal; }
.board-connection.is-online { color: #254f36; background: #dde9da; }
.board-stepbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.board-step-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.board-step-tabs a, .board-jump-toggle {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 7px 12px;
  border: 1px solid #cfc8b9; border-radius: 10px; background: var(--white); font-weight: 750;
}
.board-step-tabs a { text-decoration: none; }
.board-step-tabs a[aria-current] { background: var(--green); color: white; border-color: var(--green); }
.board-step-tabs a[aria-current] .market-count { background: var(--white); }
.board-jump-toggle { font-size: .88rem; cursor: pointer; }
.board-jump-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.service-toolbar { margin-bottom: 12px; }
.service-payments-alert {
  display: flex; align-items: center; gap: 10px; max-width: 440px; min-height: 58px; padding: 7px 11px;
  border: 1px solid #cac2b2; border-radius: 12px; background: var(--white); color: var(--ink);
  text-decoration: none;
}
.service-payments-alert[data-payment-state="open"] {
  background: #ffe3d8; color: #631f16; border-color: #bd4934;
}
.service-payments-count {
  display: grid; place-items: center; align-self: center; min-width: 41px; min-height: 40px;
  padding: 3px 7px; border-radius: 9px; background: #ede7db; font-size: 1.45rem;
  font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
}
.service-payments-alert[data-payment-state="open"] .service-payments-count { background: #982e1e; color: white; }
.service-payments-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.service-payments-copy strong { font-size: 1.06rem; line-height: 1.2; font-weight: 850; }
.service-payments-copy > span { font-size: .83rem; color: inherit; }
.service-payments-arrow { flex: 0 0 auto; font-size: 1.2rem; font-weight: 850; }
.service-name-search { margin-bottom: 6px; }
.service-name-search summary {
  display: list-item; width: fit-content; min-height: 40px; align-content: center;
  cursor: pointer; padding: 4px 10px; color: var(--green); font-weight: 800;
}
.service-name-search input {
  width: min(100%, 440px); min-height: 44px; margin: 2px 0 6px; padding: 8px 11px;
  border: 1px solid #b2ab9b; border-radius: 9px; background: var(--white);
}
.board-wrap[data-service-searching="true"] [data-service-panel][data-search-empty="true"],
.board-wrap[data-service-searching="true"] .board-history { display: none; }
.service-shortcuts { display: none; }
.ticket-oven-timer {
  display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 39px;
  margin: 7px 0; padding: 5px 9px; border: 1px solid #b7c6b3; border-radius: 7px;
  color: #294535; background: #e0ebde; font-weight: 800;
}
.ticket-oven-timer strong { font-size: 1.28rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-oven-timer.is-due { color: #681d13; background: #ffe3d8; border-color: #be5545; }
.ticket-payment-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px; background: #f5ebdf; border-radius: 8px; margin: 6px 0;
}
.ticket-payment-method { display: grid; gap: 2px; font-weight: 800; }
.ticket-payment-summary > strong { white-space: nowrap; font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.board-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); gap: 13px; align-items: start; }
.board-column { background: #e6e2d7; border: 1px solid #d8d2c3; border-radius: 16px; padding: 10px; min-width: 0; }
.board-column > header { display: flex; justify-content: space-between; align-items: center; padding: 3px 3px 10px; gap: 6px; }
.board-column h2 { font-size: clamp(.98rem, 2vw, 1.19rem); letter-spacing: -.025em; }
.board-column .market-count { background: #fffdf7; }
.board-column[data-stage="Im Ofen"] { background: #f1dfd2; border-color: #e8cbbb; }
.board-column[data-stage="Abholbereit"] { background: #e0e9da; border-color: #ccd9c7; }
.board-empty { color: var(--muted); font-size: .9rem; padding: 12px 3px 14px; }
.board-tickets { display: grid; gap: 9px; }
.board-ticket { container-type: inline-size; position: relative; background: var(--white); border: 1px solid #dfd9cc; padding: 12px; border-radius: 12px; overflow-wrap: anywhere; }
.board-ticket > header { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 6px; }
.board-ticket h3 { font-size: 1.56rem; font-weight: 900; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.board-ticket .ticket-time { color: var(--muted); font-size: .78rem; }
.board-ticket p { margin: 6px 0; }
.board-ticket .ticket-items { font-size: .94rem; line-height: 1.28; }
.ticket-note { background: #f5ebd5; color: #514021; padding: 7px; border-radius: 6px; font-size: .88rem; }
.ticket-recipe, .ticket-phases, .ticket-phase-column { display: grid; gap: 8px; align-content: start; }
.ticket-recipe { margin: 10px 0; }
.ticket-phase { background: #f3f0e7; padding: 9px 12px; border-radius: 8px; border-left: 4px solid #b9b3a3; }
.ticket-phase.is-current { background: #dceadd; border-left-color: #315941; }
.board-wrap[data-role="service"] .ticket-phase.is-current { background: #f7e9c7; border-left-color: #91622a; }
.ticket-phase-label { display: block; color: #474135; font-size: .94rem; margin-bottom: 5px; }
.ticket-ingredients { display: grid; gap: 3px; list-style: disc; margin: 0; padding-inline-start: 1.1em; }
.ticket-ingredients li { color: #211e18; font-size: 1.08rem; line-height: 1.2; font-weight: 750; }
.ticket-phase.is-current .ticket-ingredients li { font-weight: 850; }
.ticket-recipe > .ticket-note { margin: 0; font-weight: 800; font-size: 1rem; padding: 8px 10px; }
.ticket-recipe > .ticket-note.is-omission { background: #f8ddd2; color: #6c2317; border-left: 4px solid #a43522; }
.ticket-payment-pizza + .ticket-payment-pizza { border-top: 1px solid var(--line); padding-top: 6px; }
.ticket-payment-pizza h4 { margin: 6px 0 0; font-size: .94rem; }
.board-wrap[data-role="kitchen"] .board-heading { padding: 8px 0 14px; }
.board-wrap[data-role="kitchen"] .board-heading h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
.board-wrap[data-role="kitchen"] .board-tickets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 345px), 1fr)); align-items: start; }
.board-wrap[data-role="kitchen"] .board-empty { grid-column: 1 / -1; }
.board-wrap[data-role="kitchen"] .board-ticket { max-width: 690px; padding: 15px; }
.board-wrap[data-role="kitchen"] .board-ticket h3 { font-size: 2rem; }
.board-wrap[data-role="kitchen"] .ticket-phase-label { font-size: 1rem; }
.board-wrap[data-role="kitchen"] .ticket-ingredients li { font-size: 1.2rem; }
.board-wrap[data-role="kitchen"] .ticket-phase.is-current .ticket-ingredients li { font-size: 1.42rem; }
.board-wrap[data-role="kitchen"] .ticket-recipe > .ticket-note { font-size: 1.12rem; }
.board-ticket .market-button { margin-top: 7px; min-height: 45px; padding: 8px; font-size: .89rem; justify-content: center; text-align: center; }
.ticket-recipe > .ticket-request {
  display: grid; gap: 2px; color: #541c10; background: #ffddac; border-left: 5px solid #b93c24;
  animation: ticket-request-alarm 1.35s ease-in-out infinite;
}
.ticket-request strong { font-size: .85em; }
@keyframes ticket-request-alarm {
  0%, 100% { background: #ffddac; border-left-color: #b93c24; }
  50% { background: #ffb99e; border-left-color: #7f2315; }
}
.ticket-finish { color: #554d40; }
.ticket-finish summary { min-height: 38px; align-content: center; padding: 3px 7px; cursor: pointer; font-size: .82rem; font-weight: 750; }
.ticket-finish .ticket-phase-column { gap: 5px; }
.board-wrap[data-role="kitchen"] .ticket-finish .ticket-phase { padding: 6px 9px; }
.board-wrap[data-role="kitchen"] .ticket-finish .ticket-phase-label,
.board-wrap[data-role="kitchen"] .ticket-finish .ticket-ingredients li { font-size: .86rem; }
.ticket-action-row, .ticket-payment-tools { display: flex; align-items: center; gap: 6px; }
.ticket-action-row > .market-button:not(.ticket-tool) { flex: 1; width: auto; }
.ticket-action-row .ticket-tool, .ticket-payment-tools .ticket-tool { flex: 0 0 44px; width: 44px; font-size: 1.18rem; }
.ticket-payment-tools { justify-content: space-between; }
.ticket-payment-tools .ticket-tool { margin-left: auto; margin-top: 4px; }
.board-history { margin-bottom: 12px; }
.board-history > summary { cursor: pointer; width: fit-content; min-height: 44px; align-content: center; padding: 0 12px; font-weight: 750; }
.board-history > section { margin-top: 5px; }
.board-history .board-tickets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.board-history .board-ticket { max-width: 380px; }
.board-history .board-empty { grid-column: 1 / -1; }
.board-edit { width: min(calc(100% - 24px), 640px); }
.board-edit-amount { color: var(--muted); margin-top: 5px; }
#board-edit-feedback.is-loading { background: var(--paper); color: var(--muted); }
.board-edit-group { margin: 13px 0; }
.board-edit-group legend { font-weight: 800; margin-bottom: 5px; }
.board-edit-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 5px; }
.board-edit-choice { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.board-edit-choice:has(:checked) { background: #e2ebe0; border-color: #6e8c75; }
.board-edit-choice input { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; flex: 0 0 17px; accent-color: var(--green); }
.board-edit textarea { width: 100%; resize: vertical; border: 1px solid #bcb4a6; border-radius: 8px; padding: 8px; font: inherit; }
.board-ticket small { color: var(--muted); }
.board-confirm-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 17px; }
#board-confirm-copy { margin-top: 8px; }
#board-feedback { margin: 0 0 12px; }
@media (max-width: 700px) {
  .kiosk-layout { grid-template-columns: 1fr; gap: 13px; }
  .kiosk-cart { position: static; }
  .kiosk-hero { grid-template-columns: 1.6fr 1fr; margin-bottom: 13px; }
  .kiosk-hero-copy { padding-inline: 17px 3px; }
  .kiosk-hero h1 { font-size: clamp(2.9rem, 11vw, 4.4rem); }
  .kiosk-hero p { font-size: .9rem; }
  .board-columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
  .market-top { min-height: 55px; }
}
@media (max-width: 700px), (pointer: coarse) and (max-height: 520px) {
  .board-wrap[data-role="service"] .board-heading { padding: 7px 0 11px; }
  .board-wrap[data-role="service"] .board-heading h1 { font-size: 2.3rem; }
  .board-wrap[data-role="service"] .market-test-message { font-size: .83rem; margin-bottom: 7px; }
  .service-toolbar {
    position: sticky; top: 0; z-index: 5; margin-bottom: 6px; padding: 6px 0 8px;
    background: #eeede5; border-bottom: 1px solid #d7d1c4;
  }
  .service-payments-alert { max-width: none; }
  .service-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
  .service-shortcuts a {
    display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 44px;
    padding: 4px 9px; border: 1px solid #cfc8b9; border-radius: 9px; background: var(--white);
    font-weight: 800; text-decoration: none;
  }
  .service-shortcuts a[aria-current] { background: var(--green); color: white; border-color: var(--green); }
  .service-shortcuts a[aria-current] .market-count { background: var(--white); }
  .board-wrap[data-role="service"] .board-columns { grid-template-columns: minmax(0, 1fr); }
  .board-wrap[data-service-view="ofen"]:not([data-service-searching="true"]) [data-service-panel]:not([data-service-panel="ofen"]),
  .board-wrap[data-service-view="ausgabe"]:not([data-service-searching="true"]) [data-service-panel]:not([data-service-panel="ausgabe"]),
  .board-wrap[data-service-view="kasse"]:not([data-service-searching="true"]) [data-service-panel]:not([data-service-panel="kasse"]),
  .board-wrap[data-service-view]:not([data-service-view="ausgabe"]) .board-history { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .ticket-recipe > .ticket-request { animation: none; }
}
