@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

/* Der Halsband-Header verwendet dieselbe Struktur und dieselben Maße wie der Zucht-Header. */
.site-header { position: relative; z-index: 10; width: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 2rem; width: 100%; max-width: none; height: clamp(112px, 13.34vw, 145.2px); min-height: clamp(112px, 13.34vw, 145.2px); margin: 0; padding: 0 .35rem; text-align: left; }
.brand-image-link { display: inline-flex; align-items: center; flex: 0 0 auto; align-self: stretch; width: min(34vw, 370px); line-height: 0; }
.brand-image { display: block; width: 100%; height: 100%; max-height: none; max-width: none; object-fit: contain; }
.header-right-logo { position: absolute; top: 0; right: .35rem; width: 112px; height: 100%; max-height: none; max-width: none; object-fit: contain; }
.main-nav { position: absolute; z-index: 30; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.main-nav > ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem clamp(.45rem, 1.2vw, 1.15rem); margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a { display: inline-block; padding: .55rem .85rem; color: var(--text); text-decoration: none; font: 400 .98rem/1.4 Baskerville, "Palatino Linotype", "Book Antiqua", serif; letter-spacing: .065em; border: 1px solid rgba(255,255,255,.58); border-radius: 999px; background: rgba(255,255,255,.28); box-shadow: 0 2px 10px rgba(57,43,34,.035); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--text); border-color: rgba(152,121,93,.48); background: rgba(255,255,255,.66); transform: translateY(-1px); }
.main-nav .dropdown-menu { position: absolute; z-index: 20; top: 100%; left: 50%; display: none; min-width: 100%; margin: 0; padding: .35rem 0 0; list-style: none; flex-direction: column; gap: .25rem; transform: translateX(-50%); }
.main-nav .has-dropdown:hover > .dropdown-menu, .main-nav .has-dropdown:focus-within > .dropdown-menu { display: flex; }
.main-nav .dropdown-menu a { display: block; min-width: 150px; padding: .55rem 1rem; border-radius: 8px; background: rgba(249,247,242,.94); text-align: center; white-space: nowrap; }
.nav-toggle { display: none; }
.nav-submenu-toggle { display: none; }
.nav-submenu-arrow { display: none; }

:root {
  color-scheme: light;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3f3a34;
  background: #f5efe7;
  --bg: #b5a091;
  --surface: #d2c0af;
  --surface-strong: #bfaa97;
  --panel: rgba(248, 237, 225, 0.44);
  --line: rgba(83, 63, 49, 0.22);
  --text: #372d26;
  --muted: #67564a;
  --soft: #806b5b;
  --accent: #8c6f5c;
  --button-brown: #795b48;
  --button-brown-dark: #604535;
  --button-border: #50392c;
  --nav-button-bg: rgba(248,237,225,.3);
  --nav-button-bg-hover: rgba(248,237,225,.66);
  --nav-button-border: rgba(255,255,255,.36);
  --nav-shop-button-bg: rgba(255,255,255,.5);
  --nav-shop-button-bg-hover: rgba(255,255,255,.72);
  --nav-shop-button-border: rgba(255,255,255,.72);
  --site-background: linear-gradient(180deg, #e4d1bd 0%, #cdb39c 100%);
  --header-height: 300px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #e4d1bd 0%, #cdb39c 100%);
  color: var(--text);
  font-family: 'Libre Baskerville', Georgia, serif;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.brand-header-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.brand-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0 0 1.1rem;
  padding: 0;
  overflow: visible;
}

.header-visual {
  position: relative;
  height: var(--header-height);
  min-height: var(--header-height);
  overflow: visible;
  background: transparent;
}

.header-visual::after {
  display: none;
}

.header-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  filter: saturate(0.9) contrast(1.04);
  object-position: center;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 76%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 76%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.header-visual-left img {
  object-position: left center;
  transform: none;
}

.header-visual-right img {
  object-position: right center;
  width: 100%;
  transform: none;
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 76%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 76%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0.8rem 1rem 0.5rem;
  overflow: visible;
}

.brand-logo {
  display: block;
  width: min(100%, 220px);
  max-width: 220px;
  height: auto;
  max-height: none;
  margin-top: 0;
  filter: drop-shadow(0 12px 22px rgba(80, 65, 52, 0.1));
}

.brand-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  line-height: 1.25;
  margin-top: 0;
  transform: translateY(-0.05rem);
}

.content-divider {
  display: none;
}

