/*
	Theme Name: Hello Elementor Child – UMW
	Theme URI: https://uckermaerkische-waren.de/
	Description: Child theme of Hello Elementor for Uckermärkische Waren GmbH. Provides the bespoke single-page front layout and on-page redirects while keeping the Elementor Pro header, footer and shop intact.
	Author: UMW
	Template: hello-elementor
	Version: 1.0.0
	Text Domain: hello-elementor-child
*/

/* The single-page layout ships its own stylesheet (assets/onepage.css),
   enqueued only on the front page template. Rules below are site-wide:
   they kill the hello-elementor pink accent (a { color: #c36 } in
   reset.css) on shop / product / archive pages where onepage.css
   doesn't load. */

:root {
	--umw-brand-sand: #bfac9b;
	--umw-brand-sand-dark: #a8917c;
	--umw-brand-dark: #3a4350;
}

/* Link colour — replace hello-elementor's hot-pink default with sand.
   Scoped tight enough to avoid stomping Elementor's own button widgets,
   which set their colour via their own classes. */
a,
a:link,
a:visited {
	color: var(--umw-brand-sand-dark);
}

a:hover,
a:focus,
a:active {
	color: var(--umw-brand-dark);
}

/* WooCommerce shop & product pages: same — but exclude .button (Woo's
   shop buttons have their own styling that we leave alone for now). */
.woocommerce a:not(.button):not(.elementor-button),
.woocommerce-page a:not(.button):not(.elementor-button) {
	color: var(--umw-brand-sand-dark);
}

.woocommerce a:not(.button):not(.elementor-button):hover,
.woocommerce-page a:not(.button):not(.elementor-button):hover {
	color: var(--umw-brand-dark);
}

/* WooCommerce flexslider on single-product gallery — replace any
   themed/plugin accent on the prev/next arrows with brand-dark. */
.woocommerce-product-gallery .flex-direction-nav a,
.woocommerce div.product .flex-prev,
.woocommerce div.product .flex-next {
	background: rgba(58, 67, 80, 0.72) !important;
	color: #fff !important;
}

.woocommerce-product-gallery .flex-direction-nav a:hover,
.woocommerce div.product .flex-prev:hover,
.woocommerce div.product .flex-next:hover {
	background: var(--umw-brand-dark) !important;
}

/* PhotoSwipe lightbox controls — neutralise any colour the active skin
   adds, keep the chevron readable. */
.pswp__button--arrow--left:before,
.pswp__button--arrow--right:before {
	background-color: rgba(58, 67, 80, 0.6) !important;
}

/* ---- Legal / content pages (AGB, Impressum, Datenschutz) --------------
   The Elementor "Header/Footer" page template outputs the_content() with
   no container, so the raw HTML runs full-bleed under the sticky header.
   Wrapping a page's content in .umw-legal gives it a readable measure,
   padding that clears the header, and vertical rhythm. */
.umw-legal {
	max-width: 820px;
	margin-inline: auto;
	/* Top padding clears the fixed 80px Elementor header (#39). */
	padding: clamp(6rem, 8vw, 7rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 8vw, 5rem);
	color: var(--umw-brand-dark);
	font-size: 1.02rem;
	line-height: 1.7;
}

.umw-legal h1 {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	line-height: 1.2;
	margin: 0 0 1.5rem;
}

.umw-legal h2 {
	font-size: clamp(1.2rem, 2.4vw, 1.5rem);
	line-height: 1.3;
	margin: 2.4rem 0 0.85rem;
	padding-top: 1.4rem;
	border-top: 1px solid #e7e3df;
}

.umw-legal h3 {
	font-size: 1.1rem;
	margin: 1.6rem 0 0.6rem;
}

/* Company info block sits right under the H1 — no separator rule. */
.umw-legal > p:first-of-type {
	margin-top: 0;
}

.umw-legal p {
	margin: 0 0 1rem;
}

.umw-legal ul {
	margin: 0 0 1rem;
	padding-left: 1.4rem;
}

.umw-legal li {
	margin-bottom: 0.35rem;
}

/* Unfilled placeholders — keep them loud so they can't ship by accident. */
.umw-legal mark {
	background: #fff3a3;
	color: #6b5300;
	padding: 0 0.25em;
	border-radius: 2px;
	font-weight: 600;
}

@media (max-width: 600px) {
	.umw-legal {
		font-size: 0.98rem;
	}
}
