/* =========================================================
   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────
   1. SHARED UTILITIES
	  1.1  mM Nav Layout (flex grid)
	  1.2  Nav Buttons & Pill-CTAs
	  1.3  BTW Notice Bar
   2. HEADER – BASE
	  2.1  Position, Scroll & Hintergrund
	  2.2  Globale Resets
   3. HEADER – DESKTOP
	  3.1  Desktop / Mobile Toggle
	  3.2  Grid-Layout (logo · nav · buttons)
	  3.3  Logo & Separator
	  3.4  Nav Pill-Container
	  3.5  Nav Pill-Items (hover, aktiv, underline-override)
	  3.6  Dropdown (sub-menu)
	  3.7  CTA-Buttons (alt + mM_nav_btn)
	  3.8  Sonstige Desktop-Elemente
   4. HEADER – MOBILE SIDE PANEL
	  4.1  Panel-Container & Overlay
	  4.2  Close-Button im Panel
	  4.3  Burger-Icon
	  4.4  Panel oben – Nav Pill
	  4.4  Panel oben – Social
	  4.5  Panel oben – Legal
	  4.6  Panel unten – Kontakt
	  4.7  Hintergrund-Logo
   5. FOOTER
	  5.1  Basis & runde Ecken
	  5.2  Nav-Layout (mM Nav Overrides)
	  5.3  Nav Pill-Container & Items
	  5.4  Footer-Logo
	  5.5  Bottom-Bar
   6. RESPONSIVE
	  6.1  Shared mM Nav ≤ 1199px
	  6.2  Shared mM Nav ≤ 991px
	  6.3  Shared mM Nav ≤ 575px
	  6.4  Header ≤ 1799px
	  6.5  Header ≤ 1599px
	  6.6  Header ≤ 1399px
	  6.7  Header Tablet gestapelt 992px – 1199px
	  6.8  Header Mobile Hamburger ≤ 991px
	  6.9  Mobile Panel ≤ 374px
	  6.10 Mobile Panel ≤ 300px
	  6.11 Footer ≤ 1399px
	  6.12 Footer ≤ 991px
	  6.13 Footer ≤ 767px
	  6.14 Footer ≤ 575px
	  6.15 Footer ≤ 380px
	  6.16 Header/Footer spacing ≥ 992px
   ========================================================= */


/* =========================================================
   1. SHARED UTILITIES
   ========================================================= */

/* -----------------------------------------
   1.1  mM Nav Layout
   ----------------------------------------- */
.mM_nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 33px 0 32px;
}
.mM_nav .mM_nav_left,
.mM_nav .mM_nav_right {
	width: 45%;
	display: flex;
}
.mM_nav .mM_nav_left  { justify-content: flex-start; }
.mM_nav .mM_nav_right { justify-content: flex-end; }
.mM_nav .mM_nav_middle {
	width: 10%;
	display: flex;
	justify-content: center;
}
.mM_nav .menu { display: flex; gap: 50px; }
.mM_nav .mM_nav_social_container {
	display: flex;
	align-items: center;
	gap: 45px;
}
.mM_nav .mM_nav_social_container .mM_nav_social_links_item {
	display: flex;
	align-items: center;
}
.mM_nav .mM_nav_social_links_item svg { fill: #fff; max-width: 22px; max-height: 23px; }
.mM_nav .mM_nav_social_container .mM_nav_social_links_item svg        { transition: fill .4s; }
.mM_nav .mM_nav_social_container .mM_nav_social_links_item:hover svg  { fill: rgba(255,255,255,.5); }

/* -----------------------------------------
   1.2  Nav Buttons & Pill-CTAs
   ----------------------------------------- */
header .mM_nav_buttons,
footer  .mM_nav_buttons {
	display: flex;
	align-items: center;
	gap: 14px;
}
header .mM_nav_buttons.mobile { display: none !important; }

header .mM_nav_btn,
footer  .mM_nav_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 174px;
	min-height: 50px;
	padding: 0 30px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: all .3s ease;
	-webkit-backdrop-filter: blur(10px);
			backdrop-filter: blur(10px);
}

/* Kontakt-Button – Header */
header .mM_btn_contact {
	background: transparent;
	border: 1.5px solid rgba(9,41,57,.3);
	color: #092939;
	font-weight: 500;
}
header .mM_btn_contact:hover {
	background: rgba(9,41,57,.06);
	border-color: rgba(9,41,57,.6);
	color: #092939;
}

/* Kontakt-Button – Footer */
footer .mM_btn_contact {
	background: transparent;
	border: 1.5px solid rgba(255,255,255,.45);
	color: #fff;
	font-weight: 500;
}
footer .mM_btn_contact:hover {
	background: rgba(255,255,255,.1);
	border-color: rgba(255,255,255,.7);
	color: #fff;
}

