/* Messerwetzen – Designsystem „Stahl & Funke“
   Graphit und Stahlgrau als Material, Orange nur dort, wo gehandelt wird (Funke),
   Grün-Türkis nur für „live / geschafft“ (Schneide). */
@font-face { font-family: "Alegreya"; src: url("/fonts/Alegreya.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "UnifrakturCook"; src: url("/fonts/UnifrakturCook-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --graphite: #1c2b22;      /* Tannengrün */
  --graphite-2: #26382d;
  --graphite-3: #36493c;
  --steel: #e2d3ad;         /* helles Messing */
  --steel-2: #b6a57c;
  --mist: #efe6d2;          /* Pergament */
  --paper: #fbf6ea;
  --ink: #261a12;           /* Nussbaum */
  --muted: #6a5a4a;
  --line: #dccfb4;
  --spark: #9b2226;         /* Zunftrot: nur für Handlungen */
  --spark-dark: #7a1a1d;
  --edge: #4caf6a;
  --edge-dark: #2d6a43;
  --ok: #2d6a43;
  --err: #b3261e;
  --radius: 6px;
  --wrap: 1120px;
  --accent: var(--spark);
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --fraktur: "UnifrakturCook", "Alegreya", Georgia, serif;
  --shadow: 0 1px 2px rgba(38, 26, 18, .08), 0 8px 24px -12px rgba(38, 26, 18, .3);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 19px/1.55 var(--serif);
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background: var(--mist);
}
a { color: var(--edge-dark); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 4px; }
.hidden { display: none !important; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }

/* ---------- Kopfzeile ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 43, 34, .94); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 211, 173, .14);
}
header.site .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--steel); text-decoration: none; font-family: var(--fraktur); font-weight: 700; font-size: 1.75rem; line-height: 1; }
.brand .mark { color: var(--steel); flex: none; }
header.site nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
header.site nav a:not(.btn) { color: #eadfc3; text-decoration: none; padding: 8px 12px; border-radius: 4px; font-weight: 600; font-size: 1.02rem; }
header.site nav a:not(.btn):hover { color: #fff; background: rgba(226, 211, 173, .14); }
header.site nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--steel); border-radius: 0; }
header.site nav .cta { margin-left: 10px; padding: 9px 16px; }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 600; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; padding: 7px 14px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  header.site nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; background: var(--graphite); padding: 8px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  header.site nav.open { display: flex; }
  header.site nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid rgba(226, 211, 173, .14); border-radius: 0; }
  header.site nav .cta { margin: 14px 0 0; text-align: center; }
}

/* ---------- Inhalt allgemein ---------- */
main { max-width: 960px; margin: 0 auto; padding: 36px 20px 64px; }
main.wide { max-width: 1200px; }
h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: 1.3rem; margin: 32px 0 10px; letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 16px 0; box-shadow: var(--shadow), inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line);
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.btn {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .01em;
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--spark); color: #fff; font: inherit; font-weight: 700;
  padding: 12px 22px; border-radius: 6px; transition: background .15s, transform .15s;
}
.btn:hover { background: #b32b30; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 10px 20px; }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.danger { background: transparent; color: var(--err); border: 2px solid var(--err); padding: 10px 20px; }
.btn.danger:hover { background: #fbe6e1; }
.btn.danger.sure { background: var(--err); color: #fff; }
.btn.light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55); padding: 10px 20px; }
.btn.light:hover { background: #fff; color: var(--graphite); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

label { display: block; font-weight: 600; margin: 14px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #bfae8c;
  border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--spark); outline-offset: 0; border-color: var(--ink); }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
.msg { padding: 10px 14px; border-radius: 6px; margin: 14px 0; }
.msg.err { background: #fbe6e1; color: var(--err); }
.msg.ok { background: #e3f0e2; color: var(--ok); }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button { width: 38px; height: 38px; border-radius: 6px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: var(--ink); color: #fff; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.total { font-size: 1.15rem; font-weight: 700; }
.progress { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--edge); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; }
details p { margin: 8px 0 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tabs button { font: inherit; font-weight: 600; cursor: pointer; padding: 9px 16px; border-radius: 6px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
tr[data-id]:hover { background: #f1e8d3; }

/* ---------- Fußzeile ---------- */
footer.site { background: var(--graphite); color: #c9bc9a; margin-top: 0; }
footer.site .foot { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 48px; display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
footer.site .brand { margin-bottom: 8px; }
footer.site p { margin: 8px 0; max-width: 40ch; }
footer.site h2 { font-size: 1.1rem; color: var(--steel); margin: 0 0 10px; }
footer.site a { color: #eadfc3; text-decoration: none; display: block; padding: 4px 0; }
footer.site a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 700px) { footer.site .foot { grid-template-columns: 1fr 1fr; } footer.site .foot > :first-child { grid-column: 1 / -1; } }

/* ---------- Startseite ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hero { background: #14231b url("/img/hero-small.jpg") no-repeat right bottom / auto 62%; color: #fff; position: relative; overflow: hidden; padding: 56px 0 130px; min-height: 640px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 35, 27, .96) 0%, rgba(20, 35, 27, .86) 30%, rgba(20, 35, 27, .4) 48%, rgba(20, 35, 27, 0) 66%); }
@media (min-width: 700px) { .hero { background-image: url("/img/hero.jpg"); background-size: cover; background-position: right center; } }
.hero .wrap { position: relative; display: block; }
.hero .wrap > div { max-width: 600px; }
.hero p.lead { max-width: 27em; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.2rem); line-height: .98; letter-spacing: -.02em; font-weight: 900; margin: 0 0 22px; }
.hero h1 span { display: block; color: var(--steel-2); }
.hero p.lead { color: #d8ccb0; font-size: 1.15rem; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stroke { animation: stroke 1.7s ease-in-out 3; }


.spark { transform-box: fill-box; transform-origin: center; animation: spark 1.7s ease-out 3 both; }

@keyframes stroke { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-70px); } }
@keyframes spark { 0%, 40% { opacity: 0; transform: translate(0, 0) scale(.3); } 52% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
@media (max-width: 699px) { .hero { padding: 36px 0 300px; min-height: 0; background-size: auto 300px; background-position: 62% 100%; } .hero::before { background: linear-gradient(180deg, rgba(20, 35, 27, .97) 0%, rgba(20, 35, 27, .85) 55%, rgba(20, 35, 27, 0) 100%); } .live-strip { margin-top: -48px; } }

.live-strip { position: relative; z-index: 2; margin-top: -64px; }
.live-strip .box { background: var(--paper); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(28, 43, 34, .5); padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.live-strip .txt { flex: 1 1 280px; margin: 0; }
.live-dot::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--edge); margin-right: 8px; box-shadow: 0 0 0 0 rgba(76, 175, 106, .6); animation: ping 1.8s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(76, 175, 106, 0); } }
.idle-dot::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--steel-2); margin-right: 8px; }

section.block { padding: 72px 0; }
section.block.alt { background: var(--paper); }
section.block h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); letter-spacing: -.01em; line-height: 1.08; margin: 0 0 22px; font-weight: 800; }
section.block h2::after { content: ""; display: block; width: 76px; height: 5px; margin-top: 14px; border-top: 2px solid var(--spark); border-bottom: 1px solid var(--spark); }
section.dark h2::after { border-color: var(--steel-2); }
section.block .intro { color: var(--muted); max-width: 58ch; margin: 0 0 36px; font-size: 1.05rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 20px; right: 20px; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--steel) 0 8px, transparent 8px 14px); }
.steps li { position: relative; counter-increment: s; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--graphite); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--paper); }
.steps li:last-child::before { background: var(--edge); }
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { left: 21px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--steel) 0 8px, transparent 8px 14px); }
  .steps li { padding: 0 0 0 64px; min-height: 44px; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.facts li { padding-left: 30px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--edge); border-bottom: 3px solid var(--edge); transform: rotate(-45deg); }

section.dark { background: var(--graphite); color: #fff; }
section.dark .intro { color: #cfc3a4; }
section.dark a { color: #a9dfae; }
.price-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 8px; }
.price-lines div { padding: 22px 24px 8px 0; }
.price-lines strong { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.price-lines span { color: #cfc3a4; }
@media (max-width: 760px) { .price-lines { grid-template-columns: 1fr; } .price-lines div { border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; } }

.map-block { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.map-block .mw-map { height: 460px; border-radius: 12px; }
@media (max-width: 860px) { .map-block { grid-template-columns: 1fr; } .map-block .mw-map { height: 360px; } }

.faq-cols { columns: 2; column-gap: 40px; }
.faq-cols details { break-inside: avoid; }
@media (max-width: 860px) { .faq-cols { columns: 1; } }
.cta-band { background: var(--spark); color: #fbf6ea; padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; max-width: 22ch; }
.cta-band .btn { background: var(--paper); color: var(--ink); }
.cta-band .btn:hover { background: #fff; }

/* ---------- Karte ---------- */
.mw-map { position: relative; overflow: hidden; touch-action: none; user-select: none; cursor: grab; background-color: #e7dcc2;
  background-image: linear-gradient(#d9cba8 1px, transparent 1px), linear-gradient(90deg, #d9cba8 1px, transparent 1px); background-size: 48px 48px; }
.mw-map:active { cursor: grabbing; }
.mw-tiles { position: absolute; inset: 0; }
.mw-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; }
.mw-layer { position: absolute; inset: 0; pointer-events: none; }
.mw-zone, .mw-van { position: absolute; left: 0; top: 0; }
.mw-zone .ring { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--edge-dark); background: rgba(76, 175, 106, .16); min-width: 24px; min-height: 24px; }
.mw-zone.ready .ring { border-color: var(--spark-dark); background: rgba(155, 34, 38, .16); }
.mw-zone.scheduled .ring { border-color: var(--graphite); background: rgba(28, 43, 34, .12); border-style: dashed; }
.mw-zone .tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; background: var(--graphite); color: #fff; font-size: .85rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.mw-van .pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--spark); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.mw-van .pulse { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(155, 34, 38, .45); animation: vanping 2s infinite; }
@keyframes vanping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }
.mw-routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mw-routes .route { stroke: var(--spark); stroke-width: 4; stroke-dasharray: 10 7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.mw-stop, .mw-base { position: absolute; left: 0; top: 0; pointer-events: auto; }
.mw-stop .dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--edge-dark); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.mw-stop.scheduled .dot { background: var(--graphite); }
.mw-stop.ready_to_return .dot, .mw-stop.returning .dot { background: var(--spark); }
.mw-stop .tag { position: absolute; left: 12px; top: -10px; white-space: nowrap; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.mw-base .dot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 6px; background: var(--steel); color: var(--graphite); display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; border: 3px solid var(--graphite); }
.mw-ctl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.mw-ctl button { width: 38px; height: 38px; border: 0; border-radius: 6px; background: #fff; color: var(--ink); font-size: 1.3rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.mw-ctl button:hover { background: var(--graphite); color: #fff; }
.mw-attr { position: absolute; right: 0; bottom: 0; background: rgba(251, 246, 234, .88); font-size: .72rem; padding: 2px 6px; color: var(--ink); }
.mw-consent { position: absolute; left: 12px; bottom: 12px; max-width: 320px; background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .3); font-size: .88rem; cursor: default; }
.mw-consent p { margin: 0 0 10px; }
.mw-consent .btn { padding: 9px 16px; }

.mw-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--graphite); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.mw-fab:hover { background: var(--graphite-3); }
.mw-fab .fab-live { position: absolute; top: -8px; right: -6px; background: var(--edge); color: #0d2a17; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.mw-fab.live { box-shadow: 0 0 0 0 rgba(76, 175, 106, .7), 0 8px 24px rgba(0, 0, 0, .35); animation: fabping 2s infinite; }
@keyframes fabping { to { box-shadow: 0 0 0 14px rgba(76, 175, 106, 0), 0 8px 24px rgba(0, 0, 0, .35); } }

dialog.mw-drawer { border: 0; padding: 20px; margin: 0 0 0 auto; width: min(500px, 100%); height: 100dvh; max-height: 100dvh; background: var(--paper); color: var(--ink); box-shadow: -12px 0 40px rgba(0, 0, 0, .3); }
dialog.mw-drawer[open] { display: flex; flex-direction: column; gap: 12px; }
dialog.mw-drawer::backdrop { background: rgba(28, 43, 34, .55); }
.mw-drawer .dh { display: flex; align-items: center; justify-content: space-between; }
.mw-drawer h2 { margin: 0; font-size: 1.3rem; }
.mw-drawer .x { border: 0; background: var(--mist); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.mw-drawer .ds { margin: 0; }
.mw-drawer .dm { flex: 1 1 auto; min-height: 280px; border-radius: 10px; }
@media (max-width: 640px) { dialog.mw-drawer { margin: auto 0 0; height: 88dvh; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .3); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Admin-Arbeitsfläche (Tablet 10–11", Querformat): alles auf einen Bildschirm, große Tasten ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.adm main.wide { max-width: none; padding: 10px 16px 8px; }
.adm header.site .bar { padding-top: 6px; padding-bottom: 6px; }
.adm #msg { position: fixed; right: 14px; bottom: 14px; z-index: 60; width: min(420px, 90vw); }
.adm #msg:empty { display: none; }
.adm #msg .msg { box-shadow: 0 4px 16px rgba(0, 0, 0, .25); font-size: .95rem; margin: 0; cursor: pointer; }
.adm #msg .msg.ok { pointer-events: none; opacity: .95; }
.adm #banner:empty { display: none; }
.adm #banner .msg { margin: 0 0 8px; padding: 8px 12px; }
.adm .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.adm .tabs button { min-height: 52px; font-size: 1.05rem; padding: 8px 18px; display: inline-flex; align-items: center; gap: 8px; }
.adm .btn { min-height: 50px; font-size: 1.05rem; }
.adm .btn.compact { min-height: 0; padding: 4px 10px; font-size: .9rem; }
.adm .btn.big { min-height: 60px; font-size: 1.2rem; padding: 12px 26px; }
.adm input, .adm select { min-height: 48px; font-size: 1.05rem; }
.adm .card { margin-bottom: 10px; }
.adm .card.tight { padding: 12px 14px; }
.adm td, .adm th { padding: 10px 8px; }
.adm .small { font-size: .92rem; }
.adm .hint { padding: 30px 10px; text-align: center; font-size: 1.1rem; }
.adm .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.badge { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--spark); color: #fff; font-size: .85rem; font-weight: 700; text-align: center; }
.tabs button[aria-selected="true"] .badge { background: #fff; color: var(--ink); }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #e8dcc0; color: var(--ink); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.pill.go { background: #f3dfa0; }
.pill.done { background: #cfe6cf; color: #1f5a35; }
.pill.warn { background: #f6d9d3; color: var(--err); }
tr.sel td { background: #efe3c3; }
.listhead { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
.listhead select { flex: 1; }
.row3 { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.dgrid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.actionbar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 -6px 14px rgba(0, 0, 0, .08); }
.actionbar .push { margin-left: auto; }
.next { background: #fff; border: 3px solid var(--spark); }
.next .k { font-weight: 700; color: var(--spark); }
.next .big { font-size: 1.45rem; font-weight: 800; margin: 2px 0; }
.split { display: grid; gap: 12px; }
.zonegrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); align-items: start; }
.adm #t-map { height: 360px; border-radius: 10px; }

@media (min-width: 900px) {
  .adm #app { display: flex; flex-direction: column; height: calc(100dvh - var(--apptop, 140px) - 10px); }
  .adm #app > section:not(.hidden) { flex: 1; min-height: 0; display: flex; }
  .adm #app > section.plain:not(.hidden) { display: block; overflow: auto; }
  .adm .split { flex: 1; min-height: 0; width: 100%; grid-template-columns: minmax(420px, 44%) 1fr; grid-template-rows: minmax(0, 1fr); }
  .adm .split.tour { grid-template-columns: minmax(380px, 40%) 1fr; }
  .adm .split { align-items: stretch; }
  .adm .col { min-height: 0; height: 100%; display: flex; flex-direction: column; }
  .adm .scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .adm .card.scroll.tight { margin-bottom: 0; }
  .adm #t-map { min-height: 0; }
  .adm .tour .col:last-child { min-height: 0; }
}
@media (max-width: 899px) {
  .row3, .dgrid { grid-template-columns: 1fr; }
}

.navrow { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; justify-content: space-between; }
.navrow .tabs.mode { margin-left: auto; }
.navrow .tabs.mode button { min-height: 44px; padding: 6px 14px; font-size: .95rem; border-style: dashed; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.adm td { line-height: 1.3; }
.adm #orders-rows, .adm #h-list table { }
.adm .card.scroll table, .adm #h-list table { table-layout: fixed; width: 100%; }
.adm #order-detail, .adm #h-sheet { display: flex; flex-direction: column; }
.adm #order-detail > .actionbar, .adm #h-sheet > .actionbar { margin-top: auto; }
.adm .card.scroll table th:first-child { width: 44px; }
.adm .card.scroll table th:nth-child(3) { width: 64px; }
.adm .card.scroll table th:nth-child(4) { width: 200px; }
.adm #h-list table th:nth-child(2) { width: 64px; }
.adm #h-list table th:nth-child(3) { width: 84px; }

.inline { display: flex; gap: 8px; align-items: center; }
.inline input, .inline select { flex: 1; min-width: 0; }
.inline .btn { white-space: nowrap; }
.adm #t-map { flex: 1; min-height: 300px; }
.hgrid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.handbar { align-items: flex-end; }
.hfield { display: flex; flex-direction: column; gap: 2px; }
.hfield label { font-size: .85rem; margin: 0; }
.hfield input { width: 130px; }
.hfield.grow { flex: 1; min-width: 160px; }
.hfield.grow input { width: 100%; }
.handbar .btn.big { background: var(--spark); }
@media (max-width: 899px) { .hgrid { grid-template-columns: 1fr; } }
.adm #banner .msg { font-size: .95rem; padding: 6px 12px; }

/* Megálló-kártya: végigvezető feladatsor */
.linkbtn { all: unset; cursor: pointer; font-size: 1.45rem; font-weight: 800; border-bottom: 2px dotted var(--ink); }
.linkbtn:focus-visible { outline: 3px solid var(--spark); }
.shead .k { font-weight: 700; color: var(--spark); }
.stitle { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 2px 0; }
.next.isdone { border-color: #2d6a43; background: #e6f2e4; }
.next.isdone .shead .k { color: #2d6a43; }
.tsteps { display: grid; gap: 8px; margin-top: 10px; }
.tstep { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--steel-2); background: #fff; }
.tstep .stext { flex: 1; font-weight: 700; }
.tstep .tick, .stops .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--steel-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.tstep.done { background: #e6f2e4; border-color: #2d6a43; }
.tstep.done .tick, .stops li.ok .tick { background: #2d6a43; border-color: #2d6a43; }
.tstep.active { border-color: var(--spark); box-shadow: 0 0 0 3px rgba(155, 34, 38, .18); }
.tstep.locked { opacity: .6; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stops li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 2px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; }
.stops li.cur { border-color: var(--spark); }
.stops li.ok { background: #e6f2e4; }
.tstep { flex-wrap: wrap; }
.tstep .stext { flex: 1 1 140px; min-width: 0; }
.tstep .btn { white-space: nowrap; }
.tstep input { flex: 1 1 110px; min-width: 0; width: auto !important; max-width: 160px; }
.adm .scroll { overflow-x: hidden; }

/* ===== Kompakt terepi nézet (kis tablet / alacsony böngészőablak) ===== */
.adm .tabs button { min-height: 46px; padding: 6px 16px; }
.adm main.wide { padding-top: 6px; }
.adm .trow { display: flex; gap: 8px; align-items: center; }
.adm .trow input, .adm .trow select { flex: 1; min-width: 0; min-height: 46px; }
.adm .trow .btn { white-space: nowrap; min-height: 46px; padding: 8px 16px; }
.adm .tourleft { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.adm .tourleft > * { flex: none; }
.adm .tourleft #t-route { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.adm #t-route .rsum { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; justify-content: space-between; }
.adm #t-route .stops { flex: 1; min-height: 0; overflow: auto; }
.adm #t-status { margin-top: -4px; }
.adm .next { padding: 10px 12px; margin: 0; }
.adm .next .shead .k { font-size: .85rem; }
.linkbtn { font-size: 1.2rem; }
.adm .stitle { margin: 0; }
.adm .stops li { padding: 6px 10px; }
.tstepper { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; margin-top: 8px; }
.tbtn { font: inherit; font-weight: 800; font-size: 1.05rem; min-height: 56px; border-radius: 10px; border: 2px solid var(--steel-2); background: #fff; color: var(--ink); cursor: pointer; padding: 6px 8px; }
.tbtn.active { background: var(--spark); border-color: var(--spark); color: #fff; }
.tbtn.done { background: #2d6a43; border-color: #2d6a43; color: #fff; }
.tbtn.locked, .tbtn[disabled]:not(.done) { opacity: .5; cursor: not-allowed; }
.tbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ztile { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 12px 14px; margin: 0 0 10px; border: 2px solid var(--steel-2); border-radius: 12px; background: var(--paper); min-height: 84px; }
.ztile.sel { border-color: var(--spark); box-shadow: 0 0 0 3px rgba(155, 34, 38, .2); background: #fff; }
.ztile:focus-visible { outline: 3px solid var(--ink); }
.ztile .ztop { display: flex; gap: 10px; align-items: center; }
.ztile .zdate { font-size: 1.25rem; }
.ztile .zk { margin-left: auto; font-weight: 700; }
@media (max-height: 760px) { .adm #banner { display: none; } }
.adm #t-status.hidden { display: none; }
.mapwrap { position: relative; }
.mapwrap #t-map { flex: 1; }
.mapnote { position: absolute; left: 10px; top: 10px; right: 64px; width: auto; z-index: 5; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.ztap { cursor: pointer; transition: box-shadow .12s, transform .06s; }
.ztap:hover, .ztap:focus-visible { box-shadow: 0 0 0 3px var(--spark); outline: none; }
.ztap:active { transform: scale(.99); }
.ztaphint { margin: 6px 0 0; color: var(--spark); font-weight: 700; }

/* Rendelések: keskeny lista, hangsúlyos részletek */
@media (min-width: 900px) { .adm #tab-orders .split { grid-template-columns: minmax(440px, min(700px, 52%)) 1fr; } }
#tab-orders .col:first-child td:nth-child(2) > div:first-child { font-size: 1.3rem; line-height: 1.25; }
#tab-orders .col:first-child td:nth-child(2) .small { font-size: 1.05rem; }
#tab-orders #orders-table, #tab-orders #orders-table, #tab-orders .col:first-child table { font-size: 1.12rem; }
#tab-orders .col:first-child .small { font-size: 1rem; }
#tab-orders .col:first-child td, #tab-orders .col:first-child th { padding: 10px 6px; }
.adm .cname { font-size: 1.45rem; line-height: 1.2; }
.adm #order-detail h2 { font-size: 1.7rem; }
.adm .ktab { font-size: 1.2rem; width: 100%; }
.adm .ktab td, .adm .ktab th { padding: 8px 10px; }
.adm .ktab td:nth-child(3) { font-weight: 800; font-size: 1.4rem; }
.adm .ksum { margin: 8px 0 0; font-size: 1.05rem; }
.adm .bigk { font-size: 1.6rem; font-weight: 800; }
.adm #order-detail .dgrid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.adm #order-detail label { font-size: 1rem; }

/* QR-címke ablak */
.lmodal { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 14, 10, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lbox { background: #fff; color: #000; border-radius: 12px; max-width: 760px; width: 100%; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.lbtns { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #ddd; }
.lbtns .push { margin-left: auto; display: flex; gap: 8px; }
.lsheet { overflow: auto; padding: 12px; }
.lsheet .l { display: inline-block; width: 5cm; border: 1px dashed #888; padding: 6px; margin: 6px; text-align: center; page-break-inside: avoid; vertical-align: top; }
.lsheet .l svg { width: 3.6cm; height: 3.6cm; }
.lsheet .n { font-size: 20px; font-weight: 700; }
@media print {
  body.labels-open > *:not(#label-modal) { display: none !important; }
  body.labels-open .lmodal { position: static; background: none; padding: 0; display: block; }
  body.labels-open .lbox { box-shadow: none; max-width: none; }
  body.labels-open .lbtns { display: none; }
  body.labels-open .lsheet { overflow: visible; }
}

#tab-orders .col:first-child table { table-layout: fixed; width: 100%; }
#tab-orders .col:first-child th:nth-child(1) { width: 34px; }
#tab-orders .col:first-child th:nth-child(3) { width: 64px; }
#tab-orders .col:first-child th:nth-child(4) { width: 175px; }
#tab-orders .col:first-child .pill { white-space: nowrap; font-size: .92rem; line-height: 1.2; padding: 4px 10px; display: inline-block; }
#tab-orders .col:first-child td:nth-child(2) { overflow: hidden; }
.tbtn.main { border-color: var(--spark); }
.tbtn:not(.done):active { transform: scale(.98); }

.suggest { border: 2px solid var(--spark); }
.sgaddr { font-size: 1.3rem; font-weight: 800; margin: 4px 0 2px; }
.sgqr { margin-top: 6px; font-size: 1.05rem; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chain .chip { padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--steel-2); font-weight: 700; font-size: .9rem; color: #6b6258; background: #fff; }
.chain .chip.ok { background: #2d6a43; border-color: #2d6a43; color: #fff; }
.btnsub { display: block; font-weight: 500; font-size: .8rem; opacity: .85; }

.curhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.curaddr { font-size: 1.25rem; font-weight: 800; }
.docs { margin: 10px 0 0; display: grid; gap: 4px; }
.docline { padding: 6px 10px; border: 1.5px solid var(--steel-2); border-radius: 8px; background: #fff; font-weight: 600; }
.docline.ok { background: #2d6a43; border-color: #2d6a43; color: #fff; }
.docs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.docs .docline { padding: 4px 10px; border-radius: 999px; font-size: .9rem; }
.docs .muted { flex-basis: 100%; }

button.docline { font: inherit; cursor: pointer; }
button.docline:hover { border-color: var(--spark); }
.btn.done { background: #2d6a43; border-color: #2d6a43; color: #fff; cursor: default; }
.docpage { font-family: Georgia, serif; color: #000; padding: 12px 18px; }
.docpage .dhead { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
.docpage h1 { font-size: 1.4rem; margin: 0 0 4px; }
.docpage table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.docpage th, .docpage td { border-bottom: 1px solid #bbb; padding: 6px 4px; text-align: left; }

.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; margin-top: 8px; }
.bslot { border: 1.5px solid var(--steel-2); border-radius: 8px; background: #fff; text-align: center; padding: 4px 2px; line-height: 1.15; }
.bslot b { display: block; font-size: 1.05rem; }
.bslot span { font-size: .72rem; color: #6b6258; }
.bslot.used { background: var(--ink); border-color: var(--ink); color: #fff; }
.bslot.used span { color: #e8dcc3; }
.slotbadge { background: var(--spark); color: #fff; border-radius: 6px; padding: 1px 8px; }
.slotbig { font-size: 30px; font-weight: 900; letter-spacing: 1px; margin-top: 4px; }
.adm .manage { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line, #cdbf9f); gap: 6px; flex-wrap: wrap; }
.btn.compact.danger { padding: 6px 12px; }
.prep { border: 2px solid var(--spark); margin-bottom: 8px; }
.preplist { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 520px); overflow: auto; }
.preplist li { padding: 4px 0; border-bottom: 1px solid #e6dcc4; }
.preplist label { display: flex; gap: 10px; align-items: center; cursor: pointer; min-height: 40px; }
.preplist input { width: 22px; height: 22px; min-height: 0; flex: none; }

.stops li { flex-wrap: wrap; }
.stops li .stxt { flex: 1; min-width: 0; }
.stops .rowmenu { flex: none; }
.stops .rowact { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0 2px 40px; }
.stops .rowact .small { flex: 1 1 100%; }

/* Átadás lap: jobban olvasható blokkok */
.hgrid { gap: 12px; }
.hbox { background: #fff; border: 1.5px solid var(--steel-2); border-radius: 12px; padding: 12px 14px; }
.hbox h3 { margin: 0 0 6px; font-size: .95rem; font-weight: 700; color: #6b6258; }
.hbox p { margin: 4px 0; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.hbox p.hmain { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.hbox .muted { font-size: .95rem; }
.klist { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; font-size: 1.1rem; }
.klist li { padding: 4px 0; border-bottom: 1px solid #e6dcc4; }
.klist li:last-child { border-bottom: 0; }
#h-sheet .docs { margin-top: 14px; gap: 8px; }
#h-sheet .docs .docline { padding: 9px 16px; font-size: 1.02rem; }
#h-sheet .chain .chip { padding: 6px 12px; font-size: 1rem; }
#h-sheet .actions .btn, #h-sheet .hbar .btn { min-height: 48px; }

.card.prep .rowact { padding-left: 0; margin-top: 6px; }

.skipbadge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f2c14e; color: #3a2a00; font-weight: 800; font-size: .85rem; border: 1.5px solid #c9962a; }
.stops li.skipped { background: #fff6dc; border-left: 6px solid #c9962a; }

.btn.gmdone { background: #2d6a43; border: 2px solid #2d6a43; color: #fff; cursor: default; }

.card.contactcard { border-left: 8px solid #c9962a; background: #fff6dc; margin: 10px 0; }
.card.contactcard .preplist { overflow: visible; }

/* Nyilvános navigáció: a főmenü balra, a látogató saját fiókja (Mein Konto) külön, nagyobb térrel a megrendelés gomb előtt */
header.site nav.pub { margin-left: 28px; flex: 1; }
header.site nav.pub .acct { margin-left: auto; margin-right: clamp(22px, 4.5vw, 64px); padding-left: 18px; padding-right: 14px; display: inline-flex; align-items: center; gap: 7px; border-left: 1px solid rgba(226, 211, 173, .3); border-radius: 0; }
header.site nav.pub .acct svg { flex: none; }
header.site nav.pub .cta { margin-left: 0; }
@media (max-width: 860px) {
  header.site nav.pub { margin-left: 0; flex: none; }
  header.site nav.pub .acct { margin: 0; padding: 13px 4px; border-left: 0; }
}
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row.two { grid-template-columns: 1fr; } }

.perks { background: #fff6dc; border: 1.5px solid #e2c777; border-left: 6px solid #c9962a; border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.perks ul { margin: 6px 0 4px; padding-left: 20px; }
.perks li { margin: 5px 0; }
.perks p { margin: 4px 0 0; }

/* Logo im Kopf: größer, mit gelegentlichem Lichtreflex */
header.site .brand { font-size: clamp(1.9rem, 4.2vw, 2.45rem); gap: 12px; }
header.site .brand .mark { width: 74px; height: 74px; margin: -8px 0 -8px -6px; }
header.site .brand span {
  background: linear-gradient(105deg, transparent 0 42%, #fffbe8 50%, transparent 58% 100%) 120% 0 / 250% 100% no-repeat, linear-gradient(var(--steel), var(--steel));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: brandshine 6.5s ease-in-out 1.2s infinite;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35));
}
@keyframes brandshine {
  0% { background-position: 120% 0, 0 0; }
  28%, 100% { background-position: -20% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  header.site .brand span { animation: none; background-position: -20% 0, 0 0; }
}
@media (max-width: 480px) {
  header.site .brand { font-size: 1.6rem; gap: 9px; }
  header.site .brand .mark { width: 52px; height: 52px; }
}
header.site .brand { flex: none; white-space: nowrap; }
header.site .brand span { padding-right: 2px; }

/* Fejléc: a menüpontok soha nem törnek két sorba; szűkebb ablaknál a logó és a térközök arányosan kisebbek. */
header.site nav a:not(.btn), header.site nav .cta, header.site nav.pub .acct { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1240px) {
  header.site .bar { gap: 12px; padding-left: 14px; padding-right: 14px; }
  header.site .brand { font-size: 1.85rem; gap: 8px; }
  header.site .brand .mark { width: 58px; height: 58px; margin: -6px 0 -6px -4px; }
  header.site nav.pub { margin-left: 8px; }
  header.site nav a:not(.btn) { padding: 8px 8px; font-size: .98rem; }
  header.site nav.pub .acct { margin-right: 10px; padding-left: 12px; padding-right: 8px; }
  header.site nav .cta { padding: 9px 12px; }
}

/* A fejléc szélesebb, mint a tartalom: nagy képernyőn kényelmesen elfér a logó és a menü. */
header.site .bar { max-width: 1480px; }
@media (min-width: 1241px) {
  header.site nav a:not(.btn) { padding: 8px 14px; }
  header.site nav.pub { margin-left: 40px; }
}

/* „Mein Konto" mittig zwischen „Fragen" und dem Bestellen-Knopf: gleiche Abstände links und rechts. */
@media (min-width: 861px) {
  header.site nav.pub .acct { margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; border-left: 0; min-width: 0; }
}

/* Árlista: közepes szélességű táblázat, szellős sorok; az ár, a € jel és a Mentés gomb egy vonalban */
.ptable { width: 100%; max-width: 640px; table-layout: fixed; margin: 8px auto 0; }
.ptable th:first-child, .ptable td:first-child { width: 170px; padding-left: 14px; }
.ptable td { padding-top: 12px; padding-bottom: 12px; }
.pcell { display: flex; align-items: center; }
.pcell input { width: 140px; flex: none; text-align: right; }
.pcell .eur { color: var(--muted); font-weight: 700; width: 14px; margin-left: 10px; }
/* a Mentés gomb ugyanolyan messze van az ártól, mint az ár a cm-felirattól */
.pcell .btn { flex: none; margin-left: var(--pgap, 100px); }
@media (max-width: 560px) { .ptable th:first-child, .ptable td:first-child { width: 96px; padding-left: 8px; } .pcell input { width: 104px; } .pcell { --pgap: 14px; } }

/* Kompaktabb fejléc: a menü, a Mein Konto és a Bestellen gomb közelebb egymáshoz. */
header.site .bar { max-width: 1280px; }

/* Tablet / kisebb kijelző: az adatlap egy oszlopban, kisebb gombsáv, kisebb listabetű */
@media (max-width: 1400px) {
  .adm #order-detail .dgrid { grid-template-columns: 1fr; }
  .adm .actionbar { gap: 6px; padding: 8px 10px; }
  .adm .actionbar .btn { min-height: 44px; padding: 6px 12px; font-size: 1rem; }
  #tab-orders .col:first-child td:nth-child(2) > div:first-child { font-size: 1.15rem; }
  #tab-orders .col:first-child td:nth-child(2) .small { font-size: .95rem; }
  #tab-orders .col:first-child th:nth-child(4) { width: 150px; }
  #tab-orders .col:first-child .pill { font-size: .85rem; padding: 3px 8px; }
  .adm .cname { font-size: 1.3rem; }
  .adm #order-detail h2 { font-size: 1.45rem; }
  .adm .ktab { font-size: 1.05rem; }
}

/* Gyűjtőkörzetek: lista + térkép/megrendelések */
.adm #zones.zonegrid { grid-template-columns: 1fr; }
.ztap.zsel { box-shadow: 0 0 0 3px var(--spark); }
.adm #zmap { height: 340px; border-radius: 10px; margin: 6px 0 8px; position: relative; }
.zlist { list-style: none; margin: 0; padding: 0; }
.zrow { display: grid; gap: 8px; padding: 10px 4px; border-bottom: 1px solid var(--line, #d8ccb0); }
.zmove { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zmove select { flex: 1 1 220px; min-width: 0; }
@media (min-width: 900px) { .adm #tab-zones .split { grid-template-columns: minmax(380px, 42%) 1fr; } }

/* Gyűjtőkörzetek: a lista és a jobb oldal sima blokk (iPad Safari-n a grid + görgetés nem működött) */
.adm #zones.zonegrid { display: block; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.adm #zones.zonegrid > .card { margin: 0 0 12px; }
.adm #zone-detail { -webkit-overflow-scrolling: touch; touch-action: pan-y; }

/* Érintőképernyő (iPad): minden gomb legalább 44 px magas */
@media (pointer: coarse) {
  .adm .btn.compact, .adm .linkbtn { min-height: 44px; padding: 8px 14px; font-size: 1rem; }
}

.mw-stop.sel .dot { background: var(--spark); width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.mw-stop.sel .tag { background: var(--spark); color: #fff; }
.mw-stop[data-oid] { cursor: pointer; }
.zsel-panel { margin: 10px 0 6px; border: 3px solid var(--spark); }
.zrow[data-zrow] { cursor: pointer; }
.zrow.sel { background: #f3dfa0; border-radius: 8px; }

.mw-stop.unassigned .dot { background: #d32f2f; border-color: #fff; box-shadow: 0 0 0 3px rgba(211, 47, 47, .35), 0 2px 6px rgba(0, 0, 0, .4); }
.mw-stop.unassigned .tag { background: #d32f2f; color: #fff; }

/* Tablet / érintőkijelző: a túra bal oszlopa egyben görget, a megállólista nem szorul össze */
@media (max-width: 1400px), (pointer: coarse) {
  .adm .tourleft { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; }
  .adm .tourleft #t-route { flex: none; display: block; }
  .adm #t-route .stops { overflow: visible; flex: none; padding-bottom: 24px; }
}

/* Túra neve külön, teljes sorban; alatta a sorrend-választó és az indítás gomb */
.adm .trow { flex-wrap: wrap; }
.adm .trow #t-zone { flex: 1 1 100%; font-weight: 700; font-size: 1.05rem; }
.adm .trow #t-dir { flex: 1 1 200px; }
.adm .trow #t-start, .adm .trow #t-stop { flex: 0 0 auto; }

/* Tömörebb aktuális-megálló kártya és túra-fejléc */
.adm .next { padding: 8px 10px; }
.adm .next .shead .stitle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.adm .next .shead .sinfo { font-size: 1.15rem; white-space: nowrap; }
.adm .next .shead .small a { color: inherit; text-decoration: underline dotted; }
.adm .next .trow.manage { margin-top: 6px; gap: 6px; flex-wrap: wrap; }
.adm .next .retrow { align-items: stretch; }
.adm .next .retrow .btn.big { min-height: 46px; padding: 6px 22px; flex: 0 0 auto; }
.adm .next .retrow .btn.compact { min-height: 46px; flex: 0 1 auto; }
.adm .next .actions { margin: 6px 0 0; }
.adm .tourleft { gap: 6px; }
.adm #t-route .rsum { gap: 2px 8px; font-size: .92rem; }
.adm #t-route .rsum .btn { min-height: 40px; padding: 4px 12px; }
.adm #t-status { margin: 0; }

/* Bestellformular: auf breiten Bildschirmen drei Spalten (Angaben | Messer | Preis), damit alles ohne langes Scrollen sichtbar ist */
main.order { max-width: 1320px; }
.ogrid { display: block; }
.ocol3 .order-sum { margin-top: 0; }
.winbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.win-row:not(:last-child) .wadd { display: none; }
@media (min-width: 1000px) {
  main.order { padding-top: 24px; }
  .ogrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: stretch; }
  .ocol1, .ocol2 { display: flex; flex-direction: column; }
  .ocol1 > .card:last-child, .ocol2 > .card:last-child { flex: 1; margin-bottom: 0; }
  .ocol2 > .card:last-child { display: flex; flex-direction: column; }
  .ocol2 > .card:last-child textarea#notes { min-height: 56px; resize: vertical; }
  .ocol2 > .card h2 { margin: 18px 0 8px; }
  .ocol2 > .card p.muted { margin: 4px 0 8px; }
  .ocol3 { grid-column: 1 / -1; }
  .ocol3 .order-sum { max-width: 560px; }
}
@media (min-width: 1360px) {
  .ogrid { grid-template-columns: minmax(400px, 480px) minmax(0, 764px); justify-content: center; align-items: stretch; }
  .ocol1, .ocol2 { display: flex; flex-direction: column; }
  .ocol1 > .card:last-child, .ocol2 > .card:last-child { flex: 1; margin-bottom: 0; }
  .ocol2 > .card:last-child { display: flex; flex-direction: column; }
  .ocol2 > .card:last-child textarea#notes { min-height: 56px; resize: vertical; }
  .ocol3 { grid-column: auto; position: sticky; top: 96px; align-self: start; }
  .ocol3 .order-sum { max-width: none; }
}

/* Átadási munkalap: nagy dobozszám, a QR-kód vége külön sorban, törés nélkül */
.hbox .hslot { margin: 6px 0 2px; font-size: 1.7rem; }
.hbox .hslot .slotbadge { padding: 2px 14px; border-radius: 8px; display: inline-block; }
.hbox .hqr { margin: 2px 0 0; white-space: nowrap; }

/* Átvételi lap + számla egy A4-es lapon, két fél oldalon */
.docpage .dhalf { min-height: 12.5cm; padding-bottom: 8px; page-break-inside: avoid; }
.docpage .dhalf + .dhalf { border-top: 2px dashed #777; padding-top: 12px; }

/* Átadott kések száma: nagy, jól látható szám */
#h-count { font-size: 2rem; font-weight: 800; text-align: center; min-height: 64px; max-width: 160px; }
.lsheet .n { font-size: 16px; font-weight: 700; line-height: 1.1; }
.lsheet .bx { font-size: 14px; font-weight: 600; }

.econ { font-weight: 700; padding: 1px 8px; border-radius: 10px; font-size: .92em; }
.econ-red.econ, .econ.econ-red { background: #fde8e6; color: #a4261c; }
.econ.econ-yellow { background: #fff3cc; color: #7a5600; }
.econ.econ-green { background: #e3f3e2; color: #1f6b2a; }
.econ-n { font-weight: 700; }
.econ-n.econ-red { color: #c0352b; }
.econ-n.econ-yellow { color: #b07800; }
.econ-n.econ-green { color: #2a8035; }

.qcard { max-width: 980px; }
.qgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.qline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.qline > div { min-width: 0; }
.qline select, .qline input:not([type=checkbox]) { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 760px) { .qgrid { grid-template-columns: 1fr; } }

/* Bestellformular: Größen als Kacheln, gezahnte Messer als Zeilen */
.sizegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 4px; }
@media (max-width: 479px) { .sizegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sizetile .stepper { gap: 4px; }
.sizetile .stepper button { width: 32px; height: 32px; font-size: 1.05rem; }
.sizetile .stepper output { min-width: 20px; }
.sizetile { display: grid; grid-template-columns: 74px auto; justify-content: center; align-items: center; gap: 4px 12px; padding: 6px 10px; min-width: 0; box-sizing: border-box; background: #fff; border: 1px solid rgba(60, 40, 20, .18); border-radius: 8px; }
.sizetile .sz { font-weight: 700; white-space: nowrap; }
.serrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 10px; }
.serrow label { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.serrow:not(:last-child) .sadd { display: none; }
.serrow .lbl { display: block; font-weight: 700; margin-bottom: 4px; }

#sizes { container-type: inline-size; }
@container (max-width: 520px) { .sizetile { grid-template-columns: 1fr; justify-items: center; } }
.sizetile .sz { text-align: left; }
.estbox { margin: 14px 0 6px; padding: 10px 14px; background: #fff; border: 1px solid rgba(60, 40, 20, .18); border-left: 4px solid var(--spark); border-radius: 8px; line-height: 1.45; }
.estbox:empty { display: none; }
.estbox strong { display: block; margin-bottom: 2px; }

.sumbox { margin: 16px 0 6px; padding: 12px 14px; background: #fbf5e6; border: 1px solid rgba(60, 40, 20, .2); border-radius: 8px; }
.sumbox .total { margin: 0 0 6px; font-weight: 700; }
.sumbox .estbox { margin: 8px 0; }
.sumbox > .muted { margin: 6px 0 10px; }
.sumbox .btn { margin: 0; }

.legal h2 { margin: 22px 0 6px; font-size: 1.1rem; }
.legal p { margin: 0 0 10px; line-height: 1.6; }
.legal .formtext { border: 1px dashed rgba(60, 40, 20, .4); border-radius: 8px; padding: 12px 16px; background: #fff; }
.legal .formtext p { margin: 0 0 12px; }

.termscheck { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 8px 0; line-height: 1.45; font-size: .95rem; }
.termscheck input { margin-top: 4px; flex: none; }

.ts-box { margin: 10px 0; min-height: 0; }

.pw-rules { list-style: none; margin: 6px 0 12px; padding: 0; font-size: .9rem; }
.pw-rules li { color: var(--muted); padding: 1px 0; }
.pw-rules li.ok { color: var(--ok); font-weight: 600; }

.btn-google { display: inline-flex; align-items: center; gap: 10px; }
.btn-google .g-logo { flex: none; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; padding-left: 2.4rem; }
.pw-lock { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink); opacity: .65; pointer-events: none; }
.pw-toggle svg { width: 22px; height: 22px; display: block; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; padding: 6px 8px; cursor: pointer; }
.pw-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; border-radius: 4px; }

header.site nav .cta.mute { background: #7d7a72; color: #f1ede3; }
header.site nav .cta.mute:hover { background: #8d8a82; }
header.site nav .admin-cta { margin-right: 10px; }
@media (max-width: 860px) { header.site nav .admin-cta { margin-right: 0; } }
@media (min-width: 861px) and (max-width: 1150px) { header.site nav .cta.mute { display: none; } }

.paybox { margin: 12px 0; padding: 10px 14px; background: #fff; border: 1.5px solid var(--steel-2); border-radius: 12px; }
.paybox h3 { margin: 0 0 8px; }
.payrow { display: flex; gap: 10px; flex-wrap: wrap; }
.paybtn { min-width: 120px; min-height: 52px; font-size: 1.15rem; }
.btn.secondary.paybtn.sel { background: var(--ok); color: #fff; border-color: var(--ok); }
.paybtn:disabled { opacity: .55; }