.section-visual {
  width: 100%;
  height: 150px;
  background-image:
    linear-gradient(90deg, rgba(245, 239, 231, 0.82), rgba(245, 239, 231, 0.48)),
    url('Trennbild1.jpg');
  background-size: cover;
  background-position: center;
  border: none;
  margin: 0 0 2.2rem;
  opacity: 1;
}

.section-visual-alt {
  background-image:
    linear-gradient(90deg, rgba(245, 239, 231, 0.82), rgba(245, 239, 231, 0.48)),
    url('Trennbild2.jpg');
}

.story-block {
  margin-top: 2.8rem;
  margin-bottom: 2.2rem;
}

.story-copy {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.8;
  padding-top: 0.6rem;
}

.story-copy p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--soft);
}

.section-heading h2,
.custom-request h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p:last-child,
.request-copy {
  max-width: 760px;
  margin: 0.9rem auto 0;
  color: var(--muted);
}

.shop-landing,
.custom-request {
  margin-top: 1.8rem;
  padding: 1.8rem 0;
}

.shop-category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.shop-category-btn,
.catalogue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-brown);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.shop-category-btn:hover,
.shop-category-btn:focus-visible,
.catalogue-button:hover,
.catalogue-button:focus-visible {
  transform: translateY(-1px);
  background: var(--button-brown-dark);
  border-color: rgba(63, 58, 52, 0.45);
  color: #ffffff;
}

.custom-request {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2.5rem 0 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.2rem auto 0;
  max-width: 980px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.3rem 1rem;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
}

.step-number {
  display: inline-grid;
  place-items: end center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(184, 141, 116, 0.14);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.catalogue-link {
  margin-top: 2.3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalogue-button {
  display: inline-flex;
  background: var(--button-brown);
  color: #ffffff;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  padding: 1rem 1.7rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.secondary-button {
  background: var(--button-brown);
  color: #ffffff;
}

.catalogue-button:hover,
.catalogue-button:focus-visible {
  transform: translateY(-1px);
  background: var(--button-brown-dark);
  border-color: rgba(63, 58, 52, 0.45);
  color: #ffffff;
}

.footer-block {
  margin-top: auto;
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: center;
  flex-shrink: 0;
}

.build-text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.connect-title {
  margin: 0.85rem 0 1.5rem;
  font-size: 1.55rem;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.contact-links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(63, 58, 52, 0.2);
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(63, 58, 52, 0.35);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--text);
}

.category-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--site-background);
}

.category-page .shop-header {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0;
}

.category-page .shop-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-page .back-link,
.category-page .category-nav a,
.category-page .subpage-header-nav .back-link,
.category-page .subpage-header-nav .category-nav a,
.catalogue-header-nav .back-link,
.catalogue-header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  height: 2.8rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 58, 52, 0.18);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-page .back-link,
.category-page .subpage-header-nav .back-link,
.catalogue-header-nav .back-link {
  background: rgba(184, 141, 116, 0.2);
  border-color: rgba(120, 102, 92, 0.32);
  color: #3f3a34;
  gap: 0.45rem;
}

.category-page .category-nav a,
.category-page .subpage-header-nav .category-nav a,
.catalogue-header-nav a {
  background: var(--button-brown);
  border-color: var(--button-border);
  color: #ffffff;
}

.category-page .category-nav,
.category-page .subpage-header-nav .category-nav,
.catalogue-header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
}

.category-page .subtype-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin: 0.5rem auto 0;
  padding: 0 1rem;
}

.category-page .subtype-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 58, 52, 0.2);
  background: #e7dfd8;
  color: #3f3a34;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-page .subtype-nav a.active {
  background: var(--button-brown);
  border-color: var(--button-border);
  color: #ffffff;
}

.category-page .subtype-nav a:hover,
.category-page .subtype-nav a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(63, 58, 52, 0.35);
}

.category-page .subtype-nav a.active:hover,
.category-page .subtype-nav a.active:focus-visible {
  background: var(--button-brown-dark);
  border-color: rgba(63, 58, 52, 0.45);
  color: #ffffff;
}

.category-page .back-link:hover,
.category-page .back-link:focus-visible,
.category-page .category-nav a:hover,
.category-page .category-nav a:focus-visible,
.category-page .subpage-header-nav .category-nav a:hover,
.category-page .subpage-header-nav .category-nav a:focus-visible,
.catalogue-header-nav a:hover,
.catalogue-header-nav a:focus-visible {
  transform: translateY(-1px);
  background: var(--button-brown-dark);
  border-color: rgba(63, 58, 52, 0.45);
  color: #ffffff;
}

