:root {
	--rfsmm-accent: #7e4a8b;
	--rfsmm-accent-soft: #eae2ec;
	--rfsmm-text: #1e1e1e;
	--rfsmm-muted: #6f6573;
	--rfsmm-border: #e4dde6;
	--rfsmm-surface: #fff;
	--rfsmm-rail: #f5f3f6;
}

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

.rfsmm {
	--rfsmm-mobile-icon-width: 1.3rem;
	--rfsmm-mobile-icon-stroke: 2px;
	--rfsmm-mobile-icon-gap: 0.4rem;
	position: relative;
	width: 100%;
	color: var(--rfsmm-text);
	font-family: inherit;
	font-size: 14px;
}

.rfsmm--mobile-only {
	display: none;
}

.rfsmm button,
.rfsmm a {
	font: inherit;
}

/*
 * Elementor and Hello Elementor load after plugin styles on many sites and
 * apply opinionated global button rules. Keep every reset scoped to this menu
 * so the surrounding header and WooCommerce controls remain untouched.
 */
.rfsmm button.rfsmm__mobile-toggle,
.rfsmm button.rfsmm__submenu-toggle,
.rfsmm button.rfsmm__rail-button,
.rfsmm button.rfsmm__mobile-back {
	-webkit-appearance: none !important;
	appearance: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font: inherit !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}

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

.rfsmm__top-list,
.rfsmm__columns,
.rfsmm__column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rfsmm__top-list {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0;
}

.rfsmm .rfsmm__top-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rfsmm__top-item,
.rfsmm__top-control {
	display: flex;
	align-items: center;
}

.rfsmm__top-control {
	height: 100%;
}

.rfsmm__top-link,
.rfsmm__top-label {
	display: inline-flex;
	align-items: center;
	min-height: 3.5rem;
	color: var(--rfsmm-text);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

/* Elementor applies later link typography and colours inside header widgets. */
.rfsmm a.rfsmm__top-link,
.rfsmm .rfsmm__top-label {
	color: var(--rfsmm-text) !important;
	font-weight: 600 !important;
}

.rfsmm__top-link:hover,
.rfsmm__top-link:focus-visible,
.rfsmm__top-item.is-open > .rfsmm__top-control .rfsmm__top-link,
.rfsmm__top-item.is-open > .rfsmm__top-control .rfsmm__top-label {
	color: var(--rfsmm-accent) !important;
}

.rfsmm button.rfsmm__submenu-toggle {
	display: inline-grid !important;
	place-items: center;
	width: 2rem !important;
	height: 2.75rem !important;
	min-width: 2rem !important;
	min-height: 2.75rem !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: currentColor !important;
	cursor: pointer;
}

.rfsmm .rfsmm__chevron {
	display: block !important;
	width: 0.5rem !important;
	height: 0.5rem !important;
	border: 0 !important;
	border-right: 2px solid currentColor !important;
	border-bottom: 2px solid currentColor !important;
	background: transparent !important;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 160ms ease;
}

.is-open > .rfsmm__top-control .rfsmm__chevron {
	transform: rotate(225deg) translate(-1px, -1px);
}

.rfsmm button.rfsmm__mobile-toggle {
	display: none !important;
	align-items: center;
	gap: 0.65rem;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0.65rem 0.25rem !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--rfsmm-text) !important;
	font-weight: 650;
	cursor: pointer;
}

.rfsmm__mobile-icon,
.rfsmm__mobile-icon::before,
.rfsmm__mobile-icon::after {
	display: block;
	width: var(--rfsmm-mobile-icon-width);
	height: var(--rfsmm-mobile-icon-stroke);
	background: currentColor;
	content: '';
}

.rfsmm__mobile-icon {
	position: relative;
}

.rfsmm__mobile-icon::before { position: absolute; top: calc(-1 * var(--rfsmm-mobile-icon-gap)); }
.rfsmm__mobile-icon::after { position: absolute; top: var(--rfsmm-mobile-icon-gap); }

.rfsmm__mega {
	position: fixed;
	z-index: 99990;
	top: var(--rfsmm-top, 0);
	left: 0;
	width: 100vw;
	max-height: min(72vh, 760px);
	border-top: 3px solid var(--rfsmm-accent);
	border-bottom: 0;
	background: var(--rfsmm-surface);
	box-shadow: 0 18px 30px rgb(40 10 30 / 18%);
	overflow: hidden;
}

.rfsmm__mega[hidden],
.rfsmm__term-panel[hidden] {
	display: none !important;
}

.rfsmm__mega-inner {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	width: var(--rfsmm-content-width, min(100vw, 1140px));
	max-width: 100%;
	max-height: inherit;
	margin-right: auto;
	margin-left: var(--rfsmm-content-left, auto);
}

