/* ===========================================================
   mega-menu.css — Compendium-Mega-Menü (v6.80.0)

   Emitter: IM_Mega_Menu ([compendium type="menu"]). Mockup: Canvas
   „Mega Menus rev1 · Compendium + Shop", Board 1.
   Farben und Schriften kommen aus dem Theme (Variablen der
   Child-Theme-style.css); der Knopf ist der Avada-Standardknopf.
   Ornamente: Double Ornament (System B) um die Weltkarte,
   Productthumb-Ecken (System C) an den Kategorie-Köpfen.
   Die Ornament-URLs setzt IM_Mega_Menu::register_assets() als
   --im-mm-*-Variablen.
   =========================================================== */

.im-mm {
	--im-mm-pc: var(--primary-color, #a4895b);
	--im-mm-sc: var(--secondary-color, #367588);
	--im-mm-tl: var(--text-color-light, #e6cfa9);
	--im-mm-dg: var(--color-dark-gold, #4a3c27);
	--im-mm-bm: var(--color-blue-medium, #0a1f28);
	--im-mm-night: #041119;
	--im-mm-dim: rgba(230, 207, 169, .64);
	--im-mm-head: var(--font-family-heading, "Eisenkraft", serif);
	--im-mm-body: var(--font-family-body, "Reddit Sans", Arial, sans-serif);
	position: relative;
	width: 100%;
	padding-top: 24px; /* v6.80.1 — Befund Max: Titel oben angeschnitten */
	color: var(--im-mm-tl);
	font-family: var(--im-mm-body);
	font-weight: 300;
	letter-spacing: .015em;
}
.im-mm *,
.im-mm *::before,
.im-mm *::after {
	box-sizing: border-box;
}

/* ── Kopf: Illustration · Titel + Suche · Illustration ─────────── */

.im-mm-top {
	display: grid;
	grid-template-columns: 256px minmax(0, 1fr) 256px;
	align-items: end;
	gap: 48px;
}
.im-mm-ill {
	display: block;
	min-height: 1px;
}
.im-mm-ill img {
	display: block;
	width: 100%;
	max-width: 256px;
	height: auto;
}
.im-mm-ill.is-r img {
	margin-left: auto;
}
.im-mm-mid {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 24px;
	text-align: center;
}
.im-mm .im-mm-title {
	display: block;
	font-family: var(--im-mm-head);
	font-size: 88px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--im-mm-pc);
}
.im-mm-search {
	display: flex;
	align-items: center;
	gap: 12px;
	width: min(640px, 100%);
	height: 56px;
	margin: 32px 0 0;
	padding: 0 20px;
	background: var(--im-mm-bm);
	box-shadow: inset 0 0 0 1px var(--im-mm-dg);
}
.im-mm-search:focus-within {
	box-shadow: inset 0 0 0 1px var(--im-mm-pc);
}
.im-mm-search svg {
	flex: none;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--im-mm-pc);
	stroke-width: 1.5;
	stroke-linecap: round;
}
body .im-mm .im-mm-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: 0;
	font-family: var(--im-mm-body);
	font-size: 18px;
	color: var(--im-mm-tl);
}
.im-mm .im-mm-search input::placeholder {
	color: var(--im-mm-dim);
}

/* ── Weltkarte im Double Ornament (System B), oben ────────────── */

.im-mm-map {
	position: relative;
	display: flex;
	align-items: center;
	gap: 48px;
	min-height: 232px;
	margin-top: 48px;
	padding: 40px 152px;
	background-color: var(--im-mm-bm);
	background-position: center 45%;
	background-size: cover;
}
.im-mm-map::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(3, 17, 24, .92) 0%, rgba(3, 17, 24, .62) 45%, rgba(3, 17, 24, .2) 100%);
}
.im-mm-map::before {
	content: "";
	position: absolute;
	inset: 10px;
	z-index: 2;
	pointer-events: none;
	background:
		var(--im-mm-do-tl) left top / 93px 93px no-repeat,
		var(--im-mm-do-tr) right top / 93px 93px no-repeat,
		var(--im-mm-do-bl) left bottom / 93px 93px no-repeat,
		var(--im-mm-do-br) right bottom / 93px 93px no-repeat,
		var(--im-mm-do-l) left top / 8px auto repeat-y,
		var(--im-mm-do-r) right top / 8px auto repeat-y,
		var(--im-mm-do-t) left top / auto 8px repeat-x,
		var(--im-mm-do-b) left bottom / auto 8px repeat-x;
}
.im-mm-map > * {
	position: relative;
	z-index: 3;
}
.im-mm .im-mm-map-t {
	flex: none;
	font-family: var(--im-mm-head);
	font-size: 80px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0;
	color: var(--im-mm-pc);
}
.im-mm .im-mm-map-p {
	flex: 1;
	margin: 0;
	font-size: 20px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.5;
	color: var(--im-mm-tl);
}
.im-mm .im-mm-btn {
	flex: none;
}

/* ── Kategorien ───────────────────────────────────────────────── */