/* Termin-Button – Header & Footer */
header .mM_btn_appointment,
footer  .mM_btn_appointment {
	background: linear-gradient(135deg, #86a942 0%, #6e8f35 100%);
	border: 1px solid transparent;
	color: #fff;
	font-weight: 600;
}
header .mM_btn_appointment:hover,
footer  .mM_btn_appointment:hover {
	background: linear-gradient(135deg, #9dc54a 0%, #7a9f32 100%);
	border-color: transparent;
}

/* -----------------------------------------
   1.3  BTW Notice Bar
   ----------------------------------------- */
.btw_notice {
	width: 100%;
	background-color: transparent;
	padding: 8px 20px;
	box-sizing: border-box;
}
.btw_notice_inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: #555;
	color: #fff;
	border-radius: 15px;
	padding: 10px 24px;
	font-size: .875rem;
	line-height: 1.4;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}
.btw_notice_icon  { width: 18px; height: 18px; flex-shrink: 0; color: #fff; }
.btw_notice_text  { color: #fff; }
.btw_notice_text strong,
.btw_notice_text b { font-weight: 700; }

@media all and (min-width: 576px)  { .btw_notice_inner { max-width: 540px; } }
@media all and (min-width: 768px)  { .btw_notice_inner { max-width: 720px; } }
@media all and (min-width: 992px)  { .btw_notice_inner { max-width: 960px; } }
@media all and (min-width: 1200px) { .btw_notice_inner { max-width: 1140px; } }
@media all and (min-width: 1400px) { .btw_notice_inner { max-width: 1320px; } }
@media all and (min-width: 1600px) { .btw_notice_inner { max-width: 1520px; } }
@media all and (min-width: 1800px) { .btw_notice_inner { max-width: 1720px; } }
@media all and (min-width: 1921px) { .btw_notice_inner { max-width: 1841px; } }
@media all and (min-width: 2200px) { .btw_notice_inner { max-width: 2120px; } }

@media screen and (max-width: 767px) {
	.btw_notice_inner { border-radius: 12px; }
}
@media screen and (max-width: 480px) {
	.btw_notice_inner {
		flex-direction: column;
		text-align: center;
		gap: 6px;
		padding: 12px 16px;
	}
}
@media screen and (max-width: 320px) {
	.btw_notice_inner { font-size: .8rem; padding: 10px 12px; }
}


/* =========================================================
   2. HEADER – BASE
   ========================================================= */

/* -----------------------------------------
   2.1  Position, Scroll & Hintergrund
   ----------------------------------------- */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	background: transparent !important;
	transition: background .4s, box-shadow .4s;
}
header.scrolled {
	background-color: rgba(230,230,230,.34) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Light veil over the hero so logo and burger stay readable; fades into the scrolled state */
body:has(section.m30_home_entry) header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: calc(100% + 70px);
	background: linear-gradient(to bottom, rgba(245,245,243,.92) 0%, rgba(245,245,243,.72) 50%, rgba(245,245,243,0) 100%);
	pointer-events: none;
	z-index: 0;
	transition: opacity .4s ease;
}
@supports (color: color-mix(in srgb, red 50%, transparent)) {
	body:has(section.m30_home_entry) header::before {
		background: linear-gradient(to bottom, color-mix(in srgb, var(--background_color, #f5f5f3) 92%, transparent) 0%, color-mix(in srgb, var(--background_color, #f5f5f3) 72%, transparent) 50%, transparent 100%);
	}
}
body:has(section.m30_home_entry) header.scrolled::before { opacity: 0; }
/* Keeps the notice bar above the veil (unpositioned it would be painted below ::before) */
header .btw_notice { position: relative; z-index: 1; }

/* Transparenz-Override für alle inneren Wrapper */
header .header_main_wrapper,
header .header_inner,
header .header_main_desktop,
header .header_main_desktop > .mM_nav,
header .header_main_desktop .mM_nav_middle,
header .header_main_desktop .mM_nav_left,
header .header_main_desktop .mM_nav_right {
	background: transparent !important;
	background-color: transparent !important;
}
header .header_main_wrapper { position: relative; z-index: 1; }

/* -----------------------------------------
   2.2  Globale Resets
   ----------------------------------------- */
header ul { list-style: none; margin: 0; padding: 0; }
header .header_inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
header .header_inner_left { align-items: center; }


/* =========================================================
   3. HEADER – DESKTOP
   ========================================================= */

/* -----------------------------------------
   3.1  Desktop / Mobile Toggle
   ----------------------------------------- */
header .header_main_desktop { display: block; }
header .header_main_mobile  { display: none; }

/* -----------------------------------------
   3.2  Grid-Layout (logo · nav · buttons)
   ----------------------------------------- */
header .header_main_desktop > .mM_nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "logo nav buttons";
	align-items: center;
	padding: 15px 0;
}
header .header_main_desktop .mM_nav_middle {
	grid-area: logo;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: auto;
}
header .header_main_desktop .mM_nav_left {
	grid-area: nav;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
}
header .header_main_desktop .mM_nav_right {
	grid-area: buttons;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: auto;
	gap: 0;
}
header .header_main_desktop .mM_nav_social_container { display: none !important; }

/* -----------------------------------------
   3.3  Logo & Separator
   ----------------------------------------- */
header .logo_container { height: 50px; }
header .logo_container a,
header .logo_container svg,
header .logo_container img { height: 100%; }
header .logo_container svg,
header .logo_container img { width: auto; }
header .logo_container svg { fill: #092939; }

header .header_main_desktop .mM_nav_middle .logo_container,
header .header_main_desktop .mM_nav_middle .mM_footer_container_logo {
	height: 55px;
	display: flex;
	align-items: center;
}
header .header_main_desktop .mM_nav_middle .logo_container svg,
header .header_main_desktop .mM_nav_middle .logo_container img {
	height: 100%;
	width: auto;
	max-width: none;
}

header .header_container_logo {
	position: relative;
	padding-right: 90px;
	margin-right: 65px;
}
header .header_container_logo::after {
	content: '';
	position: absolute;
	top: -10px;
	right: 0;
	width: 1px;
	height: 54px;
	background: #cdd1cf;
}

/* -----------------------------------------
   3.4  Nav Pill-Container
   ----------------------------------------- */
header .header_main_desktop .mM_nav_left nav {
	background: rgba(255,255,255,.65);
	border: 1px solid rgba(0,0,0,.07);
	border-radius: 50px;
	padding: 5px;
	backdrop-filter: blur(8px);
}
header .header_main_desktop .mM_nav ul.menu,
header .header_container_menu ul.menu {
	display: flex;
	align-items: center;
	gap: 0;
}

/* -----------------------------------------
   3.5  Nav Pill-Items (hover, aktiv, underline-override)
   ----------------------------------------- */
header .header_main_desktop .mM_nav ul.menu > li > a {
	display: block;
	padding: 8px 18px;
	border-radius: 50px;
	background: transparent;
	color: #092939;
	font-weight: 500;
	white-space: nowrap;
	transition: all .3s ease;
}
header .header_main_desktop .mM_nav ul.menu > li > a:hover {
	background: rgba(255,255,255,.1);
	color: #092939;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
header .header_main_desktop .mM_nav ul.menu > li.current-menu-item > a {
	background: rgba(255,255,255,.95);
	color: #1a1a1a;
	font-weight: 500;
	text-shadow: none;
	box-shadow: 0 2px 14px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.07);
}

header #menu-header-navigation .menu-item a         { position: relative; transition: color .4s; }
header #menu-header-navigation .menu-item a::after,
header .mM_nav ul.menu > li > a::after              { display: none !important; }
header #menu-header-navigation .menu-item a:hover,
header #menu-header-navigation .current-menu-item a { text-shadow: none; }

header .header_container_menu ul li a { font-weight: 500; text-transform: uppercase; }
header .header_container_menu ul.menu > li > a {
	border-radius: 5px;
	padding: 20px 23px 15px 25px;
	transition: background .4s;
}
header .header_container_menu ul.menu > li > a:hover,
header .header_container_menu ul.menu > li.current-menu-item > a { background: #171717; }

/* -----------------------------------------
   3.6  Dropdown (sub-menu)
   ----------------------------------------- */
header .header_container_menu .menu-item-has-children { position: relative; }
header .header_container_menu .menu-item-has-children a { display: flex; }
header .header_container_menu .menu-item-has-children svg {
	fill: #466c6c;
	width: 10px; min-width: 10px;
	height: 6px;  min-height: 6px;
	margin-left: 9px;
	margin-bottom: 3px;
	transition: transform .2s, fill .4s;
}
header #menu-header-nav .menu-item-has-children:hover svg,
header #menu-mobile-nav .menu-item-has-children.active svg { transform: rotate(-180deg); }

header .header_container_menu .menu-item-has-children > ul.sub-menu {
	position: absolute;
	top: 119%;
	left: 0;
	z-index: 5;
	padding: 35px 25px;
	background: #fff;
	border-top: 6px solid #4ed7cc;
	border-radius: 5px;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: top center;
	transition: transform .2s, opacity .2s;
}
header .header_container_menu .menu-item-has-children:hover > ul.sub-menu {
	opacity: 1;
	transform: scaleY(1);
}
header .header_container_menu .menu-item-has-children > ul.sub-menu::before {
	content: '';
	position: absolute;
	top: -13px;
	left: 30px;
	width: 22px;
	height: 7px;
	background-size: 100% 100%;
}
header .menu-item-has-children > ul.sub-menu > li:not(:last-child) { margin-bottom: 15px; }
header .menu-item-has-children > ul.sub-menu a {
	position: relative;
	padding-left: 25px;
	white-space: nowrap;
	transition: color .4s;
}
header .menu-item-has-children > ul.sub-menu a::before {
	content: '';
	position: absolute;
	top: 4px;
	left: 0;
	width: 12px;
	height: 12px;
	background: #368787;
	transition: background .4s;
}
header .menu-item-has-children > ul.sub-menu a:hover,
header .menu-item-has-children > ul.sub-menu li.current-menu-item a { color: #8fa6a6; }
header .menu-item-has-children > ul.sub-menu a:hover::before,
header .menu-item-has-children > ul.sub-menu li.current-menu-item a::before { background: #8fa6a6; }

/* -----------------------------------------
   3.7  CTA-Buttons (Legacy-Struktur, bleibt für Compat)
   ----------------------------------------- */
header .header_inner_right_btn_container .button svg {
	width: 18px;  min-width: 18px;
	height: 21px; min-height: 21px;
	margin-right: 5px;
	margin-bottom: 3px;
}
header .header_inner_right_button_container .button {
	padding: 39px 90px 34px;
	font-weight: 600;
	text-transform: uppercase;
}
header .header_inner_right_button_container .button.secondary {
	background-color: #f7fbf9;
	color: #1f4d4d;
	border: none;
}
header .header_inner_right_button_container .button.secondary:hover {
	background-color: var(--sekundarbutton_hover_background_color);
	color: var(--sekundarbutton_hover_font_color);
}
header .header_inner_right_ext_link_container .button { display: flex; align-items: center; white-space: nowrap; }
header .header_inner_right_ext_link_container svg {
	fill: #fff;
	width: 22px;  min-width: 22px;
	height: 22px; min-height: 22px;
	margin-top: -5px;
	margin-right: 13px;
	transition: fill .4s;
}

/* -----------------------------------------
   3.8  Sonstige Desktop-Elemente
   ----------------------------------------- */
header li.portal > a svg {
	fill: #1f4d4d;
	width: 18px;  min-width: 18px;
	height: 18px; min-height: 18px;
	margin-top: 1px;
	margin-right: 10px;
}
header .menu-item-content-wrapper { display: flex; }
header .menu_item_img              { width: 100px; height: auto; }
header .header_desktop_burger_menu_firmierung_container p { font-weight: 600; }
header .header_desktop_burger_menu_adresse_container      { display: flex; }
header .header_desktop_burger_menu_adresse_strasse_plz_ort_separator { margin: 0 5px; }


/* =========================================================
   4. HEADER – MOBILE SIDE PANEL
   ========================================================= */

/* -----------------------------------------
   4.1  Panel-Container & Overlay
   ----------------------------------------- */
header .header_main_mobile_content {
	position: fixed;
	top: 0 !important;
	right: 0;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 375px;
	height: 100dvh !important;
	overflow-y: auto;
	transform: translateX(375px);
	transition: transform .4s;
}
header .header_main_mobile_content.open { transform: translateX(0); }

header .header_main_mobile_overlay {
	position: fixed;
	top: 0 !important;
	left: 0;
	z-index: 1000;
	width: 100vw;
	height: 100dvh !important;
	visibility: hidden;
	opacity: 0;
	background: rgba(0,0,0,.3);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: visibility 0s linear 300ms, opacity .4s;
}
header .header_main_mobile_overlay.show {
	visibility: visible;
	opacity: 1;
	transition: visibility 0s linear 0s, opacity .4s;
}
header .header_main_mobile_background_img {
	position: fixed;
	top: 0 !important;
	right: 0;
	z-index: 1001;
	width: 375px;
	height: 100dvh !important;
	transform: translateX(375px);
	transition: transform .4s;
}
header .header_main_mobile_overlay.show ~ .header_main_mobile_background_img { transform: translateX(0); }
header .header_main_mobile_background_img img { width: 100%; height: 100%; object-fit: cover; }

/* -----------------------------------------
   4.2  Close-Button im Panel
   ----------------------------------------- */
header .header_mobile_close_btn {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 10;
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0;
	padding: 0;
	transition: background .2s ease;
	flex-shrink: 0;
}
header .header_mobile_close_btn:hover { background: rgba(255,255,255,.2); }
header .header_mobile_close_btn span {
	display: block;
	width: 18px;
	height: 2px;
	background: rgba(255,255,255,.9);
	border-radius: 2px;
}
header .header_mobile_close_btn span:first-child { transform: rotate(45deg) translate(1px, 1px); }
header .header_mobile_close_btn span:last-child  { transform: rotate(-45deg) translate(1px, -1px); }

/* -----------------------------------------
   4.3  Burger-Icon
   ----------------------------------------- */
header .header_burger_menu_icon,
header .header_container_close_button { cursor: pointer; }

header .header_burger_menu_icon,
header .header_burger_menu_mobile {
	display: flex;
	flex-direction: column;
	align-items: center;
}
header .header_burger_bar {
	display: block;
	height: 3px;
	background: #333;
	border-radius: 50px;
	transform-origin: 29px;
	transition: all .4s;
}
header .header_burger_bar:not(:last-child)       { margin-bottom: 7px; }
header .header_burger_bar_1,
header .header_burger_bar_2,
header .header_burger_bar_3                      { width: 26px; }
header .header_burger_menu_mobile:hover .header_burger_bar { width: 25px; }

header .header_inner.open .header_burger_bar_1   { width: 30px; height: 3px; transform: rotate(-45deg); }
header .header_inner.open .header_burger_bar_2   { width: 0; }
header .header_inner.open .header_burger_bar_3   { width: 30px; height: 3px; transform: rotate(45deg); }

/* -----------------------------------------
   4.3  Panel oben – Nav Pill
   ----------------------------------------- */

header .header_main_mobile_content_top {
	flex: 1 0 auto;
	min-height: 365px;
	padding: 76px 20px 30px;
	background: #474747;
}
header .header_main_mobile_content_top_1 { width: 100%; }

header .header_main_mobile_content_top_1 nav,
header .header_main_mobile_content_top_1 ul {
	width: 100%;
	box-shadow: none;
}

header .header_main_mobile_content_top_1 nav {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 5px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

header .header_main_mobile_content_top_1 ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
header .header_main_mobile_content_top_1 li {
	width: 100%;
}

header .header_main_mobile_content_top_1 li a,
header .header_main_mobile_content_top_1 li a:link,
header .header_main_mobile_content_top_1 li a:visited {
	display: block;
	width: 100%;
	padding: 8px 18px;
	border-radius: 50px;
	background: transparent;
	border: none;
	box-shadow: none;
	outline: none;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 500;
	font-size: 1rem;
	text-align: center;
	white-space: nowrap;
	transition: background .3s ease, color .3s ease;
}

header .header_main_mobile_content_top_1 li a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: none;
	box-shadow: none;
}

header .header_main_mobile_content_top_1 li.current-menu-item > a,
header .header_main_mobile_content_top_1 li.current-menu-item > a:link,
header .header_main_mobile_content_top_1 li > a.active {
	background: rgba(255, 255, 255, 0.95);
	color: #1a1a1a;
	font-weight: 500;
	border-radius: 50px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.07);
	border: none;
}

/* -----------------------------------------
   4.4  Panel oben – Social
   ----------------------------------------- */
header .header_main_mobile_content_top_2 {
	margin-top: 10px;
	padding-top: 10px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

header .header_main_mobile_content_top_2 .mM_nav_social_container {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
}

header .header_main_mobile_content_top_2 .mM_nav_social_links_item {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 5px;
	flex-shrink: 0;
}

header .header_main_mobile_content_top_2 .mM_nav_social_links_item svg {
	fill: #fff;
	opacity: .65;
	width: 20px;
	min-width: 20px;
	height: 20px;
	min-height: 20px;
}

header .header_main_mobile_content_top_2 .footer_main_middle_item_social_links_item {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 5px;
	flex-shrink: 0;
}

header .header_main_mobile_content_top_2 .footer_main_middle_item_social_links_item svg {
	fill: #fff;
	opacity: .65;
	width: 20px;
	min-width: 20px;
	height: 20px;
	min-height: 20px;
}

/* Social-Icon-Grid */
header .header_main_mobile_content_bottom_3_social_container {
	display: flex;
	gap: 10px;
	margin-bottom: 34px;
	justify-content: flex-start;
	align-items: center;
}
header .header_main_mobile_content_bottom_3_item_social_links_item {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 5px;
	transition: border-color .4s;
	flex-shrink: 0;
}
header .header_main_mobile_content_bottom_3_item_social_links_item svg {
	fill: rgba(255,255,255,.8);
	width: 23px;  min-width: 23px;
	height: 23px; min-height: 23px;
	transition: opacity .4s;
}
header .header_main_mobile_content_bottom_3_item_social_links_item:hover     { border-color: rgba(255,255,255,.6); }
header .header_main_mobile_content .footer_main_middle_item_social_container { display: block; }
header .header_main_mobile_content .footer_main_middle_item_social_links_item svg       { fill: #fff; }
header .header_main_mobile_content .footer_main_middle_item_social_links_item svg:hover { fill: rgba(255,255,255,.5); }

/* -----------------------------------------
   4.5  Panel oben – Legal
   ----------------------------------------- */
header .header_main_mobile_content_top_3 {
	margin-top: 12px;
	padding-top: 12px;
}
header .header_main_mobile_content_top_3 ul {
	display: flex;
	flex-direction: row;
	gap: 20px;
}
header .header_main_mobile_content_top_3 a,
header .header_main_mobile_content_top_3 #menu-rechtliche-navigation a {
	color: rgba(255,255,255,.5);
	font-size: .85rem;
	font-weight: 400;
	text-transform: none;
	border-bottom: none;
	margin-bottom: 0;
}
header .header_main_mobile_content_top_3 a:hover,
header .header_main_mobile_content_top_3 #menu-rechtliche-navigation a:hover {
	color: rgba(255,255,255,.9);
	border-color: transparent;
}
header .header_main_mobile_content_top_3 #menu-rechtliche-navigation li:first-child::after {
	color: rgba(255,255,255,.25);
}

/* Legacy Legal-Nav */
header #menu-legal-nav                              { display: flex; }
header #menu-legal-nav li:not(:first-child)        { margin-left: 25px; }

/* -----------------------------------------
   4.6  Panel unten – Kontakt
   ----------------------------------------- */
header .header_main_mobile_content_bottom {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex-shrink: 0;
	min-height: 347px;
	padding: 50px 35px 48px;
	background: #3a3a3a;
}
header .header_main_mobile_content_bottom_1 { margin-bottom: 17px; color: #fff; }
header .header_main_mobile_content_bottom_2 { margin-bottom: 31px; color: rgba(255,255,255,.75); }

header .header_main_mobile_content_bottom_2_email_phone_fax_container,
header .header_main_mobile_content_bottom_2_left,
header .header_main_mobile_content_bottom_2_right_email_phone_fax_container { display: flex; flex-direction: column; }
header .header_main_mobile_content_bottom_2_email_phone_fax_container        { gap: 18px; margin-top: 35px; }
header .header_main_mobile_content_bottom_2_right_email_phone_fax_container  { align-items: end; }
header .header_main_mobile_content_bottom_2_left a:not(:last-child),
header .header_main_mobile_content_bottom_2_right_phone_container             { margin-bottom: 10px; }

header .header_main_mobile_content_bottom_2_item svg                               { fill: rgba(255,255,255,.75); }
header .header_main_mobile_content_bottom_2_item_content                           { display: flex; align-items: center; }
header .header_main_mobile_content_bottom_2_item_content_svg_wrapper               { width: 27px; }
header .header_main_mobile_content_bottom_2_phone
	   .header_main_mobile_content_bottom_2_item_content_svg_wrapper               { padding-left: 2px; }
header .header_main_mobile_content_bottom_2_phone svg {
	width: 11px;  min-width: 11px;
	height: 17px; min-height: 17px;
	margin-top: 2px;
}
header .header_main_mobile_content_bottom_2_email svg {
	width: 15px;  min-width: 15px;
	height: 12px; min-height: 12px;
}
header .header_main_mobile_content_bottom_2_right_item a       { position: relative; font-weight: 200; color: rgba(255,255,255,.85); }
header .header_main_mobile_content_bottom_2_right_item a span  { font-weight: 500; color: #fff; }
header .header_main_mobile_content_bottom_2_right_item a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: rgba(255,255,255,.5);
	transition: background .4s;
}

/* Legacy Mobile Nav-Container */
header .header_container_mobil_menu ul { list-style: none; margin: 0; padding: 0; }
header .header_container_mobil_menu li.menu-item-has-children { overflow: hidden; }
header .header_container_mobil_menu li.menu-item-has-children > a::after {
	content: ">";
	display: inline-block;
	transition: transform .3s ease-in-out;
}
header .header_container_mobil_menu li.menu-item-has-children > a.open::after { transform: rotate(90deg); }

header #menu-mobile-nav > li { position: relative; padding: 15px 0 11px; border-top: 1px solid #ccd8d7; }
header #menu-mobile-nav > li:last-child { border-bottom: 1px solid #ccd8d7; }
header #menu-mobile-nav a { font-weight: 600; text-transform: uppercase; }
header #menu-mobile-nav > li .sub-menu { height: 0; opacity: 0; overflow: hidden; padding: 0 0 0 15px; }
header #menu-mobile-nav .menu-item-has-children > ul.sub-menu > li:first-child  { margin-top: 10px; }
header #menu-mobile-nav .menu-item-has-children > ul.sub-menu > li:not(:last-child) { margin-bottom: 10px; }
header #menu-mobile-nav .menu-item-has-children .svg_wrapper { position: absolute; top: 13px; right: 0; }

/* -----------------------------------------
   4.7  Hintergrund-Logo
   ----------------------------------------- */
header .header_main_mobile_content_middle_background_logo_container {
	position: absolute;
	top: 50%;
	left: 7px;
	z-index: -1;
	width: calc(100% + 7px);
	height: auto;
	transform: translateY(-50%);
}
header .header_main_mobile_content_middle_background_logo_container svg {
	width: 100%;
	height: auto;
	fill: rgba(255,255,255,.04);
}


/* =========================================================
   5. FOOTER
   ========================================================= */

/* -----------------------------------------
   5.1  Basis & runde Ecken
   ----------------------------------------- */
footer,
footer.mM_footer {
	background: #474747 !important;
	border-radius: 20px 20px 0 0;
	padding-top: 112px;
}
footer   { position: relative; z-index: 2; }
footer ul { list-style: none; margin: 0; padding: 0; }

/* -----------------------------------------
   5.2  Nav-Layout (mM Nav Overrides)
   ----------------------------------------- */
footer .mM_nav { padding: 0 0 27px; }

footer .mM_nav .mM_nav_middle {
	width: 0;
	flex: 1 1 0;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}
footer .mM_nav .mM_nav_left {
	width: auto;
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}
footer .mM_nav .mM_nav_right {
	width: 0;
	flex: 1 1 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
}
footer .mM_nav .mM_nav_social_container { display: none; }

/* -----------------------------------------
   5.3  Nav Pill-Container & Items
   ----------------------------------------- */
footer .mM_nav .mM_nav_left nav {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 50px;
	padding: 5px;
	backdrop-filter: blur(8px);
}
footer .mM_nav ul.menu { display: flex; gap: 0; }
footer .mM_nav ul.menu > li > a {
	display: block;
	padding: 10px 20px;
	border-radius: 50px;
	background: transparent;
	color: rgba(255,255,255,.75);
	font-weight: 500;
	white-space: nowrap;
	transition: all .3s ease;
}
footer .mM_nav ul.menu > li > a:hover {
	background: rgba(255,255,255,.1);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
footer .mM_nav ul.menu > li.current-menu-item > a {
	background: #a6a6a4;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 2px 14px rgba(166,166,164,.3);
}

/* -----------------------------------------
   5.4  Footer-Logo
   ----------------------------------------- */
footer .mM_nav .logo_container {
	height: 64px;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
footer .mM_nav .logo_container a { display: flex; align-items: center; height: 100%; }
footer .mM_nav .logo_container svg,
footer .mM_nav .logo_container img { height: 100%; width: auto; max-width: none; }

/* -----------------------------------------
   5.5  Bottom-Bar
   ----------------------------------------- */
footer .mM_footer_main {
	display: flex;
	justify-content: space-between;
	padding-top: 26px;
	padding-bottom: 52px;
}
footer .mM_footer_main *       { font-size: .906rem; color: rgba(255,255,255,.5); }
footer .mM_footer_main a       { transition: color .4s; }
footer .mM_footer_main a:hover { color: #fff; }
footer .mM_footer_main .mM_footer_right a { text-decoration: underline; }

footer .mM_footer_main .mM_footer_left,
footer .mM_footer_main .mM_footer_right,
footer .mM_footer_main .mM_footer_middle { width: calc(100% / 3); }
footer .mM_footer_main .mM_footer_middle { display: flex; justify-content: center; }
footer .mM_footer_main .mM_footer_right  { display: flex; justify-content: flex-end; }

footer #menu-rechtliche-navigation-1 { display: flex; gap: 31px; }
footer #menu-rechtliche-navigation-1 li:first-child { position: relative; }
footer #menu-rechtliche-navigation-1 li:first-child::after {
	content: '·';
	font-size: 1rem;
	color: rgba(255,255,255,.5);
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: -17px;
}


/* =========================================================
   6. RESPONSIVE
   ========================================================= */

/* -----------------------------------------
   6.1  Shared mM Nav ≤ 1199px
   ----------------------------------------- */
@media screen and (max-width: 1199px) {
	.mM_nav { flex-wrap: wrap; gap: 40px 0; }
	.mM_nav .mM_nav_middle { order: 1; width: 100%; }
	.mM_nav .mM_nav_left   { order: 2; width: 50%; }
	.mM_nav .mM_nav_right  { order: 3; width: 50%; }
	.mM_nav .menu          { gap: 30px; }
	footer .mM_nav .mM_nav_middle { justify-content: center; }
}

/* -----------------------------------------
   6.2  Shared mM Nav ≤ 991px
   ----------------------------------------- */
@media screen and (max-width: 991px) {
	.mM_nav .mM_nav_left  { width: 100%; justify-content: center; }
	.mM_nav .mM_nav_right { width: 100%; justify-content: center; }
}

/* -----------------------------------------
   6.3  Shared mM Nav ≤ 575px
   ----------------------------------------- */
@media screen and (max-width: 575px) {
	.mM_nav .menu:not(#menu-rechtliche-navigation):not(#menu-rechtliche-navigation-1) {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
	}
	.mM_nav nav            { width: 100%; }
	.mM_nav .mM_nav_middle,
	.mM_nav .mM_nav_right  { justify-content: flex-start; }
}

/* -----------------------------------------
   6.4  Header ≤ 1799px
   ----------------------------------------- */
@media screen and (max-width: 1799px) {
	header .header_inner_right_button_container .button { padding: 39px 45px 34px; }
}

/* -----------------------------------------
   6.5  Header ≤ 1599px
   ----------------------------------------- */
@media screen and (max-width: 1599px) {
	header .header_container_logo { padding-right: 45px; margin-right: 20px; }
}

/* -----------------------------------------
   6.6  Header ≤ 1399px
   ----------------------------------------- */
@media screen and (max-width: 1399px) {
	header .header_container_logo                         { padding-right: 0; }
	header .header_container_logo::after                  { content: none; }
	header .header_container_menu ul.menu > li > a        { padding: 20px 15px 15px; }
	header .header_inner_right_button_container .button   { padding: 39px 25px 34px; }
}

/* -----------------------------------------
   6.7  Header Tablet gestapelt 992px – 1199px
   ----------------------------------------- */
@media screen and (min-width: 992px) and (max-width: 1199px) {
	header .header_main_wrapper > .container { max-width: 100%; padding: 0 22px; }
	header .header_main_desktop > .mM_nav {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas: "logo nav";
		align-items: center;
		justify-items: stretch;
		gap: 0 20px;
		padding: 12px 0;
	}
	header .header_main_desktop .mM_nav_middle {
		grid-area: logo;
		order: initial;
		width: auto;
		justify-content: flex-start;
	}
	header .header_main_desktop .mM_nav_middle .logo_container { height: 45px; }
	header .header_main_desktop .mM_nav_left {
		grid-area: nav;
		order: initial;
		width: auto;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	header .header_main_desktop .mM_nav_left nav {
		width: auto;
		margin: 0 auto;
	}
	header .header_main_desktop .mM_nav_right {
		order: initial;
		display: none;
		width: auto;
	}
}

/* -----------------------------------------
   6.8  Header Mobile Hamburger ≤ 991px
   ----------------------------------------- */
@media screen and (max-width: 991px) {
	header .header_main_desktop { display: none; }
	header .header_main_mobile  { display: block; padding: 10px 0; }

	header .header_main_mobile .header_inner {
		position: relative;
		z-index: 10;
	}
	header .header_main_mobile .header_inner_right {
		position: relative;
		z-index: 10;
		display: flex;
		align-items: center;
	}
	header .header_main_wrapper > .container { max-width: 100%; padding: 0 22px; }
	header .header_main_wrapper .mM_align    { margin-right: 0; width: 100%; }
	header .header_main_mobile .logo_container { height: 32px; }

	header .header_inner_right_ext_link_container svg {
		fill: #3b8a8a;
		width: 26px;  min-width: 26px;
		height: 26px; min-height: 26px;
		margin-top: 7px;
		margin-right: 22px;
	}
	header #menu-main-navigation-1             { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
	header #menu-main-navigation-1 a          {
		margin-bottom: 0;
		transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease;
	}
	header #menu-main-navigation-1 li:not(.current-menu-item) > a:hover {
		background: rgba(255,255,255,.08);
		color: #fff;
		box-shadow: 0 4px 12px rgba(0,0,0,.12);
		transform: translateY(-1px);
	}
	header #menu-rechtliche-navigation a      { font-size: .906rem; color: rgba(255,255,255,.5); transition: color .4s; }
	header #menu-rechtliche-navigation a:hover { color: #fff; }
	header #menu-rechtliche-navigation li:first-child { position: relative; }
	header #menu-rechtliche-navigation li:first-child::after {
		content: '/';
		position: absolute;
		top: 50%;
		right: -17px;
		font-size: 1rem;
		color: rgba(255,255,255,.5);
		transform: translateY(-50%);
	}
}

/* -----------------------------------------
   6.9  Mobile Panel ≤ 757px → 100% Breite
   ----------------------------------------- */
@media screen and (max-width: 757px) {
	header .header_main_mobile_content,
	header .header_main_mobile_background_img {
		width: 100%;
		transform: translateX(100%);
	}
	header .header_main_mobile_content_bottom { padding: 40px 20px; }
}

/* -----------------------------------------
   6.10  Mobile Panel ≤ 300px
   ----------------------------------------- */
@media screen and (max-width: 300px) {
	header .logo_container { height: 25px; }
}

/* -----------------------------------------
   6.11  Footer ≤ 1399px
   ----------------------------------------- */
@media screen and (max-width: 1399px) {
	footer .mM_nav .mM_nav_right { display: none; }
}

/* -----------------------------------------
   6.12  Footer ≤ 991px
   ----------------------------------------- */
@media screen and (max-width: 991px) {
	footer .mM_nav {
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}
	footer .mM_nav .mM_nav_middle { order: 1; width: auto; }
	footer .mM_nav .mM_nav_left   { order: 2; width: 100%; display: flex; justify-content: center; }
	footer .mM_nav ul.menu        { flex-direction: row; flex-wrap: wrap; justify-content: center; }

	footer .mM_footer_main                          { flex-direction: column; align-items: center; gap: 20px; }
	footer .mM_footer_main .mM_footer_left,
	footer .mM_footer_main .mM_footer_right,
	footer .mM_footer_main .mM_footer_middle        { width: 100%; }
	footer .mM_footer_main .mM_footer_middle        { order: 1; }
	footer .mM_footer_main .mM_footer_left          { order: 2; justify-content: center; display: flex; }
	footer .mM_footer_main .mM_footer_right         { order: 3; justify-content: center; display: flex; }
}

/* -----------------------------------------
   6.13  Footer ≤ 767px
   ----------------------------------------- */
@media screen and (max-width: 767px) {
	footer,
	footer.mM_footer { padding-top: 60px; }

	footer .mM_nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		flex-wrap: nowrap;
	}
	footer .mM_nav .mM_nav_middle { width: 100%; flex: none; order: 1; justify-content: center; }
	footer .mM_nav .mM_nav_left   { width: 100%; flex: none; order: 2; justify-content: flex-start; }
	footer .mM_nav .mM_nav_left nav { width: 100%; }
}

/* -----------------------------------------
   6.14  Footer ≤ 575px
   ----------------------------------------- */
@media screen and (max-width: 575px) {
	footer .mM_nav .mM_nav_left nav {
		border-radius: 16px;
		overflow: hidden;
	}
	footer .mM_nav ul.menu {
		flex-direction: column;
		align-items: stretch !important;
		gap: 2px;
		padding: 0;
	}
	footer .mM_nav ul.menu > li > a {
		display: block;
		text-align: center;
		padding: 12px 20px;
		border-radius: 50px;
		border-bottom: none;
		white-space: normal;
	}
	footer .mM_nav ul.menu > li.current-menu-item > a {
		background: #a6a6a4;
		color: #fff;
		font-weight: 600;
		box-shadow: 0 2px 14px rgba(166,166,164,.3);
	}
	footer .mM_footer_main                           { padding-top: 34px; }
	footer .mM_footer_main .mM_footer_left,
	footer .mM_footer_main .mM_footer_right,
	footer .mM_footer_main .mM_footer_middle         { justify-content: flex-start; }
	footer #menu-rechtliche-navigation-1             { gap: 20px; }
}

/* -----------------------------------------
   6.15  Footer ≤ 380px
   ----------------------------------------- */
@media screen and (max-width: 380px) {
	footer .mM_nav ul.menu > li > a { padding: 10px 14px; font-size: .875rem; }
}

/* -----------------------------------------
   6.16  Header/Footer spacing ≥ 992px
   Minimum gap between logo, nav pill and buttons
   ----------------------------------------- */
@media screen and (min-width: 1200px) {
	header .header_main_desktop > .mM_nav { column-gap: 24px; }
}
@media screen and (min-width: 1200px) and (max-width: 1599px) {
	header .header_main_desktop .mM_nav ul.menu > li > a { padding: 8px 14px; }
	header .header_main_desktop .mM_nav_btn { min-width: 0; padding: 0 24px; }
}
/* Too narrow for a true center: center the nav between logo and buttons */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
	header .header_main_desktop > .mM_nav { grid-template-columns: auto 1fr auto; }
	header .header_main_desktop .mM_nav ul.menu > li > a { padding: 8px 13px; }
	header .header_main_desktop .mM_nav_buttons { gap: 10px; }
}
@media screen and (min-width: 992px) {
	footer .mM_nav { column-gap: 24px; }
}
@media screen and (min-width: 1400px) and (max-width: 1599px) {
	footer .mM_nav ul.menu > li > a { padding: 10px 14px; }
	footer .mM_nav_btn { min-width: 0; padding: 0 24px; }
}
/* -----------------------------------------
   7. Scroll-to-top Button
   ----------------------------------------- */
#scroll_to_top {
	position: absolute;
	top: 41px;
	right: 42px;
	width: 56px;
	height: 56px;
	background: #5a5a5a;
	border-radius: 999px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
	transition: background 0.2s, transform 0.2s;
}
#scroll_to_top:hover {
	background: #474747;
	transform: translateY(-3px);
}
#scroll_to_top svg {
	width: 22px;
	height: 22px;
	fill: rgba(255, 255, 255, 0.75);
	transform: rotate(-90deg);
}
#scroll_to_top:hover svg {
	fill: #ffffff;
}

@media screen and (max-width: 767px) {
	#scroll_to_top {
		top: 22px;
		right: 20px;
		width: 48px;
		height: 48px;
	}
	#scroll_to_top svg {
		width: 20px;
		height: 20px;
	}
}

@media screen and (max-width: 575px) {
	#scroll_to_top {
		top: 16px;
		right: 14px;
		width: 42px;
		height: 42px;
	}
	#scroll_to_top svg {
		width: 18px;
		height: 18px;
	}
}
