/* Mobiles Menue "Kacheln" – Widget "Trauringhaus Mobiles Menü" (inc/mobile-menu.php)
   Das Menue wird per JS direkt unter <body> gehaengt; alle Regeln haengen deshalb an .th-mm-panel.
   button-Regeln stehen ausdruecklich mit "button." davor, weil das Elementor-Kit Buttons global einfaerbt. */

/* ---------- Menue-Button im Header ---------- */
button.th-mm-toggle,
button.th-mm-toggle:hover,
button.th-mm-toggle:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	color: var(--mm-toggle, #244346);
	line-height: 0;
	cursor: pointer;
}
.th-mm-toggle svg {
	width: 30px;
	height: 30px;
	display: block;
}
button.th-mm-toggle:focus-visible {
	outline: 2px solid #C8A779;
	outline-offset: 2px;
}

/* ---------- Vollbild-Menue ---------- */
html.th-mm-lock,
html.th-mm-lock body {
	overflow: hidden;
}

.th-mm-panel {
	--mm-teal: #244346;
	--mm-gold: #C8A779;
	--mm-gold-ink: #A3855A;
	--mm-bg: #FDFCF8;
	--mm-cream: #FFF7EC;
	--mm-ink: #2B3A39;
	--mm-muted: #6C7876;
	--mm-line: #EADFCE;

	position: fixed;
	inset: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 99999;
	display: flex;
	justify-content: flex-end;
	visibility: hidden;
	pointer-events: none;
	font-family: "Nunito Sans", Nunito, "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--mm-ink);
	-webkit-font-smoothing: antialiased;
	transition: visibility 0s linear .32s;
}
.th-mm-panel[hidden] {
	display: none;
}
.th-mm-panel.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}
.th-mm-panel *,
.th-mm-panel *::before,
.th-mm-panel *::after {
	box-sizing: border-box;
}

.th-mm-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 52, 54, .55);
	opacity: 0;
	transition: opacity .3s ease;
}
.th-mm-panel.is-open .th-mm-panel__backdrop {
	opacity: 1;
}

.th-mm-screen {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 440px;
	height: 100%;
	background: var(--mm-bg);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	transform: translateX(100%);
	transition: transform .32s cubic-bezier(.2, .7, .2, 1);
	box-shadow: -24px 0 60px -30px rgba(28, 52, 54, .5);
}
.th-mm-screen::-webkit-scrollbar {
	display: none;
}
.th-mm-panel.is-open .th-mm-screen {
	transform: none;
}
@media (max-width: 480px) {
	.th-mm-screen {
		max-width: none;
		box-shadow: none;
	}
}

.th-mm-panel a {
	text-decoration: none;
}
.th-mm-panel a:focus-visible,
.th-mm-panel button:focus-visible {
	outline: 2px solid var(--mm-gold);
	outline-offset: 3px;
}

/* Aktionsleiste */
.th-mm-promo {
	flex: none;
	padding: 8px 12px;
	background: #1F1F1F;
	color: #fff;
	text-align: center;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.th-mm-heart {
	color: #E53935;
}

/* Kopf: Logo, Wunschliste, Schliessen */
.th-mm-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 12px;
}
.th-mm-logo {
	display: block;
	flex: none;
	color: var(--mm-teal);
	font-weight: 700;
	letter-spacing: .2em;
}
.th-mm-logo img {
	display: block;
	width: auto;
	height: 44px;
	max-width: 150px;
}
.th-mm-head__right {
	display: flex;
	align-items: center;
	gap: 8px;
}
.th-mm-panel a.th-mm-wish {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: #fff;
	border: 1px solid var(--mm-line);
	border-radius: 999px;
	color: var(--mm-teal);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}
