/* ==========================================================================
 * BSG Topbar – blauer Header-Balken (#34617a) mit klassischer Navigation.
 * Desktop: horizontales Menu, Hover-Dropdown fuer Dienstleistungen.
 * Mobile:  Burger rechts, Slide-Down-Menu.
 * ========================================================================== */

:root {
	--bsg-topbar-bg: #34617a;
	--bsg-topbar-bg-hover: #2a4e63;
	--bsg-topbar-fg: #ffffff;
	--bsg-topbar-accent: rgb(37, 182, 223);
	--bsg-topbar-height: 100px;
	--bsg-topbar-height-mobile: 70px;
}

/* Altes Responsive-Menu-Pro Burger komplett verstecken */
.rmp_menu_trigger,
[id^="rmp_menu_trigger"],
[id^="rmp-container"],
[id^="rmp-menu-wrap"],
.rmp-container,
.rmp-menu-trigger-container { display: none !important; }

/* Header-Abstand vom Body reservieren (kein Overlay auf Inhalt) */
body { padding-top: var(--bsg-topbar-height); }
@media (max-width: 1023px) {
	body { padding-top: var(--bsg-topbar-height-mobile); }
}

/* Container */
.bsg-topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	background: var(--bsg-topbar-bg);
	color: var(--bsg-topbar-fg);
	z-index: 9999;
	font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* Inner-Container ist deckungsgleich mit dem Content-Container von Total-Theme
 * (.container.wpex-clr → max-width 1200px, width 90%), damit das Logo buendig
 * mit dem Fliesstext links unter dem Header sitzt. */
.bsg-topbar__inner {
	max-width: 1200px;
	width: 90%;
	margin: 0 auto;
	padding: 0;
	height: var(--bsg-topbar-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* Logo */
.bsg-topbar__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}
.bsg-topbar__logo img {
	height: 64px;
	width: auto;
	display: block;
}

/* Desktop-Navigation */
.bsg-topbar__nav { display: block; }

.bsg-topbar__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.bsg-topbar__menu li {
	position: relative;
	list-style: none;
}
.bsg-topbar__menu > li > a {
	display: inline-block;
	padding: 10px 16px;
	color: var(--bsg-topbar-fg);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background-color 0.15s ease, color 0.15s ease;
	border-radius: 3px;
}
.bsg-topbar__menu > li > a:hover,
.bsg-topbar__menu > li.current-menu-item > a,
.bsg-topbar__menu > li.current-menu-parent > a,
.bsg-topbar__menu > li.current-menu-ancestor > a {
	background: transparent;
	color: var(--bsg-topbar-accent);
}

/* Submenu (Hover-Dropdown fuer Dienstleistungen) */
.bsg-topbar__menu li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	margin-left: 8px;
	width: 0; height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	vertical-align: middle;
}
.bsg-topbar__menu ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--bsg-topbar-bg);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	box-shadow: 0 8px 18px rgba(0,0,0,0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 10000;
}
.bsg-topbar__menu li.menu-item-has-children:hover > ul.sub-menu,
.bsg-topbar__menu li.menu-item-has-children:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.bsg-topbar__menu ul.sub-menu li { display: block; }
.bsg-topbar__menu ul.sub-menu a {
	display: block;
	padding: 10px 20px;
	color: var(--bsg-topbar-fg);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transition: background-color 0.15s ease;
}
.bsg-topbar__menu ul.sub-menu a:hover,
.bsg-topbar__menu ul.sub-menu li.current-menu-item > a {
	background: transparent;
	color: var(--bsg-topbar-accent);
}

/* Burger */
.bsg-topbar__burger {
	display: none;
	background: transparent;
	border: 0;
	padding: 8px;
	cursor: pointer;
	width: 44px;
	height: 44px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	color: var(--bsg-topbar-fg);
}
.bsg-topbar__burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.bsg-topbar.is-open .bsg-topbar__burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.bsg-topbar.is-open .bsg-topbar__burger span:nth-child(2) { opacity: 0; }
.bsg-topbar.is-open .bsg-topbar__burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.bsg-topbar__drawer {
	display: none;
	background: var(--bsg-topbar-bg);
	border-top: 1px solid rgba(255,255,255,0.08);
}
.bsg-topbar__drawer[hidden] { display: none !important; }

