/**
 * Ambrosia Catering Configurator – Styles.
 * Mobile-first, große Touch-Ziele, Gold/Bronze-Akzent.
 */
.acc-configurator {
	--acc-accent: #b08d57;
	--acc-accent-dark: #8f7043;
	--acc-bg: #fffdfa;
	--acc-surface: #ffffff;
	--acc-border: #e7ded1;
	--acc-text: #2b2b2b;
	--acc-muted: #6f665d;
	--acc-radius: 14px;
	color: var(--acc-text);
	font-family: inherit;
	position: relative;
}
.acc-configurator * { box-sizing: border-box; }

.acc-noscript { padding: 1rem; background: #fff3f0; border: 1px solid #f0c9c0; border-radius: 8px; }

/* Fortschritt */
.acc-config__progress {
	height: 6px;
	background: var(--acc-border);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 1.5rem;
}
.acc-config__progress-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--acc-accent), var(--acc-accent-dark));
	transition: width .3s ease;
}

/* Layout */
.acc-config__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
/* Desktop-Sidebar ab 1025px (großer Tablet-Querformat/Desktop). */
@media (min-width: 1025px) {
	.acc-config__layout {
		grid-template-columns: 1fr var(--ambrosia-cart-width, 320px);
		align-items: start;
	}
	.acc-config__cart {
		position: sticky;
		top: var(--ambrosia-cart-top, 20px);
		/* Nicht über den Viewport hinaus wachsen; Rest scrollt intern. */
		max-height: calc(100vh - var(--ambrosia-cart-top, 20px) - 20px);
		overflow-y: auto;
	}
}
/* Kleines Tablet-Hochformat (768–1024): Sidebar unter die Kacheln, nicht sticky. */
@media (min-width: 768px) and (max-width: 1024px) {
	.acc-config__layout { grid-template-columns: 1fr; }
}

.acc-config__main { min-width: 0; }
.acc-config__loading { padding: 2rem; text-align: center; color: var(--acc-muted); }

/* Schritte */
.acc-step__head { margin-bottom: 1rem; }
.acc-step__count {
	display: inline-block;
	font-size: .8rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--acc-accent-dark);
	background: color-mix(in srgb, var(--acc-accent) 14%, #fff);
	padding: .3rem .8rem;
	border-radius: 999px;
}
.acc-step h3 { margin: 0 0 1rem; font-size: 1.4rem; color: var(--acc-accent-dark); }

/* Felder */
.acc-field { margin-bottom: 1rem; }
.acc-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.acc-field input[type=text],
.acc-field input[type=email],
.acc-field input[type=tel],
.acc-field input[type=date],
.acc-field input[type=time],
.acc-field input[type=number],
.acc-field select,
.acc-field textarea {
	width: 100%;
	padding: .8rem .9rem;
	border: 1px solid var(--acc-border);
	border-radius: 10px;
	font-size: 1rem;
	background: #fff;
}
.acc-field--check label { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; }
.acc-field--check input { margin-top: .2rem; }
.acc-grid2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 560px) { .acc-grid2 { grid-template-columns: 1fr 1fr; } }

/* Karten (Gerichte) – Kachel-Raster, Details auf Klick */
.acc-cards-hint { font-size: .85rem; color: var(--acc-muted); margin: 0 0 1rem; }

/* Kachel-Raster: Spaltenanzahl aus Backend-Einstellung (Punkt 1/2/23).
   Fallback über auto-fit, wenn keine Variable gesetzt ist. */
.acc-cards--list {
	display: grid;
	grid-template-columns: repeat(var(--ambrosia-tiles-mobile, 2), minmax(0, 1fr));
	gap: var(--ambrosia-tiles-gap, 16px);
	align-items: stretch;
}
/* Tablet ab 601px. */
@media (min-width: 601px) {
	.acc-cards--list {
		grid-template-columns: repeat(var(--ambrosia-tiles-tablet, 3), minmax(0, 1fr));
	}
}
/* Desktop ab 1025px. */
@media (min-width: 1025px) {
	.acc-cards--list {
		grid-template-columns: repeat(var(--ambrosia-tiles-desktop, 5), minmax(0, 1fr));
	}
}

.acc-card {
	border: 1px solid var(--acc-border);
	border-radius: var(--acc-radius);
	overflow: hidden;
	background: var(--acc-surface);
	transition: border-color .2s, box-shadow .2s;
	display: flex;
	flex-direction: column;
}
.acc-card.is-selected { border-color: var(--acc-accent); box-shadow: 0 8px 24px rgba(176,141,87,.18); }
.acc-card.is-open { box-shadow: 0 10px 28px rgba(0,0,0,.10); }

/* Kachel-Inhalt: Bild oben, Text darunter – füllt die Kartenhöhe,
   damit alle Kacheln in einer Reihe gleich hoch sind (oben/unten auf Linie). */
