/* ── Burger-Button ──────────────────────────────────────────── */

.wbg-panel-toggle {
	display:            flex;
	flex-direction:     column;
	justify-content:    center;
	align-items:        center;
	gap:                5px;
	width:              var(--wbg-burger-size, 44px);
	height:             var(--wbg-burger-size, 44px);
	background:         transparent !important;
	border:             none !important;
	border-radius:      0 !important;
	box-shadow:         none !important;
	-webkit-appearance: none;
	appearance:         none;
	cursor:             pointer;
	padding:            8px;
}

.wbg-burger-line {
	display:          block;
	width:            24px;
	height:           2px;
	background-color: #8B1A2D;
	transition:       transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
	border-radius:    2px;
	flex-shrink:      0;
}

.wbg-panel--open .wbg-burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.wbg-panel--open .wbg-burger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.wbg-panel--open .wbg-burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}


/* ── Overlay ────────────────────────────────────────────────── */

.wbg-panel-overlay {
	position:       fixed;
	inset:          0;
	z-index:        9998;
	background:     rgba(0, 0, 0, 0.45);
	opacity:        0;
	pointer-events: none;
	transition:     opacity 0.3s ease;
}

.wbg-panel--open .wbg-panel-overlay {
	opacity:        1;
	pointer-events: auto;
}


/* ── Panel ──────────────────────────────────────────────────── */

.wbg-nav-panel {
	position:            fixed;
	top:                 0;
	right:               0;
	bottom:              0;
	z-index:             9999;
	width:               380px;
	max-width:           100vw;
	background-color:    #8B1A2D;
	transform:           translateX(100%);
	transition:          transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y:          auto;
	overscroll-behavior: contain;
}

@media (max-width: 767px) {
	.wbg-nav-panel {
		width: 100vw;
	}
}

.wbg-panel--open .wbg-nav-panel {
	transform: translateX(0);
}


/* ── Schließen-Button ───────────────────────────────────────── */

.wbg-panel-close {
	position:           absolute;
	top:                16px;
	right:              16px;
	background:         transparent !important;
	border:             none !important;
	box-shadow:         none !important;
	-webkit-appearance: none;
	appearance:         none;
	color:              #fff;
	font-size:          22px;
	cursor:             pointer;
	line-height:        1;
	padding:            6px 10px;
	opacity:            1;
	z-index:            1;
	font-weight:        700;
}

.wbg-panel-close:hover { opacity: 0.75; }


/* ── Panel-Innenbereich ─────────────────────────────────────── */

.wbg-panel-inner {
	padding:        52px 28px 40px;
	display:        flex;
	flex-direction: column;
	gap:            24px;
	min-height:     100%;
	box-sizing:     border-box;
}


/* ── Headline ───────────────────────────────────────────────── */

.wbg-panel-headline {
	color:       #fff;
	font-size:   20px;
	font-weight: 700;
	line-height: 1.3;
	margin:      0;
}


/* ── Navigation ─────────────────────────────────────────────── */

.wbg-panel-nav {
	display: none;
}

@media (max-width: 1024px) {
	.wbg-panel-nav {
		display:     block;
		border-top:  1px solid rgba(255, 255, 255, 0.2);
		padding-top: 4px;
	}
}

.wbg-panel-menu,
.wbg-submenu {
	list-style: none;
	margin:     0;
	padding:    0;
}

.wbg-menu-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.wbg-menu-item--sub:last-child {
	border-bottom: none;
}


/* ── Menü-Einträge ───────────────────────────────────────────── */

/* Reset Theme-Button-Styles */
.wbg-nav-panel .wbg-menu-item__link,
.wbg-nav-panel .wbg-menu-item__toggle {
	display:            flex;
	align-items:        center;
	color:              #fff;
	font-size:          16px;
	text-decoration:    none;
	background:         transparent !important;
	border:             none !important;
	border-radius:      0 !important;
	box-shadow:         none !important;
	-webkit-appearance: none;
	appearance:         none;
	cursor:             pointer;
	text-align:         left;
}

