/* LOKALGOLD Online-Bestellung — alle Klassen mit Praefix lgo- */
:root { --lgo-accent: #8c7356; --lgo-accent-d: #6f5a43; --lgo-gold: #a3865c; --lgo-line: #e6e0d6; --lgo-bg: #faf8f4; --lgo-on: #f3ecdf; --lgo-err: #b3261e; --lgo-err-bg: #fbeceb; --lgo-warn-bg: #fdf4e3; --lgo-ink: #2b2b2b; --lgo-focus: #1a5fb4; }

/* Zaehler in den Preistabellen */
table.lg-preise th.lgo-qh { text-align: center; width: 148px; min-width: 148px; white-space: nowrap; }
table.lg-preise td.lgo-q { width: 148px; min-width: 148px; white-space: nowrap; text-align: center; vertical-align: middle; }
table.lg-preise tr.lgo-on td { background: var(--lgo-on) !important; }
.lgo-step { display: inline-flex; align-items: stretch; border: 1px solid var(--lgo-line); border-radius: 999px; overflow: hidden; background: #fff; }
.lgo-step button { all: unset; box-sizing: border-box; width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; cursor: pointer; color: var(--lgo-accent); user-select: none; touch-action: manipulation; }
.lgo-step button:hover { background: var(--lgo-on); }
.lgo-step button:focus-visible { outline: 2px solid var(--lgo-focus); outline-offset: -3px; border-radius: 999px; }
.lgo-step input { all: unset; box-sizing: border-box; width: 40px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--lgo-ink); -moz-appearance: textfield; touch-action: manipulation; }
.lgo-step input::placeholder { color: #b9b1a4; opacity: 1; }
.lgo-step input::-webkit-outer-spin-button, .lgo-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lgo-step input:focus-visible { background: var(--lgo-on); outline: 2px solid var(--lgo-focus); outline-offset: -2px; }
tr.lgo-on .lgo-step { border-color: var(--lgo-gold); }
.lgo-brot { display: block; margin: 6px auto 0; width: 132px; font-size: 13px; padding: 3px 4px; border: 1px solid var(--lgo-line); border-radius: 6px; background: #fff; color: var(--lgo-ink); }
.lgo-brot[hidden] { display: none; }
.lgo-brot:focus-visible { outline: 2px solid var(--lgo-focus); outline-offset: 1px; }
.lgo-hrs { display: block; margin-top: 6px; font-size: 13px; }
.lgo-hrs[hidden] { display: none; }
.lgo-hrs input { width: 46px; font-size: 14px; padding: 3px 4px; border: 1px solid var(--lgo-line); border-radius: 6px; text-align: center; margin: 0 2px; background: #fff; color: var(--lgo-ink); }
.lgo-hrs input:focus-visible { outline: 2px solid var(--lgo-focus); outline-offset: 1px; }
.lgo-hint { font-size: 12px; color: var(--lgo-err); margin-top: 3px; white-space: normal; }
.lgo-hint[hidden] { display: none; }
.lgo-extras { display: none; margin: 6px 0 14px; padding: 10px 12px; background: var(--lgo-bg); border: 1px solid var(--lgo-line); border-radius: 8px; font-size: 14px; line-height: 1.8; }
.lgo-extras.lgo-show { display: block; }
.lgo-radio { display: block; }
.lgo-radio > span { display: inline-block; min-width: 190px; }
.lgo-radio label { display: inline-flex; align-items: center; gap: 4px; margin: 0 14px 0 0; font-weight: normal; cursor: pointer; min-height: 32px; }

/* Leiste unten */
.lgo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; border-top: 1px solid var(--lgo-line); box-shadow: 0 -6px 24px rgba(0,0,0,.08); font-size: 15px; color: var(--lgo-ink); }
.lgo-bar-in { max-width: 1170px; margin: 0 auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lgo-bar-txt { line-height: 1.35; }
body.lgo-has-bar { padding-bottom: calc(var(--lgo-bar-h, 64px) + 8px); }
.lgo-muted { opacity: .65; font-weight: normal; }
.lgo-btn { all: unset; box-sizing: border-box; display: inline-block; cursor: pointer; background: var(--lgo-accent); color: #fff !important; padding: 11px 20px; min-height: 44px; border-radius: 6px; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-align: center; text-decoration: none !important; touch-action: manipulation; }
.lgo-btn:hover { background: var(--lgo-accent-d); }
.lgo-btn:focus-visible { outline: 3px solid var(--lgo-focus); outline-offset: 2px; }
.lgo-btn[disabled] { opacity: .6; cursor: wait; }
.lgo-btn[hidden] { display: none; }
.lgo-ghost { background: #fff; color: var(--lgo-accent) !important; border: 1px solid var(--lgo-accent); }
.lgo-ghost:hover { background: var(--lgo-on); }

/* Bestellabschluss */
html.lgo-lock, html.lgo-lock body { overflow: hidden; }
.lgo-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(30, 26, 20, .45); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; overscroll-behavior: contain; padding: 24px 12px; }
.lgo-overlay[hidden] { display: none; }
.lgo-panel { position: relative; background: #fff; color: var(--lgo-ink); width: 100%; max-width: 760px; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.lgo-body { padding: 28px 28px 22px; font-size: 15px; line-height: 1.5; }
.lgo-close { all: unset; position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; cursor: pointer; color: #777; border-radius: 6px; }
.lgo-close:focus-visible { outline: 3px solid var(--lgo-focus); }
.lgo-h { font-size: 24px; margin: 0 0 16px; padding-right: 40px; text-transform: none; letter-spacing: 0; }
.lgo-h:focus { outline: none; }
.lgo-sec { border-top: 1px solid var(--lgo-line); padding-top: 14px; margin-top: 16px; }
.lgo-sec h3 { font-size: 17px; margin: 0 0 10px; text-transform: none; letter-spacing: 0; }
.lgo-cart { width: 100%; border-collapse: collapse; font-size: 14px; }
.lgo-cart td { padding: 6px 4px; border-bottom: 1px solid var(--lgo-line); vertical-align: middle; }
.lgo-cart tr.lgo-cat td { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; padding-top: 12px; border-bottom: 0; }
.lgo-cart tfoot td { border-bottom: 0; padding-top: 10px; font-size: 15px; }
.lgo-cq { width: 1%; white-space: nowrap; }
.lgo-r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgo-sm button { width: 32px; min-height: 32px; font-size: 16px; }
.lgo-sm .lgo-n { min-width: 30px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.lgo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.lgo-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lgo-wide { grid-column: 1 / -1; }
.lgo-f label, .lgo-lbl { font-size: 13px; font-weight: 600; }
.lgo-f input[type=text], .lgo-f input[type=email], .lgo-f input[type=tel], .lgo-f input[type=date], .lgo-f input[type=time], .lgo-f input[type=number], .lgo-f textarea {
  box-sizing: border-box; width: 100%; font: inherit; font-size: 15px; padding: 9px 10px; min-height: 42px; border: 1px solid #cfc7ba; border-radius: 6px; background: #fff; color: var(--lgo-ink); margin: 0; }
.lgo-f input:focus, .lgo-f textarea:focus { outline: none; border-color: var(--lgo-accent); box-shadow: 0 0 0 3px rgba(26,95,180,.25); }
.lgo-f [aria-invalid=true] { border-color: var(--lgo-err); background: #fffafa; }
.lgo-ferr { font-size: 13px; color: var(--lgo-err); }
.lgo-ferr[hidden] { display: none; }
.lgo-count { font-size: 12px; opacity: .6; text-align: right; }
.lgo-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.lgo-fs legend { padding: 0; margin-bottom: 2px; }
.lgo-inline label { font-weight: normal; }
.lgo-chk { display: flex; align-items: flex-start; gap: 6px; font-weight: normal !important; font-size: 14px; margin: 2px 0; cursor: pointer; min-height: 28px; }
.lgo-chk input { margin: 3px 0 0; flex: none; }
.lgo-chk input:focus-visible, .lgo-radio input:focus-visible, .lgo-inline input:focus-visible { outline: 2px solid var(--lgo-focus); outline-offset: 2px; }
.lgo-agb { margin-top: 12px; line-height: 1.5; }
.lgo-req { color: var(--lgo-err); }
.lgo-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lgo-small { font-size: 13px; opacity: .8; margin: 8px 0 0; }
.lgo-center { text-align: center; }
.lgo-err, .lgo-warn { border-radius: 8px; padding: 10px 14px; margin: 14px 0 0; font-size: 14px; }
.lgo-err { background: var(--lgo-err-bg); color: var(--lgo-err); }
.lgo-warn { background: var(--lgo-warn-bg); color: #6b4e00; }
.lgo-err ul, .lgo-warn ul { margin: 0; padding-left: 18px; }
.lgo-down { margin: 0 0 20px; }
.lgo-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.lgo-thanks { text-align: center; padding: 10px 0; }
.lgo-thanks .lgo-h { padding-right: 0; }
.lgo-thanks .lgo-warn { display: inline-block; }
.lgo-check { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #e6f2e9; color: #2e7d4f; font-size: 30px; line-height: 56px; }

@media (max-width: 767px) {
  .lgo-overlay { padding: 0; }
  .lgo-panel { border-radius: 0; min-height: 100%; }
  .lgo-body { padding: 22px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .lgo-grid { grid-template-columns: 1fr; }
  .lgo-bar-in { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
  .lgo-btn { padding: 10px 14px; font-size: 15px; }
  .lgo-actions .lgo-btn { flex: 1 1 100%; }
  /* 16px verhindert das automatische Hineinzoomen von iOS beim Antippen */
  .lgo-step input, .lgo-brot, .lgo-hrs input, .lgo-f input[type=text], .lgo-f input[type=email], .lgo-f input[type=tel], .lgo-f input[type=date], .lgo-f input[type=time], .lgo-f input[type=number], .lgo-f textarea { font-size: 16px; }
  .lgo-step button { width: 38px; min-height: 38px; }
  .lgo-step input { width: 36px; }
  table.lg-preise td.lgo-q, table.lg-preise th.lgo-qh { width: 124px; min-width: 124px; padding-left: 4px !important; padding-right: 4px !important; }
  .lgo-brot { width: 114px; }
  .lgo-radio > span { display: block; min-width: 0; }
  .lgo-sm button { width: 36px; min-height: 36px; }
}
