/**
 * BeautyWelt conversion layer — calm premium, high-contrast CTAs, mobile-first.
 * Scoped to body.bw-conversion-child where possible.
 * Optional: match Ashe Akzentfarbe — in Customizer → Zusätzliches CSS:
 * :root { --bw-cta: #957270; --bw-cta-hover: #7a5d5b; }
 */

:root {
	--bw-bg: #f9f6f3;
	--bw-ink: #2a2624;
	--bw-muted: #5c5552;
	--bw-line: #e8dfd8;
	--bw-cta: #5a3d3c;
	--bw-cta-hover: #452f2e;
	--bw-whatsapp: #25d366;
	--bw-radius: 6px;
	--bw-font-body: "Manrope", system-ui, sans-serif;
	--bw-font-display: "Cormorant Garamond", "Times New Roman", serif;
	--bw-sticky-h: 3.75rem;
	--bw-wa-size: 3.25rem;
}

body.bw-conversion-child {
	font-family: var(--bw-font-body);
	color: var(--bw-ink);
}

/* --- Screen reader only --- */
.bw-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Buttons (Gutenberg + nav) --- */
.bw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.65rem 1.25rem;
	font-family: var(--bw-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none !important;
	border-radius: var(--bw-radius);
	border: 2px solid transparent;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.bw-btn--primary {
	background: var(--bw-cta);
	color: #fff !important;
	border-color: var(--bw-cta);
}

.bw-btn--primary:hover,
.bw-btn--primary:focus-visible {
	background: var(--bw-cta-hover);
	border-color: var(--bw-cta-hover);
	color: #fff !important;
}

.bw-btn--ghost {
	background: transparent;
	color: var(--bw-cta) !important;
	border-color: var(--bw-line);
}

.bw-btn--ghost:hover,
.bw-btn--ghost:focus-visible {
	border-color: var(--bw-cta);
	color: var(--bw-cta) !important;
}

.bw-btn:focus-visible {
	outline: 3px solid #c4a59a;
	outline-offset: 2px;
}

/* Nav CTA (injected <li>) */
.bw-conversion-child #main-menu .bw-nav-cta-item,
.bw-conversion-child .main-menu-container .bw-nav-cta-item {
	list-style: none;
	margin-left: 0.5rem;
}

.bw-conversion-child .bw-btn--nav {
	min-height: 44px;
	padding: 0.45rem 1rem;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--bw-cta);
	color: #fff !important;
	border-radius: 999px;
	border: 2px solid var(--bw-cta);
}

.bw-conversion-child .bw-btn--nav:hover,
.bw-conversion-child .bw-btn--nav:focus-visible {
	background: var(--bw-cta-hover);
	border-color: var(--bw-cta-hover);
}

/* Main menu legibility (Ashe often uses small caps) */
@media (max-width: 1279px) {
	.bw-conversion-child .main-menu-container #main-menu > li > a {
		font-size: 0.95rem;
		font-weight: 600;
		letter-spacing: 0.02em;
	}
}

/* --- Sticky mobile bar --- */
.bw-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	display: none;
	align-items: stretch;
	gap: 0;
	min-height: var(--bw-sticky-h);
	padding: 0;
	background: #fff;
	box-shadow: 0 -4px 24px rgba(42, 38, 36, 0.12);
	border-top: 1px solid var(--bw-line);
}

body.bw-has-sticky-cta .bw-sticky-bar {
	display: flex;
}

.bw-sticky-bar__call {
	flex: 0 0 42%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--bw-ink) !important;
	text-decoration: none !important;
	background: var(--bw-bg);
	border-right: 1px solid var(--bw-line);
	min-height: 48px;
}

.bw-sticky-bar__call:hover,
.bw-sticky-bar__call:focus-visible {
	background: #efe8e2;
}

.bw-sticky-bar__book {
	flex: 1;
	border-radius: 0 !important;
	min-height: 48px;
	font-size: 0.88rem;
	text-align: center;
	line-height: 1.15;
}

@media (min-width: 992px) {
	body.bw-has-sticky-cta .bw-sticky-bar {
		display: none;
	}
}

/* Space for sticky + float on small screens */
@media (max-width: 991px) {
	body.bw-has-sticky-cta {
		padding-bottom: calc(var(--bw-sticky-h) + 8px);
	}
}

/* --- WhatsApp float --- */
.bw-wa-float {
	position: fixed;
	right: 1rem;
	bottom: calc(var(--bw-sticky-h) + 1rem + env(safe-area-inset-bottom, 0));
	z-index: 99991;
	width: var(--bw-wa-size);
	height: var(--bw-wa-size);
	border-radius: 50%;
	background: var(--bw-whatsapp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E")
		center / 55% no-repeat;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.bw-wa-float:hover,
.bw-wa-float:focus-visible {
	filter: brightness(1.05);
	outline: 3px solid #b8e8c8;
	outline-offset: 2px;
}

@media (min-width: 992px) {
	.bw-wa-float {
		bottom: 1.5rem;
	}
}

/* --- Exit modal --- */
.bw-exit-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.bw-exit-modal[hidden] {
	display: none !important;
}

.bw-exit-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(42, 38, 36, 0.45);
	cursor: pointer;
}

.bw-exit-modal__panel {
	position: relative;
	z-index: 1;
	max-width: 26rem;
	width: 100%;
	padding: 1.75rem 1.5rem 1.5rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
	font-family: var(--bw-font-body);
}

.bw-exit-modal__x {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--bw-muted);
	min-width: 44px;
	min-height: 44px;
}

