/* =========================================================
   OWLWAYS — ACCOUNTSWITCHER
   Herbstdesign
   Vollständiger Ersatz für die bisherige Accountswitcher-CSS.
   Nutzt ausschließlich --owlh-* Variablen.
========================================================= */

#accountswitcher_header {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

#accountswitcher_header_popup {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 9999;
	display: none;
	min-width: 220px;
	padding: 8px 0 0;
	opacity: 1;
}

#accountswitcher_header_popup ul {
	position: relative;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 7px;
	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border);
	box-shadow: 0 8px 24px var(--owlh-shadow-deep);
	line-height: 1.35;
	text-align: left !important;
	text-transform: none;
	white-space: normal;
}

#accountswitcher_header_popup ul::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 18px;
	width: 10px;
	height: 10px;
	transform: rotate(45deg);
	background: var(--owlh-surface-raised);
	border-top: 1px solid var(--owlh-border);
	border-left: 1px solid var(--owlh-border);
}

[id*="profile_link_"],
.as_head_drop,
.as_head_userbit {
	list-style: none;
}

[id*="profile_link_"] {
	margin: 0;
	padding: 0;
}

[id*="profile_link_"] > a,
.as_head_drop > a,
.as_head_userbit > a {
	min-height: 34px;
	padding: 5px 7px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--owlh-text-soft) !important;
	font-size: 10px;
	line-height: 1.35;
	text-decoration: none !important;
}

[id*="profile_link_"] > a:hover,
.as_head_drop > a:hover,
.as_head_userbit > a:hover {
	background: var(--owlh-surface-soft);
	color: var(--owlh-accent) !important;
}

[id*="profile_link_"] > a > img,
.as_head_drop > img,
.as_head_userbit > img,
.as_header > img,
.as_header > li > img,
.as_sidenav ul li img {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	object-fit: cover;
	border: 1px solid var(--owlh-border);
	border-radius: 50%;
}

.as_head_drop {
	margin: 0;
	padding: 0;
	white-space: nowrap;
	font-size: 10px;
}

.as_head_userbit {
	margin: 0;
	padding: 0;
}

.as_header {
	min-width: 220px;
	margin-top: 7px !important;
	padding-top: 7px !important;
	clear: both;
	border-top: 1px solid var(--owlh-border-soft);
	color: var(--owlh-text);
}

.acclist_outer {
	width: 100%;
	float: left;
	background: var(--owlh-surface);
	border: 1px solid var(--owlh-border);
	color: var(--owlh-text);
	text-align: center;
}

.acclist_att {
	padding-left: 20px;
}

.acclist_mast {
	padding-left: 30px;
}

.acclist_att > img,
.acclist_mast > img,
.acclist_card_mast > img {
	width: auto;
	height: 44px;
	object-fit: cover;
}

.acclist_card_mast {
	width: 100%;
	float: left;
	padding-right: 0;
	border-bottom: 1px solid var(--owlh-border);
}

.acclist_card_att {
	width: 250px;
	float: left;
	text-align: center;
}

.acclist_card_hidden {
	width: 250px;
	padding-top: 30px;
	float: left;
	border: none;
	text-align: center;
}

.acclist_card_att > img {
	width: auto;
	height: 100px;
	object-fit: cover;
}

.profile_card_mast,
.profile_card_att {
	padding: 5px;
	background: transparent;
	border: none;
	color: var(--owlh-text);
}

.as_menu-arrow {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 10;
	width: 10px;
	height: 100%;
	background: var(--owlh-accent-soft);
	border: 5px solid transparent;
	opacity: .35;
	transition: opacity .4s ease .4s;
}

.as_sidenav {
	position: fixed;
	z-index: 10000;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	padding-top: 60px;
	overflow-x: hidden;
	background: var(--owlh-nav-bg);
	border-right: 1px solid var(--owlh-border-strong);
	box-shadow: 12px 0 30px var(--owlh-shadow-deep);
	color: var(--owlh-nav-text);
	transition: width .5s ease;
}

.as_sidenav a {
	padding: 8px 12px 8px 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--owlh-nav-muted) !important;
	font-size: 13px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.as_sidenav a:hover {
	background: var(--owlh-accent-soft);
	color: var(--owlh-hero-text) !important;
}

.as_sidenav .closebtn {
	position: absolute;
	top: 7px;
	right: 18px;
	margin-left: 50px;
	color: var(--owlh-accent) !important;
	font-family: Arial, sans-serif;
	font-size: 30px;
	line-height: 1;
}

.as_sidenav .closebtn:hover {
	color: var(--owlh-accent-hover) !important;
}

.as_sidenav ul {
	margin: 22px 0 0;
	padding: 0 10px;
}

.as_sidenav ul li {
	width: 100%;
	margin: 0;
	padding: 3px 0;
	display: block;
	list-style: none;
	border-bottom: 1px solid var(--owlh-border-soft);
	color: var(--owlh-nav-text);
	font-size: 12px;
	line-height: 1.4;
	text-align: left;
}

.as_sidenav ul li:last-child {
	border-bottom: 0;
}

.as_sidenav ul li::before {
	content: "";
	margin-right: 0;
}

#accountswitcher_header_popup a,
.acclist_outer a,
.profile_card_mast a,
.profile_card_att a {
	color: var(--owlh-text-soft);
	text-decoration: none;
}

#accountswitcher_header_popup a:hover,
.acclist_outer a:hover,
.profile_card_mast a:hover,
.profile_card_att a:hover {
	color: var(--owlh-accent);
}

#accountswitcher_header_popup a:focus-visible,
.as_sidenav a:focus-visible {
	outline: 2px solid var(--owlh-accent);
	outline-offset: 2px;
}

@media screen and (max-height: 450px) {
	.as_sidenav {
		padding-top: 15px;
	}

	.as_sidenav a {
		font-size: 12px;
	}
}

@media screen and (max-width: 600px) {
	#accountswitcher_header_popup {
		left: auto;
		right: 0;
		min-width: 210px;
	}

	#accountswitcher_header_popup ul {
		min-width: 210px;
	}

	#accountswitcher_header_popup ul::before {
		left: auto;
		right: 18px;
	}
}
