/*
 * TOP-MEDIA Header B2 (Theme 1.5.0)
 *
 * Anpassungen ohne PHP: Variablen unten über „Design → Customizer → Zusätzliches CSS“ überschreiben, z. B.
 *   .tm-hb { --tm-hb-blue: #1B426D; --tm-hb-logo-h: 50px; }
 * Alle Klassen beginnen mit .tm-hb, damit nichts außerhalb des Headers beeinflusst wird.
 * Umbruch Smartphone/Desktop bei 980 px (wie die bisherigen Theme-Skripte).
 */

/* ---------- 1. Variablen ---------- */
.tm-hb {
	--tm-hb-blue: #1B426D;
	--tm-hb-dark: #1B2530;
	--tm-hb-accent: #FFD200;           /* Kundengruppe, aktiver Menüpunkt, Menüsymbole */
	--tm-hb-on-dark: #FFFFFF;
	--tm-hb-muted-on-dark: #C9D6E6;
	--tm-hb-line-on-dark: rgba(255, 255, 255, .16);
	--tm-hb-panel-bg: #FFFFFF;
	--tm-hb-panel-text: #1B2530;
	--tm-hb-panel-muted: #5B6B7E;
	--tm-hb-panel-line: #E6EAF0;
	--tm-hb-panel-hover: #F4F6F9;
	--tm-hb-group-bg: var(--tm-hb-accent);
	--tm-hb-group-text: #1B2530;
	--tm-hb-group-neutral-bg: #E3EAF3;
	--tm-hb-group-neutral-text: #1B426D;

	--tm-hb-max: 1200px;               /* Inhaltsbreite inkl. Innenabstand */
	--tm-hb-pad: 15px;
	--tm-hb-top-h: 88px;
	--tm-hb-nav-h: 50px;
	--tm-hb-logo-h: 42px;              /* Logo-Datei ist 162 × 42 px: nicht hochskalieren (Logo-Optimierung aus 1.4.1) */
	--tm-hb-search-h: 46px;
	--tm-hb-search-max: 640px;
	--tm-hb-search-btn-w: 70px;        /* Breite des FiboSearch-Knopfs „SUCHE“ */
	--tm-hb-radius: 6px;
	--tm-hb-font: 15px;
	--tm-hb-font-small: 13px;
	--tm-hb-touch: 44px;
	--tm-hb-drawer-w: 340px;
	--tm-hb-z: 1000;
	--tm-hb-drawer-z: 1000001;          /* offenes Menü über Adminleiste und schwebenden Plugin-Elementen */

	position: relative;
	z-index: var(--tm-hb-z);
	font-size: var(--tm-hb-font);
	line-height: 1.35;
	color: var(--tm-hb-on-dark);
}

