/* ═══════════════════════════════════════════════════════════
   ANTI-FOUC / ANTI-RAW-HTML-FLASH
   Verhindert, dass Sidebar-Inhalte kurz ungestylt sichtbar sind
   ═══════════════════════════════════════════════════════════ */

html.sidebar-loading #sidebar-left,
html.sidebar-loading #sidebar-right,
html.sidebar-loading #sidebar-right-modal {
	visibility: hidden;
	opacity: 0;
}

html.sidebar-ready #sidebar-left,
html.sidebar-ready #sidebar-right {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.15s ease;
}


/* ═══════════════════════════════════════════════════════════
   SIDEBAR – Fixierte Buttons links und rechts am Bildschirmrand
   ───────────────────────────────────────────────────────────
   Links:  Zwei vertikal gestapelte Buttons
   Rechts: Icon-Leiste
   ═══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────
   LINKE SIDEBAR – Wrapper
───────────────────────────────────────────────────────── */

#sidebar-left {
	position: fixed;
	left: 0;
	top: calc(50vh - 55px);
	z-index: 5;
	width: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#sidebar-left .box {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	cursor: pointer;
	text-decoration: none;
	border: none;
	overflow: hidden;
}


/* ── Vertikaler Text-Streifen ── */

#sidebar-left .box .pill {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0.9rem 0.55rem;
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: padding 0.2s ease, background 0.2s ease;
	flex-shrink: 0;
}

#sidebar-left .box .fa {
	font-size: 13px;
	transform: rotate(180deg);
}


/* ── Ausfahrendes Info-Panel ── */

#sidebar-left .box .info-panel {
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0;
	transition: max-width 0.3s ease, padding 0.3s ease;
	color: #fff;
	font-family: 'DM Sans', sans-serif;
}

#sidebar-left .box:hover .info-panel {
	max-width: 200px;
	padding: 0.8rem 1rem;
}

#sidebar-left .box .info-panel .info-title {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
	white-space: nowrap;
}

#sidebar-left .box .info-panel .info-text {
	font-size: 0.68rem;
	opacity: 0.8;
	line-height: 1.5;
	white-space: nowrap;
}


/* ── Farben linke Sidebar ── */

#sidebar-left .box:first-child .pill {
	background: #5e87b6;
	border-radius: 0 4px 0 0;
}

#sidebar-left .box:first-child .info-panel {
	background: #7aa3c8;
}

#sidebar-left .box:first-child:hover .pill {
	background: #6d1a34;
	padding: 0.9rem 0.9rem;
}

#sidebar-left .box:first-child:hover .info-panel {
	background: #fff;
	color: #000;
	border: 1px solid #6d1a34;
}

#sidebar-left .box:last-child .pill {
	background: #7a5c3a;
	border-radius: 0 0 4px 0;
}

#sidebar-left .box:last-child .info-panel {
	background: #7a5c3a;
}

#sidebar-left .box:last-child:hover .pill {
	background: #5a3f24;
	padding: 0.9rem 0.9rem;
}

#sidebar-left .box:last-child:hover .info-panel {
	background: #5a3f24;
}


/* ─────────────────────────────────────────────────────────
   RECHTE SIDEBAR – Wrapper
───────────────────────────────────────────────────────── */

#sidebar-right {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 2px;
	transform: translateY(-50%);
}


/* ── Icon-Button ── */

#sidebar-right .box {
	position: relative;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #5e87b6;
	color: #fff;
	overflow: visible;
	cursor: pointer;
	transition: background 0.2s ease;
	float: none;
	margin-bottom: 0;
	padding: 0;
}

#sidebar-right .box:first-child {
	border-radius: 4px 0 0 0;
}

#sidebar-right .box:last-child {
	border-radius: 0 0 0 4px;
}

#sidebar-right .box:hover {
	background: #6d1a34;
}


/* ── Icon – beim Hover ausblenden ── */

#sidebar-right .box .fa,
#sidebar-right .box > i,
#sidebar-right .box a .fa,
#sidebar-right .box a > i {
	font-size: 15px;
	opacity: 1;
	transition: opacity 0.15s ease;
	position: relative;
	z-index: 1;
}

#sidebar-right .box:hover .fa,
#sidebar-right .box:hover > i,
#sidebar-right .box:hover a .fa,
#sidebar-right .box:hover a > i {
	opacity: 0;
}


/* ── Link-Wrapper ── */

#sidebar-right .box a {
	color: #fff !important;
	text-decoration: none;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}


/* ── Label fährt absolut nach links heraus ── */

#sidebar-right .box .sr-label {
	position: absolute;
	right: 38px;
	top: 0;
	height: 100%;
	display: flex;
	align-items: center;
	background: #6d1a34;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
	max-width: 0;
	overflow: hidden;
	padding: 0;
	transition: max-width 0.25s ease, padding 0.25s ease;
	border-radius: 4px 0 0 4px;
}

#sidebar-right .box:first-child .sr-label {
	border-radius: 4px 0 0 0;
}

#sidebar-right .box:last-child .sr-label {
	border-radius: 0 0 0 4px;
}

#sidebar-right .box:hover .sr-label {
	max-width: 120px;
	padding: 0 0.7rem;
}


/* ─────────────────────────────────────────────────────────
   TELEFON-MODAL
   Erscheint beim Hover auf #showinfo_phone.
   Muss im HTML direkt nach #showinfo_phone stehen.
───────────────────────────────────────────────────────── */

#sidebar-right-modal {
	display: none;
	position: fixed;
	top: 50%;
	right: 43px;
	z-index: 1010;
	width: 300px;
	background: #fff;
	color: #2d2d2a;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.85rem;
	line-height: 1.7;
	padding: 1.5rem;
	border: 1px solid #6d1a34;
	border-right: 3px solid #6d1a34;
	border-radius: 4px 0 0 4px;
	transform: translateY(-50%);
}

#showinfo_phone:hover ~ #sidebar-right-modal,
#sidebar-right-modal:hover {
	display: block;
}

#sidebar-right-modal a {
	color: #5e87b6;
	text-decoration: none;
}

#sidebar-right-modal a:hover {
	color: #6d1a34;
}

#sidebar-right-modal .modal-phone {
	font-size: 1.1rem;
	font-weight: 500;
	color: #6d1a34;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 1rem;
}

#sidebar-right-modal .modal-section {
	margin-bottom: 0.8rem;
}

#sidebar-right-modal .modal-section strong {
	display: block;
	font-weight: 500;
	margin-bottom: 0.2rem;
	color: #2d2d2a;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE – Sidebars komplett ausblenden
   Muss ganz am Ende der Datei stehen
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
	#sidebar-left,
	#sidebar-right,
	#sidebar-right-modal,
	html.sidebar-loading #sidebar-left,
	html.sidebar-loading #sidebar-right,
	html.sidebar-loading #sidebar-right-modal,
	html.sidebar-ready #sidebar-left,
	html.sidebar-ready #sidebar-right,
	html.sidebar-ready #sidebar-right-modal {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}
}