.mod_mobile_menu {
	position: absolute;
}

/* V1: Besuchermenü mit einheitlichem Breakpoint und eigener Scrollfläche. */
@media (width < 1100px) {
	.layout_v1 #header .logo,
	.layout_v1 #header .logo a {
		width: 100px;
		height: 100px;
	}
}
@media (width >= 1100px) {
	.layout_v1 .mobile_menu_icon,
	.layout_v1 .mobile_menu {
		display: none !important;
	}
	.layout_v1 #header .mod_navigation {
		display: block;
	}
}

@media (width < 1100px) {
	.layout_v1 #header .mod_navigation { display: none; }
	.layout_v1 .mobile_menu_icon {
		display: block !important;
		width: 44px;
		height: 44px;
		right: max(20px, env(safe-area-inset-right));
		top: 36px;
		background-size: 28px;
		background-position: center;
		background-color: #fff;
		border-radius: 6px;
		box-shadow: 0 3px 14px rgba(16,38,75,.1);
	}
	.layout_v1 .mobile_menu_icon.header-small {
		top: 13px;
		width: 44px;
		height: 44px;
	}
	.layout_v1:has(#header.header-small) .mobile_menu_icon {
		top: 13px;
		width: 44px;
		height: 44px;
	}
	.layout_v1 .mobile_menu.position_right {
		display: block !important;
		position: fixed;
		top: 140px !important;
		width: 100% !important;
		height: calc(100dvh - 140px) !important;
		padding: 0;
		z-index: 190;
		background: #f7fafc;
	}
	.layout_v1 .mobile_menu .inner {
		box-sizing: border-box;
		height: 100%;
		padding: 72px clamp(20px, 5vw, 54px) 32px;
		background: #f7fafc;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-top: 1px solid #e1e8f0;
	}
	.layout_v1 .mobile_menu .mobile { max-width: 900px; margin: auto; }
	.layout_v1 .mobile_menu .mobile::before {
		content: "MENÜ";
		position: absolute;
		top: 27px;
		color: #2d78c8;
		font-size: 13px;
		font-weight: 800;
		letter-spacing: .16em;
	}
	.layout_v1 .mobile_menu .bt_close { top: 14px; right: 20px; }
	.layout_v1 .mobile_menu .bt_close a {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 1px solid #d9e3ee;
		border-radius: 6px;
		background: #fff;
		color: #10264b;
	}
	.layout_v1 .mobile_menu .level_1 {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px 24px;
		margin: 0;
		padding: 0;
	}
	.layout_v1 .mobile_menu .level_1 > li { margin: 0; padding: 0; min-width: 0; }
	.layout_v1 .mobile_menu .level_1 > li > a,
	.layout_v1 .mobile_menu .level_1 > li > strong {
		display: block;
		box-sizing: border-box;
		padding: 12px 16px;
		border-radius: 6px;
		color: #10264b;
		font-size: clamp(18px, 2.5vw, 24px);
		font-weight: 600;
		line-height: 1.3;
		overflow-wrap: anywhere;
	}
	.layout_v1 .mobile_menu .level_1 > li > a:hover,
	.layout_v1 .mobile_menu .level_1 > li > strong {
		background: #e7f0fa;
		color: #1769b4;
	}
	.layout_v1 .mobile_menu a:focus-visible { outline: 2px solid #2d78c8; outline-offset: 2px; }
	.layout_v1 .mobile_menu .level_1 > li.button_blue > a {
		background: #2d78c8;
		color: #fff;
	}
	.layout_v1 .mobile_menu .level_1 > li:has(> a[href="/impressum.html"]),
	.layout_v1 .mobile_menu .level_1 > li:has(> a[href="/datenschutz.html"]) { order: 2; }
	.layout_v1 .mobile_menu .level_1 > li > a[href="/impressum.html"],
	.layout_v1 .mobile_menu .level_1 > li > a[href="/datenschutz.html"] { font-size: 14px; color: #526780; }
	.layout_v1 .mobile_menu .level_1 > li:has(> a[href="/assets_v1.html"]),
	.layout_v1 .mobile_menu .level_1 > li:has(> a[href="/insta-test.html"]) { display: none; }
}

@media (650px <= width < 1100px) {
	.layout_v1 .mobile_menu .level_1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mobile_menu_overlay {
	display: none!important;
}
.mobile_menu_icon {
	display: block;
	position: fixed;
	right: 50px;
	top: 40px;
	background: url(../assets/mobile-menu.svg);
	width: 40px;
	height: 40px;
	background-repeat: no-repeat;
	background-size: 100%;
	cursor: pointer;
	-webkit-transition:all 0.4s ease;
    -moz-transition:all 0.4s ease;
    transition:all 0.4s ease;
	display: none;
}

.bt_close {
	position: absolute;
	right: 30px;
	top: 150px;
}

.bt_close a {
	font-weight: 400 !important;
	font-size: 25px !important
}

.mobile_menu {
	top: 0px !important;
	padding: 0px;
	*max-width: 500px !important;
	height: 120vh !important;
	-webkit-transition:all 0.4s ease;
    -moz-transition:all 0.4s ease;
    transition:all 0.4s ease;
	color: #000000 !important;
	z-index: 1;
	padding-bottom: 80px;
}

.layout_v1 .mobile_menu {
	z-index: 10;
}
.layout_v2 .mobile_menu {
	z-index: 2;
}

.mobile_menu .inner {
	background: #FFFFFF;
	overflow-y: auto;
	z-index: 1001 !important;
	position: relative;
	padding: 30px 50px;
	padding-top: 150px;
}

.mobile_menu a,
.mobile_menu li {
	text-decoration: none;
	color: #000000;
	font-weight: 400;
	font-size: 16px;
}

.mobile_menu strong {
	font-weight: 500;
}

.mobile_menu li.trail>a {
	color: #2d779c;
}
.mobile_menu li.active {
	color: #2d779c;
}

.mobile_menu .mainmenu li.nomenu {
	display: block !important;
}

.mainmenu li.first:not(.mainmenu .level_2 li.first) {
	//display: none !important;
}
.mobile_menu .mainmenu li.first {
	display: block !important;
}

.mod_navigation.mobile {
	background: rgba(76,48,48,0.8);
	border-bottom: 3px solid #2d779c;
}

.mobile_menu li.submenu.trail {
	color: #2d779c !important;
}

/* Das mobile Offcanvas-Menü darf die Desktop-Ansicht nicht verbreitern. */
@media (min-width: 801px) {
	.layout_v1 .mobile_menu,
	.layout_v2 .mobile_menu {
		display: none !important;
	}
}

.mobile_menu  li {
	display: block;
	padding-right: 25px;
	padding-bottom: 10px;
	list-style: none;
	padding-top: 5px;
	padding-bottom: 5px;
	line-height: 22px;
} 


.mobile_menu .produkte {
	border-top: 1px dotted #2d779c;
	border-bottom: 1px dotted #2d779c;
	margin-bottom: 10px;
	margin-top: 10px;
	padding-left: 0px;
	padding-bottom: 5px;
}

.mobile_menu .kontakt {
	border-top: 1px dotted #2d779c;
	*border-bottom: 1px dotted #2d779c;
	*margin-bottom: 30px;
	margin-top: 10px;
	padding-left: 0px;
}

.mobile_menu a:hover, .mobile_menu li:hover {
	color: #2d779c;
}

.mobile_menu .wissen, 
.mobile_menu .rechtliches {
	border-top: 1px dotted #2d779c;
	*border-bottom: 1px dotted #2d779c;
	*margin-bottom: 30px;
	*margin-top: 10px;
	padding-left: 0px;
}

.mobile_menu .produkte li,
.mobile_menu li.testzugang {
	position: relative;
	left: 35px;
}
.mobile_menu .produkte li:before,
.mobile_menu li.testzugang:before{
	position: absolute;
	content: "➡︎ ";
	color: #2d779c;
	margin-left: -35px;
}

.mobile_menu li.testzugang a {
	color: #0aa4f1;
}

.mobile_menu .rechtliches li a,
.mobile_menu .wissen li a {
	font-size: 14px !important;
}

.mobile_menu .produkte ul {
	padding-top: 10px !important;
}


/* Version1: Logo und Hero-Text an der Inhaltskante ausrichten. */
@media only screen and (width < 1650px) {
	.layout_v1 {
		--mobile-content-inset: 36px;
	}

	.layout_v1.start {
		/* Startseite und Unterseiten verwenden dieselbe Inhaltskante. */
		--mobile-content-inset: 36px;
	}

	.layout_v1 #header .inside,
	.layout_v1 #header.header-small .inside {
		padding-left: var(--mobile-content-inset);
		padding-right: var(--mobile-content-inset);
	}

	.layout_v1 #header .logo {
		left: 0;
	}

	.layout_v1 #hero .content-text {
		--v1-hero-text-left: var(--mobile-content-inset);
	}
}

