/* Margheritina, Design nach vitalpha.ch: Antracite, Oro, Fiamma. Mobile first. */
:root {
  --bg: #2b2b2b;
  --surface: #363636;
  --surface-2: #414141;
  --surface-3: #4a4a4a;
  --line: #4f4f4f;
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --gold: #d7c98d;
  --gold-strong: #e6d99f;
  --gold-dim: #a8995a;
  --red: #d31f3c;
  --green: #48c78e;
  --amber: #ffb547;
  --ink: #1e1e1e;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --font: Poppins, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.45; min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.script { font-family: var(--script); font-weight: 400; color: var(--gold); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.red { color: var(--red); }
.green { color: var(--green); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden { display: none !important; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Kopf */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.topbar img.logo { height: 26px; width: auto; }
.topbar .right { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.lang a { color: var(--muted); padding: 6px 8px; border-radius: 6px; }
.lang a:hover { color: var(--gold); background: var(--surface-2); }

/* Hero */
.hero { padding: 26px 0 8px; text-align: center; }
.hero .title { line-height: 1; margin: 0 0 6px; }
/* Ladenname: nie umbrechen, auf schmalen Bildschirmen kleiner (Muri 26.08.2026) */
.shop-title { white-space: nowrap; font-size: min(2.6rem, 8vw); }
.shop-title-hero { font-size: min(3.4rem, 8.5vw); }
.shop-title-login { font-size: min(2.4rem, 8vw); }

.hero .flame { height: 34px; margin: 0 auto 6px; }
.hero .welcome { font-size: 1.05rem; color: var(--gold); letter-spacing: .3px; margin: 0; }
.hero p.sub { color: var(--muted); margin: 8px auto 0; max-width: 460px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--line); margin-top: 14px; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.pill.open .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(72,199,142,.18); }
.pill.closed .dot { background: var(--red); }
.notice { background: rgba(211,31,60,.12); border: 1px solid rgba(211,31,60,.5); color: #ffd7dd; padding: 12px 14px; border-radius: var(--radius-sm); margin: 14px 0; }
.notice.gold { background: rgba(215,201,141,.1); border-color: rgba(215,201,141,.5); color: var(--gold-strong); }
.notice.green { background: rgba(72,199,142,.12); border-color: rgba(72,199,142,.5); color: #d9f7e8; }

/* Menü */
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 10px; }
.section-title h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 500; }
.section-title:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.item { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; }
.item .name { font-weight: 600; font-size: 1.05rem; }
.item .desc { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.item .price { color: var(--gold); font-weight: 600; white-space: nowrap; }
.item .stepper { grid-column: 2; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gold-dim); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.stepper button { width: 42px; height: 40px; border: 0; background: transparent; color: var(--gold); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.stepper button:active { background: var(--surface-3); }
.stepper .qty { min-width: 30px; text-align: center; font-weight: 600; }
.stepper.zero .qty, .stepper.zero button.minus { opacity: .35; }
.stepper.zero { border-color: var(--line); }

/* Bottom bar */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(43,43,43,1) 70%, rgba(43,43,43,0)); }
.cartbar .inner { max-width: 640px; margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; padding: 14px 20px; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .05s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { filter: brightness(1.05); color: var(--ink); }
.btn-gold[disabled] { opacity: .45; cursor: default; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn-red { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 22px; font-size: 1.1rem; }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 9px; }
.cartbar .btn .count { background: rgba(0,0,0,.18); border-radius: 999px; padding: 2px 10px; font-size: .9rem; }
.cartbar .btn .sum { margin-left: auto; }
.pad-bottom { padding-bottom: 110px; }

/* Footer */
footer.site { margin-top: 40px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
footer.site img { height: 22px; margin-bottom: 12px; opacity: .9; }
footer.site .cols { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
footer.site h4 { margin: 0 0 6px; color: var(--gold); font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; font-size: .75rem; }
footer.site table { border-collapse: collapse; }
footer.site td { padding: 1px 12px 1px 0; }
@media (max-width: 480px) { footer.site .cols { grid-template-columns: 1fr; } }

/* Formulare */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; color: var(--text); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,201,141,.15); }
.field .help { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.summary { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary li:last-child { border-bottom: 0; }
.summary .tot { font-weight: 700; color: var(--gold); font-size: 1.1rem; }

/* Abholzeit-Wahl */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .9rem; }
.chip.active { border-color: var(--gold); background: rgba(215,201,141,.14); color: var(--gold-strong); }
.chip.off { opacity: .4; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 9px 4px; text-align: center; cursor: pointer; }
.slot .t { font-weight: 600; }
.slot .f { font-size: .7rem; color: var(--muted); }
.slot.active { border-color: var(--gold); background: rgba(215,201,141,.16); color: var(--gold-strong); }
.slot.full { opacity: .35; cursor: default; text-decoration: line-through; }
.slot.asap { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; align-items: baseline; }
.slot.asap .f { font-size: .8rem; }

/* Abholart: sofort oder feste Zeit */
.modes { display: grid; gap: 10px; margin-bottom: 10px; }
.mode { display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%; cursor: pointer;
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
        color: var(--text); box-shadow: var(--shadow); }
.mode .mk { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; }
.mode.active { border-color: var(--gold); background: rgba(215,201,141,.10); }
.mode.active .mk { border-color: var(--gold); background: radial-gradient(var(--gold) 45%, transparent 47%); }
.mode .mt { display: flex; flex-direction: column; gap: 2px; }
.mode .mt b { font-size: 1.1rem; }
.mode .ms { color: var(--gold); font-size: .95rem; font-weight: 600; }
.mode .mh { color: var(--muted); font-size: .85rem; }
.mode.off { opacity: .5; cursor: default; }
.mode.off .ms { color: var(--muted); font-weight: 400; }
.pill.gold-pill { border-color: var(--gold-dim); color: var(--gold); background: rgba(215,201,141,.10); margin-left: 6px; }

/* TWINT zuerst: der Knopf, den die meisten drücken */
.btn-twint { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn-twint:hover { filter: brightness(1.05); color: var(--ink); }

/* Beleg */
.receipt { position: relative; }
.receipt.used { opacity: .55; }
.receipt.used .bignum { background: var(--surface-3); color: var(--muted); box-shadow: none; animation: none; }
.usedstamp { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg);
             border: 3px solid var(--red); color: #ff8ea0; border-radius: 12px; padding: 8px 18px; font-weight: 800;
             letter-spacing: 2px; text-transform: uppercase; font-size: 1.2rem; background: rgba(43,43,43,.75);
             z-index: 2; white-space: nowrap; }

/* Bestellstatus */
.bignum { width: 132px; height: 132px; border-radius: 50%; margin: 10px auto; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; font-weight: 700; color: var(--ink); background: var(--gold); box-shadow: 0 0 0 10px rgba(215,201,141,.15); }
.bignum.ready { background: var(--green); box-shadow: 0 0 0 10px rgba(72,199,142,.2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 20px 0 6px; }
.step { text-align: center; font-size: .72rem; color: var(--muted); }
.step .bar { height: 6px; border-radius: 3px; background: var(--surface-3); margin-bottom: 6px; }
.step.done .bar { background: var(--gold); }
.step.done { color: var(--text); }
.step.now .bar { background: var(--green); }
.step.now { color: var(--green); font-weight: 600; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .5px; }
.badge.paid { background: rgba(72,199,142,.18); color: var(--green); border: 1px solid rgba(72,199,142,.5); }
.badge.unpaid { background: rgba(255,181,71,.15); color: var(--amber); border: 1px solid rgba(255,181,71,.5); }
.badge.gold { background: rgba(215,201,141,.15); color: var(--gold); border: 1px solid rgba(215,201,141,.5); }
.badge.red { background: rgba(211,31,60,.15); color: #ff8ea0; border: 1px solid rgba(211,31,60,.5); }

/* Login-Kärtchen */
.login-box { max-width: 380px; margin: 60px auto; }
.login-box .logo { height: 30px; margin: 0 auto 20px; }
.pinpad input { text-align: center; font-size: 2rem; letter-spacing: 12px; }

/* Admin */
.admin-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-nav .inner { display: flex; align-items: center; gap: 4px; height: 54px; overflow-x: auto; }
.admin-nav img { height: 22px; margin-right: 12px; }
.admin-nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-size: .92rem; }
.admin-nav a.active, .admin-nav a:hover { color: var(--gold); background: var(--surface-2); }
.admin-nav .spacer { flex: 1; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 14px; flex-wrap: wrap; }
.page-title h1 { font-size: 1.4rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.stat .v { font-size: 1.7rem; font-weight: 600; color: var(--gold); margin-top: 2px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr.off td { opacity: .5; }
.tbl-wrap { overflow-x: auto; }
.inline-form { display: inline; }
.load { display: flex; gap: 4px; flex-wrap: wrap; }
.load .cell { min-width: 58px; text-align: center; border-radius: 8px; padding: 6px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; }
.load .cell b { display: block; font-size: 1rem; }
.load .cell.full { border-color: var(--red); color: #ff8ea0; }
.load .cell.some { border-color: var(--gold-dim); color: var(--gold); }
.hours-row { display: grid; grid-template-columns: 90px 1fr 1fr 1fr 1fr; gap: 6px; align-items: center; margin-bottom: 6px; }
.hours-row input { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--text); width: 100%; }
@media (max-width: 560px) { .hours-row { grid-template-columns: 70px 1fr 1fr; } .hours-row .second { display: none; } }
.qr-print { background: #fff; color: #363636; border-radius: var(--radius); padding: 30px; text-align: center; max-width: 420px; margin: 0 auto; }
.qr-print img.qr { width: 260px; height: 260px; margin: 12px auto; }
.qr-print .t { font-family: var(--script); font-size: 3rem; color: #a8995a; }
.qr-print .u { font-size: .8rem; color: #666; word-break: break-all; }
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .qr-print { box-shadow: none; }
}
