/* HW Landingpages 1.25.2 – Such-Overlay (alle Regeln an #hw-search gebunden, damit andere Suchfelder unberührt bleiben). Wirkt nur mit body.hw-search-on. */
@font-face { font-family: "HW Barlow Condensed"; src: url(fonts/barlow-condensed-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "HW Barlow Condensed"; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "HW Barlow Condensed"; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HW Barlow"; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HW Barlow"; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

#hw-search {
	--hw-cream: #FBF2ED;
	--hw-anth: #263039;
	--hw-anth-deep: #1A2229;
	--hw-brown: #B08E75;
	--hw-brown-text: #7A5B45;
	--hw-ink: #1F272E;
	--hw-ink2: #3A444D;
	--hw-muted: #55606A;
	--hw-line: #EADBD0;
	--hw-mat: #F4EEE9;
	--hw-display: "HW Barlow Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
	--hw-body: "HW Barlow", Barlow, "Helvetica Neue", Helvetica, Arial, sans-serif;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 9vh 16px 16px;
	box-sizing: border-box;
	font-family: var(--hw-body);
}
#hw-search[hidden] { display: none; }
html.hw-search-open { overflow: hidden; }
.hw-search__backdrop { position: absolute; inset: 0; background: rgba(26, 34, 41, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.2s ease; }
#hw-search.is-open .hw-search__backdrop { opacity: 1; }
.hw-search__panel {
	position: relative;
	width: min(780px, 100%);
	max-height: calc(100vh - 9vh - 16px);
	overflow-y: auto;
	padding: 30px 34px 28px;
	box-sizing: border-box;
	border-radius: 24px 0 24px 0;
	background: #fff;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateY(-14px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
#hw-search.is-open .hw-search__panel { opacity: 1; transform: none; }
#hw-search p { margin: 0; }
#hw-search button.hw-search__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px 0 10px 0;
	background: var(--hw-mat);
	color: var(--hw-anth);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
#hw-search button.hw-search__close:hover { background: var(--hw-anth); color: var(--hw-cream); }
#hw-search .hw-search__title { margin-bottom: 16px; padding-right: 50px; font-family: var(--hw-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--hw-anth); }

/* Suchfeld: Advanced Woo Search und WooCommerce-Fallback */
#hw-search .aws-container, #hw-search .aws-search-form, #hw-search .aws-wrapper { position: relative; width: 100%; margin: 0; padding: 0; background: none; border: 0; }
#hw-search .aws-search-label, #hw-search label.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#hw-search input.aws-search-field,
#hw-search .woocommerce-product-search input[type="search"],
#hw-search .search-form input[type="search"] {
	width: 100% !important;
	height: 62px !important;
	margin: 0;
	padding: 0 56px 0 20px !important;
	box-sizing: border-box;
	border: 2px solid var(--hw-anth) !important;
	border-radius: 14px 0 14px 0 !important;
	background: #fff !important;
	font-family: var(--hw-body) !important;
	font-size: 21px !important;
	line-height: 1.2;
	color: var(--hw-ink) !important;
	box-shadow: none !important;
	outline: none;
}
#hw-search input.aws-search-field:focus, #hw-search input[type="search"]:focus { box-shadow: 0 0 0 4px rgba(176, 142, 117, 0.35) !important; }
#hw-search input[type="search"]::placeholder { color: #8A9299; opacity: 1; }
#hw-search .aws-search-clear { right: 18px !important; color: var(--hw-muted); }
#hw-search .aws-loader { right: 18px !important; }
/* Advanced Woo Search setzt das Formular auf 44 px Höhe; hier passt es sich dem Feld an. */
#hw-search .aws-container .aws-search-form { display: flex !important; align-items: stretch; height: auto !important; min-height: 0; }
#hw-search .aws-container .aws-wrapper { flex: 1 1 auto; height: auto !important; overflow: visible !important; }
/* Mit Such-Button: Feld und Button bilden eine gemeinsame Form mit den Markenecken. */
#hw-search .aws-search-form:has(.aws-search-btn) input.aws-search-field { border-right: 0 !important; border-radius: 14px 0 0 0 !important; }
#hw-search .aws-container .aws-search-btn {
	flex: none;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 62px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid var(--hw-anth) !important;
	border-left: 0 !important;
	border-radius: 0 0 14px 0 !important;
	background: var(--hw-anth) !important;
	cursor: pointer;
}
#hw-search .aws-container .aws-search-btn:hover { background: var(--hw-anth-deep) !important; }
#hw-search .aws-container .aws-search-btn svg, #hw-search .aws-container .aws-search-btn_icon svg { width: 24px; height: 24px; fill: var(--hw-cream) !important; }
#hw-search .aws-container .aws-search-btn_icon { display: flex; align-items: center; justify-content: center; color: var(--hw-cream); }
#hw-search .woocommerce-product-search, #hw-search form.search-form { position: relative; display: flex; margin: 0; }
#hw-search .woocommerce-product-search button, #hw-search .woocommerce-product-search input[type="submit"] {
	position: absolute;
	right: 6px;
	top: 6px;
	height: 50px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px 0 10px 0;
	background: var(--hw-anth);
	color: var(--hw-cream);
	font-family: var(--hw-display);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}
