/* ==========================================================================
   KETTLER – Mobile Navigation (nur bis 999 px; Desktop bleibt unverändert)
   Salient-Header mit Original-Logo bleibt, wird zur schwebenden Glas-Leiste.
   ========================================================================== */

.kmn-actions,
.kmn-panel {
	--kmn-accent: #009b8e;
	--kmn-accent-l: #4fd1c5;
	--kmn-dark: #0b0f0f;
	box-sizing: border-box;
	font-family: inherit;
}

.kmn-actions *,
.kmn-panel *,
.kmn-panel *::before,
.kmn-panel *::after {
	box-sizing: border-box;
}

@media (min-width: 1000px) {
	.kmn-actions,
	.kmn-panel {
		display: none !important;
	}
}

@media (max-width: 999px) {

	/* ---- Kopfleiste: schwebend, Glas ---------------------------------- */
	body.kmn-ready #header-outer {
		left: 12px !important;
		right: 12px !important;
		width: auto !important;
		margin-top: 12px !important;
		border: 1px solid rgba(255, 255, 255, 0.9) !important;
		border-radius: 18px !important;
		background-color: rgba(255, 255, 255, 0.84) !important;
		box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12) !important;
		-webkit-backdrop-filter: blur(18px) saturate(160%);
		backdrop-filter: blur(18px) saturate(160%);
		transition: box-shadow 0.3s ease, background-color 0.3s ease;
	}

	body.kmn-ready #header-outer #top,
	body.kmn-ready #header-outer #top .container,
	body.kmn-ready #header-outer .container {
		background: transparent !important;
	}

	html.kmn-scrolled body.kmn-ready #header-outer {
		background-color: rgba(255, 255, 255, 0.94) !important;
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16) !important;
	}

	/* Neue KETTLER-Seiten: Salient-Platzhalter unter dem Header entfällt,
	   Video/Bild beginnt ganz oben, die Glas-Leiste schwebt darüber */
	body.kmn-ready.km-page #header-space {
		display: none !important;
	}

	body.kmn-ready.km-page .container-wrap.km-wrap,
	body.kmn-ready.km-page #ajax-content-wrap {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	/* Platz rechts für die neuen Buttons */
	body.kmn-ready #header-outer #top .container {
		padding-right: 110px !important;
	}

	/* Salient-Menü-Button & mobile Icons ausblenden – ersetzt durch eigene Buttons */
	body.kmn-ready #header-outer .slide-out-widget-area-toggle,
	body.kmn-ready #header-outer #mobile-cart-link,
	body.kmn-ready #header-outer .mobile-search,
	body.kmn-ready #header-outer #search-btn,
	body.kmn-ready #header-outer .mobile-user-account {
		display: none !important;
	}

	/* ---- Buttons in der Leiste ---------------------------------------- */
	.kmn-actions {
		position: absolute;
		z-index: 100002;
		pointer-events: auto;
		top: 50%;
		right: 8px;
		display: flex;
		align-items: center;
		gap: 6px;
		transform: translateY(-50%);
	}

	.kmn-actions[hidden] {
		display: none;
	}

	.kmn-call,
	.kmn-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border-radius: 50% !important;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.kmn-call {
		border: 1px solid rgba(0, 0, 0, 0.08);
		color: #121212 !important;
		background: #fff;
	}

	.kmn-toggle {
		border: 0 !important;
		background: var(--kmn-accent) !important;
		box-shadow: 0 8px 20px rgba(0, 155, 142, 0.35);
		transition: background-color 0.25s ease, transform 0.2s ease;
	}

	.kmn-toggle:active {
		transform: scale(0.94);
	}

	.kmn-call:focus-visible,
	.kmn-toggle:focus-visible {
		outline: 3px solid rgba(0, 155, 142, 0.45);
		outline-offset: 2px;
	}

	/* Burger → X */
	.kmn-burger {
		position: relative;
		display: block;
		width: 18px;
		height: 14px;
	}

	.kmn-burger i {
		position: absolute;
		right: 0;
		display: block;
		width: 18px;
		height: 2px;
		border-radius: 2px;
		background: #fff;
		transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease, top 0.3s ease;
	}

	.kmn-burger i:nth-child(1) { top: 0; }
	.kmn-burger i:nth-child(2) { top: 6px; }
	.kmn-burger i:nth-child(3) { top: 12px; width: 12px; }

	html.kmn-open .kmn-toggle {
		background: #121212 !important;
		box-shadow: none;
	}

	html.kmn-open .kmn-burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
	html.kmn-open .kmn-burger i:nth-child(2) { opacity: 0; }
	html.kmn-open .kmn-burger i:nth-child(3) { top: 6px; width: 18px; transform: rotate(-45deg); }

	/* ---- Vollbild-Menü ------------------------------------------------ */
	html.kmn-open,
	html.kmn-open body {
		overflow: hidden !important;
	}

	html.kmn-open #header-outer {
		z-index: 100001 !important;
		background-color: rgba(255, 255, 255, 0.94) !important;
	}

	.kmn-panel {
		position: fixed;
		z-index: 100000;
		inset: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		color: #fff;
		background:
			radial-gradient(circle at 90% 0%, rgba(0, 155, 142, 0.55), transparent 42%),
			radial-gradient(circle at 0% 100%, rgba(0, 155, 142, 0.28), transparent 45%),
			var(--kmn-dark);
		opacity: 0;
		transition: opacity 0.3s ease;
		-webkit-overflow-scrolling: touch;
	}

	.kmn-panel[hidden] {
		display: none;
	}

	.kmn-panel.is-open {
		opacity: 1;
	}

	.kmn-inner {
		display: flex;
		flex-direction: column;
		min-height: 100%;
		padding: calc(var(--kmn-top, 96px) + 18px) 18px calc(18px + env(safe-area-inset-bottom));
	}

	.kmn-panel ul,
	.kmn-panel li {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.kmn-item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.09);
		opacity: 0;
		transform: translateY(10px);
		transition: opacity 0.35s ease, transform 0.35s ease;
		transition-delay: calc(var(--d, 0) * 45ms + 80ms);
	}

	.kmn-panel.is-open .kmn-item {
		opacity: 1;
		transform: none;
	}

	.kmn-panel .kmn-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 64px;
		margin: 0;
		padding: 12px 4px;
		border: 0;
		border-radius: 0 !important;
		color: #fff !important;
		background: transparent !important;
		box-shadow: none !important;
		cursor: pointer;
		font-family: inherit;
		font-size: 22px;
		font-weight: 800;
		letter-spacing: -0.02em;
		line-height: 1.2;
		text-align: left;
		text-decoration: none !important;
		text-transform: none;
	}

	.kmn-l {
		display: flex;
		align-items: center;
	}

	.kmn-nr {
		display: inline-block;
		width: 30px;
		color: rgba(255, 255, 255, 0.4);
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.05em;
	}

	.kmn-chev {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 50%;
		color: rgba(255, 255, 255, 0.85);
		transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
	}

	.kmn-dot {
		width: 8px;
		height: 8px;
		margin-right: 13px;
		border-radius: 50%;
		background: var(--kmn-accent-l);
		box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.2);
	}

	.kmn-item.is-current > .kmn-link,
	.kmn-item.is-open > .kmn-link {
		color: var(--kmn-accent-l) !important;
	}

	.kmn-item.is-open .kmn-chev-down {
		border-color: var(--kmn-accent);
		color: #fff;
		background: var(--kmn-accent);
		transform: rotate(180deg);
	}

	/* Unterpunkte als Bildkarten */
	.kmn-sub {
		display: grid;
		gap: 10px;
		padding: 2px 0 16px;
	}

	.kmn-sub[hidden] {
		display: none;
	}

	.kmn-panel .kmn-card {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px;
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 16px;
		color: #fff !important;
		background: rgba(255, 255, 255, 0.07);
		text-decoration: none !important;
		transition: background-color 0.2s ease, border-color 0.2s ease;
	}

	.kmn-panel .kmn-card:active,
	.kmn-panel .kmn-card.is-current {
		border-color: rgba(79, 209, 197, 0.55);
		background: rgba(0, 155, 142, 0.18);
	}

	.kmn-card-img {
		flex: 0 0 64px;
		height: 52px;
		border-radius: 11px;
		background: linear-gradient(135deg, #3e6b62, #9bbcb1) center / cover no-repeat;
	}

	.kmn-card-text {
		display: flex;
		flex-direction: column;
		gap: 3px;
		min-width: 0;
	}

	.kmn-card-text strong {
		color: var(--kmn-accent-l);
		font-size: 15px;
		font-weight: 800;
		line-height: 1.3;
	}

	.kmn-card-text small {
		color: rgba(255, 255, 255, 0.65);
		font-size: 12px;
		line-height: 1.35;
	}

	.kmn-tag {
		display: inline-block;
		margin-left: 4px;
		padding: 2px 7px;
		border-radius: 999px;
		color: var(--kmn-dark);
		background: var(--kmn-accent-l);
		font-size: 10px;
		font-style: normal;
		font-weight: 800;
		vertical-align: 2px;
	}

	.kmn-panel .kmn-sub-all {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		padding: 2px 4px 4px;
		color: rgba(255, 255, 255, 0.7) !important;
		font-size: 13px;
		font-weight: 700;
		text-decoration: none !important;
	}

	/* Unten: Kontakt, Anfrage, Sprache */
	.kmn-bottom {
		margin-top: auto;
		padding-top: 28px;
		opacity: 0;
		transition: opacity 0.4s ease 0.3s;
	}

	.kmn-panel.is-open .kmn-bottom {
		opacity: 1;
	}

	.kmn-quick {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.kmn-panel .kmn-q {
		display: flex;
		align-items: center;
		gap: 10px;
		min-width: 0;
		padding: 13px;
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 16px;
		color: #fff !important;
		background: rgba(255, 255, 255, 0.07);
		font-size: 13px;
		font-weight: 700;
		text-decoration: none !important;
	}

	.kmn-q svg {
		flex: 0 0 18px;
		color: var(--kmn-accent-l);
	}

	.kmn-q span {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}

	.kmn-q small {
		overflow: hidden;
		margin-top: 2px;
		color: rgba(255, 255, 255, 0.6);
		font-size: 11px;
		font-weight: 500;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.kmn-panel .kmn-cta {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 54px;
		margin-top: 10px;
		border-radius: 30px;
		color: #fff !important;
		background: var(--kmn-accent);
		font-size: 15px;
		font-weight: 800;
		text-decoration: none !important;
	}

	.kmn-foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-top: 14px;
		color: rgba(255, 255, 255, 0.55);
		font-size: 12px;
	}

	/* Weglot-Sprachumschalter im Menü */
	.kmn-lang,
	.kmn-lang * {
		color: #fff !important;
	}

	.kmn-lang ul {
		display: flex;
		gap: 4px;
		margin: 0;
		padding: 3px;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.08);
	}

	.kmn-lang a {
		display: block;
		padding: 5px 11px;
		border-radius: 999px;
		font-size: 12px;
		text-decoration: none !important;
	}

	.kmn-lang .wgcurrent a,
	.kmn-lang .wg-li.wgcurrent a {
		color: #111 !important;
		background: #fff;
	}
}