/* Standalone Link (kein Untermenu) — volle Breite */
.wbg-menu-item:not(.wbg-menu-item--has-children) > .wbg-menu-item__link {
	width:   100%;
	padding: 13px 0;
}

/* Row-Container: Link + Arrow-Button nebeneinander */
.wbg-menu-item__row {
	display:     flex;
	align-items: stretch;
}

/* Link in Row: wächst, Arrow-Button bleibt klein */
.wbg-menu-item--has-children .wbg-menu-item__link {
	flex:    1;
	padding: 13px 0;
}

/* Arrow-Button: nur so breit wie nötig */
.wbg-menu-item__toggle {
	padding:     13px 4px 13px 16px;
	flex-shrink: 0;
}

.wbg-nav-panel .wbg-menu-item__link:hover { opacity: 0.75; text-decoration: none; }
.wbg-nav-panel .wbg-menu-item__toggle:hover { opacity: 0.75; background: transparent !important; }


/* ── Dropdown-Pfeil ─────────────────────────────────────────── */

.wbg-menu-item__arrow {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	width:           16px;
	height:          16px;
	flex-shrink:     0;
	color:           #fff;
	transition:      transform 0.25s ease;
	line-height:     1;
}

.wbg-menu-item__arrow i   { font-size: 13px; color: inherit; line-height: 1; }
.wbg-menu-item__arrow svg { width: 13px; height: 13px; fill: currentColor; display: block; }

/* Rotation beim Öffnen — ohne > da .wbg-menu-item__row dazwischen */
.wbg-menu-item--has-children.wbg-submenu--open .wbg-menu-item__toggle .wbg-menu-item__arrow {
	transform: rotate(180deg);
}


/* ── Untermenü ──────────────────────────────────────────────── */

.wbg-submenu {
	display:       none;
	border-top:    1px solid rgba(255, 255, 255, 0.1);
	background:    rgba(0, 0, 0, 0.18);
	padding:       4px 0;
	border-radius: 0 0 4px 4px;
}

.wbg-submenu--open > .wbg-submenu {
	display: block;
}

.wbg-menu-item--sub .wbg-menu-item__link {
	padding:   10px 16px !important;
	font-size: 14px;
	opacity:   0.9;
	width:     100% !important;
}

.wbg-menu-item--sub .wbg-menu-item__link:hover { opacity: 1; }


/* ── Schnellzugriff-Karten ──────────────────────────────────── */

.wbg-panel-cards {
	display:        flex;
	flex-direction: column;
	gap:            12px;
}

.wbg-panel-card {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	gap:             12px;
	background:      #fff;
	border-radius:   10px;
	padding:         16px 18px;
	text-decoration: none;
	box-shadow:      0 2px 10px rgba(0, 0, 0, 0.15);
	transition:      transform 0.2s ease, box-shadow 0.2s ease;
}

.wbg-panel-card:hover {
	transform:       translateY(-2px);
	box-shadow:      0 6px 18px rgba(0, 0, 0, 0.2);
	text-decoration: none;
}

.wbg-panel-card__body {
	display:        flex;
	flex-direction: column;
	gap:            4px;
	flex:           1;
	min-width:      0;
}

.wbg-panel-card__title {
	color:       #1a1a1a;
	font-size:   15px;
	font-weight: 600;
	line-height: 1.3;
}

.wbg-panel-card__desc {
	color:       #555;
	font-size:   13px;
	line-height: 1.4;
}

.wbg-panel-card__desc--phone {
	color:       #8B1A2D;
	font-weight: 500;
	font-size:   14px;
}

.wbg-panel-card__arrow {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	width:           20px;
	height:          20px;
	flex-shrink:     0;
	color:           #8B1A2D;
	font-size:       20px;
	line-height:     1;
}

.wbg-panel-card__arrow i   { font-size: 20px; color: inherit; line-height: 1; }
.wbg-panel-card__arrow svg { width: 20px; height: 20px; fill: currentColor; display: block; }


/* ── Body-Scroll sperren ────────────────────────────────────── */

body.wbg-panel--open {
	overflow: hidden;
}