/* ---------- 2. Grund-Rücksetzungen (nur innerhalb des Headers) ---------- */
.tm-hb *,
.tm-hb *::before,
.tm-hb *::after { box-sizing: border-box; }
.tm-hb ul,
.tm-hb li { list-style: none; margin: 0; padding: 0; clear: none; }
.tm-hb a { color: inherit; text-decoration: none; }
.tm-hb a:hover,
.tm-hb a:focus { color: inherit; }
.tm-hb .tm-hb-icon { display: block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tm-hb-menubtn,
.tm-hb-cats__toggle,
.tm-hb-drawer__close,
.tm-hb-subtoggle {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	line-height: 1.2;
	cursor: pointer;
	min-height: 0;
	width: auto;
	height: auto;
}
.tm-hb-menubtn:hover,
.tm-hb-menubtn:focus,
.tm-hb-menubtn:active,
.tm-hb-cats__toggle:hover,
.tm-hb-cats__toggle:focus,
.tm-hb-cats__toggle:active,
.tm-hb-drawer__close:hover,
.tm-hb-drawer__close:focus,
.tm-hb-drawer__close:active,
.tm-hb-subtoggle:hover,
.tm-hb-subtoggle:focus,
.tm-hb-subtoggle:active { background: none; color: inherit; box-shadow: none; }
.tm-hb :focus-visible { outline: 2px solid var(--tm-hb-accent); outline-offset: 2px; }
.tm-hb .tm-hb-cats__panel :focus-visible { outline-color: var(--tm-hb-blue); outline-offset: -2px; }
/* Browser ohne :focus-visible (z. B. Safari < 15.4): Theme setzt global outline:0.
   Erst :focus zeigen, dann bei Mausklick wieder entfernen; ältere Browser verwerfen die zweite Regel und behalten den Rahmen. */
.tm-hb a:focus,
.tm-hb button:focus { outline: 2px solid var(--tm-hb-accent); outline-offset: 2px; }
.tm-hb .tm-hb-cats__panel a:focus,
.tm-hb .tm-hb-cats__panel button:focus { outline-color: var(--tm-hb-blue); }
.tm-hb a:focus:not(:focus-visible),
.tm-hb button:focus:not(:focus-visible) { outline: none; }
.tm-hb-wrap { max-width: var(--tm-hb-max); margin: 0 auto; padding: 0 var(--tm-hb-pad); }

/* ---------- 3. Blauer Bereich ---------- */
.tm-hb-top { background: var(--tm-hb-blue); }
.tm-hb-top__inner { display: flex; align-items: center; gap: 28px; min-height: var(--tm-hb-top-h); }

.tm-hb-logo { flex: 0 0 auto; }
.tm-hb-logo a { display: block; }
.tm-hb-logo img { display: block; height: var(--tm-hb-logo-h); width: auto; max-width: none; }
.tm-hb-logo__mobile { display: none; }
.tm-hb-logo__text { font-size: 22px; font-weight: 700; color: var(--tm-hb-on-dark); }

/* Suche (FiboSearch) */
.tm-hb-search { flex: 1 1 auto; min-width: 0; max-width: var(--tm-hb-search-max); }
.tm-hb .tm-hb-search .dgwt-wcas-search-wrapp { width: 100%; max-width: none; min-width: 0; margin: 0; }
.tm-hb .tm-hb-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	height: var(--tm-hb-search-h);
	/* Das Feld reicht bei FiboSearch unter den Knopf (Knopf liegt absolut rechts darüber):
	   deshalb alle Ecken runden (sonst weiße Ecke hinter dem runden Knopf) und rechts Platz für den Knopf lassen. */
	border-radius: var(--tm-hb-radius);
	padding-right: calc(var(--tm-hb-search-btn-w) + 14px);
	font-size: var(--tm-hb-font);
}
.tm-hb .tm-hb-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
	height: var(--tm-hb-search-h);
	min-height: var(--tm-hb-search-h);
	border-radius: 0 var(--tm-hb-radius) var(--tm-hb-radius) 0;
}
.tm-hb .tm-hb-search .dgwt-wcas-search-submit::before { display: none; } /* kein Sprechblasen-Pfeil am Knopf */
.tm-hb .tm-hb-search .search-form { display: flex; }

/* Konto */
.tm-hb .tm-hb-account {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	min-height: var(--tm-hb-touch);
	color: var(--tm-hb-on-dark);
}
.tm-hb-account__icon { display: flex; width: var(--tm-hb-touch); height: var(--tm-hb-touch); align-items: center; justify-content: center; }
.tm-hb-account__icon .tm-hb-icon { stroke-width: 1.7; }
.tm-hb-account__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.tm-hb-account__label { font-size: var(--tm-hb-font); font-weight: 600; }
.tm-hb-account__sub { font-size: var(--tm-hb-font-small); color: var(--tm-hb-muted-on-dark); }

/* Kundengruppe */
.tm-hb-group {
	display: inline-block;
	margin-top: 2px;
	padding: 1px 8px;
	border-radius: 4px;
	background: var(--tm-hb-group-bg);
	color: var(--tm-hb-group-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 19px;
	white-space: nowrap;
}
/* Privatkunden-Gruppe aus B2B Market („bm_customer_group“) neutral; Händlergruppen gelb. */
.tm-hb-group--privat { background: var(--tm-hb-group-neutral-bg); color: var(--tm-hb-group-neutral-text); }

/* Warenkorb */
.tm-hb .tm-hb-cart {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 7px 16px 7px 12px;
	border: 1px solid var(--tm-hb-line-on-dark);
	border-radius: var(--tm-hb-radius);
	background: rgba(255, 255, 255, .07);
	color: var(--tm-hb-on-dark);
	flex: 0 0 auto;
}
.tm-hb .tm-hb-cart:hover { background: rgba(255, 255, 255, .13); }
.tm-hb-cart__icon { position: relative; display: flex; }
.tm-hb-cart__icon .tm-hb-icon { stroke-width: 1.7; }
.tm-hb-cart__count {
	position: absolute;
	top: -11px;
	left: 14px;
	transform: translateX(-50%);
	min-width: 22px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--tm-hb-blue);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 0 0 2px var(--tm-hb-blue);
}
.tm-hb-cart__text { display: flex; flex-direction: column; line-height: 1.25; }
.tm-hb-cart__label { font-size: var(--tm-hb-font-small); color: var(--tm-hb-muted-on-dark); }
.tm-hb-cart__total { font-size: var(--tm-hb-font); font-weight: 600; white-space: nowrap; }
/* „Zusätzliches CSS“ färbt alle Preise global rot (.woocommerce-Price-amount … !important); im Header weiß lassen. */
.tm-hb .tm-hb-cart .tm-hb-cart__total .woocommerce-Price-amount,
.tm-hb .tm-hb-cart .tm-hb-cart__total bdi,
.tm-hb .tm-hb-cart .tm-hb-cart__total .woocommerce-Price-currencySymbol { color: inherit !important; }

