/**
 * Pizzaschmiede – Marken-Header fuer die Astra-Seiten
 *
 * Visuelles Pendant zum ps-header der Startseite (siehe home.css), aber
 * statisch: festes, kleines Logo, immer solider Hintergrund. Auf den
 * Astra-Seiten gibt es keinen Hero, der ein grosses, schrumpfendes Logo
 * rechtfertigen wuerde.
 *
 * Bewusst mit literalen Hex-Werten statt var(--ps-*): diese Datei laeuft
 * ausserhalb des .pizzaschmiede-home-Scopes von home.css und die --ps-*-
 * Namen in brand.css heissen anders.
 */

.ps-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: rgba(242, 236, 226, 0.98);
	border-bottom: 1px solid rgba(180, 160, 130, 0.3);
}

.ps-header__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 48px;
	display: flex;
	align-items: center;
	height: 60px;
	position: relative;
}

.ps-nav {
	display: flex;
	align-items: center;
	gap: 44px;
	flex: 1;
}

.ps-nav--left {
	justify-content: flex-end;
	padding-right: 180px;
}

.ps-nav--right {
	justify-content: flex-start;
	padding-left: 180px;
}

.ps-nav__link {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #282420;
	text-decoration: none;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	opacity: 0.6;
	transition: opacity 0.2s;
	white-space: nowrap;
}

.ps-nav__link:hover,
.ps-nav__link:focus-visible {
	opacity: 1;
}

.ps-nav__divider {
	width: 1px;
	height: 14px;
	background: #d4c9b8;
	flex-shrink: 0;
}

.ps-nav__group {
	position: relative;
	display: flex;
	align-items: center;
}

.ps-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.ps-nav__chev {
	transition: transform 0.2s ease;
	opacity: 0.7;
}

.ps-nav__group:hover .ps-nav__toggle,
.ps-nav__group:focus-within .ps-nav__toggle,
.ps-nav__group[data-ps-open] .ps-nav__toggle {
	opacity: 1;
}

.ps-nav__group:hover .ps-nav__chev,
.ps-nav__group:focus-within .ps-nav__chev,
.ps-nav__group[data-ps-open] .ps-nav__chev {
	transform: rotate(180deg);
}

.ps-nav__menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, -4px);
	min-width: 232px;
	padding: 8px;
	background: #f8f4ee;
	border: 1px solid #e6ddd0;
	border-radius: 3px;
	box-shadow: 0 12px 32px rgba(40, 36, 32, 0.14);
	z-index: 10;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.ps-nav__group:hover .ps-nav__menu,
.ps-nav__group:focus-within .ps-nav__menu,
.ps-nav__group[data-ps-open] .ps-nav__menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.ps-nav__menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -8px;
	height: 8px;
}

.ps-nav__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 10px 12px;
	border-radius: 2px;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.2px;
	text-transform: none;
	color: #282420;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.ps-nav__item:hover,
.ps-nav__item:focus-visible {
	background: #f0ebe3;
	color: #8b1a1a;
}

.ps-nav__count {
	font-size: 12px;
	color: #9a9088;
	font-variant-numeric: tabular-nums;
}

.ps-icon-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	position: relative;
	opacity: 0.6;
	transition: opacity 0.2s;
	color: #282420;
	text-decoration: none;
}

.ps-icon-btn:hover,
.ps-icon-btn:focus-visible {
	opacity: 1;
}

.ps-cart-count {
	position: absolute;
	top: -1px;
	right: -1px;
	width: 12px;
	height: 12px;
	background: #8b1a1a;
	border-radius: 50%;
	font-size: 7px;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Such-Panel ── */
.ps-search {
	position: relative;
	display: flex;
	align-items: center;
}

.ps-search .ps-icon-btn[aria-expanded="true"] {
	opacity: 1;
}

.ps-search__panel {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 14px;
	width: 300px;
	padding: 10px;
	background: #f8f4ee;
	border: 1px solid #e6ddd0;
	border-radius: 3px;
	box-shadow: 0 12px 32px rgba(40, 36, 32, 0.14);
	z-index: 10;
}

.ps-search__form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ps-search__input {
	flex: 1;
	min-width: 0;
	border: 1px solid #e6ddd0;
	border-radius: 2px;
	background: #fff;
	padding: 9px 12px;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	color: #282420;
}

.ps-search__input:focus {
	outline: none;
	border-color: #8b1a1a;
}

.ps-search__submit {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	/* Astras Button-Padding wuerde die Contentbox auffressen und das Icon
	   auf 0 quetschen. */
	padding: 0;
	background: #8b1a1a;
	color: #fff;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.15s;
}

.ps-search__submit svg {
	flex: none;
	display: block;
	stroke: #fff;
}

.ps-search__submit:hover,
.ps-search__submit:focus-visible {
	background: #6d1414;
}

@media (max-width: 900px) {
	.ps-search__panel {
		width: 260px;
	}
}

/* Logo haengt leicht aus der 60px-Navzeile heraus, aber immer in der
   kleinen, festen Groesse (Pendant zum eingescrollten Zustand der
   Startseite) – keine Scroll-Transition. */
.ps-logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: -6px;
	z-index: 10;
	text-decoration: none;
	line-height: 0;
}

.ps-logo__img {
	height: 99px;
	width: 99px;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 12px 32px rgba(100, 20, 20, 0.3));
	transition: transform 0.35s;
}

.ps-logo:hover .ps-logo__img,
.ps-logo:focus-visible .ps-logo__img {
	transform: scale(1.04);
}

@media (max-width: 900px) {
	.ps-header {
		position: static;
		background: #f8f4ee;
	}

	.ps-header__inner {
		flex-direction: column;
		height: auto;
		padding: 16px 24px 20px;
		gap: 12px;
	}

	.ps-logo {
		position: static;
		transform: none;
		order: -1;
	}

	.ps-logo__img {
		height: 132px !important;
		width: 132px !important;
	}

	.ps-nav {
		flex: none;
		justify-content: center;
		flex-wrap: wrap;
		gap: 20px 24px;
	}

	.ps-nav--left,
	.ps-nav--right {
		padding: 0;
	}

	.ps-nav__group {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.ps-nav__menu {
		position: static;
		transform: none;
		display: none;
		min-width: 200px;
		box-shadow: none;
		background: transparent;
		border: none;
		padding: 0;
	}

	.ps-nav__group:hover .ps-nav__menu,
	.ps-nav__group:focus-within .ps-nav__menu,
	.ps-nav__group[data-ps-open] .ps-nav__menu {
		transform: none;
	}

	.ps-nav__group[data-ps-open] .ps-nav__menu {
		display: block;
	}

	.ps-nav__menu::before {
		content: none;
	}
}
