.cbq52 {
	--cbq52-red: #B41232;
	--cbq52-yellow: #FFBD11;
	--cbq52-cream: #F2EFDF;
	--cbq52-patty: #2C2019;
	position: fixed;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 65;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	font-family: Archivo, Arial, sans-serif;
	-webkit-tap-highlight-color: transparent;
}

.cbq52__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.cbq52__item {
	margin: 0;
	padding: 0;
}

/* .cbq52 davor, damit die Button-Regeln des Themes nicht greifen */
.cbq52 .cbq52__toggle,
.cbq52 .cbq52__toggle:hover,
.cbq52 .cbq52__toggle:focus,
.cbq52 .cbq52__link {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	margin: 0;
	padding: 5px;
	border: 2px solid rgba(242, 239, 223, 0.22);
	border-radius: 16px;
	background: var(--cbq52-patty);
	color: var(--cbq52-cream);
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
	transition: transform 0.2s ease, border-color 0.2s ease;
	font: inherit;
	line-height: 1;
}

.cbq52 .cbq52__toggle,
.cbq52 .cbq52__toggle:hover,
.cbq52 .cbq52__toggle:focus {
	border-color: rgba(255, 189, 17, 0.55);
	min-height: 0;
	width: auto;
	height: auto;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
}

.cbq52__tile {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--cbq52-red);
	transition: background-color 0.2s ease;
}

.cbq52__tile svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--cbq52-yellow);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.2s ease;
}

.cbq52__tile--burger svg {
	width: 34px;
	height: 34px;
	stroke: none;
}

.cbq52__label {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	max-width: 0;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	text-align: right;
	transition: max-width 0.35s ease, opacity 0.2s ease, padding 0.35s ease;
}

.cbq52__title {
	font-family: Barlow, Impact, sans-serif;
	font-weight: 900;
	font-size: 17px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--cbq52-cream);
}

.cbq52__sub {
	font-size: 12px;
	font-weight: 700;
	color: var(--cbq52-yellow);
}

/* Aufgeklappt: Hover, Tastatur-Fokus oder per Klick geöffnet */
.cbq52:hover .cbq52__label,
.cbq52:focus-within .cbq52__label,
.cbq52.is-open .cbq52__label {
	max-width: 240px;
	padding: 0 12px 0 10px;
	opacity: 1;
}

.cbq52__item:nth-child(1) .cbq52__label { transition-delay: 0.03s; }
.cbq52__item:nth-child(2) .cbq52__label { transition-delay: 0.06s; }
.cbq52__item:nth-child(3) .cbq52__label { transition-delay: 0.09s; }
.cbq52__item:nth-child(4) .cbq52__label { transition-delay: 0.12s; }

.cbq52__link:hover,
.cbq52__link:focus-visible {
	transform: translateX(-3px);
	border-color: var(--cbq52-yellow);
}

.cbq52__link:hover .cbq52__tile,
.cbq52__link:focus-visible .cbq52__tile {
	background: var(--cbq52-yellow);
}

.cbq52__link:hover .cbq52__tile svg,
.cbq52__link:focus-visible .cbq52__tile svg {
	stroke: var(--cbq52-red);
}

.cbq52__toggle:focus-visible,
.cbq52__link:focus-visible {
	outline: 3px solid var(--cbq52-yellow);
	outline-offset: 3px;
}

/* Handy, Touch-Geräte und schmale Desktop-Fenster: nur der Burger-Button unten rechts,
   Tippen/Klicken öffnet die Liste (verdeckt sonst Inhalte am rechten Rand, z. B. Preise) */
@media (max-width: 1279px), (hover: none) {
	.cbq52 {
		top: auto;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		transform: none;
		flex-direction: column-reverse;
	}

	.cbq52__tile--burger {
		width: 48px;
		height: 48px;
	}

	.cbq52__tile--burger svg {
		width: 38px;
		height: 38px;
	}

	.cbq52__toggle .cbq52__label {
		display: none;
	}

	.cbq52__list {
		visibility: hidden;
		opacity: 0;
		transform: translateY(12px);
		pointer-events: none;
		transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
	}

	.cbq52.is-open .cbq52__list {
		visibility: visible;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s;
	}

	.cbq52:hover .cbq52__label,
	.cbq52:focus-within .cbq52__label {
		max-width: 0;
		padding: 0;
		opacity: 0;
	}

	.cbq52.is-open .cbq52__list .cbq52__label {
		max-width: 240px;
		padding: 0 12px 0 10px;
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cbq52 *,
	.cbq52 *::before,
	.cbq52 *::after {
		transition: none !important;
	}
}

@media print {
	.cbq52 {
		display: none;
	}
}