.th-mm-wish svg {
	width: 14px;
	height: 14px;
	color: var(--mm-gold-ink);
	flex: none;
}
.th-mm-wish .wishlist-count {
	min-width: 16px;
	height: 16px;
	margin: 0;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--mm-teal);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.th-mm-wish .wishlist-count.thw-count-empty {
	display: none;
}
.th-mm-panel button.th-mm-x,
.th-mm-panel button.th-mm-x:hover,
.th-mm-panel button.th-mm-x:focus {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 1px solid var(--mm-line);
	border-radius: 50%;
	box-shadow: none;
	color: var(--mm-teal);
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.th-mm-panel button.th-mm-x:hover {
	background: #fff;
	border-color: var(--mm-gold);
}
.th-mm-x svg {
	width: 16px;
	height: 16px;
}

/* Kacheln */
.th-mm-label {
	padding: 8px 20px;
	color: var(--mm-gold-ink);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.th-mm-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 0 20px 8px;
}
.th-mm-panel a.th-mm-tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 14px 14px 12px;
	background: #fff;
	border: 1px solid var(--mm-line);
	border-radius: 16px;
	color: var(--mm-teal);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	transition: border-color .2s, transform .2s;
}
.th-mm-panel a.th-mm-tile:hover,
.th-mm-panel a.th-mm-tile[aria-current="page"] {
	border-color: var(--mm-gold);
}
.th-mm-panel a.th-mm-tile:active {
	transform: scale(.98);
}
.th-mm-tile svg {
	width: 26px;
	height: 26px;
	color: var(--mm-gold-ink);
	flex: none;
}
.th-mm-tile small {
	display: block;
	margin-top: 8px;
	color: var(--mm-muted);
	font-size: 11.5px;
	font-weight: 600;
}
.th-mm-panel a.th-mm-tile--accent {
	background: var(--mm-teal);
	border-color: var(--mm-teal);
	color: var(--mm-cream);
}
.th-mm-tile--accent svg {
	color: var(--mm-gold);
}
.th-mm-tile--accent small {
	color: rgba(255, 247, 236, .75);
}

/* Liste */
.th-mm-list {
	list-style: none;
	margin: 0;
	padding: 0 20px;
}
.th-mm-list li {
	margin: 0;
	border-bottom: 1px solid var(--mm-line);
}
.th-mm-list li:last-child {
	border-bottom: 0;
}
.th-mm-panel .th-mm-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	color: var(--mm-teal);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
}
.th-mm-panel .th-mm-list a[aria-current="page"] {
	color: var(--mm-gold-ink);
}
.th-mm-chev {
	width: 18px;
	height: 18px;
	color: var(--mm-gold-ink);
	flex: none;
	transition: transform .2s;
}
.th-mm-list a:hover .th-mm-chev {
	transform: translateX(3px);
}

.th-mm-spacer {
	flex: 1;
	min-height: 8px;
}

/* Termin-Button, Bewertungen, Kontakt */
.th-mm-ctawrap {
	/* bleibt am unteren Rand sichtbar, solange weiter oben noch Menuepunkte stehen */
	position: sticky;
	bottom: 0;
	z-index: 1;
	padding: 18px 20px 8px;
	background: linear-gradient(180deg, rgba(253, 252, 248, 0), var(--mm-bg) 34%);
}
.th-mm-panel a.th-mm-cta {
	display: block;
	padding: 15px 20px;
	background: var(--mm-teal);
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	transition: background-color .2s, color .2s;
}
.th-mm-panel a.th-mm-cta:hover {
	background: var(--mm-gold);
	color: var(--mm-teal);
}
.th-mm-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px 0;
	color: var(--mm-muted);
	font-size: 12.5px;
}
.th-mm-trust b {
	color: var(--mm-teal);
}
.th-mm-stars {
	color: var(--mm-gold);
	font-size: 11px;
	letter-spacing: 1px;
	white-space: nowrap;
}
.th-mm-contact {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 16px 20px calc(26px + env(safe-area-inset-bottom, 0px));
	font-size: 13.5px;
}
.th-mm-panel .th-mm-contact a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--mm-teal);
	font-weight: 600;
}
.th-mm-contact svg {
	width: 16px;
	height: 16px;
	color: var(--mm-gold-ink);
	flex: none;
}

@media (prefers-reduced-motion: reduce) {
	.th-mm-panel,
	.th-mm-screen,
	.th-mm-panel__backdrop,
	.th-mm-chev,
	.th-mm-panel a.th-mm-tile {
		transition: none;
	}
}
