/**
 * Custom Header Styles - optimiert für Performance
 * Ausgelagert aus header.php für besseres Caching
 */

/* Fibo Search Overlay */
.fibo_search_outer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	z-index: 999999;
	padding-top: 100px;
}

.fibo_search_form_container {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding: 40px;
}

.fibo_close_search_field {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 32px;
	height: 32px;
	cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center;
	background-size: 24px;
}

#fibo_search_toggle {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	margin-right: 15px;
}

#fibo_search_icon {
	display: inline-flex;
	align-items: center;
}

.header-right {
	display: flex;
	align-items: center;
}

.header-right .cart-customlocation {
	position: relative;
}

/* Trusted Shops Widget Styles */
.trusted-shops-widget-mobile {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: white;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 999998;
	padding: 8px 15px;
}

.ts-widget-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ts-logo {
	display: flex;
	align-items: center;
}

.ts-logo svg {
	width: 24px;
	height: 24px;
}

.ts-widget-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	flex-grow: 1;
}

.ts-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
}

.ts-stars {
	color: #FFDC0F;
	font-size: 16px;
	letter-spacing: -2px;
}

.ts-score {
	font-weight: bold;
	font-size: 16px;
}

.ts-label {
	font-size: 14px;
}

.ts-close {
	font-size: 24px;
	cursor: pointer;
	padding: 0 5px;
}

/* Nur auf Mobilgeräten anzeigen */
@media only screen and (max-width: 980px) {
	.trusted-shops-widget-mobile {
		display: block;
	}
	
	/* Verschiebe den Header nach unten, um Platz für das Widget zu schaffen */
	#main-header {
		top: 41px !important;
	}
}

/* Mobile Menu Warenkorb Icon - nur sichtbar bis 768px */
.mobmenu .mobmenur-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
}

.mobile-menu-cart {
	position: relative;
	display: block;
	width: 35px;
	height: 35px;
	text-decoration: none;
	padding: 5px;
}

.mobile-menu-cart-icon {
	width: 25px;
	height: 25px;
	display: block;
	filter: brightness(0) invert(1);
}

.mobile-menu-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	background: #30c553;
	color: white;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	font-weight: bold;
	display: none;
}

.mobile-menu-cart-count:not(:empty) {
	display: block;
}

/* Verstecke das Mobile Menu und damit auch das Icon bei Bildschirmbreiten > 768px */
@media (min-width: 769px) {
	.mobmenu {
		display: none !important;
	}
}

/* Stelle sicher dass das Mobile Menu bei kleineren Bildschirmen sichtbar ist */
@media (max-width: 768px) {
	.mobmenu {
		display: block !important;
	}
}

/* B2B Seiten-Widget (floating) */
.b2b-side-widget {
	position: fixed;
	right: 90px;
	bottom: 20px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #0083c4;
	color: #ffffff;
	text-decoration: none;
	padding: 12px 16px;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	font-weight: 600;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.b2b-side-widget:hover {
	transform: translateY(-2px);
	background: #0072ac;
	box-shadow: 0 12px 24px rgba(0,0,0,0.20);
}

.b2b-side-widget__icon {
	width: 20px;
	height: 20px;
	display: inline-block;
}

.b2b-side-widget__text {
	line-height: 1;
	display: inline-flex;
	flex-direction: column;
}

.b2b-side-widget__label {
	font-size: 14px;
}

.b2b-side-widget__sub {
	font-size: 11px;
	opacity: .85;
	font-weight: 500;
}

