/* Gatto Nero – Online-Bestellung. Farben unten in :root anpassbar. */
.gnb {
	/* Farben vom Deckblatt der Speisekarte: warmes Hellgrau, Tinte, Gold */
	--gnb-bg: #ddd8d2;
	--gnb-card: rgba(255, 255, 255, .93);
	--gnb-ink: #2a2622;
	--gnb-muted: #6b635a;
	--gnb-line: #d9d0c3;
	--gnb-gold: #a98552;
	--gnb-accent: #2a2622;
	--gnb-accent-ink: #ffffff;
	--gnb-green: #4f6b3a;
	--gnb-warn: #9a3412;
	--gnb-radius: 12px;
	--gnb-head: Georgia, "Times New Roman", serif;
	color: var(--gnb-ink);
	font-size: 16px;
	line-height: 1.45;
	box-sizing: border-box;
}
.gnb *, .gnb *::before, .gnb *::after { box-sizing: inherit; }
.gnb button { font: inherit; }
html.gnb-noscroll { overflow: hidden; }

.gnb-loading { color: var(--gnb-muted); }
.gnb-head { margin-bottom: 12px; }
.gnb-info { margin: 0 0 12px; color: var(--gnb-muted); }
.gnb-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; }
.gnb-zone select { max-width: 460px; flex: 1 1 260px; }

.gnb-banner { background: #eef3e8; border: 1px solid #cfdcc2; border-radius: var(--gnb-radius); padding: 12px 16px; margin-bottom: 12px; }
.gnb-banner p { margin: 0; }
.gnb-banner-closed { background: #fdf0e9; border-color: #f1c8b0; }
.gnb-banner details { margin-top: 6px; font-size: 14px; }
.gnb-banner ul { margin: 6px 0 0; padding-left: 18px; }

/* Kategorien-Leiste */
.gnb-nav {
	position: sticky; top: 0; z-index: 20;
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	padding: 10px 0; margin-bottom: 8px;
	background: rgba(221, 216, 210, .92);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--gnb-line);
}
body.admin-bar .gnb-nav { top: 32px; }
.gnb-nav::-webkit-scrollbar { display: none; }
.gnb-chip {
	flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
	border: 1px solid var(--gnb-line); background: var(--gnb-card);
	color: var(--gnb-ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.gnb-chip:hover, .gnb-chip:focus-visible { border-color: var(--gnb-gold); color: var(--gnb-ink); }

.gnb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
#gnb-app { background: var(--gnb-bg) var(--gnb-bg-img, none) center top / 100% auto repeat-y; padding: 16px; border-radius: var(--gnb-radius); }

/* Speisekarte */
.gnb-cat { margin: 18px 0 28px; scroll-margin-top: 70px; }
.gnb-cat-title { font-family: var(--gnb-head); font-size: 28px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.gnb-cat-title::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gnb-gold); margin-top: 6px; }
.gnb-cat-note { margin: 0 0 10px; color: var(--gnb-muted); font-size: 14px; }
.gnb-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gnb-item {
	display: flex; gap: 12px; justify-content: space-between;
	background: var(--gnb-card); border: 1px solid var(--gnb-line); border-radius: var(--gnb-radius);
	padding: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.gnb-item:hover, .gnb-item:focus-visible { border-color: var(--gnb-gold); box-shadow: 0 2px 10px rgba(31, 26, 23, .07); outline: none; }
.gnb-item.is-soldout { opacity: .55; cursor: default; }
.gnb-item-name { font-size: 17px; margin: 0 0 4px; line-height: 1.25; }
.gnb-item-desc { margin: 0 0 6px; color: var(--gnb-muted); font-size: 14px; }
.gnb-item-allerg { margin: 0; color: var(--gnb-muted); font-size: 12px; }
.gnb-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; flex: 0 0 auto; }
.gnb-price { font-weight: 700; white-space: nowrap; }
.gnb-veg { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #e4eed9; color: var(--gnb-green); font-size: 11px; font-weight: 700; vertical-align: 2px; text-transform: uppercase; letter-spacing: .03em; }
.gnb-soldout { font-size: 12px; color: var(--gnb-warn); font-weight: 600; }
.gnb-add {
	width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--gnb-accent); color: var(--gnb-accent-ink); font-size: 22px; line-height: 1;
	display: grid; place-items: center;
}
.gnb-add:hover { opacity: .85; }

.gnb-legend { margin: 24px 0 8px; font-size: 13px; color: var(--gnb-muted); }
.gnb-legend summary { cursor: pointer; font-weight: 600; }
.gnb-legend ul { columns: 2; padding-left: 18px; }

/* Warenkorb */
.gnb-cart { position: sticky; top: 70px; }
body.admin-bar .gnb-cart { top: 102px; }
.gnb-cart .gnb-cart-inner { box-shadow: 0 4px 18px rgba(42, 38, 34, .08); background: var(--gnb-card); border: 1px solid var(--gnb-line); border-radius: var(--gnb-radius); padding: 16px; max-height: calc(100vh - 100px); overflow: auto; }
.gnb-cart-title { font-family: var(--gnb-head); font-size: 22px; margin: 0 0 12px; }
.gnb-empty { color: var(--gnb-muted); margin: 0; }
.gnb-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.gnb-line { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--gnb-line); }
.gnb-line-name { font-weight: 600; line-height: 1.3; }
.gnb-line-meta { font-size: 13px; color: var(--gnb-muted); }
.gnb-line-price { white-space: nowrap; font-weight: 600; }
.gnb-line-note { margin-top: 2px; }
.gnb-line-comment { font-style: italic; }
.gnb-linkbtn { text-align: left; background: none; border: 0; padding: 4px 0; min-height: 28px; color: var(--gnb-green); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.gnb-linkbtn-strong { color: var(--gnb-ink); }
.gnb-note-input { font-size: 15px; padding: 6px 8px; margin-top: 4px; }
.gnb-note-actions { display: flex; gap: 14px; }
.gnb-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 8px 0 12px; }
.gnb-sum dt, .gnb-sum dd { margin: 0; }
.gnb-sum dd { text-align: right; white-space: nowrap; }
.gnb-sum-total { font-weight: 700; font-size: 18px; padding-top: 6px; }
.gnb-hint { font-size: 14px; margin: 0 0 12px; color: var(--gnb-muted); }
.gnb-hint-warn { color: var(--gnb-warn); font-weight: 600; }

.gnb-qty { display: inline-flex; align-items: center; gap: 6px; }
.gnb-qty-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gnb-line); background: var(--gnb-card); color: var(--gnb-ink); cursor: pointer; font-size: 18px; line-height: 1; }
.gnb-qty-sm .gnb-qty-btn { width: 26px; height: 26px; font-size: 15px; }
.gnb-qty-num { min-width: 18px; text-align: center; font-weight: 700; }