@media (max-width: 999px) and (prefers-reduced-motion: reduce) {
	.kmn-panel,
	.kmn-item,
	.kmn-bottom,
	.kmn-burger i,
	.kmn-chev {
		transition: none;
	}
}


/* --------------------------------------------------------------------------
   Menü passt immer auf einen Bildschirm (kein Scrollen) + Logo weiter links
   -------------------------------------------------------------------------- */
@media (max-width: 999px) {
	.kmn-panel {
		height: 100vh;
		height: 100dvh;
		overflow: hidden;
	}

	.kmn-inner {
		height: 100%;
		min-height: 0;
		padding-top: calc(var(--kmn-top, 96px) + 1.6vh);
		padding-bottom: calc(1.6vh + env(safe-area-inset-bottom));
	}

	.kmn-nav {
		flex: 0 0 auto; /* nicht zusammendrücken – stattdessen stufenweise kompakter (JS) */
	}

	.kmn-panel .kmn-link:focus {
		outline: none;
	}

	.kmn-panel .kmn-link:focus-visible {
		outline: 2px solid var(--kmn-accent-l);
		outline-offset: -2px;
		border-radius: 8px !important;
	}

	.kmn-panel .kmn-link {
		min-height: clamp(42px, 7vh, 64px);
		padding-top: clamp(6px, 1.2vh, 12px);
		padding-bottom: clamp(6px, 1.2vh, 12px);
		font-size: clamp(17px, 2.7vh, 22px);
	}

	.kmn-chev {
		width: clamp(28px, 4vh, 34px);
		height: clamp(28px, 4vh, 34px);
	}

	.kmn-bottom {
		flex: 0 0 auto;
		padding-top: clamp(10px, 2.4vh, 28px);
	}

	.kmn-panel .kmn-cta {
		height: clamp(44px, 6.4vh, 54px);
	}

	.kmn-foot {
		margin-top: clamp(6px, 1.4vh, 14px);
	}

	/* Zu wenig Höhe: Stufe 1 – Kontakt-Kacheln ausblenden (Anrufen bleibt oben in der Leiste) */
	.kmn-panel.is-tight-1 .kmn-quick {
		display: none;
	}

	.kmn-panel.is-tight-1 .kmn-sub-all {
		display: none;
	}

	/* Stufe 2 – alles etwas kompakter */
	.kmn-panel.is-tight-2 .kmn-link {
		min-height: 40px;
		padding-top: 4px;
		padding-bottom: 4px;
		font-size: 17px;
	}

	.kmn-panel.is-tight-2 .kmn-card {
		padding: 6px;
	}

	.kmn-panel.is-tight-2 .kmn-card-img {
		flex-basis: 52px;
		height: 40px;
	}

	.kmn-panel.is-tight-2 .kmn-card-text small {
		display: none;
	}

	.kmn-panel.is-tight-2 .kmn-sub {
		gap: 6px;
		padding-bottom: 8px;
	}

	.kmn-panel.is-tight-2 .kmn-foot {
		display: none;
	}

	/* Stufe 3 – sehr kleine Bildschirme */
	.kmn-panel.is-tight-3 .kmn-link {
		min-height: 36px;
		font-size: 16px;
	}

	.kmn-panel.is-tight-3 .kmn-nr {
		width: 24px;
	}

	.kmn-panel.is-tight-3 .kmn-chev {
		width: 26px;
		height: 26px;
	}

	.kmn-panel.is-tight-3 .kmn-card-img {
		display: none;
	}

	.kmn-panel.is-tight-3 .kmn-panel .kmn-cta,
	.kmn-panel.is-tight-3 .kmn-cta {
		height: 42px;
		margin-top: 6px;
	}

	/* Logo weiter nach links */
	body.kmn-ready #header-outer #top .container {
		width: 100% !important;
		max-width: none !important;
		padding-left: 14px !important;
		margin-left: 0 !important;
	}

	body.kmn-ready #header-outer #logo,
	body.kmn-ready #header-outer #top .col.span_3 {
		margin-left: 0 !important;
		padding-left: 0 !important;
		left: 0 !important;
	}
}


