/* =========================================================================
 * Pasani Mega Menu — Frontend-Styles
 * Aus pasani-menu-prototype.html portiert. Class-Prefix: .pmm-
 * Tokens kommen aus dem Theme; das Plugin definiert Fallbacks.
 * ========================================================================= */

.pmm,
.pmm * {
	box-sizing: border-box;
}

.pmm {
	--pmm-c-red: #E30516;
	--pmm-c-red-dark: #B00410;
	--pmm-c-blue: #003C7C;
	--pmm-c-blue-dark: #002A5C;
	--pmm-c-ink: #1E1E1C;
	--pmm-c-text: #212121;
	--pmm-c-text-soft: #555;
	--pmm-c-line: #e3e3e3;
	--pmm-topbar-gradient: linear-gradient(90deg, #E30512 0%, #E6007E 15.1%, #009FE3 83.33%, #003C7C 98.96%);
	--pmm-ease-organic: cubic-bezier(0.76, 0, 0.24, 1);
	--pmm-ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
	--pmm-ease-mega: cubic-bezier(0.22, 1, 0.36, 1);
	--pmm-header-h-mobile: 68px;
}

body.pmm-menu-open { overflow: hidden; }

/* ================ Topbar (Gradient-Strip) ================ */
.pmm-topbar {
	background: var(--pmm-topbar-gradient);
	height: 28px;
	position: relative;
	z-index: 110;
}

/* ================ Header ================ */
.pmm-navbar {
	background: #fff;
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 120;
	transition: background-color 0.5s ease-in-out, box-shadow 0.3s ease;
}
.pmm-navbar-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 14px 32px;
	display: flex;
	align-items: center;
	gap: 32px;
}
.pmm-brand {
	width: 190px;
	height: 62px;
	display: block;
	flex-shrink: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	transition: opacity .2s ease;
	text-indent: -9999px;
	overflow: hidden;
}
.pmm-brand:hover { opacity: 0.85; }

/* ================ Desktop Nav ================ */
.pmm-nav {
	display: flex;
	flex: 1;
	justify-content: center;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pmm-item { position: static; }
.pmm-item > a,
.pmm-item > button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pmm-c-ink);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	line-height: 18px;
	letter-spacing: 0.04em;
	padding: 8px 0;
	text-decoration: none;
	transition: color 0.2s ease;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}
.pmm-item > a:hover,
.pmm-item > button:hover,
.pmm-item.is-open > button { color: var(--pmm-c-red); }
.pmm-chev {
	width: 10px;
	height: 10px;
	transition: transform 0.4s var(--pmm-ease-soft);
}
.pmm-item:hover .pmm-chev,
.pmm-item.is-open .pmm-chev { transform: rotate(180deg); }

/* ================ Right Actions ================ */
.pmm-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.pmm-icon-btn {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--pmm-c-ink);
	transition: background 0.2s ease, color 0.2s ease;
}
.pmm-icon-btn:hover { background: rgba(0,0,0,0.05); color: var(--pmm-c-red); }
.pmm-icon-btn svg { width: 20px; height: 20px; }

.pmm-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-weight: 700;
	font-size: 12px;
	line-height: 18px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #FFFFFF;
	border-radius: 50px;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.2s ease;
	flex-shrink: 0;
}
.pmm-pill.is-blue { background: var(--pmm-c-blue); }
.pmm-pill.is-blue:hover { background: var(--pmm-c-blue-dark); color: #fff; }
.pmm-pill.is-red { background: var(--pmm-c-red); }
.pmm-pill.is-red:hover { background: var(--pmm-c-red-dark); color: #fff; }

/* ================ Mega Dropdown ================ */
.pmm-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid var(--pmm-c-line);
	box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.18);
	z-index: 100;
	/* Negative Insets links/rechts/unten, damit der box-shadow nicht
	 * vom clip-path weggeschnitten wird. Open-State entsprechend. */
	clip-path: inset(0 -120px 100% -120px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: clip-path 0.55s var(--pmm-ease-mega),
		opacity 0.4s var(--pmm-ease-soft),
		transform 0.55s var(--pmm-ease-mega),
		visibility 0.55s var(--pmm-ease-mega);
}
.pmm-item:hover .pmm-dropdown,
.pmm-item.is-open .pmm-dropdown {
	clip-path: inset(0 -120px -120px -120px);
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.pmm-dropdown::before {
	content: '';
	position: absolute;
	top: -8px; left: 0; right: 0;
	height: 8px;
}
.pmm-dropdown-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 48px 32px 56px;
	display: grid;
	grid-template-columns: 340px 1fr 1fr 1fr;
	gap: 56px;
	align-items: start;
}
.pmm-banner {
	display: block;
	aspect-ratio: 300 / 197;
	background-color: var(--pmm-c-blue);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.4s var(--pmm-ease-soft), box-shadow 0.4s var(--pmm-ease-soft);
}
.pmm-banner:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px -10px rgba(0, 60, 124, 0.4);
}
.pmm-col h5 {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--pmm-c-ink);
	letter-spacing: 0.05em;
	margin: 0 0 20px 0;
}
.pmm-col ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pmm-col a {
	display: block;
	padding: 6px 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--pmm-c-text-soft);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.3s var(--pmm-ease-soft);
}
.pmm-col a:hover { color: var(--pmm-c-red); padding-left: 6px; }
.pmm-col li.is-sub a {
	padding-left: 16px;
	font-size: 14px;
	color: #888;
}
.pmm-col li.is-sub a:hover { padding-left: 22px; }

