/* =====================================================================
 * Off-Canvas-Menü (mobil/Tablet < 1200px) – siehe offcanvas-menu.php
 * ===================================================================== */

/* ---------- Burger ---------- */
.br-oc-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent !important;
	color: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.br-oc-burger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}
.br-oc-burger__bars,
.br-oc-burger__bars::before,
.br-oc-burger__bars::after,
.br-oc-burger__bars > span {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}
.br-oc-burger__bars {
	position: relative;
	background: transparent;
}
.br-oc-burger__bars::before,
.br-oc-burger__bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.br-oc-burger__bars::before { top: -7px; }
.br-oc-burger__bars::after  { top: 7px; }

@media (min-width: 1200px) {
	.br-oc-burger,
	.br-oc-panel,
	.br-oc-overlay {
		display: none !important;
	}
}

/* ---------- Overlay + Panel ---------- */
.br-oc-panel[hidden],
.br-oc-overlay[hidden],
.br-oc-menu .sub-menu[hidden] {
	display: none !important;
}

.br-oc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(20, 18, 15, .55);
	opacity: 0;
	transition: opacity .25s ease;
}

.br-oc-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: min(86vw, 360px);
	height: 100dvh;
	background: #fff;
	box-shadow: 0 0 40px rgba(0, 0, 0, .25);
	transform: translateX(-102%);
	transition: transform .28s cubic-bezier(.2, .7, .2, 1);
	font-family: "PT Sans", sans-serif;
}

.br-oc-open .br-oc-panel { transform: none; }
.br-oc-open .br-oc-overlay { opacity: 1; }
.br-oc-open,
.br-oc-open body {
	overflow: hidden !important;
}

.admin-bar .br-oc-panel {
	top: 46px;
	height: calc(100dvh - 46px);
}
@media (min-width: 783px) {
	.admin-bar .br-oc-panel {
		top: 32px;
		height: calc(100dvh - 32px);
	}
}

.br-oc-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 64px 0 32px;
}

/* Schließen: runder Knopf oben rechts mit gezeichnetem X */
.br-oc-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f1ed !important;
	cursor: pointer;
}
.br-oc-close::before,
.br-oc-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	border-radius: 1px;
	background: #222;
	transform: translate(-50%, -50%) rotate(45deg);
}
.br-oc-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}
.br-oc-close:focus-visible {
	outline: 2px solid #222;
	outline-offset: 2px;
}

/* ---------- Menü ---------- */
.br-oc-menu,
.br-oc-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.br-oc-menu {
	border-top: 1px solid #ece8e1;
}

.br-oc-menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	border-bottom: 1px solid #ece8e1;
}

.br-oc-menu > li > a {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	min-height: 54px;
	padding: 0 8px 0 20px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
	color: #222 !important;
	text-decoration: none;
}

.br-oc-menu > li.current-menu-item > a,
.br-oc-menu > li.current-menu-ancestor > a {
	color: #000 !important;
}

/* Untermenü-Schalter */
.br-oc-sub-toggle {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0 8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent !important;
	color: #666;
	cursor: pointer;
}
.br-oc-sub-toggle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform .2s ease;
}
.br-oc-sub-toggle[aria-expanded="true"]::before {
	transform: translate(-50%, -30%) rotate(-135deg);
}
.br-oc-sub-toggle:focus-visible {
	outline: 2px solid #222;
	outline-offset: -4px;
}

/* Unterpunkte als Karten */
.br-oc-menu .sub-menu {
	flex: 0 0 100%;
	padding: 0 12px 12px;
}

.br-oc-menu .sub-menu > li {
	margin: 0;
}

.br-oc-menu .sub-menu > li > a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.3;
	color: #222 !important;
	text-decoration: none;
}

.br-oc-menu .sub-menu > li > a:active,
.br-oc-menu .sub-menu > li.current-menu-item > a {
	background: #f6f3ee;
}

.br-oc-menu .br-mm-thumb {
	width: 56px;
	height: 56px;
	border-radius: 6px;
}
.br-oc-menu .br-mm-body {
	flex: 1 1 auto;
	text-align: left;
}
.br-oc-menu .br-mm-title {
	font-weight: 500;
}
.br-oc-menu .br-mm-price {
	display: block;
	margin-top: 2px;
	font-size: 13px;
}
.br-oc-menu .br-mm-desc {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.br-oc-panel,
	.br-oc-overlay,
	.br-oc-sub-toggle::before {
		transition: none;
	}
}

/* Chat-Bubble (Crisp) liegt sonst über dem offenen Menü */
.br-oc-open .crisp-client,
.br-oc-open #crisp-chatbox {
	display: none !important;
}
