body.menu-open #menu-overlay {
    opacity: 1;
    visibility: visible;
}

#header {
	display: block;
	position: fixed;
	top: 0px;
	width: 100vw;
	height: 140px;
	z-index: 200;
	background: transparent;
    transition:
	   	height .35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}

.start #header {
	height: 140px;
}

#header.header-active {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 4px 20px rgba(0,0,0,.08);
}
#header .inside {
	max-width: var(--max_width);
	padding: 30px var(--padding_l_r);
	display: flex;
	justify-content: space-between;
	margin: auto;
	transition:
	    	padding .35s ease;
}
.start #header .inside {
}

#header.header-small .inside {
	padding: 0px var(--padding_l_r);
	
}
#header .logo {
	position: relative;
	width: 150px;
	height: 150px;
	top: 0px;
	transition:
		top .35s ease,
		left .35s ease,
		width .35s ease,
	    	height .35s ease,
	    	transform .35s ease;
	left: 10vw;
	will-change: top, left, width, height, transform;
}
#header .logo a {
	display: block;
	position: relative;
	width: 150px;
	height: 150px;
	background: url(../assets/Logo-Huebner-Dynamics.png) center center / contain no-repeat;
	transition:
		top .35s ease,
		width .35s ease,
	    	height .35s ease,
	    	transform .35s ease;
	will-change: top, width, height, transform;
}

.start #header .logo {
	width: 150px;
	height: 150px;
}
.start #header .logo a {
	width: 150px;
	height: 150px;
}

#header.header-small {
    height: 70px;
}

#header.header-small .logo,
#header.header-small .logo a {
	top: 4px;
	width: 60px !important;
    height: 60px !important;
}

#header .mod_navigation {
	margin-top: 10px;
	transition:
    	top .35s ease,
}
#header.header-small .mod_navigation {
	margin-top: 5px;

}

#menu-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.45);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;

    z-index: 90;
    pointer-events: none;
}

.mod_navigation li {
	display: inline-block;
	padding-left: 80px;
	color: #000000;
	font-size: 15px;
}
.mod_navigation li a {
	color: inherit;
	font-size: inherit;
	text-decoration: none;
}

@media (max-width: 1589.98px) {
	.layout_v1 #header .mod_navigation > ul.level_1 > li.start {
		display: none;
	}
}

@media (max-width: 1439.98px) {
	.layout_v1 #header .mod_navigation li {
		padding-left: 40px;
	}
}

@media (max-width: 1199.98px) {
	.layout_v1 #header .mod_navigation {
		display: none;
	}
	.layout_v1 .mobile_menu_icon {
		display: block!important;
	}
}

@media (max-width: 1219.98px) {
	.layout_v2 #header.v2-header .mod_navigation > ul.level_1 > li.start {
		display: none !important;
	}
}

@media (max-width: 1129.98px) {
	.layout_v2 #header.v2-header .mod_navigation {
		display: none;
	}
	.layout_v2 .mobile_menu_icon {
		display: block!important;
	}
}

#container {
	margin-top: max(500px, 75vh);
    transition: opacity .35s ease;
	transition: filter .35s ease;
}

#container.header-shift {
    transform: translateY(var(--header_height));
}

.layout_v1.start #container {
	margin-top: max(700px, 75vh);
}

.second_block {
	padding: 0px 90px;
	background: var(--color_hellblau);
}

.second_block .content-text {
	*max-width: 500px;
}
.second_block .rs-columns {
	display: block;
	max-width: calc(var(--max_width) - 60px);
	margin: auto;
}

.thumbreihe .content-gallery img {
	width: calc(100vw/6.1);
	margin-left: 2px;
	
}

.mm_dropdown {
	position: relative;
	width: 1000px;
	margin-left: calc(100% - 1000px - 280px);
	padding-top: 60px;
    opacity: 0;
    visibility: hidden;

    transform:
        translateY(20px)
        scale(.98);

    transition:
		padding-top .35s ease,
        opacity .35s cubic-bezier(.4,0,.2,1),
        transform .35s cubic-bezier(.4,0,.2,1),
        visibility .35s;

    pointer-events: none;
	display: block!important;
}
.mm_dropdown.header-small {
	padding-top: 25px;
}

.mm_container:hover > .mm_dropdown,
.mm_container.mm_open > .mm_dropdown {

    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}