.bsg-topbar__drawer-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	max-height: calc(100vh - var(--bsg-topbar-height-mobile));
	overflow-y: auto;
}
.bsg-topbar__drawer-menu li { list-style: none; }
.bsg-topbar__drawer-menu a {
	display: block;
	padding: 12px 24px;
	color: var(--bsg-topbar-fg);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-top: 1px solid rgba(255,255,255,0.06);
}
.bsg-topbar__drawer-menu > li:first-child > a { border-top: 0; }
.bsg-topbar__drawer-menu a:hover,
.bsg-topbar__drawer-menu li.current-menu-item > a,
.bsg-topbar__drawer-menu li.current-menu-parent > a,
.bsg-topbar__drawer-menu li.current-menu-ancestor > a {
	background: transparent;
	color: var(--bsg-topbar-accent);
}
.bsg-topbar__drawer-menu ul.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	background: rgba(0,0,0,0.15);
}
.bsg-topbar__drawer-menu ul.sub-menu a {
	padding-left: 40px;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
}

/* Breakpoint: Burger ab <1024px, sonst horizontales Menu */
@media (max-width: 1023px) {
	.bsg-topbar__inner { height: var(--bsg-topbar-height-mobile); width: auto; max-width: none; padding: 0 16px; }
	.bsg-topbar__logo img { height: 44px; }
	.bsg-topbar__nav { display: none; }
	.bsg-topbar__burger { display: inline-flex; }
	.bsg-topbar.is-open .bsg-topbar__drawer { display: block; }
	.bsg-topbar.is-open .bsg-topbar__drawer[hidden] { display: block !important; }
}

/* Fix: Total-Theme "hasnt-overlay-header" gibt gelegentlich negatives margin-top auf .site-content-inner o.ae. – wir wollen den Body-Padding nicht ueberdecken. */
.wpex-full-width-header,
.site-header { display: none !important; }

/* ==========================================================================
 * Video-Container (Hero, Ueber uns) – Endlosschlaufe ohne Play/Pause.
 * ========================================================================== */
.bsg-hero-video,
.bsg-about-video {
	position: relative;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	background: #000;
}
.bsg-hero-video video,
.bsg-about-video video {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	pointer-events: none;
}
.bsg-about-video {
	border-radius: 12px;
}

/* Hero-Overlay: Logo-Kasten mit H1 rechts ueber dem Video, wie im
 * urspruenglichen RevSlider (weisser Kasten mit abgerundeten linken Ecken). */
.bsg-hero-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0;
}
.bsg-hero-card {
	pointer-events: auto;
	background: #ffffff;
	border-radius: 20px 0 0 20px;
	padding: 40px 60px 44px 60px;
	max-width: 500px;
	width: 40%;
	min-width: 360px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.bsg-hero-card__logo {
	width: 100%;
	max-width: 340px;
	height: auto;
	display: block;
	margin-bottom: 24px;
}
.bsg-hero-card__title {
	font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
	color: #25b6df;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
}

/* Kleinere Screens: Kasten volle Breite unten, kein rechter Rand-Radius */
@media (max-width: 1023px) {
	.bsg-hero-card {
		width: 92%;
		max-width: 460px;
		min-width: 0;
		padding: 28px 36px 32px;
		border-radius: 18px;
	}
	.bsg-hero-overlay { justify-content: center; padding: 0 16px; }
	.bsg-hero-card__logo { max-width: 240px; margin-bottom: 18px; }
	.bsg-hero-card__title { font-size: 20px; }
}
@media (max-width: 600px) {
	.bsg-hero-card { padding: 22px 24px 26px; }
	.bsg-hero-card__logo { max-width: 200px; margin-bottom: 14px; }
	.bsg-hero-card__title { font-size: 17px; }
}

/* ==========================================================================
 * FluentForm auf /kontakt/ – Submit-Button in Header-Farbe (#34617a)
 * ========================================================================== */
#fluentform_4 .ff-btn-submit,
#fluentform_4 .ff-btn.ff-btn-submit {
	background-color: var(--bsg-topbar-bg) !important;
	color: #ffffff !important;
	border-color: var(--bsg-topbar-bg) !important;
}
#fluentform_4 .ff-btn-submit:hover,
#fluentform_4 .ff-btn.ff-btn-submit:hover {
	background-color: var(--bsg-topbar-bg-hover) !important;
	border-color: var(--bsg-topbar-bg-hover) !important;
}