/* Stagger-Reveal pro Spalte */
.pmm-banner,
.pmm-col {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.5s var(--pmm-ease-soft), transform 0.5s var(--pmm-ease-mega);
}
.pmm-item:hover .pmm-banner,
.pmm-item:hover .pmm-col,
.pmm-item.is-open .pmm-banner,
.pmm-item.is-open .pmm-col {
	opacity: 1;
	transform: translateY(0);
}
.pmm-item:hover .pmm-banner,
.pmm-item.is-open .pmm-banner { transition-delay: 0.1s; }
.pmm-item:hover .pmm-col:nth-of-type(2),
.pmm-item.is-open .pmm-col:nth-of-type(2) { transition-delay: 0.18s; }
.pmm-item:hover .pmm-col:nth-of-type(3),
.pmm-item.is-open .pmm-col:nth-of-type(3) { transition-delay: 0.24s; }
.pmm-item:hover .pmm-col:nth-of-type(4),
.pmm-item.is-open .pmm-col:nth-of-type(4) { transition-delay: 0.30s; }

/* ================ Hamburger ================ */
.pmm-hamburger {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	position: relative;
	border-radius: 8px;
	background: none;
	border: 0;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s ease;
}
.pmm-hamburger:hover { background: rgba(0,0,0,0.04); }
.pmm-hamburger span {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 2px;
	background: var(--pmm-c-ink);
	border-radius: 2px;
	transition: transform 0.5s var(--pmm-ease-organic),
		opacity 0.25s var(--pmm-ease-organic),
		top 0.5s var(--pmm-ease-organic),
		background 0.3s ease;
}
.pmm-hamburger span:nth-child(1) { top: 14px; }
.pmm-hamburger span:nth-child(2) { top: 21px; }
.pmm-hamburger span:nth-child(3) { top: 28px; }
body.pmm-menu-open .pmm-hamburger span:nth-child(1) {
	top: 21px; transform: rotate(45deg); background: var(--pmm-c-red);
}
body.pmm-menu-open .pmm-hamburger span:nth-child(2) {
	opacity: 0; transform: scaleX(0.3);
}
body.pmm-menu-open .pmm-hamburger span:nth-child(3) {
	top: 21px; transform: rotate(-45deg); background: var(--pmm-c-red);
}

/* ================ Mobile Menu ================
 * Startet unterhalb der Navbar (header-h-mobile), bei eingeloggten
 * Usern zusaetzlich unterhalb der WP-Adminbar (32px Desktop / 46px
 * Mobile). z-index hoch genug, damit der Navbar-Schatten ueberdeckt
 * wird. Klassisches `padding-top` entfaellt — wird durch `top` ersetzt.
 */
