/*  ==================================================================
	HIER KOMMEN DEINE AUSGELAGERTEN CSS BEFEHLE REIN =================
	==================================================================  */

/* Fixierter Header: Anker-Sprungziele nicht unter dem Header verstecken */
html {
	scroll-padding-top: 100px;
}


/*  ==================================================================
	HEADER (Theme Builder, Klassen .bh-header / .bh-nav)
	==================================================================  */

/* Schlanke Navigation: Divi setzt standardmaessig 31px Innenabstand pro Link */
.bh-header .bh-nav .et-menu > li > a {
	position: relative;
	padding: 14px 0;
	transition: color .25s ease, padding .35s ease;
}

/* Hover: goldene Linie waechst aus der Mitte */
.bh-header .bh-nav .et-menu > li > a::after {
	content: "";
	position: absolute;
	left: 50%;
	top: auto !important; /* Divi setzt top:50% !important fuer Menue-Pfeile */
	transform: none;
	bottom: 7px;
	width: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--gcid-primary-color);
	transition: width .3s ease, left .3s ease, bottom .35s ease;
}
.bh-header .bh-nav .et-menu > li > a:hover::after,
.bh-header .bh-nav .et-menu > li > a:focus-visible::after {
	left: 0;
	width: 100%;
}

/* Weiche Uebergaenge fuer den Schrumpf-Effekt */
.bh-header .et_pb_row {
	transition: padding .35s ease, max-width .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.bh-header .et_pb_menu__logo img {
	transition: width .35s ease, opacity .2s ease;
}

/* Zustand nach dem Scrollen (Klasse wird per js/custom.js gesetzt) */
body.bh-scrolled .bh-header .et_pb_row {
	padding-top: 2px !important;
	padding-bottom: 2px !important;
	max-width: clamp(760px, 30vw + 330px, 900px) !important;
	background-color: rgba(247, 247, 247, .97) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18) !important;
}
body.bh-scrolled .bh-header .bh-nav .et-menu > li > a {
	padding: 12px 0;
}
body.bh-scrolled .bh-header .bh-nav .et-menu > li > a::after {
	bottom: 5px;
}
body.bh-scrolled .bh-header .et_pb_button {
	padding: 5px 14px !important;
}
body.bh-scrolled .bh-header .et_pb_menu__logo img,
body.bh-scrolled .bh-header .et_pb_menu__logo,
body.bh-scrolled .bh-header .et_pb_menu__logo-wrap {
	width: 34px !important;
	max-width: 34px !important;
}

/* Menuepunkte am Desktop immer einzeilig */
.bh-header .bh-nav .et-menu {
	flex-wrap: nowrap;
}

/* Telefonnummer und Button im Header nie umbrechen */
.bh-header .et_pb_icon_list_text,
.bh-header .et_pb_button {
	white-space: nowrap;
}

/* Menuepunkt "Anfrage stellen" (CSS-Klasse bh-menu-cta im WP-Menue):
   auf Desktop ausgeblendet (dort eigener Button), im Hamburger-Menue als Button */
.bh-header .et_pb_menu__menu .bh-menu-cta {
	display: none !important;
}
.bh-header .et_mobile_menu li.bh-menu-cta {
	padding: 14px 0 18px;
	border: 0;
}
.bh-header .et_mobile_menu li.bh-menu-cta a {
	display: block;
	text-align: center;
	padding: 13px 16px !important;
	background: transparent !important;
	border: 1px solid var(--gcid-primary-color);
	border-radius: 6px;
	color: #1c1c1c !important;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	transition: background-color .25s ease, color .25s ease;
}
.bh-header .et_mobile_menu li.bh-menu-cta a:hover {
	background: var(--gcid-primary-color) !important;
	color: #1c1c1c !important;
}

/* Mobile-Menue: abgerundet passend zur Leiste */
.bh-header .bh-nav .et_mobile_menu {
	border-radius: 0 0 16px 16px;
	overflow: hidden;
}

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