.category-page .back-link:hover,
.category-page .back-link:focus-visible,
.catalogue-header-nav .back-link:hover,
.catalogue-header-nav .back-link:focus-visible {
  background: rgba(121, 105, 95, 0.9);
  color: #ffffff;
}

.category-page .category-title {
  margin: 2rem auto 0;
  text-align: center;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.category-page .subpage-header-nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem 0.9rem;
  background: rgba(245, 239, 231, 0.88);
  margin: 0 auto;
}

.category-page .subpage-header-nav .back-link,
.category-page .subpage-header-nav .category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 58, 52, 0.18);
  text-decoration: none;
  flex: 0 0 auto;
  margin: 0;
}

.category-page .subpage-header-nav .back-link {
  align-self: center;
  margin: 0;
  background: rgba(184, 141, 116, 0.2);
  border-color: rgba(120, 102, 92, 0.32);
  color: #3f3a34;
  gap: 0.45rem;
}

.category-page .subpage-header-nav .category-nav a {
  background: var(--button-brown);
  border-color: var(--button-border);
  color: #ffffff;
}

.category-page .brand-header-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.category-page .brand-header {
  width: 100%;
  margin: 0;
}

.category-page .brand-center {
  background: rgba(245, 239, 231, 0.24);
}

.category-page .page-header-left,
.category-page .page-header-right {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-products {
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.availability-note {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(123, 104, 93, 0.16);
  background: rgba(255, 255, 255, 0.18);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: left;
}

.availability-note p {
  margin: 0;
}

.size-guidance {
  max-width: 1200px;
  margin: 1.6rem auto 0;
  padding: 1.5rem 1.25rem 0.5rem;
  border-top: 1px solid rgba(123, 104, 93, 0.14);
}

.size-guidance h2 {
  margin: 0 0 1.2rem;
  text-align: center;
  font-size: clamp(1.65rem, 2.1vw, 2.2rem);
  line-height: 1.2;
  color: var(--text);
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.size-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
}

.size-card {
  padding: 1.1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(123, 104, 93, 0.16);
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.size-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.size-card p,
.size-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.size-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  text-align: center;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 1.5rem auto 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px rgba(99, 82, 70, 0.04);
}

.halsketten-product {
  align-items: stretch;
}

.halsketten-product .product-gallery {
  aspect-ratio: 1 / 1;
  height: 100%;
}

.halsketten-product .product-image-wide,
.halsketten-product .product-image-wide img {
  height: 100%;
  aspect-ratio: 1 / 1;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  width: 100%;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
}

.product-image-square,
.product-image-wide img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.product-image-wide,
.product-image-square-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.product-image-square-frame {
  aspect-ratio: 1 / 1;
  min-width: 0;
}

.product-image-square-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-wide.image-missing,
.product-image-square-frame.image-missing {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--muted);
  font-size: .8rem;
  font-style: italic;
  text-align: center;
}

.product-image-square {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
}

.product-image-wide {
  width: 100%;
  grid-column: 1 / -1;
}

.product-image-wide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0.25rem;
}