/* Version1: Hero-Bild über dem Text, darunter folgt der Seiteninhalt. */
@media only screen and (width < 1024px) {
	
	#header .logo {
		width: 100px;
		height: 100px;
		left: 0px;
	}
	#header .logo a {
		width: 100px;
		height: 100px;
	}
	#header.header-small .logo,
	#header.header-small .logo a {
		width: 60px !important;
		height: 60px !important;
	}
			
	
	.layout_v1:is(.start, :not(.start)) #hero {
		position: relative;
		height: auto;
		min-height: 0;
	}

	.layout_v1:is(.start, :not(.start)) #hero .inside {
		height: auto;
		min-height: 0;
	}

	.layout_v1:is(.start, :not(.start)) #hero .mod_article {
		display: flex;
		flex-direction: column;
	}

	.layout_v1:is(.start, :not(.start)) #hero .hero_image,
	.layout_v1:is(.start, :not(.start)) #hero .content-image,
	.layout_v1:is(.start, :not(.start)) #hero .content-image figure {
		position: relative;
		inset: auto;
		height: auto;
		min-height: 0;
		order: 0;
	}

	.layout_v1:is(.start, :not(.start)) #hero .content-image img,
	.layout_v1:is(.start, :not(.start)) #hero .content-player video {
		width: 100%;
		height: clamp(280px, 50vw, 500px);
		min-height: 0;
		margin-left: 0;
	}

	.layout_v1:is(.start, :not(.start)) #hero .content-text,
	.layout_v1:is(.start, :not(.start)) #hero .hero_text.hero-text-hidden {
		position: relative;
		top: auto;
		left: auto;
		order: 1;
		width: 100%;
		height: auto;
		min-height: 0;
		box-sizing: border-box;
		padding: 32px var(--mobile-content-inset);
		background: #fff;
		transform: none;
		will-change: auto;
	}

	.layout_v1:is(.start, :not(.start)) #hero .content-text .rte {
		padding-top: 0;
	}

	.layout_v1:is(.start, :not(.start)) #hero .hero_text.blur::before,
	.layout_v1:is(.start, :not(.start)) #hero .content-image.blur::after {
		display: none;
	}

	.layout_v1 #container,
	.layout_v1.start #container {
		margin-top: 0;
	}
}