#hw-search .hw-search__hint { margin-top: 10px; font-size: 14px; color: var(--hw-muted); }

.hw-search__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px 32px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hw-line); }
#hw-search .hw-search__label { margin-bottom: 10px; font-family: var(--hw-display); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hw-brown-text); }
#hw-search ul.hw-search__chips, #hw-search ul.hw-search__quick { margin: 0; padding: 0; list-style: none; }
#hw-search ul.hw-search__chips { display: flex; flex-wrap: wrap; gap: 8px; }
#hw-search ul li { margin: 0; padding: 0; }
#hw-search ul li::before { content: none !important; }
#hw-search button.hw-search__chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #DCCABD;
	border-radius: 9px 0 9px 0;
	background: #fff;
	font-family: var(--hw-body);
	font-weight: 600;
	font-size: 14px;
	color: var(--hw-anth);
	cursor: pointer;
}
#hw-search button.hw-search__chip:hover, #hw-search button.hw-search__chip:focus-visible { border-color: var(--hw-anth); background: var(--hw-cream); }
#hw-search ul.hw-search__quick { display: flex; flex-direction: column; }
#hw-search ul.hw-search__quick a { display: flex; align-items: center; justify-content: space-between; min-height: 38px; border-bottom: 1px solid var(--hw-line); font-size: 15px; color: var(--hw-ink2); text-decoration: none; }
#hw-search ul.hw-search__quick li:last-child a { border-bottom: 0; }
#hw-search ul.hw-search__quick a::after { content: "→"; color: var(--hw-brown-text); }
#hw-search ul.hw-search__quick a:hover { color: var(--hw-anth); }
#hw-search a:focus-visible, #hw-search button:focus-visible { outline: 2px solid var(--hw-brown-text); outline-offset: 2px; }

/* Live-Ergebnisse von Advanced Woo Search (hängen am Seitenende, deshalb über dem Overlay) */
html.hw-search-open .aws-search-result {
	z-index: 100001 !important;
	margin-top: 6px !important;
	padding: 6px !important;
	box-sizing: border-box;
	border: 1px solid #DCCABD !important;
	border-radius: 14px 0 14px 0 !important;
	background: #fff !important;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18) !important;
	font-family: "HW Barlow", Barlow, Arial, sans-serif;
	overflow: hidden;
}
html.hw-search-open .aws-search-result ul { margin: 0; padding: 0; list-style: none; }
html.hw-search-open .aws-search-result .aws_result_item { margin: 0; padding: 0; border: 0 !important; background: none !important; }
html.hw-search-open .aws-search-result .aws_result_link { display: flex; align-items: center; gap: 14px; padding: 8px 10px !important; border-radius: 10px 0 10px 0; color: #1F272E; text-decoration: none; }
html.hw-search-open .aws-search-result .aws_result_item:hover .aws_result_link,
html.hw-search-open .aws-search-result .aws_result_item.hovered .aws_result_link { background: #FBF2ED !important; }
html.hw-search-open .aws-search-result .aws_result_image { flex: none; display: flex; align-items: center; justify-content: center; width: 64px !important; height: 48px; padding: 0 !important; background: #F4EEE9; border-radius: 6px 0 6px 0; }
html.hw-search-open .aws-search-result .aws_result_image img { width: auto !important; max-width: 100%; height: auto; max-height: 44px; object-fit: contain; }
html.hw-search-open .aws-search-result .aws_result_title { font-family: "HW Barlow Condensed", "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.2; color: #263039; }
html.hw-search-open .aws-search-result .aws_result_price { display: block; margin-top: 2px; font-size: 13px; color: #55606A; }
html.hw-search-open .aws-search-result .aws_result_excerpt, html.hw-search-open .aws-search-result .aws_result_sku { display: none; }
html.hw-search-open .aws-search-result .aws_search_more a { display: block; margin-top: 4px; padding: 12px; border-radius: 10px 0 10px 0; background: #263039; color: #FBF2ED !important; font-family: "HW Barlow Condensed", "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; text-decoration: none; }
html.hw-search-open .aws-search-result .aws_no_result { padding: 14px; font-size: 15px; color: #55606A; }

@media (max-width: 640px) {
	#hw-search { padding: 0; }
	.hw-search__panel { width: 100%; max-height: 100vh; min-height: 100vh; padding: 22px 18px 24px; border-radius: 0; }
	#hw-search .hw-search__title { font-size: 24px; }
	#hw-search input.aws-search-field, #hw-search input[type="search"] { height: 54px !important; font-size: 18px !important; }
	#hw-search .aws-container .aws-search-btn { width: 54px !important; }
	.hw-search__cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.hw-search__backdrop, .hw-search__panel { transition: none; }
}