.gnb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--gnb-ink); background: transparent; color: var(--gnb-ink); font-weight: 700; cursor: pointer; text-align: center; }
.gnb-btn-primary { background: var(--gnb-accent); color: var(--gnb-accent-ink); border-color: var(--gnb-accent); }
.gnb-btn-block { width: 100%; }
.gnb-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Formulare */
.gnb-input { width: 100%; padding: 10px 12px; border: 1px solid #d6c8b4; border-radius: 10px; background: #fff; color: var(--gnb-ink); font: inherit; font-size: 16px; }
.gnb-input:focus { outline: 2px solid var(--gnb-ink); outline-offset: 1px; }
.gnb-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 14px; font-weight: 600; grid-column: 1 / -1; }
.gnb-field.gnb-half { grid-column: auto; }
.gnb-field > .gnb-input, .gnb-field > .gnb-pays { font-weight: 400; }
.gnb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.gnb-fixed { font-weight: 400; padding: 10px 12px; border: 1px dashed #d6c8b4; border-radius: 10px; background: #fff; }
.gnb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; }
.gnb-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.gnb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.gnb-error { background: #fdecea; color: #8a1c12; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.gnb-co-h { font-family: var(--gnb-head); font-size: 18px; margin: 18px 0 6px; }
.gnb-co-lines { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.gnb-co-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--gnb-line); }

/* Dialoge */
.gnb-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(20, 16, 13, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gnb-modal { position: relative; background: var(--gnb-bg); border-radius: 16px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.gnb-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); color: var(--gnb-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.gnb-dialog-title { font-family: var(--gnb-head); font-size: 24px; margin: 0 40px 6px 0; }
.gnb-group { border: 0; padding: 0; margin: 14px 0; }
.gnb-group legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.gnb-group legend small { font-weight: 400; color: var(--gnb-muted); }
.gnb-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--gnb-line); border-radius: 10px; background: var(--gnb-card); margin-bottom: 6px; cursor: pointer; font-weight: 400; }
.gnb-opt input { width: 18px; height: 18px; margin: 0; }
.gnb-opt span:first-of-type { flex: 1; }
.gnb-opt-price { color: var(--gnb-muted); font-size: 14px; white-space: nowrap; }
.gnb-group-many { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.gnb-group-many legend { grid-column: 1 / -1; }
.gnb-group-many .gnb-opt { padding: 7px 10px; font-size: 14px; }
@media (max-width: 520px) { .gnb-group-many { grid-template-columns: 1fr; } }
.gnb-dialog-foot { display: flex; gap: 12px; align-items: center; position: sticky; bottom: -22px; background: var(--gnb-bg); padding: 12px 0 2px; }
.gnb-dialog-foot .gnb-btn { flex: 1; }

.gnb-done { text-align: center; padding: 10px 0; }
.gnb-done-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--gnb-green); color: #fff; font-size: 34px; display: grid; place-items: center; }
.gnb-done h2 { font-family: var(--gnb-head); margin: 0 0 8px; }
.gnb-muted { color: var(--gnb-muted); font-size: 14px; }