/* ---------- 4. Dunkle Leiste ---------- */
.tm-hb-nav { background: var(--tm-hb-dark); color: var(--tm-hb-on-dark); }
.tm-hb-nav__inner { display: flex; align-items: stretch; min-height: var(--tm-hb-nav-h); }
.tm-hb-menubtn,
.tm-hb-quick,
.tm-hb-nav__group,
.tm-hb-drawer__head,
.tm-hb-drawer__status,
.tm-hb-drawer__label,
.tm-hb-overlay { display: none; }

.tm-hb-drawer { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }

/* Kategorien (Desktop: Aufklapp-Liste mit Unterkategorien seitlich) */
.tm-hb-cats { position: relative; display: flex; align-items: stretch; margin-right: 10px; border-right: 1px solid var(--tm-hb-line-on-dark); }
.tm-hb-cats__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 22px 0 0;
	font-size: var(--tm-hb-font);
	white-space: nowrap;
}
.tm-hb-cats__toggle .tm-hb-icon--list { color: var(--tm-hb-accent); stroke-width: 2; }
.tm-hb-cats__toggle .tm-hb-icon--down { transition: transform .15s; }
.tm-hb-cats.is-open .tm-hb-cats__toggle .tm-hb-icon--down { transform: rotate(180deg); }
.tm-hb-cats__panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	width: 290px;
	padding: 6px 0;
	background: var(--tm-hb-panel-bg);
	color: var(--tm-hb-panel-text);
	border-top: 3px solid var(--tm-hb-blue);
	box-shadow: 0 14px 30px rgba(17, 30, 50, .18);
}
.tm-hb-cats.is-open .tm-hb-cats__panel { display: block; }
.tm-hb-cats__panel .widget-title { display: none; }
.tm-hb-catlist li { position: relative; }
.tm-hb .tm-hb-catlist a {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 18px;
	font-size: var(--tm-hb-font);
	color: var(--tm-hb-panel-text);
}
.tm-hb .tm-hb-catlist a:hover,
.tm-hb .tm-hb-catlist a:focus { background: var(--tm-hb-panel-hover); color: var(--tm-hb-blue); }
.tm-hb-catlist .current-cat > a,
.tm-hb-catlist .current-cat-parent > a { font-weight: 600; color: var(--tm-hb-blue); }
.tm-hb-catlist .count { margin-left: 6px; color: var(--tm-hb-panel-muted); font-size: var(--tm-hb-font-small); }

@media (min-width: 980px) {
	.tm-hb-catlist .cat-parent > a::after {
		content: "";
		margin-left: auto;
		width: 7px;
		height: 7px;
		border-right: 2px solid var(--tm-hb-panel-muted);
		border-top: 2px solid var(--tm-hb-panel-muted);
		transform: rotate(45deg);
	}
	.tm-hb-catlist .children {
		display: none;
		position: absolute;
		top: -6px;
		left: 100%;
		width: 260px;
		padding: 6px 0;
		background: var(--tm-hb-panel-bg);
		box-shadow: 0 14px 30px rgba(17, 30, 50, .18);
		border-left: 1px solid var(--tm-hb-panel-line);
	}
	.tm-hb-catlist li:hover > .children,
	.tm-hb-catlist li:focus-within > .children { display: block; }
	.tm-hb-subtoggle { display: none; }
}

