.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	/* Kein Spalt zwischen Promo-Shell und Navbar */
	row-gap: 0;
}

/* Promo-Leiste: Höhe per Grid-Zeile animieren (nach oben „wegfahren“) */
.site-promo-bar-shell {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	min-height: 0;
	flex-shrink: 0;
}

.site-header.site-header--promo-hidden .site-promo-bar-shell {
	grid-template-rows: 0fr;
}

.site-promo-bar-shell > .site-promo-bar {
	overflow: hidden;
	min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
	.site-promo-bar-shell {
		transition-duration: 0.01ms;
	}
}

.site-promo-bar {
	background: var(--promo-bar-gradient);
	color: #fff8f0;
	font-size: 0.875rem;
	line-height: 1.45;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	/* kein Außen-Schatten: verhindert Subpixel-Lücke unter geschlossener Shell */
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.site-promo-bar__inner {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0.45rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.85rem;
	text-align: center;
}

.site-promo-bar__text {
	margin: 0;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.site-promo-bar__cta {
	flex-shrink: 0;
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	border-radius: var(--radius-sm);
	padding: 0.2rem 0.35rem;
	margin: -0.2rem -0.35rem;
	transition: background 150ms ease, color 150ms ease;
}

.site-promo-bar__cta:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	text-decoration: underline;
}

.site-promo-bar__cta:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px #fff8f0, 0 0 0 4px var(--cta-2);
}

.topbar {
	height: 5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2rem;
	border-bottom: 1px solid var(--border-soft);
	/* Liegt im .site-scroll: gescrollter Inhalt läuft darunter → backdrop-filter wirkt */
	background: var(--topbar-glass-bg);
	backdrop-filter: blur(18px) saturate(1.25);
	-webkit-backdrop-filter: blur(18px) saturate(1.25);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	isolation: isolate;
}

.topbar__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--content-max);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-width: 0;
}

/* Nach eingeklappter Promo: Navbar leicht hochziehen + Glas-Streifen (keine Haarlinie ohne Blur) */
.site-header.site-header--promo-hidden .topbar {
	margin-top: -3px;
}

.site-header.site-header--promo-hidden .topbar::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 6px;
	background: var(--topbar-glass-bg);
	backdrop-filter: blur(18px) saturate(1.25);
	-webkit-backdrop-filter: blur(18px) saturate(1.25);
	pointer-events: none;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 280px
}

.nav {
	display: flex;
	gap: 6px;
	align-items: center
}

.nav a {
	text-decoration: none;
	font-size: 1rem;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	transition: 150ms ease;
}

.nav a.standard {
	color: var(--muted);
}

.nav a.standard:hover {
	color: var(--text);
	background: rgba(111,78,55,.06);
}

.nav__favorites-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	position: relative;
}

.nav__wishlist-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 0.28rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--cta);
	position: absolute;
	top: 0.08rem;
	right: 0.08rem;
	transform: translate(45%, -45%);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
	pointer-events: none;
}

.nav__wishlist-badge[hidden] {
	display: none;
}

.nav a.cta {
	background: var(--cta-btn-gradient);
	border-color: var(--cta-btn-border);
	color: var(--cta-btn-text);
	transition: 160ms ease;
}

.nav a.cta:hover {
	transform: translateY(-1px);
}

.lang-switch .menu .theme-switch__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0.55rem 0.7rem;
	border-radius: 0.45rem;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: inherit;
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
}

.lang-switch .menu .theme-switch__option:hover,
.lang-switch .menu .theme-switch__option:focus-visible {
	color: var(--text);
	background: var(--hover-bg);
}

.lang-switch .menu .theme-switch__option:focus-visible {
	outline: none;
	box-shadow: var(--ring);
}

@media (max-width: 900px) {
	.nav {
		flex-wrap: wrap;
		justify-content: flex-end;
		row-gap: 0.35rem;
	}
}

/* Langugae Switcher */

.lang-switch {
  position: relative;
  display: inline-block;
  font-family: inherit;
}

.lang-switch::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: .5rem;          /* gleiche/mehr als dein gap (.35rem) */
}

.lang-switch > a.standard {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.lang-switch .pi {
  transition: transform .15s ease;
}

.lang-switch .menu {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 9rem;
  padding: .35rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: .6rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  display: none;
  z-index: 999;
}

.lang-switch .menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .7rem;
  border-radius: .45rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.lang-switch .menu a:hover,
.lang-switch .menu a:focus-visible {
  color: var(--text);
	background: var(--hover-bg);
}

.lang-switch:hover .menu,
.lang-switch:focus-within .menu {
  display: block;
}

.lang-switch:hover .pi,
.lang-switch:focus-within .pi {
  transform: rotate(180deg);
}

.lang-switch .active {
  font-weight: 600;
}

.lang-switch .check {
  opacity: .8;
}

.lang-switch .menu .theme-switch__option.active {
  font-weight: 600;
}

/* Optional: close feeling on mobile (bigger tap targets) */
@media (max-width: 640px) {
  .lang-switch .menu { min-width: 10rem; }
  .lang-switch .menu a { padding: .7rem .8rem; }
  .lang-switch .menu .theme-switch__option { padding: .7rem .8rem; }
}