.gnb-mobilebar { display: none; }
.gnb-toast { white-space: nowrap; position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--gnb-ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100000; }
.gnb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Handy */
@media (max-width: 900px) {
	.gnb-layout { grid-template-columns: 1fr; }
	.gnb-cart { display: none; }
	.gnb-mobilebar:not([hidden]) {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999;
		min-height: 54px; padding: 10px 18px; border: 0; border-radius: 999px;
		background: var(--gnb-accent); color: var(--gnb-accent-ink); font-weight: 700; cursor: pointer;
		box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	}
	.gnb-mb-count { background: #fff; color: var(--gnb-ink); border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: 14px; }
	#gnb-app { padding: 12px 10px 90px; }
	.gnb-overlay { align-items: flex-end; padding: 0; }
	.gnb-modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; }
	.gnb-legend ul { columns: 1; }
}
@media (max-width: 782px) { body.admin-bar .gnb-nav { top: 46px; } }
@media (max-width: 520px) {
	.gnb-grid { grid-template-columns: 1fr; }
	.gnb-items { grid-template-columns: 1fr; }
}

/* Angebot vor der Kasse: Vorspeise, Salat oder Dessert */
.gnb-upsell-title { font-family: var(--gnb-head); font-size: 26px; font-weight: 400; margin: 0 40px 4px 0; }
.gnb-upsell-sub { margin: 0 0 14px; color: var(--gnb-muted); }
.gnb-upsell-cat { margin: 0 0 14px; }
.gnb-upsell-cat h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gnb-gold); }
.gnb-upsell-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.gnb-upsell-card { flex: 0 0 170px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--gnb-line); border-radius: 10px; padding: 10px; }
.gnb-upsell-card.is-in { border-color: var(--gnb-green); box-shadow: inset 0 0 0 1px var(--gnb-green); }
.gnb-upsell-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.gnb-upsell-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gnb-upsell-in { font-size: 12px; color: var(--gnb-green); font-weight: 700; }
.gnb-upsell-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; position: sticky; bottom: -22px; background: var(--gnb-bg); padding: 10px 0 2px; }
.gnb .gnb-modal { background: var(--gnb-bg); }

/* Eigenständige Bestellseite /bestellen */
body.gnb-page { margin: 0; background: #ddd8d2 url("hintergrund.jpg") center top / 100% auto repeat-y; color: #2a2622; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.gnb-page-head { display: flex; align-items: center; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 14px 16px 6px; }
.gnb-page-logo img { display: block; height: 52px; width: auto; }
.gnb-page-head h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .04em; text-transform: uppercase; margin: 0 auto 0 0; color: #2a2622; }
.gnb-page-back { color: #2a2622; text-decoration: none; font-size: 15px; padding: 10px 14px; border-radius: 999px; border: 1px solid #c9bfb1; background: rgba(255,255,255,.6); white-space: nowrap; }
.gnb-page-back:hover { border-color: #a98552; }
.gnb-page-main { max-width: 1240px; margin: 0 auto; padding: 0 8px 24px; }
.gnb-page-main #gnb-app { min-height: 70vh; }
.gnb-page-foot { max-width: 1240px; margin: 0 auto; padding: 8px 16px 110px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #6b635a; }
.gnb-page-foot a { color: #6b635a; }
@media (max-width: 600px) {
	.gnb-page-head { padding: 10px 12px 4px; gap: 10px; }
	.gnb-page-logo img { height: 40px; }
	.gnb-page-head h1 { font-size: 17px; letter-spacing: .02em; }
	.gnb-page-back { padding: 8px 10px; font-size: 13px; }
	.gnb-page-main { padding: 0 0 16px; }
	.gnb-page-main #gnb-app { border-radius: 0; }
}

/* Kleiner Kasten [gatto_bestellung_button] */
.gnb-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 20px; border-radius: 14px; background: #ddd8d2; border: 1px solid #cfc6b9; text-align: left; max-width: 640px; margin: 16px auto; }
.gnb-teaser-body { flex: 1 1 260px; }
.gnb-teaser p { margin: 0; }
.gnb-teaser-title { font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; color: #2a2622; }
.gnb-teaser-title::after { content: ""; display: block; width: 40px; height: 3px; background: #a98552; margin: 6px 0 8px; }
.gnb-teaser-info { font-weight: 600; color: #2a2622; }
.gnb-teaser-zones { font-size: 13px; color: #6b635a; margin-top: 4px !important; }
.gnb-teaser-status { font-size: 14px; color: #9a3412; font-weight: 600; margin-top: 6px !important; }
.gnb .gnb-teaser-btn, .gnb-teaser .gnb-teaser-btn { flex: 0 0 auto; text-decoration: none !important; padding: 12px 24px; font-size: 16px; color: #fff !important; background: #2a2622; border-color: #2a2622; }
.gnb-teaser-btn:hover { background: #000; }