.im-mm-cols {
	display: grid;
	grid-template-columns: repeat(var(--im-mm-n, 4), minmax(0, 1fr));
	gap: 40px;
	align-items: start;
	margin-top: 48px;
}
.im-mm-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.im-mm-head {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 168px;
	padding: 20px 28px;
	background-color: var(--im-mm-bm);
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 1px var(--im-mm-pc);
	text-decoration: none;
}
.im-mm-head::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(3, 17, 24, .92) 0%, rgba(3, 17, 24, .35) 70%, rgba(3, 17, 24, .15) 100%);
}
.im-mm-head::after {
	content: "";
	position: absolute;
	inset: -2px;
	pointer-events: none;
	background:
		var(--im-mm-th-tl) left top / 13px 13px no-repeat,
		var(--im-mm-th-tr) right top / 13px 13px no-repeat,
		var(--im-mm-th-bl) left bottom / 13px 13px no-repeat,
		var(--im-mm-th-br) right bottom / 13px 13px no-repeat;
}
.im-mm-head > * {
	position: relative;
	z-index: 1;
}
/* Vorgabe Max: der Titel bleibt Primary, auch beim Hover. */
.im-mm .im-mm-htitle,
.im-mm a.im-mm-head:hover .im-mm-htitle {
	font-family: var(--im-mm-head);
	font-size: 44px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0;
	color: var(--im-mm-pc);
}
.im-mm .im-mm-hsub {
	margin-top: 4px;
	font-size: 16px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.4;
	color: var(--im-mm-tl);
}
.im-mm-list {
	display: flex;
	flex-direction: column;
	margin-top: 8px;
}
.im-mm .im-mm-lk {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 56px;
	padding: 0 4px;
	border-bottom: 1px solid var(--im-mm-dg);
	color: var(--im-mm-tl);
	text-decoration: none;
}
.im-mm .im-mm-ic {
	flex: none;
	width: 32px;
	height: 32px;
	object-fit: contain;
}
/* v6.80.1 — Ersatz-Glyph, solange Settings › Style für den Typ kein Icon hat. */
.im-mm svg.im-mm-ic {
	fill: none;
	stroke: var(--im-mm-pc);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.im-mm .im-mm-nm {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--im-mm-tl);
	transition: color .2s ease;
}
.im-mm .im-mm-ct {
	flex: none;
	font-size: 14px;
	letter-spacing: .05em;
	color: var(--im-mm-dim);
}
/* Vorgabe Max: Hover der Einträge in Secondary Color. */
.im-mm a.im-mm-lk:hover .im-mm-nm,
.im-mm a.im-mm-lk:focus-visible .im-mm-nm {
	color: var(--im-mm-sc);
}
.im-mm .im-mm-lk.is-soon .im-mm-nm {
	color: var(--im-mm-dim);
}
.im-mm .im-mm-lk.is-soon .im-mm-ct {
	font-size: 12px;
	font-style: italic;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.im-mm .im-mm-lk.is-soon .im-mm-ic {
	opacity: .45;
}
.im-mm a.im-mm-all {
	margin-top: 20px;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--im-mm-pc);
}
.im-mm a.im-mm-all:hover {
	color: var(--im-mm-sc);
}

/* ── Kartenmodus: Karte ist der Knopf, keine Listen (v6.81.0) ──── */

.im-mm-cols.is-cards {
	align-items: stretch;
}
.im-mm .im-mm-head.is-card {
	align-items: center;
	height: 400px;
	padding: 40px;
	text-align: center;
	transition: box-shadow .2s ease;
}
.im-mm .im-mm-head.is-card::before {
	background: linear-gradient(0deg, rgba(3, 17, 24, .95) 0%, rgba(3, 17, 24, .55) 62%, rgba(3, 17, 24, .2) 100%);
}
.im-mm .im-mm-head.is-card .im-mm-htitle {
	font-size: 52px;
}
.im-mm .im-mm-head.is-card .im-mm-hsub {
	max-width: 340px;
	margin-top: 8px;
	font-size: 17px;
	line-height: 1.5;
}
/* Hover: Rahmen und Ecken in Secondary Color (Vorgabe Max 22.09.). */
.im-mm a.im-mm-head.is-card:hover,
.im-mm a.im-mm-head.is-card:focus-visible {
	box-shadow: inset 0 0 0 1px var(--im-mm-sc);
}
.im-mm a.im-mm-head.is-card:hover::after,
.im-mm a.im-mm-head.is-card:focus-visible::after {
	background:
		var(--im-mm-ths-tl) left top / 13px 13px no-repeat,
		var(--im-mm-ths-tr) right top / 13px 13px no-repeat,
		var(--im-mm-ths-bl) left bottom / 13px 13px no-repeat,
		var(--im-mm-ths-br) right bottom / 13px 13px no-repeat;
}

/* ── Schmalere Fenster ────────────────────────────────────────── */

@media (max-width: 1500px) {
	.im-mm-top {
		grid-template-columns: 180px minmax(0, 1fr) 180px;
		gap: 32px;
	}
	.im-mm .im-mm-title {
		font-size: 72px;
	}
	.im-mm-map {
		padding: 40px 120px;
	}
	.im-mm-cols {
		gap: 28px;
	}
	.im-mm .im-mm-htitle {
		font-size: 36px;
	}
}
@media (max-width: 1180px) {
	.im-mm-top {
		grid-template-columns: minmax(0, 1fr);
	}
	.im-mm-ill {
		display: none;
	}
	.im-mm-map {
		flex-wrap: wrap;
		padding: 48px 72px;
	}
	.im-mm-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.im-mm .im-mm-head.is-card {
		height: 320px;
	}
}