.acc-card__row {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	padding: 0 0 .7rem;
	flex: 1 1 auto;
}
.acc-card__img {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	background-size: cover;
	background-position: center;
	background-color: #f3ece1;
}
.acc-card__img--placeholder {
	background: linear-gradient(135deg, color-mix(in srgb, var(--acc-accent) 22%, #fff), color-mix(in srgb, var(--acc-accent) 8%, #fff));
}
.acc-card__badge {
	position: absolute;
	top: .5rem; left: .5rem;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--acc-accent);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: .95rem; font-weight: 700;
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Hauptbereich der Kachel */
.acc-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 0 .8rem;
}
.acc-card__head {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}
.acc-card__title { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.acc-card__price-mini { font-weight: 700; color: var(--acc-accent-dark); font-size: .95rem; }
.acc-card__price-mini small { font-weight: 400; color: var(--acc-muted); font-size: .78rem; }

/* Kurzbeschreibung: max. 2 Zeilen */
.acc-card__teaser {
	margin: 0;
	font-size: .85rem;
	line-height: 1.45;
	color: var(--acc-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.acc-card.is-open .acc-card__teaser { -webkit-line-clamp: unset; }

/* Aktionsleiste: Details + Hinzufügen */
.acc-card__actions {
	display: flex;
	gap: .5rem;
	margin-top: auto;
	padding-top: .5rem;
	flex-wrap: wrap;
}
.acc-card__details-btn {
	padding: .55rem .9rem;
	border: 1px solid var(--acc-border);
	background: #fff;
	color: var(--acc-accent-dark);
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	font-size: .9rem;
	min-height: 40px;
}
.acc-card__toggle {
	flex: 1 1 auto;
	padding: .55rem 1rem;
	border: 1px solid var(--acc-accent);
	background: #fff;
	color: var(--acc-accent-dark);
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	font-size: .9rem;
	min-height: 40px;
}
.acc-card.is-selected .acc-card__toggle { background: var(--acc-accent); color: #fff; }

/* Details (aufklappbar) */
.acc-card__details {
	padding: 0 .8rem .9rem;
	display: flex;
	flex-direction: column;
	gap: .45rem;
	border-top: 1px solid var(--acc-border);
}
.acc-card__details[hidden] { display: none; }
.acc-card__short { font-size: .85rem; color: var(--acc-muted); padding-top: .6rem; }
.acc-card__desc { font-size: .85rem; line-height: 1.5; padding-top: .6rem; }
.acc-card__flags { font-size: .78rem; color: var(--acc-accent-dark); }
.acc-card__allerg { font-size: .75rem; color: var(--acc-muted); }
.acc-card__price { font-weight: 700; color: var(--acc-accent-dark); }
.acc-card__price span { font-weight: 400; font-size: .8rem; color: var(--acc-muted); }

/* Mengen-Stepper */
.acc-qty { display: inline-flex; align-items: center; gap: .3rem; padding: 0 .8rem .8rem; }
.acc-qty__btn {
	width: 40px; height: 40px;
	border: 1px solid var(--acc-border);
	background: #fff;
	border-radius: 8px;
	font-size: 1.2rem;
	cursor: pointer;
	line-height: 1;
}
.acc-qty__input { width: 64px; text-align: center; padding: .5rem; border: 1px solid var(--acc-border); border-radius: 8px; font-size: 1rem; }

/* Geschirr */
.acc-equip-list { display: flex; flex-direction: column; gap: .6rem; }
.acc-equip-row {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .7rem .9rem; border: 1px solid var(--acc-border); border-radius: 10px; background: #fff;
}
.acc-equip-row__label small { color: var(--acc-muted); font-weight: 400; }
.acc-hint { font-size: .85rem; color: var(--acc-muted); margin-top: .8rem; }

/* Navigation */
.acc-nav { display: flex; gap: .8rem; justify-content: space-between; margin-top: 1.5rem; }
.acc-btn {
	padding: .85rem 1.4rem; border-radius: 10px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
	font-size: 1rem; min-height: 48px;
}
.acc-btn--primary { background: var(--acc-accent); color: #fff; margin-left: auto; }
.acc-btn--primary:hover { background: var(--acc-accent-dark); }
.acc-btn--primary:disabled { background: #c9bda9; cursor: not-allowed; }
.acc-btn--ghost { background: #fff; border-color: var(--acc-border); color: var(--acc-text); }

/* Warenkorb */
.acc-config__cart {
	background: var(--acc-surface);
	border: 1px solid var(--acc-border);
	border-radius: var(--acc-radius);
	padding: 1.2rem;
}
.acc-config__cart-title { margin: 0 0 .8rem; font-size: 1.1rem; }
.acc-cart__empty { color: var(--acc-muted); font-size: .9rem; }
.acc-cart__row { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--acc-border); font-size: .9rem; }
.acc-cart__row small { color: var(--acc-muted); }
.acc-config__cart-totals { margin-top: .8rem; }
.acc-cart__line { display: flex; justify-content: space-between; padding: .25rem 0; }
.acc-cart__line--total { font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--acc-border); margin-top: .3rem; padding-top: .5rem; color: var(--acc-accent-dark); }
.acc-cart__warn { margin-top: .6rem; padding: .5rem .7rem; background: #fff5ec; border: 1px solid #f0d8bf; border-radius: 8px; font-size: .85rem; color: #8a5a1e; }
.acc-cart__ok { margin-top: .6rem; padding: .5rem .7rem; background: #eefaf0; border: 1px solid #bfe6c7; border-radius: 8px; font-size: .85rem; color: #2e7d43; }

/* CAPTCHA */
.acc-captcha__row { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.acc-captcha__row img { border: 1px solid var(--acc-border); border-radius: 8px; }
.acc-captcha__reload { background: none; border: none; color: var(--acc-accent-dark); cursor: pointer; text-decoration: underline; font-size: .85rem; }

/* Fehler / Erfolg */
.acc-error { margin-top: 1rem; padding: .8rem 1rem; background: #fdecea; border: 1px solid #f5c2bc; border-radius: 8px; color: #a8342a; }
.acc-success { text-align: center; padding: 2rem 1rem; }
.acc-success h3 { color: #2e7d43; }

/* Auf Smartphone/kleinem Tablet: große Sidebar NICHT sticky
   (stattdessen die schmale Leiste oben). Vollständiger Warenkorb bleibt unten. */
@media (max-width: 1024px) {
	.acc-config__cart { position: static; box-shadow: none; }
}

/* Warenkorb-Kurzinfo (Positionen + Gesamt) in der Sidebar */
.acc-config__cart-quick {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .6rem;
	padding: .5rem 0 .8rem;
	border-bottom: 1px solid var(--acc-border);
	margin-bottom: .6rem;
	font-size: .95rem;
}
.acc-config__cart-quick strong { color: var(--acc-accent-dark); font-size: 1.1rem; }

/* Zähler-Badge in der Sidebar-Überschrift */
.acc-config__cart-title { display: flex; align-items: center; gap: .5rem; }
.acc-config__cart-counter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 .4rem;
	background: var(--acc-accent);
	color: #fff;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
}
.acc-config__cart-counter.is-empty { background: var(--acc-muted); opacity: .6; }

/* Mobile Sticky-Warenkorbleiste (Punkt 4/5) */
.acc-cartbar {
	display: none; /* nur mobil/kleines Tablet sichtbar */
	position: sticky;
	/* direkt unter einem etwaigen Sticky-Header; per Variable justierbar */
	top: var(--ambrosia-cartbar-top, 0px);
	z-index: 40;
	width: 100%;
	align-items: center;
	gap: .6rem;
	padding: .7rem 1rem;
	border: none;
	border-radius: 0;
	background: var(--acc-accent-dark);
	color: #fff;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.acc-cartbar.is-visible { display: flex; }
.acc-cartbar__icon { font-size: 1.1rem; }
.acc-cartbar__count { white-space: nowrap; }
.acc-cartbar__total { margin-left: auto; white-space: nowrap; font-weight: 700; }
.acc-cartbar__arrow { font-size: 1.3rem; line-height: 1; }

/* Nur bis 1024px zeigen (Smartphone + kleines Tablet-Hochformat). */
@media (min-width: 1025px) {
	.acc-cartbar { display: none !important; }
}

/* Dezente Puls-Animation (Punkt 12) – verschiebt kein Layout. */
@keyframes acc-pulse {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.08); }
	100% { transform: scale(1); }
}
.acc-pulse { animation: acc-pulse .35s ease; }

/* Scroll-Ziel nicht unter Sticky-Elementen verstecken (Punkt 8). */
.acc-config__cart { scroll-margin-top: calc(var(--ambrosia-cartbar-top, 0px) + 70px); }

@media (prefers-reduced-motion: reduce) {
	.acc-config__progress-bar, .acc-card { transition: none; }
}

/* Hinweis, was zum Absenden noch fehlt */
.acc-submit-hint {
	margin-top: .8rem;
	padding: .7rem .9rem;
	background: #fff8ec;
	border: 1px solid #f0dcc0;
	border-radius: 8px;
	font-size: .85rem;
	color: #8a5a1e;
}

/* ---- Detailansicht: Galerie, Video, Zutaten (v1.2) ---- */
.acc-card__gallery { margin-bottom: .6rem; }
.acc-card__gallery-main {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.acc-card__gallery-thumbs {
	display: flex;
	gap: .4rem;
	margin-top: .4rem;
	flex-wrap: wrap;
}
.acc-card__gallery-thumb {
	width: 46px;
	height: 46px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: none;
}
.acc-card__gallery-thumb.is-active { border-color: var(--acc-accent); }
.acc-card__gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-card__video {
	width: 100%;
	border-radius: 8px;
	margin-bottom: .6rem;
	background: #000;
}
.acc-card__ingredients { font-size: .82rem; color: var(--acc-muted); line-height: 1.5; }

.acc-cart__line--vat { font-size: .85rem; color: var(--acc-muted); }

/* Buffet-Hinweis im Warenkorb */
.acc-config__buffet-note {
	margin-top: 1rem;
	padding-top: .8rem;
	border-top: 1px dashed var(--acc-border);
	font-size: .82rem;
	color: var(--acc-muted);
	font-style: italic;
}

/* Ober-Gruppe (Getränke-Gruppierung) */
.acc-group-heading {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--acc-accent-dark);
	border-bottom: 2px solid var(--acc-accent);
	padding-bottom: .3rem;
	margin: .5rem 0 1rem;
}
.acc-cards-empty {
	font-size: .88rem;
	color: var(--acc-muted);
	font-style: italic;
	padding: .8rem;
	background: color-mix(in srgb, var(--acc-accent) 6%, #fff);
	border-radius: 10px;
}

/* „Mehr anzeigen"-Button (Reihen-Limit) */
.acc-cards-more { text-align: center; margin-top: 1rem; }
.acc-cards-more[hidden] { display: none; }
.acc-cards-more__btn {
	padding: .6rem 1.4rem;
	border: 1px solid var(--acc-accent);
	background: #fff;
	color: var(--acc-accent-dark);
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	font-size: .9rem;
	min-height: 42px;
}
.acc-cards-more__btn:hover { background: color-mix(in srgb, var(--acc-accent) 12%, #fff); }

/* Mobiles Warenkorb-Panel (Klickverhalten „Panel öffnen") */
.acc-cart-panel {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.acc-cart-panel__sheet {
	background: var(--acc-surface);
	width: 100%;
	max-width: 560px;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 16px 16px 0 0;
	padding: 1.2rem;
	position: relative;
	box-shadow: 0 -8px 30px rgba(0,0,0,.2);
	animation: acc-sheet-up .25s ease;
}
@keyframes acc-sheet-up { from { transform: translateY(30px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.acc-cart-panel__close {
	position: absolute;
	top: .6rem; right: .8rem;
	width: 36px; height: 36px;
	border: none;
	background: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var(--acc-muted);
}
@media (prefers-reduced-motion: reduce) {
	.acc-cart-panel__sheet { animation: none; }
}

/* ===== Speisekarte (Shortcode [ambrosia_speisekarte]) ===== */
.acc-menu { max-width: 800px; margin: 0 auto; }
.acc-menu__actions { text-align: right; margin-bottom: 1.5rem; }
.acc-menu__pdf {
	display: inline-block;
	padding: .6rem 1.2rem;
	background: var(--acc-accent);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: .9rem;
}
.acc-menu__pdf:hover { background: var(--acc-accent-dark); color: #fff; }
.acc-menu__group {
	font-size: 1.8rem;
	margin: 2rem 0 1rem;
	padding-bottom: .4rem;
	border-bottom: 2px solid var(--acc-accent);
}
.acc-menu__cat { font-size: 1.3rem; margin: 1.4rem 0 .6rem; color: var(--acc-accent-dark); }
.acc-menu__list { list-style: none !important; margin: 0; padding: 0; }
/* Bullet-Points explizit entfernen (auch wenn das Theme sie erzwingt). */
.acc-menu__list > .acc-menu__item { list-style: none !important; }
.acc-menu__item {
	padding: .5rem 0;
	border-bottom: 1px solid rgba(111, 102, 93, .18);
	list-style: none !important;
}
.acc-menu__item::marker { content: none; }
.acc-menu__item:last-child { border-bottom: none; }

/* Zeile mit Name links, dynamischen Pünktchen, Preis rechtsbündig. */
.acc-menu__line {
	display: flex;
	align-items: flex-end;
	gap: .35rem;
	width: 100%;
}
.acc-menu__name {
	flex: 0 1 auto;
	font-weight: 600;
	color: var(--acc-text, #2b2b2b);
	min-width: 0; /* erlaubt Umbruch langer Namen ohne Overflow */
}
.acc-menu__title { font-weight: 600; }
/* Zusatzbezeichnung / Kurzbeschreibung in Klammern – dezenter als der Name. */
.acc-menu__desc {
	font-weight: 400;
	color: var(--acc-muted, #6f665d);
}
/* Dynamische Pünktchen füllen nur den freien Raum zwischen Name und Preis.
   Fallback-Farbe zuerst (falls color-mix nicht unterstützt wird), damit die
   Punktlinie in jedem Theme sichtbar bleibt. */
.acc-menu__dots {
	flex: 1 1 auto;
	min-width: 1.5rem;
	align-self: center;
	margin: 0 .15rem;
	border-bottom: 2px dotted #b3a89c;
	border-bottom-color: color-mix(in srgb, var(--acc-muted, #6f665d) 55%, transparent);
	transform: translateY(-.18em);
}
.acc-menu__price {
	flex: 0 0 auto;
	white-space: nowrap;
	font-weight: 700;
	color: var(--acc-accent-dark, #8f7043);
	font-variant-numeric: tabular-nums;
}
.acc-menu__price--daily { font-style: italic; }
.acc-menu__portion {
	display: block;
	margin-top: .15rem;
	font-size: .82rem;
	color: var(--acc-muted, #6f665d);
	font-style: italic;
}

/* ===== Kundenkonto: Login/Register/Account ===== */
.acc-auth { max-width: 440px; margin: 1rem 0; }
.acc-auth__form p { margin: 0 0 .9rem; }
.acc-auth__form label { display: block; font-weight: 600; font-size: .9rem; }
.acc-auth__form input[type=text],
.acc-auth__form input[type=email],
.acc-auth__form input[type=password] {
	width: 100%; padding: .6rem .7rem; border: 1px solid var(--acc-border);
	border-radius: 8px; font-size: 1rem; margin-top: .25rem; box-sizing: border-box;
}
.acc-auth__msg { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.acc-auth__msg--ok { background: #eefaf0; border: 1px solid #bfe6c7; color: #2e7d43; }
.acc-auth__msg--err { background: #fdecea; border: 1px solid #f5c2bc; color: #a8342a; }
.acc-btn--ghost { background: #fff; border: 1px solid var(--acc-border); color: var(--acc-accent-dark); padding: .5rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; }

.acc-account__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.acc-account__orders { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.acc-account__orders th, .acc-account__orders td { text-align: left; padding: .6rem; border-bottom: 1px solid var(--acc-border); font-size: .9rem; }
.acc-account__orders th { border-bottom: 2px solid var(--acc-accent); }

/* Checkout-Registrierung */
.acc-checkout-register { margin: 1rem 0; padding: 1rem; border: 1px solid var(--acc-border); border-radius: var(--acc-radius); background: color-mix(in srgb, var(--acc-accent) 5%, #fff); }
.acc-checkout-register label.acc-inline { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.acc-checkout-register__fields { margin-top: .8rem; }
.acc-checkout-register__fields[hidden] { display: none; }

/* ===== Tagespreis & Portionsangabe ===== */
.acc-price-daily {
	font-weight: 700;
	color: var(--acc-accent-dark, #8f7043);
	font-style: italic;
}
.acc-card__portion {
	margin: 2px 0 0;
	font-size: .82rem;
	color: var(--acc-muted, #6f665d);
	font-style: italic;
}
.acc-cart__daily-note {
	margin-top: .6rem;
	padding: .55rem .7rem;
	background: color-mix(in srgb, var(--acc-accent, #b08d57) 10%, #fff);
	border-left: 3px solid var(--acc-accent, #b08d57);
	border-radius: 4px;
	font-size: .8rem;
	color: var(--acc-text, #2b2b2b);
	line-height: 1.4;
}

/* ===== Weiter-Button: Position & Farben aus dem Backend ===== */
.acc-nav--top { margin-top: 0; margin-bottom: 1.2rem; }
/* Weiter-Button nutzt die im Backend gesetzten Farben. */
.acc-btn--next {
	background: var(--ambrosia-next-bg, var(--acc-accent, #b08d57));
	color: var(--ambrosia-next-text, #fff);
	border-radius: var(--ambrosia-next-radius, 10px);
}
.acc-btn--next:hover {
	background: var(--ambrosia-next-bg-hover, var(--acc-accent-dark, #8f7043));
	color: var(--ambrosia-next-text-hover, #fff);
}
/* Sticky-Variante: fixe Aktionsleiste am unteren Rand. */
.acc-nav--sticky {
	position: sticky;
	bottom: 0;
	z-index: 20;
	margin-top: 1.2rem;
	padding: .7rem;
	background: color-mix(in srgb, var(--acc-surface, #fff) 92%, transparent);
	backdrop-filter: blur(4px);
	border-top: 1px solid var(--acc-border, #e7ded1);
	box-shadow: 0 -4px 14px rgba(0,0,0,.06);
}

/* ===== Navigation: keine Zeilenumbrüche in Menüpunkten / Buttons ===== */
/* Buttons und Navigations-Beschriftungen bleiben immer in einer Zeile. */
.acc-btn,
.acc-nav .acc-btn,
.acc-step__count {
	white-space: nowrap;
}

/* Wiederverwendbare, responsive Navigationsleiste: die Menüpunkte bleiben
   je einzeilig; wird es zu eng, scrollt ausschließlich die Leiste horizontal
   – niemals die gesamte Seite. */
.acc-navbar {
	display: flex;
	gap: .5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	max-width: 100%;
}
.acc-navbar::-webkit-scrollbar { height: 6px; }
.acc-navbar::-webkit-scrollbar-thumb { background: var(--acc-border, #e7ded1); border-radius: 3px; }
.acc-navbar__item {
	white-space: nowrap;   /* „Speisen & Menüs" bricht nie um */
	flex: 0 0 auto;
}

/* Grundsätzlich keinen horizontalen Overflow der Gesamtseite erzeugen. */
.acc-configurator { overflow-x: clip; }

@media (max-width: 600px) {
	/* Auf kleinen Displays Abstände/Schrift moderat reduzieren, damit mehr
	   Menüpunkte in die scrollbare Leiste passen. */
	.acc-navbar { gap: .35rem; }
	.acc-navbar__item { font-size: .92rem; padding-inline: .6rem; }
}

/* ===== Medien-Carousel (Bilder + Video vereint) ===== */
.acc-carousel {
	position: relative;
	margin: 12px 0;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}
.acc-carousel__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #111;
}
.acc-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
}
.acc-carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
}
.acc-carousel__img,
.acc-carousel__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.acc-carousel__video { background: #000; }
.acc-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
	z-index: 2;
}
.acc-carousel__nav:hover { background: rgba(0, 0, 0, .7); }
.acc-carousel__prev { left: 8px; }
.acc-carousel__next { right: 8px; }
.acc-carousel__dots {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	z-index: 2;
}
.acc-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.acc-carousel__dot.is-active {
	background: #fff;
	transform: scale(1.25);
}
@media (max-width: 600px) {
	.acc-carousel__nav { width: 34px; height: 34px; font-size: 19px; }
}

/* ===== Frontend-Admin: „Speise bearbeiten" (nur für Administratoren) ===== */
.acc-card__admin-edit {
	background: transparent;
	border: 1px dashed var(--acc-accent, #b08d57);
	color: var(--acc-accent-dark, #8f7043);
	border-radius: 6px;
	padding: 4px 8px;
	font-size: .8rem;
	cursor: pointer;
	margin-left: 4px;
}
.acc-card__admin-edit:hover { background: rgba(176, 141, 87, .1); }

.acc-admin-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 12px;
	z-index: 100000;
	overflow-y: auto;
}
.acc-admin-modal__box {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 560px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	overflow: hidden;
}
.acc-admin-modal__head {
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
	font-size: .95rem;
	position: relative;
	background: #faf7f2;
}
.acc-admin-modal__badge {
	display: inline-block;
	background: var(--acc-accent-dark, #8f7043);
	color: #fff;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .05em;
	padding: 2px 7px;
	border-radius: 4px;
	vertical-align: middle;
}
.acc-admin-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}
.acc-admin-modal__body { padding: 16px; }
.acc-admin-field { margin-bottom: 10px; }
.acc-admin-field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 3px; color: #444; }
.acc-admin-field input[type="text"],
.acc-admin-field textarea,
.acc-admin-field select {
	width: 100%;
	padding: 7px 9px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: .9rem;
	box-sizing: border-box;
}
.acc-admin-field--check label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin-top: 22px; }
.acc-admin-row { display: flex; gap: 12px; }
.acc-admin-row .acc-admin-field { flex: 1; }
.acc-admin-media { margin-top: 6px; }
.acc-admin-media__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
	min-height: 40px;
}
.acc-admin-media__item {
	position: relative;
	width: 84px;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: #f7f7f7;
	cursor: grab;
}
.acc-admin-media__item.is-drag { opacity: .5; }
.acc-admin-media__item img { width: 100%; height: 64px; object-fit: cover; display: block; }
.acc-admin-media__item--video { display: flex; align-items: center; justify-content: center; height: 64px; }
.acc-admin-media__vid { font-size: .8rem; color: #555; padding: 4px; }
.acc-admin-media__role {
	display: block;
	font-size: .66rem;
	text-align: center;
	padding: 2px;
	background: #efe9df;
	color: #6f5b3e;
}
.acc-admin-media__ops {
	position: absolute;
	top: 2px;
	right: 2px;
	display: flex;
	gap: 2px;
}
.acc-admin-media__ops button {
	border: none;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	padding: 0;
}
.acc-admin-media__ops button:hover { background: rgba(0, 0, 0, .85); }
.acc-admin-media__add { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-admin-btn {
	border: 1px solid var(--acc-accent, #b08d57);
	background: #fff;
	color: var(--acc-accent-dark, #8f7043);
	border-radius: 6px;
	padding: 6px 12px;
	font-size: .85rem;
	cursor: pointer;
}
.acc-admin-btn:hover { background: rgba(176, 141, 87, .08); }
.acc-admin-btn--primary { background: var(--acc-accent-dark, #8f7043); color: #fff; border-color: var(--acc-accent-dark, #8f7043); }
.acc-admin-btn--primary:hover { opacity: .9; background: var(--acc-accent-dark, #8f7043); }
.acc-admin-btn--ghost { border-color: #bbb; color: #666; }
.acc-admin-modal__foot {
	padding: 12px 16px;
	border-top: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-end;
	background: #fafafa;
}
.acc-admin-modal__msg { margin-right: auto; font-size: .82rem; }
.acc-admin-modal__msg.is-ok { color: #2e7d32; }
.acc-admin-modal__msg.is-err { color: #c62828; }
@media (max-width: 600px) {
	.acc-admin-row { flex-direction: column; gap: 0; }
	.acc-admin-field--check label { margin-top: 0; }
}

/* ==========================================================================
   Kategorie-Kacheln (Übersicht „Speisen & Menüs" / „Catering zusammenstellen")
   Responsive Werte über CSS-Variablen (--tile-*). Text bricht sauber um und
   läuft nie über die Kachel hinaus (Anforderung 7).
   ========================================================================== */
.acc-menu__title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .3rem; color: var(--acc-text); }
.acc-menu__intro { margin: 0 0 1.4rem; color: var(--acc-muted); }

.acc-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(.7rem, 1.6vw, 1.2rem);
}
.acc-tiles__group {
	grid-column: 1 / -1;
	font-weight: 600; color: var(--acc-accent-dark);
	letter-spacing: .04em; text-transform: uppercase;
	font-size: .82rem; margin: .6rem 0 -.2rem;
}
@media (max-width: 1024px) { .acc-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .acc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .acc-tiles { grid-template-columns: 1fr; } }

/* Einzelne Kachel */
.acc-tile {
	position: relative; display: block; width: 100%;
	border: 0; margin: 0;
	padding: var(--tile-pad, 18px);
	border-radius: var(--tile-radius, 14px);
	overflow: hidden; cursor: pointer;
	background: var(--tile-bg, #3d2b3e);
	box-shadow: 0 4px 14px rgba(43, 43, 43, .1);
	transition: transform .25s ease, box-shadow .25s ease;
	font-family: inherit; text-align: left; isolation: isolate;
	color: #fff;
}
/* Form: automatisch (min-Höhe), quadratisch, rechteckig – je Breakpoint */
.acc-tile--shape-auto  { min-height: var(--tile-hd, 190px); }
.acc-tile--shape-square { aspect-ratio: 1 / 1; }
.acc-tile--shape-rect   { aspect-ratio: 16 / 9; }
.acc-tile[style*="--tile-hd"].acc-tile--shape-auto { height: var(--tile-hd); }

.acc-tile__img, .acc-tile__overlay { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.acc-tile__img { background-size: cover; background-repeat: no-repeat; background-position: center; }
.acc-tile__overlay { z-index: 1; }

.acc-tile__content {
	position: relative; z-index: 2;
	display: flex; flex-direction: column; justify-content: flex-end;
	height: 100%; min-height: inherit; gap: .25rem;
	font-weight: var(--tile-fw, 700);
}
.acc-tile__content--icon-left,
.acc-tile__content--icon-right { flex-direction: row; align-items: center; justify-content: flex-start; }
.acc-tile__content--icon-right { justify-content: space-between; }

/* Beschriftung: bricht um, läuft NIE über den Rand hinaus */
.acc-tile__label {
	display: block;
	font-size: var(--tile-fd, 22px);
	font-weight: inherit;
	line-height: 1.15;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
	max-width: 100%;
}
.acc-tile__meta { font-size: .82rem; font-weight: 400; opacity: .92; }

.acc-tile__icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.acc-tile__content--icon-above .acc-tile__icon { margin-bottom: .4rem; }
.acc-tile__content--icon-left .acc-tile__icon { margin-right: .5rem; }
.acc-tile__content--icon-right .acc-tile__icon { margin-left: .5rem; order: 2; }
.acc-tile__icon-center {
	position: absolute; inset: 0; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	pointer-events: none;
}
.acc-tile__icon-center .acc-tile__icon { opacity: .95; }

/* Hover (optional pro Kachel) */
.acc-tile--hover:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(43, 43, 43, .22); }
.acc-tile--hover:hover .acc-tile__img { transform: scale(1.05); }
.acc-tile--hover .acc-tile__img { transition: transform .4s ease; }

.acc-tile.is-active { outline: 3px solid var(--acc-accent); outline-offset: -3px; }
.acc-tile:focus-visible { outline: 3px solid var(--acc-accent); outline-offset: 2px; }

/* Responsive Schriftgröße + Höhe je Breakpoint */
@media (max-width: 1024px) {
	.acc-tile__label { font-size: var(--tile-ft, 19px); }
	.acc-tile--shape-auto { min-height: var(--tile-ht, var(--tile-hd, 170px)); }
}
@media (max-width: 600px) {
	.acc-tile__label { font-size: var(--tile-fm, 16px); }
	.acc-tile--shape-auto { min-height: var(--tile-hm, var(--tile-hd, 140px)); }
}

/* „← Alle Kategorien" */
.acc-menu-back { margin: 0 0 1rem; }
.acc-menu-back__btn { display: inline-flex; align-items: center; gap: .4rem; }

/* ==========================================================================
   Hero-Bereiche (Catering zusammenstellen / Speisen & Menüs)
   ========================================================================== */
.acc-hero {
	position: relative; overflow: hidden;
	min-height: var(--h-d, 450px);
	display: flex; align-items: center;
	border-radius: var(--acc-radius, 14px);
	margin-bottom: 1.5rem;
	isolation: isolate;
}
.acc-hero__img { position: absolute; inset: 0; z-index: 0; background-size: cover; background-repeat: no-repeat; background-position: var(--h-pos-d, center); }
.acc-hero__overlay { position: absolute; inset: 0; z-index: 1; }
.acc-hero__inner {
	position: relative; z-index: 2; width: 100%;
	padding: clamp(1.2rem, 4vw, 3rem);
	color: var(--h-color, #fff);
	text-align: var(--h-align, center);
}
.acc-hero__title { margin: 0 0 .4rem; font-size: var(--h-title-d, 40px); line-height: 1.1; color: inherit; }
.acc-hero__subtitle { margin: 0 0 .3rem; font-size: var(--h-sub-d, 20px); opacity: .95; }
.acc-hero__text { margin: 0; opacity: .9; }
@media (max-width: 1024px) { .acc-hero { min-height: var(--h-t, 360px); } }
@media (max-width: 600px) {
	.acc-hero { min-height: var(--h-m, 260px); }
	.acc-hero__img { background-position: var(--h-pos-m, center); }
	.acc-hero__title { font-size: var(--h-title-m, 28px); }
	.acc-hero__subtitle { font-size: var(--h-sub-m, 16px); }
}

/* ==========================================================================
   Speisekarte: eigene Sektion je Kategorie (getrennte Grids, Anforderung 38)
   ========================================================================== */
.acc-cat-section { margin-bottom: var(--acc-section-gap, 48px); }
.acc-cat-section__title { font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--acc-text); margin: 0 0 .8rem; border-bottom: 2px solid var(--acc-border); padding-bottom: .4rem; }
.acc-cat-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }

/* ==========================================================================
   Kategorie-Navigation (Weiter/Zurück zwischen Gerichtstypen)
   Scroll-Ziel bekommt Abstand nach oben, damit Sticky-Header/Warenkorbleiste
   die Kategorie-Überschrift nicht verdecken (Anforderung 3/10).
   ========================================================================== */
[data-acc-cat-anchor] { scroll-margin-top: 120px; }

.acc-menu-back { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.acc-menu-progress { font-weight: 600; color: var(--acc-accent-dark); font-size: .9rem; white-space: nowrap; }

/* Pills: aktive Kategorie hervorgehoben, erledigte markiert */
.acc-cat-pills {
	display: flex; gap: .5rem; margin: 0 0 1.4rem;
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	padding-bottom: .3rem;
	scrollbar-width: thin;
}
.acc-cat-pill {
	display: inline-flex; align-items: center; gap: .45rem;
	flex: 0 0 auto;
	border: 1px solid var(--acc-border); background: #fff;
	color: var(--acc-text);
	padding: .45rem .85rem; border-radius: 999px;
	font-size: .9rem; font-weight: 600; cursor: pointer;
	white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.acc-cat-pill:hover { border-color: var(--acc-accent); }
.acc-cat-pill__idx {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.35rem; height: 1.35rem; border-radius: 50%;
	background: var(--acc-border); color: var(--acc-text);
	font-size: .78rem; line-height: 1;
}
.acc-cat-pill.is-done .acc-cat-pill__idx { background: #cfe8cf; color: #1e6b1e; }
.acc-cat-pill.is-active { background: var(--acc-accent); border-color: var(--acc-accent); color: #fff; }
.acc-cat-pill.is-active .acc-cat-pill__idx { background: rgba(255,255,255,.25); color: #fff; }

/* ==========================================================================
   Bild-Lightbox (Originalbild im Pop-up)
   Bild bleibt im sichtbaren Bereich, Seitenverhältnis erhalten (Punkt 4/5).
   ========================================================================== */
.acc-card__img--zoom { cursor: zoom-in; border: 0; padding: 0; position: relative; }
.acc-card__zoom {
	position: absolute; right: 6px; bottom: 6px;
	width: 26px; height: 26px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.55); color: #fff; font-size: 15px; line-height: 1;
	opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.acc-card__img--zoom:hover .acc-card__zoom,
.acc-card__img--zoom:focus-visible .acc-card__zoom { opacity: 1; }
.acc-carousel__img { cursor: zoom-in; }
.acc-card__gallery-main { cursor: zoom-in; }

body.acc-lightbox-open { overflow: hidden; }

.acc-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.acc-lightbox[hidden] { display: none; }
.acc-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.acc-lightbox__dialog {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	padding: 2vh 1vw;
	box-sizing: border-box;
}
.acc-lightbox__figure {
	margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem;
	max-width: 95vw; max-height: 92vh;
}
.acc-lightbox__img {
	width: auto; height: auto;
	max-width: 95vw; max-height: 86vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0,0,0,.5);
	background: #1a1a1a;
}
.acc-lightbox__caption { color: #fff; text-align: center; display: flex; flex-direction: column; gap: .15rem; }
.acc-lightbox__title { font-size: 1.05rem; font-weight: 600; }
.acc-lightbox__sub { font-size: .9rem; opacity: .85; }
.acc-lightbox__counter { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; opacity: .8; }

.acc-lightbox__close {
	position: absolute; top: 10px; right: 12px; z-index: 2;
	width: 48px; height: 48px; border-radius: 50%;
	border: 0; cursor: pointer;
	background: rgba(0,0,0,.55); color: #fff; font-size: 22px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s ease;
}
.acc-lightbox__close:hover { background: rgba(0,0,0,.8); }

.acc-lightbox__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 52px; height: 52px; border-radius: 50%;
	border: 0; cursor: pointer;
	background: rgba(0,0,0,.45); color: #fff; font-size: 30px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s ease;
}
.acc-lightbox__nav:hover { background: rgba(0,0,0,.75); }
.acc-lightbox__prev { left: 14px; }
.acc-lightbox__next { right: 14px; }

.acc-lightbox__close:focus-visible,
.acc-lightbox__nav:focus-visible { outline: 3px solid var(--acc-accent); outline-offset: 2px; }

@media (max-width: 600px) {
	.acc-lightbox__img { max-width: 96vw; max-height: 80vh; }
	.acc-lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
	.acc-lightbox__prev { left: 6px; }
	.acc-lightbox__next { right: 6px; }
	.acc-lightbox__close { width: 46px; height: 46px; top: 8px; right: 8px; }
}
