/**
 * IT-Web24 Mega Menu
 */

.itweb24-mm {
	--itweb24-mm-bg: #ffffff;
	--itweb24-mm-text: #0a0a0a;
	--itweb24-mm-radius: 28px;
	--itweb24-mm-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	--itweb24-mm-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--itweb24-mm-pad-x: 2rem;
	--itweb24-mm-pad-y: 1.25rem;
	position: relative;
	z-index: 1000;
	font-family: var(--itweb24-mm-font);
	color: var(--itweb24-mm-text);
}

.itweb24-mm .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.itweb24-mm__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.itweb24-mm__toggle-bars,
.itweb24-mm__toggle-bars::before,
.itweb24-mm__toggle-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.itweb24-mm__toggle-bars {
	position: relative;
}

.itweb24-mm__toggle-bars::before,
.itweb24-mm__toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.itweb24-mm__toggle-bars::before {
	top: -7px;
}

.itweb24-mm__toggle-bars::after {
	top: 7px;
}

.itweb24-mm.is-open .itweb24-mm__toggle-bars {
	background: transparent;
}

.itweb24-mm.is-open .itweb24-mm__toggle-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.itweb24-mm.is-open .itweb24-mm__toggle-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

.itweb24-mm__panel {
	display: flex;
	flex-direction: column;
	min-width: min(920px, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	padding: var(--itweb24-mm-pad-y) var(--itweb24-mm-pad-x);
	background: var(--itweb24-mm-bg);
	border-radius: var(--itweb24-mm-radius);
	box-shadow: var(--itweb24-mm-shadow);
}

.itweb24-mm__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.itweb24-mm__item {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.itweb24-mm__item--cta {
	margin-left: auto;
}

.itweb24-mm__link {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0;
	color: var(--itweb24-mm-text);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.3;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.itweb24-mm__link:hover,
.itweb24-mm__link:focus-visible,
.itweb24-mm__item.is-active > .itweb24-mm__link,
.itweb24-mm__item--has-mega.is-open > .itweb24-mm__link {
	border-bottom-color: var(--itweb24-mm-text);
	outline: none;
}

.itweb24-mm__link--cta {
	padding: 0.65rem 1.35rem;
	color: #fff;
	background: #0a0a0a;
	border: 0;
	border-radius: 999px;
	border-bottom: 0 !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.itweb24-mm__link--cta:hover,
.itweb24-mm__link--cta:focus-visible {
	background: #222;
	transform: translateY(-1px);
}

/* Mega panel sits under the top row, inside the same white card */
.itweb24-mm__mega {
	display: none;
	width: 100%;
	margin-top: 1.35rem;
	padding-top: 0.15rem;
	animation: itweb24-mm-fade 0.22s ease;
	overflow: hidden;
	min-width: 0;
}

.itweb24-mm__mega.is-open {
	display: block;
}

.itweb24-mm__mega[hidden] {
	display: none !important;
}

.itweb24-mm__mega.is-open[hidden] {
	display: block !important;
}

@keyframes itweb24-mm-fade {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.itweb24-mm__mega-list {
	display: grid;
	gap: 0.1rem 3.5rem;
	margin: 0;
	padding: 0.15rem 0 0.35rem;
	list-style: none;
}

.itweb24-mm__mega-list--cols-1 {
	grid-template-columns: 1fr;
}

.itweb24-mm__mega-list--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.itweb24-mm__mega-list--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.itweb24-mm__mega-list--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.itweb24-mm__mega-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.itweb24-mm__mega-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 0;
	color: var(--itweb24-mm-text);
	font-size: 1.05rem;
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.35;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.itweb24-mm__mega-link:hover,
.itweb24-mm__mega-link:focus-visible {
	opacity: 0.65;
	outline: none;
	transform: translateX(2px);
}

.itweb24-mm__arrow {
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	border-right: 1.5px solid currentColor;
	border-top: 1.5px solid currentColor;
	transform: rotate(45deg);
	flex-shrink: 0;
	opacity: 0.85;
}

/* Drill: groups left, submenu right — all inside the white card */
.itweb24-mm__drill {
	display: grid;
	grid-template-columns: minmax(160px, 0.9fr) minmax(200px, 1.2fr);
	gap: 0.5rem 2.5rem;
	align-items: start;
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.itweb24-mm__drill-groups {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.itweb24-mm__drill-groups .itweb24-mm__mega-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.itweb24-mm__mega-link--group {
	font-weight: 600;
}

.itweb24-mm__drill-groups .itweb24-mm__mega-item.is-sub-open > .itweb24-mm__mega-link--group {
	opacity: 1;
	border-bottom-color: currentColor;
}

.itweb24-mm__drill-panel {
	min-width: 0;
	min-height: 2rem;
	overflow: hidden;
}

.itweb24-mm__submenu {
	display: none;
	flex-direction: column;
	flex-wrap: nowrap;
	align-content: flex-start;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: min(50vh, 420px);
	overflow-x: hidden;
	overflow-y: auto;
}

.itweb24-mm__submenu.is-open,
.itweb24-mm__submenu:not([hidden]) {
	display: flex;
}

.itweb24-mm__submenu[hidden] {
	display: none !important;
}

.itweb24-mm__submenu.is-open[hidden] {
	display: flex !important;
}

.itweb24-mm__submenu-item {
	flex: 0 0 auto;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

.itweb24-mm__sub-link {
	display: block;
	padding: 0.55rem 0;
	color: var(--itweb24-mm-text, #0a0a0a);
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.35;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.itweb24-mm__sub-link:hover,
.itweb24-mm__sub-link:focus-visible {
	opacity: 0.55;
	outline: none;
}

@media (max-width: 700px) {
	.itweb24-mm__drill {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.itweb24-mm__submenu {
		max-height: min(40vh, 320px);
		padding-left: 0.5rem;
		border-left: 2px solid #eee;
	}

	.itweb24-mm__submenu-item {
		width: 100%;
	}
}

/* Leistungen groups: Wordpress / Shopware / … */
.itweb24-mm__groups {
	display: grid;
	gap: 1.75rem 3rem;
	width: 100%;
}

.itweb24-mm__groups--cols-1 {
	grid-template-columns: 1fr;
}

.itweb24-mm__groups--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.itweb24-mm__groups--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.itweb24-mm__groups--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.itweb24-mm__group {
	min-width: 0;
}

.itweb24-mm__group-title {
	display: block;
	margin: 0 0 0.55rem;
	color: #111;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	text-decoration: none;
}

a.itweb24-mm__group-title:hover,
a.itweb24-mm__group-title:focus-visible {
	opacity: 0.7;
	outline: none;
}

.itweb24-mm__group-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.itweb24-mm__group-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.itweb24-mm__group-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0;
	color: #111;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.itweb24-mm__group-link:hover,
.itweb24-mm__group-link:focus-visible {
	opacity: 0.55;
	outline: none;
	transform: translateX(2px);
}

.itweb24-mm--services .itweb24-mm__panel--services {
	display: flex;
	min-width: min(720px, calc(100vw - 2rem));
}

.itweb24-mm--empty {
	padding: 1rem 1.25rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--itweb24-mm-shadow);
	font-size: 0.95rem;
}

/* Bridge panels over JetMenu / Elementor header */
.itweb24-mm-bridge {
	pointer-events: none;
}

.itweb24-mm-bridge.is-open {
	pointer-events: auto;
}

.itweb24-mm-bridge[hidden] {
	display: none !important;
}

.itweb24-mm-bridge__panel {
	display: none;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	padding: 1.35rem 2rem 1.5rem;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	animation: itweb24-mm-fade 0.22s ease;
	overflow: hidden;
	box-sizing: border-box;
}

.itweb24-mm-bridge__panel.is-open,
.itweb24-mm-bridge__panel:not([hidden]) {
	display: block;
}

.itweb24-mm-bridge__panel[hidden] {
	display: none !important;
}

.itweb24-mm-trigger.is-itweb24-open > a {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

@media (max-width: 900px) {
	.itweb24-mm {
		--itweb24-mm-radius: 20px;
		--itweb24-mm-pad-x: 1.25rem;
		--itweb24-mm-pad-y: 1rem;
	}

	.itweb24-mm__toggle {
		display: inline-flex;
		color: #fff;
		background: rgba(0, 0, 0, 0.35);
		border-radius: 999px;
	}

	.itweb24-mm__panel {
		display: none;
		position: absolute;
		top: calc(100% + 0.75rem);
		right: 0;
		min-width: min(360px, calc(100vw - 1.5rem));
		width: min(420px, calc(100vw - 1.5rem));
	}

	.itweb24-mm.is-open .itweb24-mm__panel {
		display: flex;
	}

	.itweb24-mm__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.itweb24-mm__item--cta {
		margin-left: 0;
		margin-top: 0.75rem;
	}

	.itweb24-mm__link {
		width: 100%;
		padding: 0.85rem 0;
		border-bottom: 0;
	}

	.itweb24-mm__link--cta {
		justify-content: center;
		width: 100%;
	}

	.itweb24-mm__mega {
		margin-top: 0;
		padding: 0 0 0.5rem 0.75rem;
	}

	.itweb24-mm__mega-list--cols-2,
	.itweb24-mm__mega-list--cols-3,
	.itweb24-mm__mega-list--cols-4,
	.itweb24-mm__groups--cols-2,
	.itweb24-mm__groups--cols-3,
	.itweb24-mm__groups--cols-4 {
		grid-template-columns: 1fr;
	}

	.itweb24-mm__mega-link {
		font-size: 0.98rem;
		padding: 0.55rem 0;
	}

	.itweb24-mm--services .itweb24-mm__panel--services {
		min-width: 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.itweb24-mm *,
	.itweb24-mm *::before,
	.itweb24-mm *::after {
		animation: none !important;
		transition: none !important;
	}
}