/* Touch-Tablets ab 980 px (kein Maus-Hover): Unterkategorien per Pfeil-Knopf öffnen */
@media (min-width: 980px) and (hover: none) {
	.tm-hb-catlist .cat-parent > a::after { display: none; }
	.tm-hb-catlist li { display: flex; flex-wrap: wrap; }
	.tm-hb .tm-hb-catlist li > a { flex: 1 1 0; min-width: 0; min-height: 44px; }
	.tm-hb-subtoggle { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; min-height: 44px; color: var(--tm-hb-panel-muted); }
	.tm-hb-catlist li:hover > .children,
	.tm-hb-catlist li:focus-within > .children { display: none; }
	.tm-hb-catlist li.is-open > .children { display: block; }
}

/* Hauptmenü */
.tm-hb-menu { display: flex; }
.tm-hb-menu__list { display: flex; align-items: stretch; }
.tm-hb-menu__list > li { position: relative; display: flex; }
.tm-hb-menu__list > li > a {
	display: flex;
	align-items: center;
	padding: 0 18px;
	font-size: var(--tm-hb-font);
	font-weight: 500;
	white-space: nowrap;
	color: var(--tm-hb-on-dark);
}
.tm-hb .tm-hb-menu__list > li > a:hover,
.tm-hb .tm-hb-menu__list > li > a:focus,
.tm-hb .tm-hb-menu__list > .current-menu-item > a,
.tm-hb .tm-hb-menu__list > .current-menu-ancestor > a { color: var(--tm-hb-accent); }
.tm-hb-menu__list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 6px 0; background: var(--tm-hb-panel-bg); box-shadow: 0 14px 30px rgba(17, 30, 50, .18); z-index: 20; }
.tm-hb-menu__list li:hover > .sub-menu,
.tm-hb-menu__list li:focus-within > .sub-menu { display: block; }
.tm-hb .tm-hb-menu__list .sub-menu a { display: block; padding: 9px 18px; color: var(--tm-hb-panel-text); }
.tm-hb .tm-hb-menu__list .sub-menu a:hover,
.tm-hb .tm-hb-menu__list .sub-menu a:focus { background: var(--tm-hb-panel-hover); color: var(--tm-hb-blue); }

/* Telefon */
.tm-hb .tm-hb-phone {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
	padding-left: 22px;
	border-left: 1px solid var(--tm-hb-line-on-dark);
	font-size: var(--tm-hb-font);
	white-space: nowrap;
	color: var(--tm-hb-on-dark);
}
.tm-hb-phone .tm-hb-icon { color: var(--tm-hb-muted-on-dark); }

/* ---------- 5. Mittlere Desktopbreiten ---------- */
@media (min-width: 980px) and (max-width: 1199px) {
	.tm-hb-top__inner { gap: 20px; }
	.tm-hb-menu__list > li > a { padding: 0 13px; }
	.tm-hb-cats__toggle { padding-right: 16px; }
	.tm-hb-phone { padding-left: 16px; }
}