.product-number {
  margin: 0 0 0.45rem;
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-info h2 {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.product-description {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.2rem;
  color: var(--text);
  font-size: 0.96rem;
}

.product-reason {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(94, 83, 75, 0.82);
}

.sale-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.old-price {
  color: rgba(94, 83, 75, 0.65);
  font-size: 0.78rem;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.new-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-weight: 700;
  color: #7d1f2d;
}

.price-line {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-weight: 700;
}

.price-note {
  display: inline;
  font-size: 0.64rem;
  font-weight: 400;
  color: rgba(94, 83, 75, 0.62);
  letter-spacing: 0.01em;
}

.sale-exchange-note {
  margin: 0.8rem 0 0;
  color: rgba(94, 83, 75, 0.78);
  font-size: 0.74rem;
  line-height: 1.5;
}

.product-actions {
  margin-top: 1.5rem;
}

.cart-toolbar {
  /* Standardseiten behalten die bisherige Anfangsposition, scrollen aber
     wieder gemeinsam mit dem Seiteninhalt. Shop-Seiten überschreiben dies
     weiter unten über .category-page mit sticky/fixed. */
  position: absolute;
  /* Alle Seiten – auch Start-, Katalog- und Infoseiten – beginnen den
     Warenkorb an derselben Stelle wie die Kategorieüberschrift: unterhalb
     des gemeinsamen Headers mit dessen oberem Abstand. */
  top: calc(clamp(112px, 13.34vw, 145.2px) + 2rem + 1px);
  right: max(1rem, calc((100vw - 1200px) / 2));
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  width: auto;
  margin: 0;
  pointer-events: none;
}

.category-page > .cart-toolbar { order: 2; }

/* Standardseiten: Der Button bleibt an seiner bisherigen Stelle, ist aber
   wieder Teil des normalen Seitenflusses. Die Höhe bleibt 0, damit der
   nachfolgende Seiteninhalt nicht verschoben wird. */
body:not(.category-page) > .cart-toolbar {
  position: relative;
  top: 2rem;
  right: auto;
  height: 0;
  /* Gleiche rechte Kante wie der Warenkorb in der Shop-Grid-Spalte. */
  margin: 0 1rem 0 0;
}

@media (min-width: 901px) {
  /* Dieselbe responsive Breite wie in der rechten Shop-Grid-Spalte. */
  body:not(.category-page) > .cart-toolbar {
    width: min(max(calc((100vw - 1200px) / 2 - 36px), 144px), 12rem);
  }
  body:not(.category-page) > .cart-toolbar .cart-toggle {
    width: 100%;
    white-space: nowrap;
  }
}

.cart-toggle { pointer-events: auto; }

.cart-toggle,
.cart-email-order,
.cart-remove,
.cart-continue,
.cart-go {
  border: 1px solid var(--button-border);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.cart-toggle {
  min-height: 2.8rem;
  padding: 0.7rem 1.1rem;
  background: rgba(210, 185, 162, 0.78);
  color: var(--text);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cart-toggle:hover,
.cart-toggle:focus-visible {
  background: #c4a990;
  transform: translateY(-1px);
}

.cart-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(430px, calc(100vw - 2rem));
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 1.1rem;
  border: 1px solid rgba(63, 58, 52, 0.18);
  border-radius: 18px;
  background: #f7efe7;
  color: var(--text);
  box-shadow: 0 12px 32px rgba(57, 43, 34, 0.2);
  pointer-events: auto;
}

.cart-panel[hidden] { display: none; }

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.cart-panel-header h2 { margin: 0; font-size: 1.15rem; }

.cart-close {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.cart-items { display: grid; gap: 0.75rem; }

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-image,
.cart-item-image img,
.cart-item-image-placeholder {
  width: 64px;
  height: 64px;
}

.cart-item-image-button {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.cart-item-image img { display: block; object-fit: cover; border-radius: 8px; }
.cart-item-image-placeholder { display: grid; place-items: center; border-radius: 8px; background: #e7dfd8; font-size: 0.65rem; text-align: center; }
.cart-item-details { min-width: 0; }
.cart-item-details p { margin: 0.15rem 0; font-size: 0.75rem; }
.cart-item-details h3 { margin: 0.15rem 0; font-size: 0.85rem; overflow-wrap: anywhere; }
.cart-product-link { color: inherit; text-decoration: none; }
.cart-product-link:hover, .cart-product-link:focus-visible { text-decoration: underline; }
.cart-item-price { margin-top: 0.35rem !important; }
.cart-sale-price { gap: 0.1rem; }
.cart-sale-price .old-price { font-size: 0.7rem; }
.cart-sale-price .new-price { font-size: 0.82rem; }

.cart-remove {
  padding: 0.45rem 0.7rem;
  background: transparent;
  color: var(--text);
  font-size: 0.7rem;
}

.cart-remove:hover,
.cart-remove:focus-visible { background: rgba(210, 185, 162, 0.55); }
.cart-summary { margin-top: 1rem; }
.cart-summary p { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.8rem; align-items: baseline; margin: 0.45rem 0; font-size: 0.78rem; text-align: right; }
.cart-summary p strong { white-space: nowrap; font-weight: 700; }
.cart-summary .cart-total { margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid rgba(120, 102, 92, 0.32); font-size: 0.92rem; font-weight: 700; }
.cart-summary .cart-total small { grid-column: 1 / -1; margin-top: 0.15rem; color: rgba(94, 83, 75, 0.62); font-size: 0.64rem; font-weight: 400; line-height: 1.4; }
.cart-note { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.cart-order-note { margin: 0 0 0.9rem; padding: 0.7rem 0.8rem; border-left: 3px solid rgba(120, 102, 92, 0.45); color: var(--text); font-size: 0.75rem; line-height: 1.5; }
.cart-panel .guarantee-wrap { margin-bottom: 1.25rem; }
.cart-panel .guarantee-icon { width: min(144px, 100%); height: auto; aspect-ratio: 1; }
.cart-empty { margin: 0; color: var(--muted); }

.cart-email-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  background: var(--button-brown);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.cart-email-order:hover,
.cart-email-order:focus-visible { background: var(--button-brown-dark); color: #fff; }

.cart-confirmation {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(120, 102, 92, 0.25);
  border-radius: 12px;
  background: rgba(210, 185, 162, 0.28);
  font-size: 0.8rem;
}

.cart-confirmation[hidden] { display: none; }
.cart-confirmation > div { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.cart-confirmation button { padding: 0.5rem 0.7rem; font: inherit; font-size: 0.72rem; border-radius: 999px; cursor: pointer; }
.cart-continue { background: transparent; color: var(--text); border: 1px solid var(--button-border); }
.cart-go { background: var(--button-brown); color: #fff; border: 1px solid var(--button-border); }
.cart-add-button.in-cart { background: #91847a; cursor: pointer; }

.guarantee-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.75rem;
  width: fit-content;
  max-width: 100%;
}

.guarantee-label {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(94, 83, 75, 0.82);
  font-weight: 400;
  text-align: left;
}

.product-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-brown);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.product-order:hover,
.product-order:focus-visible {
  transform: translateY(-1px);
  background: var(--button-brown-dark);
  border-color: rgba(63, 58, 52, 0.45);
}

.product-order:disabled { opacity: 1; }

.leinen-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.leinen-link a:not(.related-product-tile) {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(120, 102, 92, 0.55);
  text-underline-offset: 0.15em;
}

.leinen-link a:not(.related-product-tile):hover,
.leinen-link a:not(.related-product-tile):focus-visible { color: var(--button-brown-dark); }

.related-product-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.related-product-tile {
  display: block;
  flex: 0 0 75px;
  width: 75px;
  height: 75px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-product-tile:hover,
.related-product-tile:focus-visible {
  transform: translateY(-1px);
  border-color: var(--button-brown-dark);
  outline: none;
}

.related-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guarantee-icon {
  margin-top: 0;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 0.4rem;
  cursor: pointer;
}

.guarantee-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(52, 43, 39, 0.52);
  backdrop-filter: blur(10px) brightness(0.75);
  -webkit-backdrop-filter: blur(10px) brightness(0.75);
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(52, 43, 39, 0.78);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
  margin: 0;
}

.customer-photos-page {
  min-height: 100vh;
  background: var(--site-background);
}

body.no-cart > .cart-toolbar { display: none !important; }

.customer-photos-main {
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  text-align: center;
}

.customer-photos-title {
  margin: 0 0 2rem;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.customer-photos-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.customer-photo-tile {
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 63, 49, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(57, 43, 34, 0.08);
}

.customer-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}

.customer-photo-tile:hover img,
.customer-photo-tile:focus-visible img {
  transform: scale(1.03);
}

.customer-photos-empty {
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 680px) {
  .customer-photos-main { padding-top: 2rem; }
  .customer-photos-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
}

@media (max-width: 420px) {
  .customer-photos-gallery { grid-template-columns: 1fr; }
}

.product-card[id^="produkt-"] { scroll-margin-top: 7rem; }

.back-to-top {
  --product-area-start: max(20px, calc((100vw - 1200px) / 2 + 20px));
  position: fixed;
  z-index: 40;
  left: calc(var(--product-area-start) / 2 - 1.375rem);
  bottom: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: #d2b9a2;
  color: var(--text);
  font: 700 1.35rem/1 Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(57, 43, 34, 0.2);
  transition: background .2s ease, transform .2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #c4a990;
  color: var(--text);
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .back-to-top {
    left: calc(var(--product-area-start) / 2 - 1.375rem);
    bottom: 45px;
  }
}

.footer-block .connect-title {
  width: 100%;
  margin: 0.85rem auto 1.5rem;
  text-align: center;
}

.footer-block .contact-links,
.footer-block .legal-links {
  justify-content: center;
}

.footer-block .contact-links a,
.footer-block .legal-links a {
  font-family: 'Libre Baskerville', Georgia, serif;
}

/* Alle Seiten verwenden denselben Footer wie die Windspiele-Vorlage. */
.footer-block .contact-links a {
  color: var(--text);
  font-size: 1rem;
  padding: 0.95rem 1.25rem;
  background: rgba(255, 255, 255, 0.4);
}

.footer-block .legal-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .shop-header {
    padding-top: 1.75rem;
  }

  .category-page .subpage-header-nav {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .shop-products {
    padding-top: 2rem;
  }

  .size-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .product-image-wide img {
    height: 200px;
  }
  .brand-header {
    grid-template-columns: minmax(110px, 1fr) minmax(180px, 260px) minmax(110px, 1fr);
  }

  .header-visual,
  .brand-center {
    height: 260px;
    min-height: 260px;
  }

  .section-visual {
    height: 120px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  /* Der Warenkorb steht auf mobilen Seiten direkt unter dem Header und
     bleibt rechtsbündig, ohne den Header zu überlagern. */
  .cart-toolbar {
    position: relative;
    top: 0;
    right: auto;
    left: auto;
    width: 100%;
    height: auto;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem 0;
    margin: 0;
    pointer-events: auto;
    z-index: 100;
  }
  body:not(.category-page) > .cart-toolbar {
    position: relative;
    top: 0;
    right: auto;
    height: auto;
    margin: 0;
  }
  .category-page > .cart-toolbar {
    order: 2;
    position: relative;
    top: 0;
    right: auto;
    width: 100%;
    margin: 0;
  }
  .cart-label { display: none; }
  /* Einheitliche mobile Buttongröße für Standard- und Shopseiten. */
  .cart-toggle {
    height: 3.024rem;
    min-height: 3.024rem;
    padding: 0.6rem 0.85rem;
  }
  .cart-panel { right: 0; width: min(430px, calc(100vw - 1rem)); }
  .cart-item { grid-template-columns: 52px minmax(0, 1fr); }
  .cart-item-image, .cart-item-image img, .cart-item-image-placeholder { width: 52px; height: 52px; }
  .cart-remove { grid-column: 2; justify-self: start; }

  .category-page .subpage-header-nav {
    flex-direction: row;
    justify-content: center;
  }

  .category-page .subpage-header-nav .back-link,
  .category-page .subpage-header-nav .category-nav a,
  .catalogue-header-nav .back-link,
  .catalogue-header-nav a {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .brand-header {
    gap: 0;
    margin-bottom: 2.2rem;
  }

  .section-visual {
    height: 100px;
  }

  .brand-title {
    letter-spacing: 0.12em;
    font-size: 0.75rem;
  }

  .brand-logo {
    max-width: 180px;
  }

  .section-heading h2,
  .custom-request h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .shop-category-btn {
    width: 100%;
    min-width: 0;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* Cross-link banner to the breeding website */
.cross-site-banner {
  position: relative;
  display: grid;
  place-items: end center;
  isolation: isolate;
  min-height: clamp(150px, 20vw, 240px);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  background: #d8c9ba;
  color: #000;
  text-align: center;
  text-decoration: none;
}
.cross-site-banner img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.cross-site-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 239, 231, .42), rgba(245, 239, 231, .24), rgba(245, 239, 231, .42));
  content: "";
}
.cross-site-banner span {
  position: relative;
  max-width: 1000px;
  font-size: clamp(1rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
  color: #000;
  text-shadow: none;
}
.cross-site-banner:hover img, .cross-site-banner:focus-visible img { opacity: .45; }
.cross-site-banner:focus-visible { outline: 3px solid #9c8065; outline-offset: 4px; }

/* Warmer und etwas dunkler als die Zuchtseite. */
body,
.category-page { background: var(--site-background); }
.site-header {
  background: #b5a091;
  padding: 0 !important;
  text-align: left;
  flex-shrink: 0;
}
.site-header .header-inner { margin: 0 auto; }
.main-nav a { border-color: var(--nav-button-border); background: var(--nav-button-bg); }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--nav-button-bg-hover); }
.main-nav .dropdown-menu a { background: rgba(239,224,208,.96); }
.step-card, .product-card { background: rgba(239,224,208,.36); }
.category-page .subpage-header-nav { background: rgba(211,187,165,.82); }
.category-page .subtype-nav a { background: #d2b9a2; color: var(--text); }
.main-nav > ul > .site-nav-switch > a {
  background: rgba(215, 196, 178, .48);
  border-color: rgba(92, 69, 54, .2);
  color: #4e4035;
}
.main-nav > ul > .site-nav-switch > a:hover,
.main-nav > ul > .site-nav-switch > a:focus-visible {
  background: rgba(232, 216, 201, .72);
}
@media (min-width: 681px) {
  .main-nav {
    left: calc(45.4vw - 371.85px);
    transform: translateY(-50%);
  }

  .main-nav > ul { flex-wrap: nowrap; }
  .main-nav > ul > li > a { white-space: nowrap; }
  .main-nav > ul > .site-nav-switch { margin-left: clamp(1rem, 2vw, 2.5rem); }
}

/* Die Unterkategorien bleiben auf jeder Produktseite unter der Überschrift sichtbar. */
.subpage-header-nav,
.subtype-nav {
  display: none !important;
}

.category-page .subtype-nav {
  display: flex !important;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Auf allen Kategorie-Unterseiten steht die Unterkategorie-Navigation direkt
   unter der Hauptüberschrift – unabhängig von ihrer Reihenfolge im HTML. */
.category-page {
  display: flex;
  flex-direction: column;
}

.category-page > .site-header,
.category-page > .brand-header-shell { order: 1; }
.category-page > .category-title { order: 2; }
.category-page > .subtype-nav { order: 3; }
.category-page > .shop-products { order: 4; }
.category-page > .footer-block { order: 5; }

/* Ältere Navigationsbreiten dürfen auf Zwischenformaten keinen horizontalen
   Seitenlauf erzeugen. clip verhindert dabei einen zusätzlichen Scroll-Container
   und lässt die vertikale Sticky-Positionierung des Warenkorbs intakt. */
body.category-page {
  width: 100vw;
  max-width: 100vw;
  overflow-x: clip;
}

html:has(body.category-page) {
  overflow-x: clip;
}

/* Der Warenkorb sitzt auf breiten Ansichten in einer eigenen rechten Spalte
   neben dem Produktbereich. Sticky hält ihn beim Scrollen sichtbar, ohne die
   Produktkarten oder den Header zu überlagern. */
@media (min-width: 901px) {
  .category-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(1200px, calc(100vw - 240px))) minmax(180px, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-auto-rows: auto;
  }

  .category-page > .site-header,
  .category-page > .brand-header-shell,
  .category-page > .footer-block {
    grid-column: 1 / -1;
  }

  .category-page > .category-title,
  .category-page > .subtype-nav {
    grid-column: 2;
  }

  .category-page > .category-title {
    grid-row: 2;
  }

  .category-page > .subtype-nav {
    grid-row: 3;
  }

  .category-page > .shop-products {
    grid-column: 2;
    grid-row: 4;
  }

  .category-page > .cart-toolbar {
    grid-column: 3;
    grid-row: 2 / span 3;
    align-self: start;
    position: sticky;
    top: 1rem;
    right: auto;
    width: min(calc(100% - 2.25rem), 12rem);
    margin: 2rem 1rem 0 1.25rem;
    pointer-events: auto;
    z-index: 30;
  }

  .category-page > .cart-toolbar .cart-toggle {
    width: 100%;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .category-page > .cart-toolbar {
    order: initial;
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    width: auto;
    margin: 0;
    pointer-events: auto;
    z-index: 100;
  }
  .category-page > .cart-toolbar .cart-toggle { width: auto; }
  .category-page > .shop-products { order: 5; }
  .category-page > .footer-block { order: 6; }
}

@media (max-width: 680px) {
  .site-header .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0; width: min(100% - 2rem, 1120px); height: max(82px, min(14.39vw, 86.32px)); min-height: max(82px, min(14.39vw, 86.32px)); margin: 0; padding: 0 .3rem; }
  .brand-image-link { width: min(52vw, 220px); }
  .brand-image { width: 100%; height: 100%; max-height: none; max-width: none; }
  .header-right-logo { width: 82px; height: 100%; max-height: none; max-width: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; margin-right: 86px; padding: .65rem; background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: var(--text); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .nav-toggle span { display: block; width: 22px; height: 1px; background: currentColor; }
  .main-nav { position: static; left: auto; transform: none; display: none; flex-basis: 100%; width: 100%; margin: 0; padding-top: .45rem; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .4rem; }
  .main-nav a { display: block; padding: .65rem 1rem; text-align: center; }
  .main-nav .dropdown-menu { grid-column: 1 / -1; position: static; display: none; min-width: 0; padding: 0 0 0 .8rem; transform: none; }
  .main-nav .has-dropdown.is-expanded > .dropdown-menu { display: flex; }
  .main-nav .has-dropdown { display: block; }
  .main-nav .has-dropdown > a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; text-align: left; }
  .main-nav .has-dropdown > a .nav-submenu-arrow { display: inline-block; flex: 0 0 auto; font-size: .85em; line-height: 1; }
  .main-nav .nav-overview-item { display: none; }
  .main-nav .dropdown-menu a { min-width: 0; border-radius: 8px; }
}

/* Die vier zentralen Shop-Kategorien werden dezent heller hervorgehoben. */
.main-nav > ul > li.shop-nav-item > a {
  border-color: var(--nav-shop-button-border);
  background: var(--nav-shop-button-bg);
  box-shadow: 0 2px 12px rgba(57,43,34,.08);
}
.main-nav > ul > li.shop-nav-item > a:hover,
.main-nav > ul > li.shop-nav-item > a:focus-visible {
  background: var(--nav-shop-button-bg-hover);
}

/* Der Warenkorb übernimmt die Farbe des jeweils aktiven Hauptbereichs. */
.cart-toggle {
  border-color: rgba(255,255,255,.36);
  background: rgba(248,237,225,.3);
}
.cart-toggle:hover,
.cart-toggle:focus-visible {
  background: rgba(248,237,225,.66);
}
.category-page .cart-toggle {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.5);
  box-shadow: 0 2px 12px rgba(57,43,34,.08);
}
.category-page .cart-toggle:hover,
.category-page .cart-toggle:focus-visible {
  background: rgba(255,255,255,.72);
}

/* Standardseiten verwenden dieselbe Seitenstruktur wie die Shopseiten:
   Hauptinhalt in der mittleren Spalte, Warenkorb in der rechten Spalte. */
@media (min-width: 901px) {
  .standard-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(1200px, calc(100vw - 240px))) minmax(180px, 1fr);
    grid-auto-rows: auto;
    overflow-x: clip;
  }

  body.standard-page > .site-header,
  body.standard-page > .brand-header-shell,
  body.standard-page > .footer-block {
    grid-column: 1 / -1;
  }

  body.standard-page > main {
    grid-column: 2;
    grid-row: 2;
  }

  body.standard-page > .cart-toolbar {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    position: relative;
    top: auto;
    right: auto;
    width: min(calc(100% - 2.25rem), 12rem);
    height: auto;
    margin: 2rem 1rem 0 1.25rem;
    pointer-events: auto;
    z-index: 30;
  }

  body.standard-page > .cart-toolbar .cart-toggle {
    width: 100%;
    white-space: nowrap;
  }

  body.standard-page-catalogue > .subpage-header-nav {
    grid-column: 2;
    grid-row: 2;
  }

  body.standard-page-catalogue > header:not(.site-header):not(.brand-header-shell) {
    grid-column: 2;
    grid-row: 2;
  }

  body.standard-page-catalogue > main {
    grid-row: 3;
  }

  body.standard-page-catalogue > .cart-toolbar {
    grid-row: 2 / span 2;
  }
}

/* Gemeinsame Darstellung des Warenkorb-Buttons auf allen Seiten, auf denen
   der Warenkorb eingeblendet wird. Das Scrollverhalten bleibt seitenabhängig. */
body:not(.no-cart) .cart-toggle {
  border-color: var(--nav-button-border);
  background: var(--nav-button-bg);
  box-shadow: 0 2px 12px rgba(57,43,34,.08);
}
body:not(.no-cart) .cart-toggle:hover,
body:not(.no-cart) .cart-toggle:focus-visible {
  background: var(--nav-button-bg-hover);
}
body.category-page:not(.no-cart) .cart-toggle {
  border-color: var(--nav-shop-button-border);
  background: var(--nav-shop-button-bg);
}
body.category-page:not(.no-cart) .cart-toggle:hover,
body.category-page:not(.no-cart) .cart-toggle:focus-visible {
  background: var(--nav-shop-button-bg-hover);
}


/* Automatisch erzeugter Platzhalter für fehlende Produktbilder. */
.product-image-wide.image-missing { min-height: 220px; height: 220px; aspect-ratio: 3 / 2; background: rgba(231, 223, 216, 0.78); color: var(--muted); }
.product-image-square-frame.image-missing { aspect-ratio: 1 / 1; background: rgba(231, 223, 216, 0.78); color: var(--muted); }