.pmm-mobile {
	position: fixed;
	top: var(--pmm-header-h-mobile);
	left: 0; right: 0; bottom: 0;
	background: #fff;
	z-index: 130;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.6s var(--pmm-ease-organic);
	pointer-events: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
body.admin-bar .pmm-mobile {
	top: calc(var(--pmm-header-h-mobile) + 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .pmm-mobile {
		top: calc(var(--pmm-header-h-mobile) + 46px);
	}
}
body.pmm-menu-open .pmm-mobile {
	clip-path: inset(0 0 0 0);
	pointer-events: auto;
}
.pmm-mobile-inner {
	padding: 8px 24px 40px;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}
.pmm-mobile-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pmm-mobile-list > li { border-bottom: 1px solid var(--pmm-c-line); }
.pmm-mobile-list > li:first-child { border-top: 1px solid var(--pmm-c-line); }

.pmm-mobile-row {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 4px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pmm-c-ink);
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s var(--pmm-ease-soft), transform 0.5s var(--pmm-ease-soft);
}
body.pmm-menu-open .pmm-mobile-row { opacity: 1; transform: translateY(0); }
body.pmm-menu-open .pmm-mobile-list > li:nth-child(1) .pmm-mobile-row { transition-delay: 0.18s; }
body.pmm-menu-open .pmm-mobile-list > li:nth-child(2) .pmm-mobile-row { transition-delay: 0.24s; }
body.pmm-menu-open .pmm-mobile-list > li:nth-child(3) .pmm-mobile-row { transition-delay: 0.30s; }
body.pmm-menu-open .pmm-mobile-list > li:nth-child(4) .pmm-mobile-row { transition-delay: 0.36s; }

.pmm-mobile-icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--pmm-c-ink);
	transition: transform 0.4s var(--pmm-ease-organic), color 0.3s ease;
}
.pmm-mobile-icon svg { width: 16px; height: 16px; }
.pmm-mobile-list > li.is-open .pmm-mobile-icon {
	transform: rotate(45deg);
	color: var(--pmm-c-red);
}
.pmm-mobile-list > li.is-open .pmm-mobile-row { color: var(--pmm-c-red); }

.pmm-mobile-panel {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.5s var(--pmm-ease-organic);
}
.pmm-mobile-list > li.is-open .pmm-mobile-panel { max-height: 1200px; }

.pmm-mobile-panel-inner {
	padding: 4px 4px 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.pmm-mobile-group h6 {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 8px 0;
}
.pmm-mobile-group ul {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pmm-mobile-group a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--pmm-c-text);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.25s var(--pmm-ease-soft);
}
.pmm-mobile-group a:hover,
.pmm-mobile-group a:active {
	color: var(--pmm-c-red);
	padding-left: 6px;
}
.pmm-mobile-group li.is-sub {
	padding-left: 16px;
	border-left: 2px solid #eee;
	margin: 2px 0 4px 4px;
}
.pmm-mobile-group li.is-sub a {
	font-size: 14px;
	color: #555;
	padding: 8px 0;
}

.pmm-mobile-foot {
	margin-top: auto;
	padding-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s var(--pmm-ease-soft) 0.5s, transform 0.5s var(--pmm-ease-soft) 0.5s;
}
body.pmm-menu-open .pmm-mobile-foot { opacity: 1; transform: translateY(0); }
.pmm-mobile-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background 0.25s ease;
	text-decoration: none;
}
.pmm-mobile-cta.is-blue { background: var(--pmm-c-blue); color: #fff; }
.pmm-mobile-cta.is-blue:hover { background: var(--pmm-c-blue-dark); color: #fff; }
.pmm-mobile-cta.is-red { background: var(--pmm-c-red); color: #fff; }
.pmm-mobile-cta.is-red:hover { background: var(--pmm-c-red-dark); color: #fff; }

.pmm-mobile-meta {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--pmm-c-line);
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: #666;
	text-align: center;
}
.pmm-mobile-meta a { color: inherit; text-decoration: none; }
.pmm-mobile-meta a:hover { color: var(--pmm-c-red); }

/* ================ Responsive ================ */
@media only screen and (max-width: 992px) {
	.pmm-topbar { display: none; }
	.pmm-navbar-inner {
		padding: 0 20px;
		gap: 12px;
		height: var(--pmm-header-h-mobile);
	}
	.pmm-brand { width: 150px; height: 50px; }
	.pmm-nav { display: none; }
	.pmm-actions { display: none; }
	.pmm-hamburger { display: block; }
}
@media (min-width: 993px) {
	.pmm-mobile { display: none; }
}
@media (max-width: 1100px) and (min-width: 993px) {
	.pmm-dropdown-inner {
		grid-template-columns: 280px 1fr 1fr;
		gap: 32px;
		padding: 36px 24px 44px;
	}
}
@media (max-width: 480px) {
	.pmm-navbar-inner { padding: 0 16px; }
	.pmm-brand { width: 130px; height: 44px; }
	.pmm-mobile-inner { padding: 8px 20px 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.pmm *,
	.pmm *::before,
	.pmm *::after,
	body.pmm-menu-open .pmm-mobile,
	body.pmm-menu-open .pmm-mobile-row,
	body.pmm-menu-open .pmm-mobile-foot {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
