/* LOKALGOLD Angebotsanfrage BBQ & Sommerfest — alle Klassen mit Praefix lga- (Optik wie die Online-Bestellung, lgo-) */
:root { --lga-accent: #8c7356; --lga-accent-d: #6f5a43; --lga-gold: #a3865c; --lga-line: #e6e0d6; --lga-bg: #faf8f4; --lga-on: #f3ecdf; --lga-err: #b3261e; --lga-err-bg: #fbeceb; --lga-warn-bg: #fdf4e3; --lga-ink: #2b2b2b; --lga-focus: #1a5fb4; }

/* Zaehler */
.lga-step { display: inline-flex; align-items: stretch; border: 1px solid var(--lga-line); border-radius: 999px; overflow: hidden; background: #fff; vertical-align: middle; }
.lga-step button { all: unset; box-sizing: border-box; width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; cursor: pointer; color: var(--lga-accent); user-select: none; touch-action: manipulation; }
.lga-step button:hover { background: var(--lga-on); }
.lga-step button:focus-visible { outline: 2px solid var(--lga-focus); outline-offset: -3px; border-radius: 999px; }
.lga-step input { all: unset; box-sizing: border-box; width: 46px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--lga-ink); touch-action: manipulation; }
.lga-step input::placeholder { color: #b9b1a4; opacity: 1; }
.lga-step input:focus-visible { background: var(--lga-on); outline: 2px solid var(--lga-focus); outline-offset: -2px; }
.lga-on .lga-step { border-color: var(--lga-gold); }
.lga-kz { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--lga-line); }
.lga-lbl { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lga-accent-d); }
.lga-hint { font-size: 12px; color: var(--lga-err); margin-top: 4px; white-space: normal; }
.lga-hint[hidden] { display: none; }
.lga-hint.lga-info { color: var(--lga-accent-d); }
.lgb-paket.lga-on { border-color: var(--lga-gold) !important; box-shadow: 0 0 0 1px var(--lga-gold); background: #fffdf8 !important; }
table.lgb-tab th.lga-qh { text-align: center; width: 150px; min-width: 150px; white-space: nowrap; }
table.lgb-tab td.lga-q { width: 150px; min-width: 150px; white-space: nowrap; text-align: center; vertical-align: middle; }
table.lgb-tab tr.lga-on td { background: var(--lga-on) !important; }
.lga-tog { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; min-height: 36px; margin: 0; font-weight: normal; }
.lga-tog input { width: 18px; height: 18px; margin: 0; }
.lga-tog input:focus-visible { outline: 2px solid var(--lga-focus); outline-offset: 2px; }
.lga-hrs { display: block; margin-top: 6px; font-size: 13px; font-weight: normal; }
.lga-hrs[hidden] { display: none; }
.lga-hrs input { width: 46px; font-size: 14px; padding: 3px 4px; border: 1px solid var(--lga-line); border-radius: 6px; text-align: center; margin: 0 2px; background: #fff; color: var(--lga-ink); }

/* Kalkulation auf der Seite */
.lga-box { margin: 10px auto 0; max-width: 760px; padding: 22px 24px; background: var(--lga-bg); border: 1px solid var(--lga-line); color: var(--lga-ink); font-size: 15px; line-height: 1.5; }
.lga-h3 { margin: 0 0 10px !important; font-size: 20px !important; text-align: center; }
.lga-cart { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.lga-cart, .lga-cart tr { border: 0 !important; background: none !important; }
.lga-cart td { padding: 6px 4px; border: 0 !important; border-bottom: 1px solid var(--lga-line) !important; vertical-align: top; background: none !important; }
.lga-cart tr.lga-cat td { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; padding-top: 12px; border-bottom: 0; }
.lga-cart tfoot td { border-bottom: 0; padding-top: 10px; font-size: 15px; }
.lga-r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lga-muted { opacity: .7; font-weight: normal; }
.lga-small { font-size: 13px; opacity: .85; margin: 8px 0 0; line-height: 1.5; }
.lga-center { text-align: center; }

/* Leiste unten */
.lga-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; border-top: 1px solid var(--lga-line); box-shadow: 0 -6px 24px rgba(0,0,0,.08); font-size: 15px; color: var(--lga-ink); }
.lga-bar[hidden] { display: none; }
.lga-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; }
.lga-bar-txt { line-height: 1.35; }
body.lga-has-bar { padding-bottom: calc(var(--lga-bar-h, 64px) + 8px); }
.lga-btn { all: unset; box-sizing: border-box; display: inline-block; cursor: pointer; background: var(--lga-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; }
.lga-btn:hover { background: var(--lga-accent-d); }
.lga-btn:focus-visible { outline: 3px solid var(--lga-focus); outline-offset: 2px; }
.lga-btn[disabled] { opacity: .6; cursor: wait; }
.lga-btn[hidden] { display: none; }
.lga-ghost { background: #fff; color: var(--lga-accent) !important; border: 1px solid var(--lga-accent); }
.lga-ghost:hover { background: var(--lga-on); }

/* Dialog */
html.lga-lock, html.lga-lock body { overflow: hidden; }
.lga-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; }
.lga-overlay[hidden] { display: none; }
.lga-panel { position: relative; background: #fff; color: var(--lga-ink); width: 100%; max-width: 760px; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.lga-body { padding: 28px 28px 22px; font-size: 15px; line-height: 1.5; }
.lga-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; }
.lga-close:focus-visible { outline: 3px solid var(--lga-focus); }
.lga-h { font-size: 24px; line-height: 1.3 !important; margin: 0 0 16px; padding-right: 40px; text-transform: none; letter-spacing: 0; }
.lga-h:focus { outline: none; }
.lga-sec { border-top: 1px solid var(--lga-line); padding-top: 14px; margin-top: 16px; }
.lga-sec h3 { font-size: 17px; margin: 0 0 10px; text-transform: none; letter-spacing: 0; }
.lga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.lga-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lga-wide { grid-column: 1 / -1; }
.lga-f label, .lga-f .lga-lbl { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--lga-ink); }
.lga-f input[type=text], .lga-f input[type=email], .lga-f input[type=tel], .lga-f input[type=date], .lga-f input[type=time], .lga-f textarea, .lga-f select {
  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(--lga-ink); margin: 0; }
.lga-f input:focus, .lga-f textarea:focus, .lga-f select:focus { outline: none; border-color: var(--lga-accent); box-shadow: 0 0 0 3px rgba(26,95,180,.25); }
.lga-f [aria-invalid=true] { border-color: var(--lga-err); background: #fffafa; }
.lga-ferr { font-size: 13px; color: var(--lga-err); }
.lga-ferr[hidden] { display: none; }
.lga-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.lga-fs legend { padding: 0; margin-bottom: 2px; }
.lga-chk { display: flex; align-items: flex-start; gap: 6px; font-weight: normal !important; font-size: 14px; margin: 2px 0; cursor: pointer; min-height: 28px; }
.lga-chk input { margin: 3px 0 0; flex: none; }
.lga-chk input:focus-visible { outline: 2px solid var(--lga-focus); outline-offset: 2px; }
.lga-req { color: var(--lga-err); }
.lga-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lga-err, .lga-warn { border-radius: 8px; padding: 10px 14px; margin: 14px 0 0; font-size: 14px; }
.lga-err { background: var(--lga-err-bg); color: var(--lga-err); }
.lga-warn { background: var(--lga-warn-bg); color: #6b4e00; }
.lga-err ul, .lga-warn ul { margin: 0; padding-left: 18px; }
.lga-down { margin: 10px 0 20px; }
.lga-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.lga-thanks { text-align: center; padding: 10px 0; }
.lga-thanks .lga-h { padding-right: 0; }
.lga-thanks .lga-warn { display: inline-block; }
.lga-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) {
  .lga-overlay { padding: 0; }
  .lga-panel { border-radius: 0; min-height: 100%; }
  .lga-body { padding: 22px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .lga-grid { grid-template-columns: 1fr; }
  .lga-box { padding: 18px 14px; }
  .lga-bar-in { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
  .lga-btn { padding: 10px 14px; font-size: 15px; }
  .lga-actions .lga-btn { flex: 1 1 100%; }
  /* 16px verhindert das automatische Hineinzoomen von iOS beim Antippen */
  .lga-step input, .lga-hrs input, .lga-f input[type=text], .lga-f input[type=email], .lga-f input[type=tel], .lga-f input[type=date], .lga-f input[type=time], .lga-f textarea, .lga-f select { font-size: 16px; }
  .lga-step button { width: 38px; min-height: 38px; }
  .lga-step input { width: 40px; }
  table.lgb-tab td.lga-q, table.lgb-tab th.lga-qh { width: 124px; min-width: 124px; padding-left: 4px !important; padding-right: 4px !important; }
}