/* ---------- 6. Smartphone und Tablet (< 980 px) ---------- */
@media (max-width: 979.98px) {
	.tm-hb {
		--tm-hb-logo-h: 38px;
		--tm-hb-search-h: 42px;
		--tm-hb-nav-h: 42px;
		--tm-hb-pad: 14px;
	}
	.tm-hb-logo--has-mobile .tm-hb-logo__desktop { display: none; }
	.tm-hb-logo--has-mobile .tm-hb-logo__mobile { display: block; }

	.tm-hb-top__inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 6px; padding-bottom: 8px; padding-right: 10px; }
	.tm-hb .tm-hb-account { order: 2; margin-left: auto; gap: 0; }
	.tm-hb-account__text { display: none; }
	.tm-hb .tm-hb-cart { order: 3; gap: 5px; min-height: var(--tm-hb-touch); min-width: var(--tm-hb-touch); margin-left: 4px; padding: 0; border: 0; background: none; justify-content: center; }
	.tm-hb .tm-hb-cart:hover { background: none; }
	.tm-hb-cart__icon { position: static; align-items: center; gap: 4px; }
	.tm-hb-cart__count { position: static; transform: none; box-shadow: none; height: 22px; min-width: 24px; font-size: 13px; line-height: 22px; }
	.tm-hb-cart__text { display: none; }
	.tm-hb-search { order: 4; flex: 0 0 100%; max-width: none; margin-top: 6px; margin-right: 4px; }

	.tm-hb-nav__inner { align-items: center; }
	.tm-hb-menubtn { display: flex; align-items: center; gap: 10px; min-height: var(--tm-hb-touch); font-size: var(--tm-hb-font); }
	.tm-hb-menubtn .tm-hb-icon { color: var(--tm-hb-accent); stroke-width: 2; }
	.tm-hb-nav__group { display: flex; margin-left: auto; padding-left: 8px; }

	/* Home und Shop direkt in der Leiste (1.8.8): ☰ Kategorien | ⌂ Home | Shop */
	.tm-hb-menubtn { padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; }
	.tm-hb-quick { display: flex; align-items: stretch; }
	.tm-hb .tm-hb-quick__link { display: flex; align-items: center; gap: 6px; min-height: var(--tm-hb-touch); padding: 0 12px; font-weight: 500; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .22); }
	.tm-hb .tm-hb-quick__link:last-child { border-right: 0; }
	.tm-hb .tm-hb-quick__link .tm-hb-icon { color: var(--tm-hb-accent); stroke-width: 2; }
	.tm-hb .tm-hb-quick__link:hover,
	.tm-hb .tm-hb-quick__link:focus,
	.tm-hb .tm-hb-quick__link[aria-current="page"] { color: var(--tm-hb-accent); }
	.tm-hb-nav__group .tm-hb-group { margin: 0; }

	/* Seitliches Menü */
	.tm-hb-drawer {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: var(--tm-hb-drawer-z);
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: min(88vw, var(--tm-hb-drawer-w));
		background: var(--tm-hb-panel-bg);
		color: var(--tm-hb-panel-text);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .2s ease, visibility 0s linear .2s;
		box-shadow: 6px 0 24px rgba(0, 0, 0, .25);
	}
	.tm-hb.is-drawer-open .tm-hb-drawer { transform: none; visibility: visible; transition: transform .2s ease; }
	.tm-hb-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: calc(var(--tm-hb-drawer-z) - 1); background: rgba(15, 23, 35, .5); }
	.tm-hb.is-drawer-open .tm-hb-overlay { display: block; }

	.tm-hb-drawer__head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; min-height: 60px; padding: 0 8px 0 14px; background: var(--tm-hb-blue); color: var(--tm-hb-on-dark); }
	.tm-hb-drawer__logo img { display: block; height: 38px; width: auto; }
	.tm-hb-drawer__close { display: flex; align-items: center; justify-content: center; width: var(--tm-hb-touch); height: var(--tm-hb-touch); border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--tm-hb-radius); }

	.tm-hb-drawer__status { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: var(--tm-hb-panel-hover); border-bottom: 1px solid var(--tm-hb-panel-line); font-size: 14px; }
	.tm-hb-drawer__as { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
	.tm-hb-drawer__as .tm-hb-group { margin: 0; }
	.tm-hb .tm-hb-drawer__links { display: flex; align-items: center; gap: 16px; }
	.tm-hb .tm-hb-drawer__account,
	.tm-hb .tm-hb-drawer__logout { display: flex; align-items: center; min-height: var(--tm-hb-touch); font-weight: 600; color: var(--tm-hb-blue); }
	.tm-hb .tm-hb-drawer__login { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tm-hb-touch); border: 1px solid var(--tm-hb-blue); border-radius: var(--tm-hb-radius); font-weight: 600; color: var(--tm-hb-blue); }
	.tm-hb .tm-hb-drawer__login:hover,
	.tm-hb .tm-hb-drawer__account:hover,
	.tm-hb .tm-hb-drawer__logout:hover { color: var(--tm-hb-blue); text-decoration: underline; }

	.tm-hb .tm-hb-drawer :focus-visible { outline-color: var(--tm-hb-blue); outline-offset: -2px; }
	.tm-hb .tm-hb-drawer__head :focus-visible { outline-color: var(--tm-hb-accent); }
	.tm-hb-drawer__label { display: block; padding: 14px 16px 6px; font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--tm-hb-panel-muted); }

	.tm-hb-cats { display: block; margin: 0; border: 0; }
	.tm-hb-cats__toggle { display: none; }
	.tm-hb-cats__panel { display: block; position: static; width: auto; padding: 0; border: 0; box-shadow: none; }

	.tm-hb-catlist li { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--tm-hb-panel-line); }
	.tm-hb .tm-hb-catlist li > a { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 16px; font-size: 16px; overflow-wrap: anywhere; }
	.tm-hb-subtoggle { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; min-height: 48px; border-left: 1px solid var(--tm-hb-panel-line); color: var(--tm-hb-panel-muted); }
	.tm-hb-subtoggle .tm-hb-icon { transition: transform .15s; }
	.tm-hb-catlist li.is-open > .tm-hb-subtoggle .tm-hb-icon { transform: rotate(180deg); }
	.tm-hb .tm-hb-catlist li.is-open > a { background: var(--tm-hb-panel-hover); font-weight: 600; color: var(--tm-hb-blue); }
	.tm-hb-catlist .children { display: none; flex: 0 0 100%; }
	.tm-hb-catlist li.is-open > .children { display: block; }
	.tm-hb-catlist .children li { border-bottom: 1px solid #F1F3F6; }
	.tm-hb-catlist .children li:last-child { border-bottom: 0; }
	.tm-hb .tm-hb-catlist .children a { min-height: 44px; padding-left: 32px; font-size: 15px; color: #334155; }
	.tm-hb .tm-hb-catlist .children .children a { padding-left: 48px; }

	.tm-hb-menu { display: block; }
	.tm-hb-menu__list { display: block; }
	.tm-hb-menu__list > li { display: block; border-bottom: 1px solid var(--tm-hb-panel-line); }
	.tm-hb-menu__list > li > a { min-height: var(--tm-hb-touch); padding: 0 16px; font-size: 16px; color: var(--tm-hb-panel-text); }
	.tm-hb .tm-hb-menu__list > li > a:hover,
	.tm-hb .tm-hb-menu__list > li > a:focus { color: var(--tm-hb-blue); }
	.tm-hb .tm-hb-menu__list > .current-menu-item > a { font-weight: 600; color: var(--tm-hb-blue); box-shadow: inset 4px 0 0 var(--tm-hb-blue); background: #F7F9FC; }
	.tm-hb-menu__list .sub-menu { display: block; position: static; box-shadow: none; padding: 0; }
	.tm-hb .tm-hb-menu__list .sub-menu a { padding-left: 32px; }

	.tm-hb .tm-hb-phone { justify-content: center; margin: 14px 16px 20px; padding: 0 12px; min-height: 46px; border: 1px solid var(--tm-hb-dark); border-radius: var(--tm-hb-radius); font-weight: 600; color: var(--tm-hb-panel-text); }
	.tm-hb .tm-hb-phone:hover { color: var(--tm-hb-blue); }
	.tm-hb-phone .tm-hb-icon { color: var(--tm-hb-panel-text); }
}

/* Sehr schmale Smartphones (z. B. 320 px) */
@media (max-width: 419.98px) {
	.tm-hb-menubtn { gap: 6px; padding-right: 7px; }
	.tm-hb .tm-hb-quick__link { gap: 4px; padding: 0 7px; }
	.tm-hb .tm-hb-quick__link .tm-hb-icon { width: 16px; height: 16px; }
	.tm-hb-nav__group { padding-left: 4px; }
	.tm-hb-nav__group .tm-hb-group { font-size: 11px; padding: 2px 5px; letter-spacing: 0; }
}

@media (max-width: 374px) {
	.tm-hb { --tm-hb-logo-h: 32px; --tm-hb-pad: 10px; }
	.tm-hb-top__inner { padding-right: 6px; }
	.tm-hb-menubtn { gap: 4px; padding-right: 4px; font-size: 14px; white-space: nowrap; }
	.tm-hb-menubtn .tm-hb-icon { width: 20px; height: 20px; }
	.tm-hb .tm-hb-quick__link { gap: 3px; padding: 0 5px; font-size: 14px; }
	.tm-hb .tm-hb-quick__link .tm-hb-icon { width: 14px; height: 14px; }
	.tm-hb-nav__group { margin-left: auto; padding-left: 2px; }
	.tm-hb-nav__group .tm-hb-group { font-size: 10.5px; padding: 2px 4px; }
}

/* Tablet: Suche in der oberen Zeile */
@media (min-width: 600px) and (max-width: 979.98px) {
	.tm-hb-top__inner { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
	.tm-hb-search { order: 2; flex: 1 1 auto; margin: 0 14px 0 24px; }
	.tm-hb-account { order: 3; margin-left: 0; }
	.tm-hb-cart { order: 4; }
}

/* Seite nicht scrollen, solange das Menü offen ist */
html.tm-hb-noscroll,
html.tm-hb-noscroll body { overflow: hidden; }
/* Offenes Menü: ganzer Header über allen anderen Elementen (eigener Stapelkontext von .tm-hb). */
.tm-hb.is-drawer-open { z-index: var(--tm-hb-drawer-z); }

@media (prefers-reduced-motion: reduce) {
	.tm-hb-drawer,
	.tm-hb-cats__toggle .tm-hb-icon--down,
	.tm-hb-subtoggle .tm-hb-icon { transition: none; }
}
