/* CERA Sidebar – Grundlayout. Farben/Breiten kommen als CSS-Variablen aus den Plugin-Einstellungen. */
.cs-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: var(--cs-w, var(--cs-w-closed, 64px));
	display: flex;
	flex-direction: column;
	background: var(--cs-bg, #766a5e);
	color: var(--cs-text, #fff);
	box-shadow: 0 0 8px rgba(90, 90, 90, .2);
	z-index: 10001;
	overflow: hidden;
}
html.cs-anim .cs-sidebar,
html.cs-anim.cs-active body,
html.cs-anim .cs-label { transition: width .4s ease, margin-left .4s ease, opacity .3s ease; }

/* Scrollbereich (Menue) */
.cs-scroll {
	flex: 1 1 auto;
	min-height: 0;
	padding: var(--cs-top, 60px) 0 64px;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	touch-action: pan-y;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.cs-scroll::-webkit-scrollbar { display: none; }
.cs-scroll .sp-module, .cs-scroll .sp-module-content, .cs-scroll .module-ct { margin: 0; padding: 0; }
.cs-scroll ul { margin: 0; padding: 0; list-style: none; }

/* Hinweis auf weitere Eintraege: Verlauf ueber dem Pfeil */
.cs-sidebar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 84px;
	background: linear-gradient(to top, var(--cs-bg, #766a5e) 30%, transparent);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s;
}
.cs-sidebar.cs-more::after { opacity: 1; }

/* Eintraege */
.cs-sidebar li { position: relative; margin: 0; list-style: none; }
.cs-sidebar li a {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 40px;
	padding: 0 7px;
	box-sizing: border-box;
	color: var(--cs-text, #fff);
	text-decoration: none;
	transition: background .3s ease, color .3s ease;
}
.cs-sidebar li a i {
	flex: 0 0 50px;
	min-width: 50px;
	height: 40px;
	font-size: 18px;
	line-height: 40px;
	text-align: center;
	color: inherit;
}
.cs-sidebar li a .links_name,
.cs-sidebar li a .cs-label {
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
	color: inherit;
	opacity: 0;
	pointer-events: none;
}
html.cs-open .cs-sidebar li a .links_name,
html.cs-open .cs-sidebar li a .cs-label { opacity: 1; pointer-events: auto; }
.cs-sidebar li .tooltip { display: none !important; }
.cs-sidebar li a:hover,
.cs-sidebar li a:focus-visible { background: var(--cs-hover-bg, #f1f1f1); color: var(--cs-hover-text, #7f7f7f); outline: 0; }
.cs-sidebar li.active { background: var(--cs-active-bg, #fff); }
.cs-sidebar li.active a,
.cs-sidebar li.active a:hover { color: var(--cs-active-text, #766a5e); }
.cs-sidebar li.active a:hover { background: var(--cs-active-bg, #fff); }
.cs-sidebar li a:hover::before,
.cs-sidebar li.active a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -5px;
	border: 5px solid transparent;
	border-left-color: currentColor;
	border-right: 0;
}
.cs-sidebar .separator {
	display: inline-block;
	width: 33px;
	margin: 16px;
	box-sizing: border-box;
	border-top: 1px solid var(--cs-text, #fff);
	line-height: 1px;
}

/* Pfeil-Button */
.cs-toggle {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 18px;
	border: 0;
	background: transparent;
	color: var(--cs-text, #fff);
	opacity: .75;
	cursor: pointer;
}
.cs-toggle:hover, .cs-toggle:focus-visible { opacity: 1; outline: 0; }
html.cs-open .cs-toggle { justify-content: flex-end; }
.cs-chevron {
	width: 12px;
	height: 12px;
	margin: 0 3px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);          /* > : ausfahren */
	transition: transform .3s;
}
html.cs-open .cs-chevron { transform: rotate(-135deg); }   /* < : einfahren */

/* Schwebender Tooltip (per JS, wird nicht vom Scrollbereich abgeschnitten) */
.cs-tip {
	position: fixed;
	z-index: 10002;
	padding: 6px 12px;
	border-radius: 4px;
	background: #7f7f7f;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 0 3px rgba(0, 0, 0, .3);
	pointer-events: none;
	transform: translateY(-50%);
}
.cs-tip::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 50%;
	margin-top: -5px;
	border: 5px solid transparent;
	border-right-color: #7f7f7f;
	border-left: 0;
}

@media (prefers-reduced-motion: reduce) {
	html.cs-anim .cs-sidebar,
	html.cs-anim.cs-active body,
	html.cs-anim .cs-label,
	.cs-chevron { transition: none; }
}
