/**
 * Kopfbereich Kategorie-/Markenseiten (archive-header.php).
 * Chips (.zwcl-chip) kommen aus archive-filters.css — hier Kopf-Layout.
 *
 * 2026-07-20: Kategorie-Banner rendert das Theme (zw-cat-banner) — hier NICHT
 * mehr. Markenseiten bekommen einen eigenen full-width Kopf (Hero-Foto +
 * Logo/Wortmarke), da das Theme nur die native Taxonomie product_brand kennt.
 */

/* -------------------------------------------------------------------------
 * Marken-Kopf: Logo/Name oben auf ruhiger Fläche, Hero-Foto als Block darunter
 * (Axel 2026-07-20: Bild unter das Logo, kein Overlay, Logo nicht mehr auf Foto)
 * ---------------------------------------------------------------------- */

.zwcl-brandhero {
	margin: 0 0 1.4rem;
}

.zwcl-brandhero__inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.3rem clamp(1rem, 4vw, 2.5rem) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
}

.zwcl-brandhero__brand {
	text-align: center;
}

/* Logo auf zurückhaltender Karte — lesbar auf dem Creme-Seitengrund. */
.zwcl-brandhero__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.1rem;
	background: var(--zcf-white, #FFFFFF);
	border: 1px solid var(--zcf-border, #E3DCCF);
	border-radius: var(--radius, 10px);
}

.zwcl-brandhero__logo img {
	display: block;
	width: auto;
	max-width: min(70vw, 300px);
	max-height: 76px;
	height: auto;
}

/* Fallback ohne Logo: gesetzte Wortmarke (dunkel auf hellem Grund). */
.zwcl-brandhero__wordmark {
	margin: 0;
	color: var(--zcf-petrol, #23434A);
	font-size: clamp(1.7rem, 4.5vw, 2.6rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.05;
}

/* Hero-Foto: zentrierter, begrenzter Bildblock (kein Overlay, kein Scrim). */
.zwcl-brandhero__photo {
	margin: 0;
	width: 100%;
	border-radius: var(--radius-lg, 18px);
	overflow: hidden;
	background: var(--zcf-sand, #F6F1E8);
}

.zwcl-brandhero__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	object-position: center 30%;
}

@media (min-width: 768px) {
	.zwcl-brandhero__photo img {
		aspect-ratio: 24 / 8;
	}
}

/* -------------------------------------------------------------------------
 * Content-Kopf (Kategorie-Chips/Text, Marken-Intro)
 * ---------------------------------------------------------------------- */

.zwcl-archive-header {
	margin: 0.2rem 0 1.2rem;
	max-width: 70ch; /* ruhige Lesebreite, Design-System §10 */
}

.zwcl-archive-header__children {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.9rem;
	max-width: none;
}

.zwcl-archive-header__text {
	color: var(--zcf-ink, #1E252D);
	line-height: 1.6;
}

.zwcl-archive-header__intro {
	margin: 0 0 0.5rem;
	color: var(--zcf-ink, #1E252D);
	line-height: 1.6;
}

.zwcl-archive-header__more summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
	color: var(--zcf-petrol, #23434A);
	font-weight: 600;
	list-style: none;
}

.zwcl-archive-header__more summary::-webkit-details-marker {
	display: none;
}

.zwcl-archive-header__more summary::after {
	content: "";
	margin-left: 0.45rem;
	width: 0.5em;
	height: 0.5em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s ease;
}

.zwcl-archive-header__more[open] summary::after {
	transform: rotate(-135deg);
}

.zwcl-archive-header__more .zwcl-archive-header__text {
	margin-top: 0.5rem;
	padding: 0.9rem 1.1rem;
	background: var(--zcf-sand, #F6F1E8);
	border-radius: var(--radius, 10px);
}

/* Leerzustand (Marke ohne Ware): einladend statt Fehlermeldung. */
.zwcl-archive-empty {
	margin: 1.5rem 0 2.5rem;
	padding: 1.4rem 1.5rem;
	max-width: 60ch;
	background: var(--zcf-cream, #FCFAF5);
	border: 1px solid var(--zcf-border, #E3DCCF);
	border-radius: var(--radius-lg, 18px);
	line-height: 1.6;
}

.zwcl-archive-empty .button {
	margin-top: 0.4rem;
}

.zwcl-archive-header a:focus-visible,
.zwcl-archive-header summary:focus-visible {
	outline: 2px solid var(--zcf-camel, #B88A5B);
	outline-offset: 2px;
}

/*
 * Kategorietext eingeklappt (category-pages.php, 2026-07-21).
 * Optik bewusst identisch zu den Filter-Aufklappern, damit Kunden das
 * Klapp-Muster auf der Seite nur einmal lernen müssen.
 */
.zwcl-cat-intro {
	margin: 0 0 1.1rem;
	border: 1px solid var(--zcf-border, #E3DCCF);
	border-radius: 10px;
	background: var(--zcf-white, #fff);
}

.zwcl-cat-intro__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 0.9rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--zcf-petrol, #23434A);
	cursor: pointer;
	user-select: none;
	list-style: none;
}

.zwcl-cat-intro__summary::-webkit-details-marker { display: none; }

.zwcl-cat-intro__summary::after {
	content: "";
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-bottom: 2px;
	transition: transform 0.15s ease;
}

.zwcl-cat-intro[open] > .zwcl-cat-intro__summary::after {
	transform: rotate(-135deg);
	margin-bottom: -2px;
}

.zwcl-cat-intro__summary:focus-visible {
	outline: 2px solid var(--zcf-petrol, #23434A);
	outline-offset: 2px;
}

.zwcl-cat-intro__body {
	padding: 0 0.9rem 0.9rem;
}

.zwcl-cat-intro__body > :first-child { margin-top: 0; }
.zwcl-cat-intro__body > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.zwcl-cat-intro__summary::after { transition: none; }
}