@media (min-width: 1025px) {
	/*
	 * The inner menu follows the measured Elementor header content width.
	 * Extend the rail colour across the resulting left viewport gutter without
	 * widening or shifting the menu content itself.
	 */
	.rfsmm__mega::before {
		position: absolute;
		z-index: 0;
		top: 0;
		bottom: 0;
		left: 0;
		width: max(250px, calc(var(--rfsmm-content-left, max(0px, (100vw - 1140px) / 2)) + 250px));
		background: var(--rfsmm-rail);
		content: '';
		pointer-events: none;
	}

	.rfsmm__mega-inner {
		position: relative;
		z-index: 1;
	}
}

.rfsmm__rail {
	max-height: inherit;
	padding: 6px 0;
	border-right: 1px solid var(--rfsmm-border);
	background: var(--rfsmm-rail);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rfsmm__rail-heading {
	padding: 10px 20px 3px;
	color: var(--rfsmm-muted);
	font-size: 11px;
	font-weight: 900;
	line-height: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rfsmm__rail-heading--section:not(:first-child) {
	margin-top: 0;
	border-top: 0;
	padding-top: 10px;
}

.rfsmm .rfsmm__rail-button {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100% !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 6px 20px 6px calc(20px + (var(--rfsmm-depth, 0) * 18px)) !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--rfsmm-text) !important;
	font-size: 14.5px !important;
	font-weight: 400;
	line-height: normal !important;
	text-align: left !important;
	text-decoration: none !important;
	cursor: pointer;
}

.rfsmm .rfsmm__rail-button:hover,
.rfsmm .rfsmm__rail-button:focus-visible,
.rfsmm .rfsmm__rail-button.is-active {
	background: var(--rfsmm-accent-soft) !important;
	color: var(--rfsmm-text) !important;
	font-weight: 700 !important;
}

.rfsmm .rfsmm__rail-button--indented {
	padding-left: 36px !important;
}

.rfsmm__rail-prefix {
	display: inline;
}

.rfsmm__content {
	max-height: inherit;
	padding: 20px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rfsmm__term-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.rfsmm .rfsmm__term-header h2 {
	margin: 0;
	font-size: clamp(1.15rem, 1.5vw, 1.5rem) !important;
	font-weight: 700;
	line-height: 1.25;
}

.rfsmm__term-header a,
.rfsmm__column a {
	color: var(--rfsmm-accent);
	text-decoration: none;
}

.rfsmm__term-header a:hover,
.rfsmm__term-header a:focus-visible,
.rfsmm__column a:hover,
.rfsmm__column a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.rfsmm__columns {
	display: block;
	columns: 220px 3;
	column-gap: 32px;
}

.rfsmm button.rfsmm__mobile-back {
	display: none !important;
}

.rfsmm .rfsmm__column h3 {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	color: var(--rfsmm-muted);
	font-size: 11px !important;
	font-weight: 900;
	line-height: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase !important;
}

.rfsmm .rfsmm__column h3 a {
	color: inherit;
}

.rfsmm__column {
	break-inside: avoid;
	margin-bottom: 22px;
}

.rfsmm__column li {
	border-bottom: 1px solid var(--rfsmm-border);
}

.rfsmm__column li a {
	display: block;
	padding: 6px 0;
	font-size: 15px;
	line-height: normal;
}

@media (min-width: 1025px) {
	.rfsmm a.rfsmm__top-link,
	.rfsmm .rfsmm__top-label {
		padding: 34px 13px;
		font-size: 17px !important;
		font-weight: 700 !important;
		line-height: normal !important;
	}

	.rfsmm button.rfsmm__submenu-toggle {
		width: 22px !important;
		min-width: 22px !important;
	}

	/* The reference menu starts directly with the category columns. */
	.rfsmm__term-header {
		display: none;
	}
}

.rfsmm__empty {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

/* Themen A-Z follows the reference as a complete two-section link overview. */
.rfsmm__mega--topics::before {
	display: none;
}

.rfsmm__az {
	width: var(--rfsmm-content-width, min(100vw, 1140px));
	max-width: 100%;
	max-height: inherit;
	margin-right: auto;
	margin-left: var(--rfsmm-content-left, auto);
	padding: 24px 28px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rfsmm__az-section + .rfsmm__az-section {
	margin-top: 22px;
}

.rfsmm .rfsmm__az-section h2 {
	margin: 0 0 10px;
	padding: 0;
	color: var(--rfsmm-muted);
	font-size: 11px !important;
	font-weight: 900;
	line-height: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase !important;
}

.rfsmm__az-section ul {
	display: grid;
	grid-auto-flow: row;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-template-rows: none;
	column-gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rfsmm__az-section li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--rfsmm-border);
	list-style: none;
}

.rfsmm .rfsmm__az-section a {
	display: block;
	padding: 7px 0 6px;
	color: var(--rfsmm-text) !important;
	font-size: 13px;
	font-weight: 800;
	line-height: normal;
	text-decoration: none;
	text-transform: uppercase;
}

.rfsmm .rfsmm__az-section a:hover,
.rfsmm .rfsmm__az-section a:focus-visible {
	color: var(--rfsmm-accent) !important;
}

.rfsmm :focus-visible {
	outline: 3px solid #9f6ba4;
	outline: 3px solid color-mix(in srgb, var(--rfsmm-accent) 60%, white);
	outline-offset: 2px;
}

@media (min-width: 1025px) and (max-width: 1299px) {
	.rfsmm__az-section ul {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.rfsmm--mobile-only {
		display: block;
	}

	.rfsmm button.rfsmm__mobile-toggle {
		display: inline-flex !important;
	}

	.rfsmm__top-list {
		position: fixed;
		z-index: 99990;
		top: var(--rfsmm-top, 0);
		left: 0;
		display: none;
		width: 100vw;
		height: calc(100dvh - var(--rfsmm-top, 0px));
		padding: 0.75rem 1rem 2rem;
		background: var(--rfsmm-surface);
		overflow-x: hidden;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		touch-action: pan-y;
	}

	.rfsmm__top-list.is-mobile-open {
		display: block;
	}

	.rfsmm__top-item {
		display: block;
		width: 100%;
	}

	.rfsmm__top-control {
		display: flex;
		width: 100%;
	}

	.rfsmm__top-control {
		border-bottom: 1px solid var(--rfsmm-border);
	}

	.rfsmm__top-item > .rfsmm__top-link {
		width: 100%;
		border-bottom: 1px solid var(--rfsmm-border);
	}

	.rfsmm__top-link,
	.rfsmm__top-label {
		flex: 1;
		min-height: 3.2rem;
	}

	.rfsmm button.rfsmm__submenu-toggle {
		width: 3rem !important;
		min-width: 3rem !important;
	}

	.rfsmm__mega {
		position: static;
		width: 100%;
		max-height: none;
		border-top: 0;
		box-shadow: none;
		overflow: visible;
	}

	.rfsmm__mega-inner {
		display: block;
		max-height: none;
	}

	.rfsmm__rail,
	.rfsmm__content {
		max-height: none;
		overflow: visible;
		overscroll-behavior: auto;
		touch-action: pan-y;
	}

	.rfsmm__rail {
		padding: 0.9rem 0 1.5rem;
		border-right: 0;
		background: var(--rfsmm-surface);
	}

	.rfsmm__rail-heading {
		padding: 10px 0 3px;
	}

	.rfsmm .rfsmm__rail-button {
		padding: 7px 0 6px !important;
		border-bottom: 1px solid var(--rfsmm-border) !important;
		background: var(--rfsmm-surface) !important;
		color: var(--rfsmm-text) !important;
		font-size: 13px !important;
		font-weight: 800 !important;
		line-height: normal !important;
		text-transform: uppercase;
	}

	.rfsmm .rfsmm__rail-button--indented {
		padding-left: 16px !important;
	}

	.rfsmm .rfsmm__rail-button:hover,
	.rfsmm .rfsmm__rail-button:focus-visible {
		background: var(--rfsmm-surface) !important;
		color: var(--rfsmm-accent) !important;
	}

	.rfsmm .rfsmm__rail-button.is-active {
		background: var(--rfsmm-surface) !important;
		color: var(--rfsmm-text) !important;
	}

	.rfsmm__content {
		display: none;
		padding: 1rem 0;
	}

	.rfsmm__mega.is-mobile-detail .rfsmm__rail {
		display: none;
	}

	.rfsmm__mega.is-mobile-detail .rfsmm__content {
		display: block;
	}

	.rfsmm button.rfsmm__mobile-back {
		display: inline-flex !important;
		align-items: center;
		gap: 0.45rem;
		width: auto !important;
		height: auto !important;
		min-width: 0 !important;
		min-height: 0 !important;
		margin: 0 0 1rem !important;
		padding: 0.5rem 0.7rem !important;
		border: 1px solid var(--rfsmm-border) !important;
		border-radius: 100px !important;
		background: var(--rfsmm-accent) !important;
		color: var(--rfsmm-surface) !important;
		cursor: pointer;
	}

	.rfsmm__columns {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1.25rem;
		columns: auto;
	}

	.rfsmm__term-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.rfsmm__az {
		padding: 0.9rem 0 1.5rem;
		overflow: visible;
	}

	.rfsmm__az-section + .rfsmm__az-section {
		margin-top: 1.35rem;
	}

	.rfsmm__az-section ul {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		column-gap: 1rem;
	}

	html.rfsmm-menu-open,
	html.rfsmm-menu-open body,
	body.rfsmm-menu-open {
		height: 100%;
		overflow: hidden !important;
		overscroll-behavior: none;
	}

	body.rfsmm-menu-open {
		position: fixed !important;
		left: 0;
		width: 100%;
	}
}

/* Tablet icon size; smartphones keep the defaults declared on .rfsmm. */
@media (min-width: 768px) and (max-width: 1024px) {
	.rfsmm {
		--rfsmm-mobile-icon-width: 1.75rem;
		--rfsmm-mobile-icon-stroke: 3px;
		--rfsmm-mobile-icon-gap: 0.5rem;
	}
}

@media (max-width: 420px) {
	.rfsmm__az-section ul {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rfsmm *,
	.rfsmm *::before,
	.rfsmm *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