.mm_dropdown .inner {
	background: var(--color_hellblau)!important;
	background: #FFFFFF!important;
	border: 0!important;
	backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
	border-radius: 5px;;
}

.megamenu {
	display: flex;
	flex-direction: column;
}

.megamenu img {
	border-radius: 5px;
}

.megamenu .row {
	display: flex;
	justify-content: space-between;
	align-items: space-between;
}

.megamenu .content-link-wrapper {
	padding: 10px 20px;
	width: 270px;
}

.megamenu h3 {
	font-size: 16px;
	font-weight: 900;
	color: #000000;
}



#footer {
	background: var(--color_dunkelblau);
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 300;
	padding-top: 50px;
	padding-bottom: 20px;
}
#footer ul {
	padding-left: 0px;
	margin-top: 0px;
}
#footer li {
	padding-left: 0px;
	display: block;
}
#footer .inside {
	max-width: var(--max_width);
	padding: 0px 30px;
	margin: auto;
}
#footer a {
	color: #FFFFFF;
}
#footer h4 {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 0px;
}

/* V1 CTA asset: same visual treatment as the V2 CTA. */
.layout_v1 .footer_cta_v1 {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: 100%;
	min-height: 116px;
	margin: 0;
	padding: 25px max(32px, calc((100% - 1320px) / 2));
	overflow: hidden;
	background: linear-gradient(100deg, #075aa8 0%, #0874c4 100%);
	color: #fff;
}
.layout_v1 .footer_cta_v1::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	width: 31%;
	height: 100%;
	background: linear-gradient(110deg, #ed1c24, #f21b23);
	clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.layout_v1 .footer_cta_v1 .rte {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 64px;
	width: min(1080px, 100%);
	min-height: 66px;
	margin: 0 auto;
}
.layout_v1 .footer_cta_v1 h2 {
	margin: 0;
	color: #fff;
	font: 700 25px/1.2 Manrope, Arial, sans-serif;
}
.layout_v1 .footer_cta_v1 .button_blue { margin: 0; }
.layout_v1 .footer_cta_v1 .button_blue a {
	display: inline-block;
	padding: 10px 24px;
	background: #fff;
	color: #0b4d8b !important;
	font: 700 13px/1.2 Manrope, Arial, sans-serif;
	text-decoration: none;
}
@media (max-width: 850px) {
	.layout_v1 .footer_cta_v1 { min-height: 0; padding: 28px 22px; }
	.layout_v1 .footer_cta_v1::after { width: 36%; opacity: .85; }
	.layout_v1 .footer_cta_v1 .rte { gap: 28px; }
	.layout_v1 .footer_cta_v1 h2 { font-size: 21px; }
}
@media (max-width: 520px) {
	.layout_v1 .footer_cta_v1::after { width: 42%; opacity: .45; }
	.layout_v1 .footer_cta_v1 .rte { flex-direction: column; align-items: flex-start; gap: 18px; }
	.layout_v1 .footer_cta_v1 h2 { max-width: 100%; }
}

/* Footer social links: each brand icon is an independent link over the existing sprite. */
.layout_v1 #footer .footer-social-links {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}
.layout_v1 #footer .footer-social-icon {
	display: inline-flex;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-image: url('../images/socialmedia_dummy.png');
	background-repeat: no-repeat;
	background-size: 195.24px 44px;
	transition: opacity .2s ease, transform .2s ease;
}
.layout_v1 #footer .footer-social-icon:hover,
.layout_v1 #footer .footer-social-icon:focus-visible {
	opacity: .78;
	transform: translateY(-2px);
}
.layout_v1 #footer .footer-social-icon:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
.layout_v1 #footer .footer-social-icon--linkedin { background-position: 0 0; }
.layout_v1 #footer .footer-social-icon--instagram { background-position: -79.9px 0; }
.layout_v1 #footer .footer-social-icon--facebook { background-position: -151px 0; }
.layout_v1 #footer .footer-social-icon .visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
/* Hide the legacy single-link sprite now replaced by the separate icons above. */
.layout_v1 #footer a[href*="instagram.com/huebnerdynamics"]:not(.footer-social-icon) {
	display: none;
}

.layout_v1 #footer .footer-social-icon--linkedin,
.layout_v1 #footer .footer-social-icon--facebook {
	display: none;
}