/* --------------------------------------------------------------------------
   Weglot-sicherer Aufbau: Nummer per CSS, Texte in eigenen Blöcken
   (Weglot fasst Text in mehreren Inline-Elementen sonst zu einem zusammen)
   -------------------------------------------------------------------------- */
@media (max-width: 999px) {
	.kmn-panel .kmn-l {
		text-transform: none !important;
	}

	.kmn-panel .kmn-l::before {
		content: attr(data-nr);
		display: inline-block;
		flex: 0 0 auto;
		width: 30px;
		color: rgba(255, 255, 255, 0.4);
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.05em;
	}

	.kmn-panel.is-tight-3 .kmn-l::before {
		width: 24px;
	}

	.kmn-card-t {
		color: var(--kmn-accent-l);
		font-size: 15px;
		font-weight: 800;
		line-height: 1.3;
	}

	.kmn-card-s {
		color: rgba(255, 255, 255, 0.65);
		font-size: 12px;
		line-height: 1.35;
	}

	.kmn-panel .kmn-card-text .kmn-tag {
		align-self: flex-start;
		margin: 0;
	}

	.kmn-panel.is-tight-2 .kmn-card-s {
		display: none;
	}

	.kmn-q-text {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}

	.kmn-q-s {
		overflow: hidden;
		margin-top: 2px;
		color: rgba(255, 255, 255, 0.6);
		font-size: 11px;
		font-weight: 500;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	/* Weglot-Flaggen im Sprachschalter */
	.kmn-lang img,
	.kmn-lang .wg-flag {
		width: 22px !important;
		height: auto !important;
		border-radius: 3px;
	}
}

/* Ohne Nummerierung */
.kmn-panel .kmn-l::before {
	content: none !important;
	display: none !important;
}

/* Schnellkontakt nur mit Bezeichnung: Icon + "Anrufen" / "E-Mail" mittig */
@media (max-width: 999px) {
	.kmn-panel .kmn-q {
		justify-content: center;
		gap: 10px;
		min-height: 52px;
		padding: 12px 14px;
		font-size: 14px;
		font-weight: 800;
	}

	.kmn-panel .kmn-q svg {
		width: 18px;
		height: 18px;
	}

	.kmn-panel .kmn-q-text {
		flex-direction: row;
	}

	.kmn-panel .kmn-q:active {
		border-color: rgba(79, 209, 197, 0.55);
		background: rgba(0, 155, 142, 0.18);
	}
}

/* Mobile Kopfleiste etwas flacher */
@media (max-width: 999px) {
	#header-outer #top .container { height: 60px !important; }
	body.kmn-ready #header-outer { margin-top: 10px !important; }
	.kh-logo img { height: 36px !important; }
	.kmn-call,
	.kmn-toggle { width: 40px; height: 40px; }
	.kmn-actions { right: 10px; }
	#header-space { height: 80px; }
}