.bw-exit-modal__title {
	font-family: var(--bw-font-display);
	font-size: 1.65rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: var(--bw-ink);
}

.bw-exit-modal__text {
	margin: 0 0 1.25rem;
	color: var(--bw-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.bw-exit-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

/* --- Editor / content utility blocks (use as “Zusätzliche CSS-Klasse”) --- */
.bw-hero {
	background: linear-gradient(180deg, var(--bw-bg) 0%, #fff 100%);
	padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.bw-hero__title {
	font-family: var(--bw-font-display);
	font-weight: 600;
	font-size: clamp(2rem, 5vw, 2.75rem);
	line-height: 1.15;
	color: var(--bw-ink);
	margin-bottom: 0.75rem;
}

.bw-hero__sub {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--bw-muted);
	max-width: 36rem;
}

.bw-trust-strip {
	background: #fff;
	border: 1px solid var(--bw-line);
	border-radius: 12px;
	padding: 1.25rem 1rem;
}

.bw-trust-strip h3 {
	font-family: var(--bw-font-display);
	font-size: 1.15rem;
	margin: 0 0 0.25rem;
	color: var(--bw-ink);
}

.bw-trust-strip p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--bw-muted);
	line-height: 1.5;
}

.bw-section-title {
	font-family: var(--bw-font-display);
	font-size: clamp(1.65rem, 3.5vw, 2.1rem);
	font-weight: 600;
	color: var(--bw-ink);
	text-align: center;
	margin-bottom: 0.5rem;
}

.bw-section-kicker {
	text-align: center;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bw-muted);
	margin-bottom: 0.35rem;
}

.bw-card-treatment {
	border: 1px solid var(--bw-line);
	border-radius: 12px;
	padding: 1.25rem;
	background: #fff;
	height: 100%;
}

.bw-card-treatment h3 {
	font-family: var(--bw-font-display);
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
}

.bw-price-note {
	font-size: 0.95rem;
	color: var(--bw-muted);
	font-weight: 600;
}

.bw-map-wrap {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--bw-line);
	aspect-ratio: 4/3;
	max-height: 420px;
}

.bw-map-frame {
	display: block;
	width: 100%;
	height: 100%;
}

/* Details / FAQ readability */
.bw-faq .wp-block-details,
.bw-faq details {
	border: 1px solid var(--bw-line);
	border-radius: var(--bw-radius);
	padding: 0.75rem 1rem;
	margin-bottom: 0.5rem;
	background: #fff;
}

.bw-faq summary {
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
	display: flex;
	align-items: center;
}

/* Content column readability */
.bw-conversion-child .entry-content .alignwide {
	max-width: 1100px;
}

.bw-conversion-child .entry-content p,
.bw-conversion-child .entry-content li {
	line-height: 1.65;
}

/* Core button blocks marked in editor */
.bw-conversion-child .wp-block-button.bw-cta-primary .wp-block-button__link {
	background-color: var(--bw-cta) !important;
	color: #fff !important;
	border-radius: var(--bw-radius) !important;
	min-height: 48px;
	padding: 0.65rem 1.35rem !important;
	font-weight: 600 !important;
}

.bw-conversion-child .wp-block-button.bw-cta-primary .wp-block-button__link:hover,
.bw-conversion-child .wp-block-button.bw-cta-primary .wp-block-button__link:focus {
	background-color: var(--bw-cta-hover) !important;
	color: #fff !important;
}

.bw-conversion-child .wp-block-button.bw-cta-ghost .wp-block-button__link {
	background: transparent !important;
	color: var(--bw-cta) !important;
	border: 2px solid var(--bw-line) !important;
	border-radius: var(--bw-radius) !important;
	min-height: 48px;
	font-weight: 600 !important;
}

/*
 * Landing page template: strip Ashe’s 500px „Page Header“ winter stock / unrelated photo —
 * your real hero is inside the page content (gallery + headline).
 */
.bw-landing .entry-header {
	height: auto !important;
	min-height: 0 !important;
	background-image: none !important;
	background-color: #fff !important;
	padding-top: 0.75rem !important;
	padding-bottom: 0.75rem !important;
}

/* Full width: Ashe reserves space when sidebars have widgets — reclaim width on landing. */
.bw-landing .main-content {
	display: block !important;
}

.bw-landing .main-content .main-container {
	width: 100% !important;
	max-width: min(72rem, 100%) !important;
	float: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: clamp(0.75rem, 3vw, 1.25rem) !important;
	padding-right: clamp(0.75rem, 3vw, 1.25rem) !important;
}

.bw-landing #page-header .page-content {
	padding-top: 0.5rem;
}

/* Default Ashe page title (e.g. "Test Home") — you use H1 in blocks */
.bw-landing .page-title,
.bw-landing .post-header {
	display: none !important;
}
