/**
 * Template Part - Mobile Leiste (Redesign 2026)
 *
 * @author MediaMEANS
**/

.h26_mbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 59;
	display: none;
	gap: 10px;
	padding: 12px 40px;
	border-top: 1px solid #DCDDF2;
	background: #fff;
	box-shadow: 0 -10px 30px -20px rgba(8, 8, 62, .35);
}

/* Nexa sitzt hoch in der Zeile: oben mehr Padding als unten */
.h26_mbar .h26_mbar_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding: 17px 16px 13px;
	border-radius: 999px;
	font-family: Nexa-Heavy, sans-serif;
	font-weight: 400;
	font-size: .875rem;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	-webkit-transition: background .25s, transform .25s, color .25s;
	transition: background .25s, transform .25s, color .25s;
}

.h26_mbar .h26_mbar_btn:active {
	transform: scale(.98);
}

.h26_mbar .h26_mbar_btn--k {
	flex: 1 1 auto;
	background: #FE5B4A;
	color: #fff;
}

.h26_mbar .h26_mbar_btn--k:hover {
	background: #ff735f;
	color: #fff;
}

.h26_mbar .h26_mbar_btn--line {
	flex: none;
	padding: 15px 16px 11px 14px;
	border: 1.5px solid #08083E;
	background: #fff;
	color: #08083E;
}

.h26_mbar .h26_mbar_btn--line:hover {
	color: #08083E;
}

.h26_mbar .h26_mbar_icon {
	display: inline-flex;
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: -4px;
	color: #1919BD;
}

.h26_mbar .h26_mbar_icon svg,
.h26_mbar .h26_mbar_icon img {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1199px) {
	.h26_mbar {
		display: flex;
	}

	body.h26_has_mbar {
		padding-bottom: 76px;
	}
}

@media screen and (max-width: 767px) {
	.h26_mbar {
		padding: 12px 20px;
	}
}

@media screen and (max-width: 399px) {
	.h26_mbar {
		gap: 8px;
		padding: 10px 12px;
	}

	.h26_mbar .h26_mbar_btn {
		font-size: .8125rem;
	}

	.h26_mbar .h26_mbar_btn--k {
		padding-left: 12px;
		padding-right: 12px;
	}

	.h26_mbar .h26_mbar_btn--line {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* very small screens: second button shows the icon only (label stays for screen readers) */
@media screen and (max-width: 335px) {
	.h26_mbar .h26_mbar_btn--line .h26_mbar_icon + .h26_mbar_label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.h26_mbar .h26_mbar_btn--line .h26_mbar_icon {
		margin-top: 0;
	}

	.h26_mbar .h26_mbar_btn--line {
		padding: 13px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.h26_mbar .h26_mbar_btn {
		transition-duration: .001ms;
	}
}

/* The page must never get wider than the screen: on mobile a horizontal
   overflow (e.g. a module sticking out) widens the layout viewport, and this
   fixed bar grows with it - WhatsApp button and to-top end up cut off at the
   right edge. Clip on the modules, not on html/body: html/body would break the
   cookie banner's scroll lock (overflow: hidden on body) and cause layout shifts.
   clip (not hidden) creates no scroll container, so sticky keeps working. */
body > section,
body > footer {
	overflow-x: clip;
}

/* Long German compounds and URLs must wrap instead of running past the edge
   (the clip above would cut them off). overflow-wrap only breaks a word that
   does not fit its line on its own, so normal text is unchanged. */
h1,
h2,
h3,
h4 {
	-webkit-hyphens: auto;
	hyphens: auto;
}

body {
	overflow-wrap: break-word;
}

/* main.css hides every section (section { opacity: 0 }) until custom.js fades
   them in on document ready - after all deferred scripts (mobile: 12-16 s).
   The m55 header is above the fold and holds the LCP image, so it is shown
   right away (LCP mobile 23 s -> 3 s). Only safe because its CSS is loaded
   render-blocking (functions.php) - with async CSS the unstyled header would
   visibly jump (CLS 0.5). Other headers need the same pair before joining here. */
body > section.m55_header_startseite_neu:first-of-type {
	opacity: 1;
}

/* The m55 header has a top margin that collapses through <body>: when the first
   paint happens before the header is parsed, the whole body jumps down 72-84px
   (CLS). flow-root keeps that margin inside body; positions stay identical
   (checked 2026-10-15). Scoped to pages with this header only. */
body:has(> section.m55_header_startseite_neu:first-of-type) {
	display: flow-root;
}
