/* Öffentliche Webseite Bistro Levante (Wochenmenü, Reservierung, Veranstaltungen). Grün und Schriften wie bisher. */
:root {
  --green: #2d5a27;
  --green-soft: #e8f0e6;
  --red: #b33;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e0e0e0;
  --bg: #fff;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "Montserrat", system-ui, sans-serif; }
a { color: var(--green); }
img { max-width: 100%; }
.site-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Kopf und Fuß */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header__row { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-weight: 700; letter-spacing: .04em; }
.site-brand img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); }
.site-nav a:hover { color: var(--green); }
.site-langs a { font-size: 12px; font-weight: 700; text-decoration: none; color: var(--muted); margin-left: 8px; }
.site-langs a.is-active { color: var(--green); }
.site-main { min-height: 60vh; padding: 24px 0 48px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 20px 0 28px; text-align: center; line-height: 1.8; }

/* Bausteine */
.page-title { font-size: 26px; text-align: center; margin: 8px 0 24px; }
.section-title { font-size: 18px; color: var(--green); margin: 28px 0 12px; }
.script-title { font-family: "Allura", cursive; color: var(--green); font-size: 60px; line-height: 1.05; margin: 4px 0 16px; text-align: center; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; padding: 10px 18px; font: 600 14px "Montserrat", sans-serif; cursor: pointer; text-decoration: none; border: 2px solid var(--green); }
.btn--solid { background: var(--green); color: #fff; }
.btn--outline { background: #fff; color: var(--green); }
.btn--danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn--big { padding: 14px 32px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.input { width: 100%; border: 1px solid #ccc; border-radius: 6px; padding: 10px 12px; font: inherit; background: #fff; }
.input--auto { width: auto; }
.field { display: block; font-weight: 600; font-size: 14px; margin: 12px 0; }
.field .input { margin-top: 4px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; }
.check--box { border-left: 4px solid var(--green); background: #f3f7f2; padding: 12px; border-radius: 0 6px 6px 0; }
.check.is-disabled { opacity: .55; }
.notice { border-radius: 6px; padding: 12px 14px; background: #f3f7f2; margin: 12px 0; }
.notice a { display: block; font-weight: 600; }
.notice--warn { background: #fff6e0; }
.notice--error { background: #fdecec; color: #8a1f1f; }
.notice--ok { background: #e7f5e5; }
.badge { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.badge--red { background: #fdecec; color: var(--red); }
.summary { width: 100%; border-collapse: collapse; margin: 12px 0 18px; background: #f7f9f6; border-radius: 6px; }
.summary td { padding: 8px 12px; border-bottom: 1px solid #eef1ec; vertical-align: top; }
.summary td:first-child { color: var(--muted); width: 40%; }
.big-icon { font-size: 54px; color: var(--green); }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Startseite */
.home { text-align: center; }
.home-actions { display: flex; gap: 12px; justify-content: center; margin: 12px 0 28px; flex-wrap: wrap; }

/* Reservierung: Schritte */
.booking { max-width: 820px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; scroll-margin-top: 80px; }
.step__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.step__no { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.step__sum { margin-left: auto; color: var(--green); font-size: 13px; text-align: right; }
.step__body { padding: 16px; }
.step.is-locked .step__body { display: none; }
.step.is-locked .step__no { background: #bbb; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.area-btn { border: 2px solid var(--green); background: #fff; border-radius: var(--radius); padding: 16px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.area-btn__icon { font-size: 28px; }
.area-btn.is-active { background: var(--green); color: #fff; }
.area-btn:disabled { border-color: #ccc; color: #999; cursor: not-allowed; }
.area-btn__closed { color: #a36400; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.time-btn { border: 1px solid var(--green); background: #fff; color: var(--green); border-radius: 6px; padding: 9px 4px; font: 600 14px "Montserrat"; cursor: pointer; }
.time-btn.is-active { background: var(--green); color: #fff; }
.plan-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.plan-tab { border: 1px solid var(--green); background: #fff; color: var(--green); border-radius: 99px; padding: 6px 14px; cursor: pointer; font: 600 13px "Montserrat"; }
.plan-tab.is-active { background: var(--green); color: #fff; }
.table-panel { border-left: 3px solid var(--green); background: #f6f8f5; border-radius: 0 6px 6px 0; padding: 12px 14px; margin-top: 12px; }
.menu-course { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin: 16px 0 6px; }
.menu-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #eee; padding: 8px 0; }
.menu-item__text { flex: 1; display: flex; flex-direction: column; }
.menu-item__price { font-weight: 600; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid #ccc; border-radius: 6px; }
.qty button { border: 0; background: none; width: 34px; height: 34px; font-size: 18px; cursor: pointer; color: var(--green); }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }

/* Tischplan (auch im Backend) */
.sd-plan { position: relative; border-radius: 6px; overflow: hidden; background: #f4f4f1; border: 1px solid var(--line); }
.sd-plan__img { display: block; width: 100%; height: auto; }
.sd-plan__table { position: absolute; border: 2px solid var(--green); background: rgba(255, 255, 255, .88); border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; font: 700 12px "Montserrat"; color: var(--green); line-height: 1.1; min-width: 26px; min-height: 26px; }
.sd-plan__table--round { border-radius: 50%; }
.sd-plan__cap { font-weight: 400; font-size: 10px; }
.sd-plan__table.is-taken { border-color: #bbb; color: #999; background: rgba(230, 230, 230, .85); cursor: not-allowed; }
.sd-plan__table.is-selected { background: var(--green); color: #fff; }

/* Veranstaltungen */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; text-align: left; }
.event-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; display: flex; flex-direction: column; }
.event-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.event-card__date { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.event-card__title { font-size: 18px; font-weight: 700; }
.event-card__more { color: var(--green); font-weight: 600; font-size: 13px; margin-top: 4px; }
.event { max-width: 820px; }
.event__date { text-align: center; color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.event__summary { text-align: center; font-size: 17px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 18px 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.event__price { font-size: 16px; }
.event__book { border-top: 1px solid var(--line); margin-top: 24px; }
.manage-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0; }

/* Wochenmenü (wie bisher in Odoo) */
.wm-page { max-width: 820px; margin: 0 auto; position: relative; padding: 0 0 40px; }
.wm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wm-tabs { display: flex; margin: 8px 0 0 52px; flex-wrap: wrap; }
.wm-tab-btn { padding: 9px 26px; border: 2px solid var(--green); background: #fff; color: var(--green); font: 700 13px/1.3 "Montserrat"; letter-spacing: .06em; text-decoration: none; text-align: center; }
.wm-tab-btn + .wm-tab-btn { border-left: none; }
.wm-tab-btn.active { background: var(--green); color: #fff; }
.wm-tab-btn.closed-tab { color: var(--red); border-color: var(--red); }
.wm-tab-btn.closed-tab.active { background: var(--red); color: #fff; }
.wm-print { font-size: 12px; font-weight: 700; color: var(--green); text-decoration: none; letter-spacing: .06em; margin-right: 20px; }
.wm-body { display: flex; padding-left: 36px; }
.wm-content { flex: 1; min-width: 0; padding: 0 28px 0 16px; border-left: 5px solid var(--green); position: relative; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wm-header { text-align: center; padding: 16px 20px 10px; }
.wm-tagline { font-size: 18px; color: #555; letter-spacing: .04em; margin: 0 0 4px; }
.wm-menu-title { font-family: "Allura", cursive; font-size: 72px; font-weight: 700; line-height: 1; margin: 0; color: var(--green); }
.wm-date-block { text-align: center; padding: 9px 20px; margin-bottom: 22px; }
.wm-date-text { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 0; line-height: 1.7; }
.wm-day-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin: 16px 0 6px; border-bottom: 1px solid var(--green); padding-bottom: 3px; }
.wm-dish-row { display: flex; align-items: center; }
.wm-dish-cat-col { width: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-left: -41px; }
.wm-stripe-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: #fff; padding: 6px 2px; white-space: nowrap; position: relative; z-index: 1; }
.wm-dish { flex: 1; padding: 14px 0 14px 12px; text-align: center; border-bottom: 1px solid var(--line); min-width: 0; }
.wm-dish-row:last-child .wm-dish { border-bottom: none; }
.wm-course-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #888; margin-bottom: 4px; }
.wm-dish-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.wm-dish-desc { font-size: 13px; line-height: 1.4; margin-bottom: 8px; color: #333; text-align: left; }
.wm-price-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; gap: 12px; }
.wm-allergen { font-size: 11px; color: #888; text-align: left; flex: 1; }
.wm-allergen-label { font-weight: 700; color: #666; }
.wm-price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.wm-variants { margin-top: 6px; }
.wm-variant-row { display: flex; justify-content: flex-end; font-size: 12px; color: #444; line-height: 1.6; }
.wm-variant-label { margin-right: 8px; }
.wm-variant-price { font-weight: 600; white-space: nowrap; }
.wm-footer-salad { font-size: 12px; color: #555; margin: 28px 0 16px; padding-left: 12px; }
.wm-footer-info { display: flex; align-items: center; gap: 24px; border-top: 1px solid #ccc; padding-top: 16px; }
.wm-footer-address { flex: 1; font-size: 12px; line-height: 1.9; color: #555; text-align: center; }
.wm-footer-logo { width: 96px; height: 96px; object-fit: contain; }
.wm-closed-notice { text-align: center; padding: 60px 32px 48px; }
.wm-closed-icon { color: var(--green); margin-bottom: 20px; }
.wm-closed-title { font-family: "Allura", cursive; font-size: 42px; font-weight: 700; color: var(--green); line-height: 1.2; margin-bottom: 20px; }
.wm-closed-body { font-size: 15px; line-height: 1.7; color: #555; max-width: 520px; margin: 0 auto; }
.wm-no-menu { padding: 48px; text-align: center; color: #aaa; }
.wm-events { margin: 22px 0 0 12px; display: grid; gap: 8px; }
.wm-event { display: block; border: 1px solid var(--green); border-radius: 6px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.wm-event span { float: right; color: var(--green); font-weight: 600; }
.wm-book { text-align: center; margin-top: 24px; }

@media (max-width: 640px) {
  .wm-tabs { margin-left: 0; }
  .wm-body { padding-left: 30px; }
  .wm-content { padding: 0 8px 0 10px; }
  .wm-menu-title { font-size: 56px; }
  .script-title { font-size: 46px; }
  .site-nav { order: 3; width: 100%; }
}

@media print {
  .site-header, .site-footer, .wm-tabs, .wm-print, .wm-book, .wm-events { display: none !important; }
  .site-main { padding: 0; }
  .wm-dish { border-bottom: none !important; }
  .wm-footer-info { border-top: none !important; }
  .wm-day-title { border-bottom: none !important; }
}
body.print-menu .wm-dish-name { font-size: 16px; }
body.print-menu .wm-menu-title { font-size: 58px; }
body.print-menu .wm-dish { padding: 10px 0 10px 12px; border-bottom: none; }
body.print-menu .wm-stripe-label { font-size: 10px; }