@media only screen and (max-width: 800px) {
	.layout_v1:not(.start) {
		--mobile-content-inset: 20px;
	}
}

@media only screen and (max-width: 767px) {
	.layout_v1 #footer .inside {
		padding-left: 20px;
		padding-right: 20px;
	}

	.layout_v1 #footer .inside > .rs-columns {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 18px;
		row-gap: 28px;
		width: 100%;
	}

	.layout_v1 #footer .inside > .rs-columns > .rs-column {
		float: none;
		width: auto;
		margin: 0;
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.layout_v1 #footer .inside > .rs-columns > .rs-column:first-child {
		grid-column: 1 / -1;
	}

	.layout_v1 #footer .inside img {
		max-width: 100%;
		height: auto;
	}

	.layout_v1.start {
		--mobile-content-inset: 20px;
	}

	.layout_v1 #header .inside,
	.layout_v1 #header.header-small .inside {
		padding-left: var(--mobile-content-inset);
		padding-right: var(--mobile-content-inset);
	}

	.layout_v1 #hero .content-text {
		--v1-hero-text-left: var(--mobile-content-inset);
	}

	.layout_v1.start #teaser,
	.layout_v1.start #teaser > .rs-columns.cards {
		padding-left: var(--mobile-content-inset);
		padding-right: var(--mobile-content-inset);
	}
}

@media only screen and (max-width: 840px) {
	.mobile_menu {
		width: 100%!important;
	}
}

@media only screen and (max-width: 500px) {
	.mobile_menu .inner {
		padding-left: 20px;
		padding-right: 20px;
	}
	.bt_close {
		right: 30px;
	}
}

/* Bis 600px bleibt der kompakte Sticky-Zustand dauerhaft aktiv. */
@media (max-width: 600px) {
	.layout_v1 #header,
	.layout_v1 #header.header-small {
		height: 70px;
	}
	.layout_v1 #header .inside,
	.layout_v1 #header.header-small .inside {
		padding-top: 0;
		padding-bottom: 0;
	}
	.layout_v1 #header .logo,
	.layout_v1 #header.header-small .logo,
	.layout_v1 #header .logo a,
	.layout_v1 #header.header-small .logo a {
		width: 60px !important;
		height: 60px !important;
	}
	.layout_v1 #header:not(.header-small) .logo {
		top: 22px;
	}
	.layout_v1 .mobile_menu_icon,
	.layout_v1 .mobile_menu_icon.header-small,
	.layout_v1:has(#header.header-small) .mobile_menu_icon {
		top: 13px;
		width: 44px;
		height: 44px;
	}
}

@media only screen and (max-width: 800px) {
	.layout_v1 #container #article-60 {
		padding: 54px 20px 66px;
		gap: 20px;
	}

	.layout_v1 #container #article-60 > .content-text {
		padding: 28px 24px;
	}
}

@media only screen and (max-width: 800px) {
	.layout_v1 #container #article-60,
	.layout_v1 #article-60 .formbody {
		grid-template-columns: 1fr;
	}
	.layout_v1 #container #article-60 > .content-text:nth-child(2) {
		grid-row: 3;
		margin-bottom: -20px;
	}
	.layout_v1 #container #article-60 > .ce_form {
		grid-row: 4;
		padding: 12px 24px 28px;
	}
	.layout_v1 #article-60 button.submit {
		width: 100%;
	}
}

@media only screen and (max-width: 800px) {
	.layout_v1 #container .mod_article:has(> .card) {
		padding: 0 20px 66px;
	}

	.layout_v1 #container .card {
		padding: 30px 26px 32px;
	}
}

@media (max-width: 469px) {
	.layout_v1 #footer .inside > .rs-columns {
		grid-template-columns: 1fr;
		column-gap: 0;
	}
	.layout_v1 #footer .inside > .rs-columns > .rs-column {
		grid-column: auto;
	}
}
