:root {
  --bg: #f3ede2;
  --ink: #1f2328;
  --paper: #fffaf1;
  --line: #d6ccbe;
  --accent: #a04a28;
  --leo-texture: url("assets/hero-leo-tile.jpg");
  /* Nahtloser Leo-Streifen mit gerissener Papierkante,
     erzeugt von assets/build-leo-strip.ps1. */
  --leo-bullet: url("assets/hero-leo-strip.png");
  /* Aufzaehlungszeichen der ganzen Seite. Quelle: Transp_Plum.png,
     verkleinert mit assets/build-plumeria.ps1. */
  --plumeria: url("assets/plumeria.png");
  --leo-edge: url("assets/hero-leo-strip-vertical.png");
  --paper-strip: url("assets/nav-paper.jpg");
  --brush-block: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 70' preserveAspectRatio='none'%3E%3Cpath fill='%23141210' d='M8 22C40 12 70 20 104 15 138 10 170 19 212 13l2 39c-38 8-72-2-106 3-34 5-66-5-98 2z'/%3E%3Cpath fill='%23141210' d='M2 30c4-3 9-4 14-3l-1 9c-5 1-10 0-14-2z'/%3E%3Cpath fill='%23141210' d='M208 23c5-2 9-2 13 0l-1 10c-4 1-8 0-12-2z'/%3E%3Cellipse cx='62' cy='59' rx='10' ry='2.6' fill='%23141210' opacity='.55'/%3E%3Cellipse cx='152' cy='10' rx='12' ry='2.4' fill='%23141210' opacity='.5'/%3E%3C/svg%3E");
  --brush-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22' preserveAspectRatio='none'%3E%3Cpath fill='%23141210' d='M6 9C46 3 92 15 132 8 168 2 196 12 214 6l2 9c-20 7-48-3-84 3-38 7-84-5-124 1z'/%3E%3C/svg%3E");
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Coming Soon", casual, cursive;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    url("assets/splatter-fine.png"),
    url("assets/splatter.png"),
    linear-gradient(140deg, rgba(249, 244, 233, 0.62), rgba(243, 237, 226, 0.74)),
    url("assets/shop-global-bg.jpg");
  background-size: 760px 760px, 1200px 1200px, cover, cover;
  background-position: 90px 40px, left top, center, top center;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, fixed, fixed;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.7rem 1rem;
  background: #111;
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shop-header,
.shop-hero,
.shop-layout,
.promo,
.anfrage,
.page-section {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 0 auto;
}

/* ---------- Aktionsbanner (Happy Hour) ----------
   Farbwechsel ohne Eingriff in die Regeln: --promo-bg und --promo-akzent
   ueberschreiben, oder die Klasse .promo--gold setzen. */

.promo {
  --promo-bg: var(--paper);
  --promo-akzent: #a04a28;
  --promo-linie: #cbb896;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 1.3rem;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border: 2px solid var(--promo-linie);
  border-radius: 1.4rem;
  background-color: var(--promo-bg);
  box-shadow: 0 14px 30px rgba(31, 35, 40, 0.16);
}

.promo-bild,
.promo-text {
  position: relative;
  z-index: 1;
}

/* Goldfeuerwerk. Die Funken erzeugt promo-banner.js, hier stehen nur
   Aussehen und Bewegung. Liegt unter dem Inhalt und faengt keine Klicks. */
.promo-funken {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.promo-funke {
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: var(--gr, 7px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d5 0 28%, #e3c368 45%, rgba(154, 115, 20, 0) 72%);
  opacity: 0;
  will-change: transform, opacity;
  animation: promo-funke var(--dauer, 1.6s) ease-out var(--start, 0s) infinite;
}

@keyframes promo-funke {
  0% {
    transform: translate3d(0, 0, 0) scale(0.25);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--dx, 0), var(--dy, 0), 0) scale(0.85);
    opacity: 0;
  }
}

/* Konfetti in den Markenfarben, rieselt von oben durch das Banner. */
.promo-konfetti {
  position: absolute;
  top: -12%;
  left: var(--x, 50%);
  width: var(--br, 7px);
  height: var(--ho, 11px);
  border-radius: 1px;
  background: var(--farbe, #e3c368);
  opacity: 0;
  will-change: top, transform, opacity;
  animation: promo-konfetti var(--dauer, 4s) linear var(--start, 0s) infinite;
}

@keyframes promo-konfetti {
  0% {
    top: -12%;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 108%;
    opacity: 0;
    transform: translateX(var(--drift, 20px)) rotate(var(--dreh, 540deg));
  }
}

.promo[hidden] {
  display: none;
}

.promo--gold {
  --promo-bg: #f2e2b4;
  --promo-linie: #c9a94f;
}

.promo-bild {
  margin: 0;
}

.promo-bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 18px rgba(31, 35, 40, 0.22);
}

.promo-text {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
}

.promo-text h2 {
  margin: 0;
}

.promo-kicker {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
}

/* Goldverlauf wie bei den Seitentiteln; die dunkle Grundfarbe bleibt
   lesbar, falls background-clip fehlt. */
.promo-glanz {
  color: #6d4f0a;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .promo-glanz {
    background-image: linear-gradient(
      100deg,
      #6d4f0a 0%,
      #6d4f0a 38%,
      #9a7314 45%,
      #f3dda2 50%,
      #9a7314 55%,
      #6d4f0a 62%,
      #6d4f0a 100%
    );
    background-size: 280% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: promo-glanz 4.5s ease-in-out infinite;
  }
}

@keyframes promo-glanz {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}

.promo-lead {
  margin: 0;
  max-width: 46ch;
}

.promo-zeitraum {
  margin: 0;
  font-weight: 700;
  color: #6d4f0a;
}

.promo-fein {
  margin: 0.2rem 0 0;
  max-width: 46ch;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #55483a;
}

/* Zugabe-Haekchen in der Kasse. Hebt sich vom uebrigen Formular ab,
   damit die befristete Aktion nicht uebersehen wird. */
.promo-zugabe[hidden] {
  display: none;
}

.promo-zugabe {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 2px solid #c9a94f;
  border-radius: 0.9rem;
  background: #f7edd3;
}

.promo-zugabe__feld {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  cursor: pointer;
}

.promo-zugabe__feld input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  accent-color: #a04a28;
}

.promo-zugabe__text b {
  display: block;
  font-size: 1.05rem;
  color: #6d4f0a;
}

.promo-zugabe__text small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4a3f31;
}

.promo-zugabe__zeit {
  font-weight: 700;
}

.promo-zugabe__feld:focus-within {
  outline: 3px solid #a04a28;
  outline-offset: 3px;
}

.promo-uhr {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin: 0.2rem 0 0.3rem;
}

.promo-feld {
  display: grid;
  justify-items: center;
  min-width: 3.6rem;
  padding: 0.35rem 0.5rem 0.3rem;
  border-radius: 0.7rem;
  background: rgba(31, 35, 40, 0.9);
  color: #fff6e6;
}

/* Tabellenziffern: sonst springt die Breite bei jedem Sekundenwechsel. */
.promo-feld b {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.promo-feld small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.promo-punkt {
  padding-bottom: 1.1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--promo-akzent);
}

.promo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .promo-glanz,
  .promo-funke,
  .promo-konfetti {
    animation: none;
  }

  .promo-funken {
    display: none;
  }
}

@media (max-width: 46rem) {
  .promo {
    grid-template-columns: 1fr;
  }

  .promo-text {
    justify-items: center;
    text-align: center;
  }

  .promo-lead {
    margin-inline: auto;
  }
}

.shop-header {
  margin-top: 0.5rem;
  padding: 0 0 0.3rem;
  border: 0;
  border-radius: 0;
  background: none;
  display: grid;
  gap: 0.3rem;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

/* Orientalisches Lotus-Mandala rechts am Rand. Liegt ueber dem
   Speichenrad (::after), die Menueleiste bleibt klickbar. */
.shop-header::before {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -38px;
  width: clamp(210px, 24vw, 320px);
  aspect-ratio: 1;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
  background-image:
    url("assets/header-mandala.png"),
    radial-gradient(
      circle at 50% 52%,
      rgba(58, 42, 24, 0.32) 0 34%,
      rgba(58, 42, 24, 0.16) 52%,
      rgba(58, 42, 24, 0) 70%
    );
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: contain, 108% 108%;
  filter: drop-shadow(0 7px 11px rgba(40, 28, 16, 0.45));
  animation: header-mandala-spin 45s linear infinite;
  transition: opacity 0.6s ease;
}

.shop-header:hover::before {
  opacity: 1;
}

@keyframes header-mandala-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.shop-header::after {
  content: "";
  position: absolute;
  right: 0;
  top: -46px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(120, 98, 64, 0.4) 28% 29%, transparent 29% 38%),
    repeating-conic-gradient(from 0deg, rgba(120, 98, 64, 0.38) 0deg 5deg, transparent 5deg 11deg);
}

/* Markenzeichen: hochgestellt und klein, damit es den Schriftzug nicht sprengt. */
.rmark {
  font-size: 0.52em;
  vertical-align: super;
  line-height: 0;
  letter-spacing: 0;
}

.header-brandbar {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0.2rem 0.8rem 0.55rem;
}

.brand-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5e4f3e;
  font-family: var(--font-hand);
}

.brand {
  display: inline-flex;
  font-family: var(--font-hand);
  font-size: 2.15rem;
  letter-spacing: 0.03em;
  text-transform: none;
  font-weight: 700;
  text-decoration: none;
  color: #211a14;
  text-shadow: 0 1px 0 #fff7ea;
}

.brand-logo {
  display: block;
  width: clamp(160px, 22vw, 230px);
  height: auto;
}

.header-nav {
  position: relative;
  z-index: 1;
  margin-inline: -1rem;
  min-height: 68px;
  padding: 0.85rem 1.1rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-image: var(--paper-strip);
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  filter: drop-shadow(0 7px 9px rgba(31, 35, 40, 0.2));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.1rem, 0.6vw, 0.35rem);
  flex-wrap: nowrap;
}

.header-nav a {
  position: relative;
  color: #191410;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  /* Sieben Punkte muessen in eine Zeile passen, ohne die Papierbahn zu sprengen. */
  font-size: clamp(0.78rem, 1.35vw, 1.02rem);
  padding: 0.4rem clamp(0.3rem, 0.9vw, 0.85rem);
  border-radius: 0;
  font-family: var(--font-hand);
  line-height: 1.15;
  background-repeat: no-repeat;
  background-position: center;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav a:nth-child(odd) {
  transform: rotate(-1.4deg);
}

.header-nav a:nth-child(even) {
  transform: rotate(1.2deg);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  background-image: var(--brush-line);
  background-size: 100% 0.42em;
  background-position: center bottom 0.05em;
}

.header-nav a[aria-current="page"],
.header-nav a[aria-current="page"]:hover,
.header-nav a[aria-current="page"]:focus-visible {
  color: #fff6e6;
  background-image: var(--brush-block);
  background-size: 100% 122%;
  background-position: center;
}

.shop-hero {
  position: relative;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.4rem;
  align-items: center;
  /* Oben und unten liegt je ein 19px hoher Leo-Streifen, deshalb
     braucht der Text hier deutlich mehr Luft zum Rand. */
  padding: clamp(2.8rem, 5vw, 4rem) clamp(1.8rem, 4vw, 3.2rem);
  border-radius: 1rem;
  background-color: #efe6d5;
  background-image:
    linear-gradient(0deg, rgba(247, 240, 228, 0.72), rgba(247, 240, 228, 0.72)),
    url("assets/hero-paper-texture.jpg");
  background-size: auto, 640px auto;
  background-repeat: no-repeat, repeat;
  box-shadow: 0 16px 30px rgba(31, 35, 40, 0.16);
  overflow: hidden;
}

.shop-hero::before,
.shop-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 19px;
  background-image: var(--leo-bullet);
  background-size: auto 100%;
  background-repeat: repeat-x;
  opacity: 1;
}

.shop-hero::before {
  top: 0;
}

/* Gespiegelt, damit die gerissene Kante nach unten aussen zeigt. */
.shop-hero::after {
  bottom: 0;
  transform: scaleY(-1);
}

.hero-copy {
  display: block;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 2.2rem;
  font-family: var(--font-hand);
  text-transform: uppercase;
  line-height: 1.02;
  color: #221c15;
  text-shadow: 0 1px 0 rgba(255, 252, 244, 0.8);
}

.hero-shout {
  display: block;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: 0.01em;
}

/* Standardmaessig zwei mittige Zeilen. Der Trennpunkt haengt sonst
   einzeln am Zeilenende, wenn der Satz umbricht. */
.hero-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.7rem;
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  line-height: 1.35;
  color: #3a3025;
}

.hero-sub-dot {
  display: none;
  color: var(--accent);
}

/* Erst wenn beide Haelften nebeneinander passen, kommt der Punkt dazu. */
@media (min-width: 82rem) {
  .hero-sub {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.7rem;
  }

  .hero-sub-dot {
    display: inline;
  }
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: none;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-family: var(--font-hand);
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
  padding: 0.72rem 1.6rem;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: var(--brush-block), linear-gradient(#141210, #141210);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 100% 128%, 100% 64%;
  filter: drop-shadow(0 6px 8px rgba(31, 35, 40, 0.3));
  color: #fff6e6;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-hand);
  cursor: pointer;
  transform: rotate(-0.9deg);
  transition: transform 0.2s ease, background-size 0.2s ease;
}

/* Mini-Plumeria oben rechts auf dem Strich. */
.button::after {
  content: "";
  position: absolute;
  top: -0.65rem;
  right: -0.75rem;
  width: clamp(24px, 3.2vw, 32px);
  aspect-ratio: 1;
  background: var(--plumeria) center / contain no-repeat;
  transform-origin: 60% 70%;
  animation: button-bud 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes button-bud {
  0%,
  100% {
    transform: rotate(-9deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(7deg) translate3d(0, -3px, 0);
  }
}

.button:hover,
.button:focus-visible {
  color: #fff6e6;
  background-size: 104% 134%, 100% 64%;
  transform: rotate(-0.9deg) translateY(-2px);
}

.hero-frame-wrap {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: rotate(-0.6deg);
}

/* Die Collage sitzt als ein Stueck auf dem Hintergrund. Rahmen, Plumeria,
   Feder und Muscheln stecken im Bild, es gibt keinen CSS-Rahmen darum. */
.hero-collage {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(31, 35, 40, 0.24));
}

.shop-layout {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
}

.section-head {
  margin-bottom: 0.8rem;
}

/* ---------- Sidebar mit Leoflecken-Aufzaehlung ---------- */

.shop-sidebar {
  position: sticky;
  top: 1rem;
  padding: 1.1rem 1rem 1.2rem;
  border: 2px solid #bda988;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.97);
  box-shadow: 0 12px 24px rgba(31, 35, 40, 0.14);
}

.sidebar-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sidebar-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4a3f31;
}

/* Trennt den WhatsApp-Zuruf von den Hauptkategorien: zwei Striche mit
   einer Plumeria dazwischen. */
.trenner-plumeria {
  height: 1.8rem;
  margin: 1.3rem 0 0.2rem;
  border: 0;
  background:
    linear-gradient(#cbb896, #cbb896) left center / calc(50% - 1.3rem) 2px no-repeat,
    linear-gradient(#cbb896, #cbb896) right center / calc(50% - 1.3rem) 2px no-repeat,
    var(--plumeria) center / auto 1.8rem no-repeat;
}

.sidebar-kontakt {
  padding: 0.2rem 0.7rem 0.9rem;
  border-radius: 0.8rem;
  background: rgba(243, 237, 226, 0.7);
  text-align: center;
}

.sidebar-kontakt .sidebar-note {
  margin: 0.7rem 0 0.9rem;
}

.cat-list,
.sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-item + .cat-item {
  border-top: 1px dashed #cbb896;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.1rem 0.45rem 0.1rem;
  border-radius: 0.5rem;
}

.cat-head:hover {
  background: #fff6e5;
}

.cat-name {
  flex: 1 1 auto;
  font-family: var(--font-hand);
  font-size: 1.12rem;
  font-weight: 700;
  color: #211c16;
  text-decoration: none;
  line-height: 1.25;
}

.cat-name:hover {
  text-decoration: underline;
}

.cat-name:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
  border-radius: 0.35rem;
}

.cat-note {
  margin: 0;
  padding-left: 1.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #5d5040;
}

.cat-count {
  /* Abstand per Rand, weil .sub-list a ein Flex-Container ist und Leerzeichen schluckt */
  margin-left: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: #5d5040;
}

.cat-name .cat-count {
  margin-left: 0.7rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cat-count::before {
  content: "(";
}

.cat-count::after {
  content: ")";
}

.cat-name[aria-current],
.sub-list a[aria-current] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Klapp-Button mit Pfeil */
.cat-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
}

.cat-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #6b5942;
  border-bottom: 2px solid #6b5942;
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.cat-toggle[aria-expanded="true"]::after {
  transform: translate(-50%, -30%) rotate(-135deg);
}

.cat-toggle:hover {
  background: #f6e6c8;
}

.cat-toggle:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

/* Die Plumeria als Aufzaehlungssymbol */
.cat-head::before,
.sub-list a::before {
  content: "";
  flex: 0 0 auto;
  display: inline-block;
  background-image: var(--plumeria);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(58, 42, 24, 0.28));
}

.cat-head::before {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.5rem;
  transform: rotate(calc(var(--spot, 0) * 27deg - 14deg));
}

.sub-list {
  padding: 0.15rem 0 0.5rem 0.25rem;
}

.sub-list li {
  margin: 0;
}

.sub-list a {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.3rem 0.35rem 0.3rem 0.15rem;
  border-radius: 0.45rem;
  text-decoration: none;
  color: #33291f;
  font-size: 0.93rem;
  line-height: 1.3;
}

.sub-list a::before {
  width: 1em;
  height: 1em;
  margin-right: 0.5rem;
  transform: rotate(calc(var(--spot, 0) * 31deg + 9deg));
}

.sub-list a:hover {
  background: #fff3dd;
  text-decoration: underline;
}

.sub-list a:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.cat-list-fallback a {
  display: block;
  padding: 0.4rem 0.2rem;
  color: #211c16;
  font-family: var(--font-hand);
  font-weight: 700;
}

/* ---------- Produktkarten ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fffaf0;
  box-shadow: 0 8px 16px rgba(31, 35, 40, 0.12);
}

/* Der Titel-Link deckt die ganze Karte ab, bleibt aber ein einziger Tabstopp. */
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:has(h3 a:focus-visible) {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.card h3 a:focus-visible {
  outline: none;
}

/* Die Produktfotos liegen fast alle im Hochformat 3:4 vor. Der alte
   Streifen von 210px hat davon den groessten Teil abgeschnitten. */
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 0.8rem 0.85rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.card-cat {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6a5a45;
}

.card h3 {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.16rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover,
.card h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-price {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: #8f3f1f;
}

.card-guide {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #4a3f31;
  /* liegt ueber der Karten-Linkflaeche, damit der Pflege-Link klickbar bleibt */
  position: relative;
  z-index: 1;
  justify-self: start;
}

.card-options {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6a5a45;
}

.price-from {
  font-size: 0.82em;
  font-weight: 400;
  color: #6a5a45;
}

.price-before {
  color: #6a5a45;
  font-size: 0.95rem;
  font-weight: 500;
}

.price-now {
  color: #a32020;
}

/* ---------- Statuszeile und Seitenblaetterung ---------- */

.products-status {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #4a3f31;
}

.pagination {
  margin-top: 1.4rem;
}

.page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}

.page-link {
  display: inline-block;
  min-width: 2.5rem;
  padding: 0.45rem 0.7rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fffaf0;
  color: #4a3f31;
  text-decoration: none;
  font-weight: 600;
}

.page-link:hover {
  background: #f4e6cd;
}

.page-link:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.page-link.is-current {
  background: #241f1a;
  border-color: #241f1a;
  color: #fff6e6;
}

.page-gap {
  padding: 0.45rem 0.2rem;
  color: #6a5a45;
}

.card-guide a {
  color: #7a3418;
}

/* ---------- Anfrage-Formular ---------- */

/* Die Akzentfarben stammen aus der Stickdatei Evan, gemessen an den
   kraeftig gesaettigten Pixeln des Motivs. Fuer Text auf hellem Grund
   jeweils eine abgedunkelte Variante. */
.anfrage {
  --ev-gold: #d1b146;
  --ev-terra: #cc633a;
  --ev-lime: #ccd555;
  --ev-magenta: #bd3eb2;
  --ev-red: #e2333a;
  --ev-turq: #44ccc1;
  --ev-magenta-ink: #8c2a82;
  --ev-turq-ink: #12706b;
  --ev-terra-ink: #9a4522;

  position: relative;
  isolation: isolate;
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
  padding: 1.8rem 1.6rem;
  border-radius: 1rem;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(0deg, rgba(255, 251, 243, 0.9), rgba(255, 251, 243, 0.9)),
    url("assets/hero-paper-texture.jpg");
  background-size: auto, 620px auto;
  background-repeat: no-repeat, repeat;
  box-shadow: 0 14px 28px rgba(31, 35, 40, 0.14);
}

/* Feine Steppnaht als Einfassung, angelehnt an den Stickrahmen. */
.anfrage::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  z-index: -1;
  border: 2px dashed var(--ev-gold);
  border-radius: 0.75rem;
  opacity: 0.6;
}

.anfrage .eyebrow {
  color: var(--ev-magenta-ink);
}

.anfrage-title {
  margin: 0.1rem 0 0.5rem;
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: #241f1a;
}

/* Ein Lichtschein wandert durch die Schrift. Die Grundfarbe bleibt
   dunkel, damit der Text auch waehrend der Animation lesbar ist. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .anfrage-title {
    background-image: linear-gradient(
      100deg,
      #241f1a 0%,
      #241f1a 40%,
      var(--ev-terra-ink) 47%,
      var(--ev-magenta-ink) 50%,
      var(--ev-turq-ink) 53%,
      #241f1a 60%,
      #241f1a 100%
    );
    background-size: 280% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: title-shine 7s ease-in-out infinite;
  }
}

@keyframes title-shine {
  0%,
  64% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.anfrage-sub {
  margin: 0 0 0.9rem;
  max-width: 44ch;
  font-size: 1.02rem;
  text-wrap: balance;
  color: #4a4038;
}

/* Das Stickmotiv rueckt an die Formularspalte heran. */
.anfrage-motiv {
  margin: 0.2rem 0 0 auto;
  max-width: 360px;
}

.anfrage-motiv img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(31, 35, 40, 0.22));
}

.anfrage-motiv figcaption {
  margin-top: 0.1rem;
  text-align: center;
  font-family: var(--font-hand);
  line-height: 1.2;
  color: var(--ev-terra-ink);
  transform: rotate(-1.2deg);
}

.motiv-title,
.motiv-sub {
  display: block;
  text-wrap: balance;
}

.motiv-title {
  font-size: 1.14rem;
  letter-spacing: 0.02em;
}

.motiv-sub {
  font-size: 0.98rem;
  color: #5b4a3c;
}

/* Funkeln in den Stickfarben. Position und Verzoegerung stehen als
   --x/--y/--d im Markup, damit sich kein Muster wiederholt. */
.glitter {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, var(--ev-gold) 42%, rgba(209, 177, 70, 0) 72%);
  clip-path: polygon(
    50% 0%,
    56% 44%,
    100% 50%,
    56% 56%,
    50% 100%,
    44% 56%,
    0% 50%,
    44% 44%
  );
  opacity: 0;
  transform: scale(calc(var(--s) * 0.3)) rotate(0deg);
  animation: sparkle 5.2s ease-in-out infinite;
  animation-delay: var(--d);
}

.spark:nth-child(3n) {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, var(--ev-magenta) 42%, rgba(189, 62, 178, 0) 72%);
}

.spark:nth-child(4n) {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, var(--ev-turq) 42%, rgba(68, 204, 193, 0) 72%);
}

/* Konfetti in den Stickfarben, rieselt durch den Anfrageblock. Nutzt die
   Bewegung des Promo-Konfettis; overflow haelt die Schnipsel im Papier.
   Liegt ueber dem Formularpapier, faengt aber keine Klicks ab. */
.anfrage-konfetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 1rem;
  pointer-events: none;
}

.anfrage-konfetti i {
  position: absolute;
  top: -12%;
  left: var(--x, 50%);
  width: var(--br, 7px);
  height: var(--ho, 11px);
  border-radius: 1px;
  background: var(--farbe, #d1b146);
  opacity: 0;
  will-change: top, transform, opacity;
  animation: promo-konfetti var(--dauer, 6s) linear var(--start, 0s) infinite;
}

/* Bezugsrahmen fuer das Feuerwerk ueber der Ueberschrift. */
.anfrage-copy {
  position: relative;
}

/* Feuerwerk ueber der Ueberschrift. Jeder Funke traegt seinen Winkel
   und seine Flugweite als eigene Variable; die Bewegung laeuft nur
   ueber transform und opacity, damit kein Layout neu berechnet wird. */
.fireworks {
  position: absolute;
  inset: -0.5rem -0.5rem auto;
  height: 70%;
  z-index: 2;
  pointer-events: none;
}

.burst {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  width: 0;
  height: 0;
}

.burst::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  animation: burst-flash 3.3s ease-out infinite;
  animation-delay: var(--bd);
}

.burst i {
  position: absolute;
  left: -2px;
  top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
  opacity: 0;
  animation: burst-fly 3.3s cubic-bezier(0.1, 0.62, 0.22, 1) infinite;
  animation-delay: var(--bd);
}

@keyframes burst-flash {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  3% {
    opacity: 1;
    transform: scale(1.6);
  }
  12% {
    opacity: 0;
    transform: scale(2.4);
  }
  100% {
    opacity: 0;
  }
}

@keyframes burst-fly {
  0% {
    opacity: 0;
    transform: rotate(var(--a)) translateX(0) scale(1);
  }
  4% {
    opacity: 1;
  }
  46% {
    opacity: 1;
    transform: rotate(var(--a)) translateX(var(--r)) scale(0.5);
  }
  62% {
    opacity: 0;
    transform: rotate(var(--a)) translateX(calc(var(--r) * 1.16)) translateY(16px) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateX(calc(var(--r) * 1.16)) translateY(16px) scale(0.2);
  }
}

@keyframes sparkle {
  0%,
  72%,
  100% {
    opacity: 0;
    transform: scale(calc(var(--s) * 0.3)) rotate(0deg);
  }
  82% {
    opacity: 0.9;
    transform: scale(var(--s)) rotate(50deg);
  }
  92% {
    opacity: 0.32;
    transform: scale(calc(var(--s) * 0.75)) rotate(85deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button::after {
    animation: none;
  }

  .anfrage-title {
    animation: none;
    background-position: 0 0;
  }

  .spark {
    animation: none;
    opacity: 0.45;
    transform: scale(calc(var(--s) * 0.8));
  }

  .fireworks {
    display: none;
  }

  .anfrage-konfetti {
    display: none;
  }
}

/* Aussen gerissene Papierkante. Rahmen und Fuellung tragen dieselbe
   Farbe, damit es ein Blatt bleibt. Der Schlagschatten folgt der
   Alphamaske und macht den Riss sichtbar. */
.anfrage-form {
  display: grid;
  gap: 0.85rem;
  padding: 0.4rem 0.5rem 0.6rem;
  border: 36px solid transparent;
  border-image: url("assets/paper-torn.png") 64 stretch;
  color: var(--ink);
  background-color: #fdf9f1;
  background-origin: border-box;
  filter: drop-shadow(0 10px 16px rgba(31, 35, 40, 0.26));
  transform: rotate(-0.4deg);
}

.anfrage-form > * {
  transform: rotate(0.4deg);
}

.field {
  display: grid;
  gap: 0.25rem;
}

.field label,
.consent-row label {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.consent-row label {
  letter-spacing: 0;
  text-transform: none;
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.6rem 0.65rem;
  border: 2px solid #241f1a;
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
}

.field input:focus-visible,
.field textarea:focus-visible,
.consent-row input:focus-visible {
  outline: 3px solid var(--ev-magenta-ink);
  outline-offset: 2px;
}

/* Auf schmalen Schirmen steht das Motiv ueber dem Formular. */
@media (max-width: 640px) {
  .anfrage {
    padding: 1.2rem 1rem;
  }
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: #56493a;
}

.consent-row {
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.consent-row label {
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.4;
}

.button.solid {
  justify-self: start;
}

.button:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

/* ---------- Manufaktur-Footer ---------- */

/* Das Original-Bild liefert Rissflaeche, Plumeria und Goldstrich.
   Der Farbverlauf darunter setzt erst unterhalb der Risszone ein und
   traegt den Text auch dort, wo das Bild transparent auslaeuft. */
/* Der Footer ist schwarz und reisst nach oben in den hellen Hintergrund.
   Die Zacken liegen als eigenes Element ueber der Footer-Kante, damit sie
   ueber den Inhalt ragen koennen. Die Luft dafuer kommt aus main. */
main {
  padding-bottom: 10rem;
}

.manufaktur-footer {
  margin-top: -3.5rem;
  margin-bottom: 0;
  padding: 1.6rem 1.6rem 2.4rem;
  border-radius: 0;
  color: #f4e9d6;
  position: relative;
  background-color: #0a0a08;
}

/* Gemalte Oberkante. Feste Kachelbreite, damit die Kante nicht gedehnt
   wird. Das Profil ist periodisch gerechnet, die Naht faellt nicht auf. */
.manufaktur-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -102px;
  height: 104px;
  pointer-events: none;
  background-image: url("assets/footer-tear.png");
  background-repeat: repeat-x;
  background-size: 1200px 104px;
  background-position: left bottom;
}

/* Original-Plumeria sitzt auf der Risskante. */
.manufaktur-footer::after {
  content: "";
  position: absolute;
  top: -118px;
  right: 7%;
  width: clamp(96px, 13vw, 158px);
  aspect-ratio: 1;
  pointer-events: none;
  background-image: url("assets/plumeria-lg.png");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(-13deg);
  filter: drop-shadow(0 9px 15px rgba(0, 0, 0, 0.55));
}

.manufaktur-footer > * {
  position: relative;
  z-index: 1;
}

.footer-cols {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  padding-top: 0.8rem;
}

.footer-col h2,
.footer-promise h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5c98a;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.footer-col a {
  color: #f4e9d6;
  text-decoration: none;
  font-size: 0.93rem;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col a:focus-visible,
.footer-baseline a:focus-visible {
  outline: 3px solid #f5c98a;
  outline-offset: 2px;
}

/* Social-Symbole: gemalter Farbkreis aus den Stickfarben, darin ein
   dunkles Zeichen. Dunkel statt weiss, weil helle Glyphen auf Gold
   unter die geforderten 3:1 fallen. */
.social-list {
  gap: 0.55rem;
}

.social-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
}

.social-badge {
  position: relative;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background-image: conic-gradient(
    from 205deg,
    #f0b64a 0deg,
    #cc633a 78deg,
    #bd3eb2 154deg,
    #44ccc1 236deg,
    #ccd555 305deg,
    #f0b64a 360deg
  );
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 250, 241, 0.9);
  transition: transform 0.22s ease;
}

.social-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #1a1512;
  -webkit-mask-image: var(--glyph);
  mask-image: var(--glyph);
  -webkit-mask-size: 58% 58%;
  mask-size: 58% 58%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.social-list a:hover .social-badge {
  transform: rotate(-8deg) scale(1.1);
}

.social-badge--instagram {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.4a4.6 4.6 0 1 1 0 9.2 4.6 4.6 0 0 1 0-9.2zm0 2a2.6 2.6 0 1 0 0 5.2 2.6 2.6 0 0 0 0-5.2zM17.7 5.9a1.3 1.3 0 1 1 0 2.6 1.3 1.3 0 0 1 0-2.6z'/%3E%3C/svg%3E");
}

.social-badge--facebook {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.8 3.5v3.1h-1.9c-.6 0-.9.3-.9.9v1.9h2.7l-.4 3h-2.3V21h-3.1v-8.6H7.4v-3h2.5V7.1c0-2.3 1.4-3.6 3.5-3.6h2.4z'/%3E%3C/svg%3E");
}

.social-badge--whatsapp {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a9.8 9.8 0 0 0-8.4 14.9L2 22.2l5.5-1.6A9.8 9.8 0 1 0 12 2zm0 2a7.8 7.8 0 1 1-4.1 14.4l-.4-.2-2.7.8.8-2.6-.2-.4A7.8 7.8 0 0 1 12 4zM8.6 7.6c-.2 0-.5.1-.7.4-.3.3-.9.9-.9 2.1s.9 2.4 1 2.6c.1.2 1.7 2.8 4.3 3.8 2 .8 2.4.6 2.9.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2l-.6-.3-1.6-.8c-.2-.1-.4-.1-.6.1l-.7.9c-.1.2-.3.2-.5.1-.2-.1-1-.4-1.9-1.2-.7-.6-1.2-1.4-1.4-1.6-.1-.2 0-.4.1-.5l.4-.5.3-.5c0-.2 0-.3-.1-.4l-.7-1.7c-.2-.4-.4-.4-.6-.4h-.6z'/%3E%3C/svg%3E");
}

/* Briefumschlag fuer den Happy-Vibes-Letter. */
.social-badge--news {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1.6 2 7.4 5.3L19.4 7H4.6zM20 8.7l-7.4 5.3a1 1 0 0 1-1.2 0L4 8.7V17h16V8.7z'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .social-badge,
  .social-list a:hover .social-badge {
    transition: none;
    transform: none;
  }
}

.footer-promise {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-promise p {
  margin: 0;
  max-width: 42ch;
  line-height: 1.5;
  color: #eadfcb;
  font-size: 0.93rem;
}

/* Widerrufsbutton nach Paragraf 312k BGB. Bewusst schlicht und
   kontraststark statt im Pinselstil: die Schaltflaeche muss gut lesbar
   und leicht auffindbar sein. */
.footer-widerruf {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 1.2rem auto 0;
}

.widerruf-button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  min-height: 2.75rem;
  border: 2px solid #fdf6e6;
  border-radius: 0.3rem;
  background-color: #fdf6e6;
  color: #16130f;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.widerruf-button:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  text-decoration: underline;
}

.widerruf-button:focus-visible {
  outline: 3px solid #f5c98a;
  outline-offset: 3px;
}

/* Hinweis zum Ausschluss des Widerrufsrechts. Warnfarbe zurueckhaltend,
   damit der Kasten informiert statt abzuschrecken. */
.widerruf-hinweis {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem 1.1rem;
  border-left: 6px solid var(--accent);
  border-radius: 0.3rem;
  background: #fdf3e4;
}

.widerruf-hinweis h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: #7a3418;
}

.widerruf-hinweis p {
  margin: 0 0 0.6rem;
  max-width: 68ch;
  line-height: 1.55;
}

.widerruf-hinweis p:last-child {
  margin-bottom: 0;
}

/* Zweite Stufe des Widerrufsbuttons. */
.widerruf-section {
  margin-top: 1.6rem;
  padding: 1.3rem 1.4rem 1.5rem;
  border: 2px solid #241f1a;
  border-radius: 0.4rem;
  background: rgba(255, 253, 248, 0.96);
}

.widerruf-section h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-hand);
  font-size: 1.5rem;
}

.widerruf-intro {
  margin: 0 0 1rem;
  max-width: 60ch;
  line-height: 1.55;
}

.widerruf-form {
  display: grid;
  gap: 0.9rem;
  max-width: 44rem;
}

.widerruf-form input,
.widerruf-form textarea {
  font: inherit;
  padding: 0.6rem 0.65rem;
  border: 2px solid #241f1a;
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
}

.widerruf-form input:focus-visible,
.widerruf-form textarea:focus-visible,
.widerruf-submit:focus-visible {
  outline: 3px solid #8c2a82;
  outline-offset: 2px;
}

/* Klare, kontraststarke Schaltflaeche. Die Beschriftung ist
   vorgeschrieben, also darf die Gestaltung sie nicht relativieren. */
.widerruf-submit {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.75rem 1.6rem;
  border: 2px solid #16130f;
  border-radius: 0.3rem;
  background-color: #16130f;
  color: #fdf6e6;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.widerruf-submit:hover {
  background-color: #000000;
}

.widerruf-datenschutz {
  margin: 0;
  max-width: 60ch;
  font-size: 0.88rem;
  color: #56493a;
}

.footer-baseline {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 1rem auto 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2b49b;
}

/* ---------- Unterseiten: LoveStory, Happy Dogs & Co, Blog ---------- */

.page-hero {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 1.2rem auto 0;
  padding: 1.6rem 1.4rem;
  border-radius: 1rem;
  background-color: #efe6d5;
  background-image:
    linear-gradient(0deg, rgba(247, 240, 228, 0.72), rgba(247, 240, 228, 0.72)),
    url("assets/hero-paper-texture.jpg");
  background-size: auto, 640px auto;
  background-repeat: no-repeat, repeat;
  box-shadow: 0 16px 30px rgba(31, 35, 40, 0.16);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 19px;
  background-image: var(--leo-bullet);
  background-size: auto 100%;
  background-repeat: repeat-x;
  opacity: 1;
}

.page-hero h1 {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--font-hand);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: #221c15;
}

/* Pinke Plumeria oben, darunter der Text mittig ueber die volle Breite. */
.page-hero--bloom {
  padding-top: clamp(7.8rem, 14vw, 10.4rem);
  text-align: center;
}

.page-hero--bloom::after {
  content: "";
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.2rem);
  left: 50%;
  width: clamp(84px, 10vw, 126px);
  aspect-ratio: 1;
  transform: translateX(-50%) rotate(-9deg);
  background-image: url("assets/plumeria-lg.png");
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 8px 12px rgba(58, 42, 24, 0.32));
  pointer-events: none;
}

.page-hero--bloom .page-lead {
  max-width: none;
  margin-inline: auto;
}

/* Schlanke Fassung ab Seite 2 des Blogs. Muss nach --bloom stehen,
   sonst gewinnt dessen grosser Innenabstand. */
.page-hero--compact {
  padding-top: 1.2rem;
  padding-bottom: 1.1rem;
  /* Die Plumeria darf ueber die Kante ragen. */
  overflow: visible;
}

/* Der Leo-Streifen wird sonst nicht mehr von der Kachel beschnitten. */
.page-hero--compact::before {
  border-radius: 1rem 1rem 0 0;
}

/* Statt gross ueber dem Titel sitzt die Bluete jetzt seitlich an der Kante. */
.page-hero--compact::after {
  top: auto;
  bottom: -1rem;
  left: auto;
  right: clamp(0.4rem, 2.5vw, 1.6rem);
  width: clamp(56px, 6.5vw, 84px);
  transform: rotate(-12deg);
}

.page-hero--compact h1 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.page-hero--compact .page-lead {
  display: none;
}

/* Goldverlauf wie bei der Stay-Wild-Signatur auf der Startseite.
   Die dunkle Grundfarbe bleibt als Fallback lesbar. */
.title-gold {
  color: #6d4f0a;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .title-gold {
    background-image: linear-gradient(
      100deg,
      #6d4f0a 0%,
      #6d4f0a 40%,
      #9a7314 46%,
      #e3c368 50%,
      #9a7314 54%,
      #6d4f0a 60%,
      #6d4f0a 100%
    );
    background-size: 280% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: title-gold-shine 6s ease-in-out infinite;
  }
}

@keyframes title-gold-shine {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}

.page-lead {
  margin: 0;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #3a3025;
}

.page-section {
  margin-top: 1.3rem;
  padding: 1.3rem 1.4rem;
  border: 2px solid #cbb896;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 20px rgba(31, 35, 40, 0.1);
}

.page-section h2 {
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  text-transform: uppercase;
}

/* Textlinks im Inhalt tragen die Markenfarbe. Schaltflaechen und Menue
   bringen ihre eigene Farbe mit und gewinnen ueber die Klassenspezifitaet. */
main a {
  color: #7a3418;
}

main a:hover,
main a:focus-visible {
  color: #5d2711;
}

.page-section p {
  max-width: 68ch;
  line-height: 1.6;
  margin: 0 0 0.7rem;
}

/* ---------- Kontaktseite ---------- */

/* Die Windrose liegt gross hinter dem Formular und ragt ueber die rechte
   Kartenkante. "overflow: hidden" schneidet sie sauber ab, damit daraus
   kein waagerechtes Scrollen entsteht. Die Klasse steht doppelt, weil eine
   spaetere .page-section-Regel sonst die Positionierung ueberschreibt. */
.page-section.kontakt-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.kontakt-block__form {
  position: relative;
  z-index: 1;
}

.kontakt-windrose {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -4%;
  width: clamp(22rem, 46vw, 42rem);
  height: auto;
  /* Deutliche Schraeglage nach rechts, damit sie nicht wie ein Wasserzeichen wirkt. */
  transform: translateY(-50%) rotate(9deg);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 12px 20px rgba(40, 28, 16, 0.22));
}

/* Auf schmalen Schirmen liegt sie unter dem Text, dort muss sie
   zurueckhaltender sein, damit die Beschriftungen lesbar bleiben. */
@media (max-width: 980px) {
  .kontakt-windrose {
    right: -22%;
    width: min(120%, 30rem);
    opacity: 0.22;
  }
}

.kontakt-form {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
}

.kontakt-form .field input,
.kontakt-form .field textarea {
  width: 100%;
}

.kontakt-direkt {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 1.02rem;
}

/* Spamfalle: aus dem Bild geschoben statt display:none, sonst füllen
   manche Bots sie trotzdem und erkennen die Falle. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-fehler {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid #a4231f;
  background: #fdeeec;
  color: #6d1512;
}

.footer-promise-link {
  margin: 0.6rem 0 0;
}

/* Plumeria-Pink, aufgehellt fuer den schwarzen Footer. */
.footer-promise .footer-promise-link a {
  color: #ff7fc0;
  font-weight: 700;
  text-decoration: none;
}

.footer-promise .footer-promise-link a::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.4em;
  vertical-align: -0.24em;
  background: var(--plumeria) center / contain no-repeat;
}

.footer-promise .footer-promise-link a:hover,
.footer-promise .footer-promise-link a:focus-visible {
  text-decoration: underline;
}

.blog-post .eyebrow {
  margin-bottom: 0.2rem;
}

/* ---------- Blog ---------- */

.blog-head {
  text-align: center;
  margin-bottom: 0.4rem;
}

/* .page-section p begrenzt die Breite und nullt die Aussenabstaende.
   Im zentrierten Kopf muessen sie wieder auto sein, sonst stehen
   Eyebrow und Lead linksbuendig im Block. */
.blog-head .eyebrow,
.blog-head .blog-lead {
  max-width: 56ch;
  margin-inline: auto;
}

.blog-head h2 {
  margin: 0.1rem 0 0.4rem;
}

.blog-lead {
  margin: 0 auto 0.5rem;
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #3a3025;
  font-family: var(--font-hand);
}

.blog-date {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6a5a45;
}

.blog-body {
  max-width: 68ch;
  margin: 0 auto;
}

.blog-body p {
  max-width: none;
}

/* ---------- Blog: ueberlappendes Bilder-Karussell ---------- */

.photo-stack-wrap {
  margin: 1.3rem auto 1.5rem;
  max-width: 660px;
}

.photo-stack {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(280px, 44vw, 400px);
}

.stack-card {
  position: absolute;
  width: clamp(180px, 25vw, 250px);
  margin: 0;
  padding: 14px 14px 6px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background-color: #fdf8ee;
  background-image:
    url("assets/paper-edge-top.jpg"),
    url("assets/paper-edge-bottom.jpg"),
    url("assets/paper-edge-left.jpg"),
    url("assets/paper-edge-right.jpg"),
    url("assets/hero-paper-texture.jpg");
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, repeat;
  background-position: top left, bottom left, left top, right top, center;
  background-size: 140px 14px, 140px 14px, 14px 140px, 14px 140px, 640px auto;
  box-shadow: 0 10px 18px rgba(31, 35, 40, 0.24);
  transform:
    translateX(calc(var(--off, 0) * 36%))
    translateY(calc(var(--depth, 0) * 12px))
    rotate(calc(var(--off, 0) * 5deg))
    scale(calc(1 - var(--depth, 0) * 0.14));
  opacity: calc(1 - var(--depth, 0) * 0.22);
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s ease,
    box-shadow 0.45s ease;
}

.stack-card.is-active {
  transform: translateX(0) translateY(-8px) rotate(-1deg) scale(1.14);
  opacity: 1;
  box-shadow: 0 24px 36px rgba(31, 35, 40, 0.36);
  cursor: zoom-in;
}

.stack-card:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 4px;
}

/* Motive sind unterschiedlich formatig, deshalb einpassen statt
   beschneiden. Das feste Seitenverhaeltnis haelt die Karten in einer
   Hoehe, damit der Stapel beim Blaettern nicht springt. */
.stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  filter: sepia(0.12) contrast(1.03);
}

.stack-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.stack-nav {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background-color: transparent;
  background-image: var(--paper-strip);
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  box-shadow: 0 4px 8px rgba(31, 35, 40, 0.2);
  color: #221c15;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
}

.stack-nav:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 3px;
}

.stack-status {
  margin: 0;
  min-width: 16ch;
  text-align: center;
  font-size: 0.85rem;
  color: #4a3f31;
}

@media (prefers-reduced-motion: reduce) {
  .stack-card {
    transition: none;
  }
}

@media (max-width: 560px) {
  .photo-stack {
    height: clamp(250px, 62vw, 330px);
  }

  .stack-card {
    width: clamp(160px, 46vw, 210px);
  }
}

/* ---------- Blog: Suche und Themen-Schlagworte ---------- */

.blog-filter {
  margin-top: 1.3rem;
  padding: 1.1rem 1.3rem 1.2rem;
  border: 2px dashed #cbb896;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.9);
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  text-align: center;
}

.filter-tags {
  width: 100%;
}

.filter-label {
  margin: 0 0 0.3rem;
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a3f31;
}

/* Suchfeld als schwarzer Pinselstrich, wie der aktive Zustand der
   Themen-Schlagworte. */
.filter-field {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
  margin-top: 0.4rem;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Beschriftung bleibt fuer Screenreader erhalten, sichtbar reicht der
   Platzhaltertext im Feld. */
.filter-field .filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Eingabefeld im Papierstreifen-Look der Themen-Schlagworte. */
/* Eingabefeld im Pinselstrich-Look der aktiven Themen-Schlagworte. */
.filter-field input {
  width: min(100%, 21rem);
  min-height: 2.9rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  border: 0;
  border-radius: 0;
  color: #fff6e6;
  background-color: transparent;
  background-image: var(--brush-block), linear-gradient(#141210, #141210);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 100% 128%, 100% 64%;
  filter: drop-shadow(0 5px 9px rgba(20, 16, 10, 0.3));
}

.filter-field input::placeholder {
  color: #e4d7bd;
  font-weight: 400;
  opacity: 1;
}

/* Fokus als umlaufende Steppnaht mit langen Stichen, in Gold mit dem
   wandernden Glanz der Titel. Die Stiche entstehen als Maske, darunter
   liegt derselbe Goldverlauf wie bei .title-gold. */
.filter-field::after {
  content: "";
  position: absolute;
  inset: 0 0.4rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  background-image: linear-gradient(
    100deg,
    #6d4f0a 0%,
    #6d4f0a 40%,
    #9a7314 46%,
    #e3c368 50%,
    #9a7314 54%,
    #6d4f0a 60%,
    #6d4f0a 100%
  );
  background-size: 280% 100%;
  background-position: 100% 0;
  animation: title-gold-shine 6s ease-in-out infinite;
  -webkit-mask-image:
    repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 28px),
    repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 28px),
    repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 28px),
    repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 28px);
  -webkit-mask-size: 100% 3px, 100% 3px, 3px 100%, 3px 100%;
  -webkit-mask-position: left top, left bottom, left top, right top;
  -webkit-mask-repeat: no-repeat;
  mask-image:
    repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 28px),
    repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 28px),
    repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 28px),
    repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 28px);
  mask-size: 100% 3px, 100% 3px, 3px 100%, 3px 100%;
  mask-position: left top, left bottom, left top, right top;
  mask-repeat: no-repeat;
}

.filter-field:focus-within::after {
  opacity: 1;
}

/* Sichtbarer Fokus im Windows-Kontrastmodus, wo Hintergrundbilder entfallen. */
.filter-field input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 4px;
}

@media (forced-colors: active) {
  .filter-field input:focus-visible {
    outline-color: Highlight;
  }
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

/* Schlagworte im Papierstreifen-Look der Navigation. */
.tag-chip {
  display: inline-block;
  min-height: 2.2rem;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background-color: transparent;
  background-image: var(--paper-strip);
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  box-shadow: 0 3px 7px rgba(31, 35, 40, 0.16);
  color: #2b2219;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  font-weight: 700;
}

.tag-list li:nth-child(odd) .tag-chip {
  transform: rotate(-1.1deg);
}

.tag-list li:nth-child(even) .tag-chip {
  transform: rotate(0.9deg);
}

.tag-chip:hover,
.tag-chip.is-active {
  color: #fff6e6;
  background-image: var(--brush-block), linear-gradient(#141210, #141210);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 100% 128%, 100% 64%;
  box-shadow: none;
}

.tag-chip:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 3px;
}

.filter-status {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #4a3f31;
}

.blog-empty {
  margin: 1.4rem 0;
  padding: 1.2rem 1.3rem;
  border: 2px solid #cbb896;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.96);
  font-family: var(--font-hand);
  font-size: 1.05rem;
}

/* Schlagworte am Fuss eines Beitrags. */
.blog-tags {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px dashed #cbb896;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.blog-tags-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a3f31;
}

.blog-tags .tag-list {
  justify-content: flex-start;
}

@media (pointer: coarse) {
  .tag-chip {
    min-height: 44px;
  }
}

/* ---------- Blog: Seitennummerierung ---------- */

.blog-pager {
  margin: 1.6rem 0 0.4rem;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.pager-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.pager-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border: 2px solid #241f1a;
  border-radius: 0.3rem;
  background: #fffdf8;
  color: #241f1a;
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.pager-btn:hover:not(:disabled) {
  background: #f6e6c8;
}

.pager-btn:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.pager-btn.is-current {
  color: #fff6e6;
  border-color: #141210;
  background-color: #241f1a;
}

.pager-gap {
  padding: 0 0.2rem;
  color: #6a5a45;
}

.pager-status {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a3f31;
}

/* ---------- Grossansicht (Klick auf das Vordergrundbild) ---------- */

.photo-lightbox {
  width: fit-content;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 1rem 1rem 0.8rem;
  border: 2px solid #cbb896;
  border-radius: 1rem;
  background: #fffaf1;
  box-shadow: 0 24px 48px rgba(20, 16, 10, 0.5);
  color: var(--ink);
}

.photo-lightbox::backdrop {
  background: rgba(24, 18, 10, 0.78);
}

.lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  border-radius: 0.4rem;
}

.lightbox-caption {
  margin: 0.7rem 0 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: #3a3025;
}

.lightbox-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid #241f1a;
  border-radius: 50%;
  background: #fffdf8;
  color: #241f1a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #f6e6c8;
}

.lightbox-close:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.leo-facts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

/* Zitat in der LoveStory: eingerueckt mit Pinselkante statt Balken. */
.story-quote {
  margin: 1.4rem 0 0.4rem;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 6px solid var(--ev-magenta-ink, #8c2a82);
  border-radius: 0;
}

.story-quote p {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.12rem;
  line-height: 1.5;
  color: #2f2720;
}

.leo-facts li {
  display: flex;
  align-items: center;
  line-height: 1.4;
}

/* Aufzaehlungszeichen: pinke Plumeria statt Leo-Fleck. */
.leo-facts li::before {
  content: "";
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.55rem;
  background-image: var(--plumeria);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(58, 42, 24, 0.28));
  transform: rotate(calc(var(--i, 0) * 27deg - 14deg));
}

.leo-facts li:nth-child(6n + 1) { --i: 0; }
.leo-facts li:nth-child(6n + 2) { --i: 1; }
.leo-facts li:nth-child(6n + 3) { --i: 2; }
.leo-facts li:nth-child(6n + 4) { --i: 3; }
.leo-facts li:nth-child(6n + 5) { --i: 4; }
.leo-facts li:nth-child(6n) { --i: 5; }

/* Weiterfuehrende Links am Ende eines Blogbeitrags. */
.blog-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(160, 74, 40, 0.06);
}

.blog-links li + li {
  margin-top: 0.4rem;
}

.blog-links a {
  color: #7a3418;
  font-weight: 700;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.mini-item,
.kundenbild {
  margin: 0;
  padding: 18px 18px 6px;
  border: 0;
  background-color: #fdf8ee;
  background-image:
    url("assets/paper-edge-top.jpg"),
    url("assets/paper-edge-bottom.jpg"),
    url("assets/paper-edge-left.jpg"),
    url("assets/paper-edge-right.jpg"),
    url("assets/hero-paper-texture.jpg");
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, repeat;
  background-position: top left, bottom left, left top, right top, center;
  background-size:
    140px 16px,
    140px 16px,
    16px 140px,
    16px 140px,
    640px auto;
  box-shadow: 0 12px 20px rgba(31, 35, 40, 0.2);
  transform: rotate(var(--tilt, 0deg));
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.mini-item:nth-child(4n + 1),
.kundenbild:nth-child(4n + 1) { --tilt: -1.4deg; }
.mini-item:nth-child(4n + 2),
.kundenbild:nth-child(4n + 2) { --tilt: 1.1deg; }
.mini-item:nth-child(4n + 3),
.kundenbild:nth-child(4n + 3) { --tilt: -0.7deg; }
.mini-item:nth-child(4n),
.kundenbild:nth-child(4n) { --tilt: 1.6deg; }

.mini-item:hover,
.mini-item:focus-within,
.kundenbild:hover,
.kundenbild:focus-within {
  transform: translateY(-8px) rotate(calc(var(--tilt, 0deg) * -1.15)) scale(1.03);
  box-shadow: 0 20px 30px rgba(31, 35, 40, 0.28);
}

@keyframes gallery-rise {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(calc(var(--tilt, 0deg) * 3)) scale(0.94);
  }

  to {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .mini-item,
    .kundenbild {
      animation: gallery-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}

.mini-item img,
.kundenbild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 55%;
}

.mini-item figcaption,
.kundenbild figcaption {
  padding: 0.45rem 0.1rem 0.5rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: #33291f;
}

/* ---------- Kundengalerie: Suche, Blaetterung, Sprungknoepfe ---------- */

/* Einleitung mittig ueber der Galerie. Der Filterblock bringt seine
   eigene Ausrichtung mit und bleibt unberuehrt. */
.galerie-block > h2,
.galerie-block > p {
  margin-inline: auto;
  text-align: center;
}

.galerie-filter {
  margin-bottom: 1.4rem;
}

/* Kleine Plumeria auf der Ecke des Suchfelds, wie auf den Blogkacheln.
   max() haelt sie am Feldrand, sobald das Eingabefeld auf schmalen
   Schirmen seine volle Breite von 21rem nicht mehr erreicht. */
.galerie-filter .filter-field::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: max(-0.6rem, calc(50% - 11.9rem));
  width: 2.6rem;
  aspect-ratio: 1;
  background: var(--plumeria) center / contain no-repeat;
  filter: drop-shadow(0 5px 8px rgba(58, 42, 24, 0.4));
  transform: rotate(-16deg);
  pointer-events: none;
}

.galerie-pager:not([hidden]) {
  display: block;
}

/* Bleibt beim Scrollen erreichbar; der Galeriestapel ist lang. */
.galerie-sprung {
  position: fixed;
  right: clamp(0.6rem, 2vw, 1.4rem);
  bottom: clamp(0.6rem, 2vw, 1.4rem);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: opacity 0.25s ease;
}

/* Am Seitenanfang zurueckhaltend, aber nie ganz weg: bei Fokus oder
   Zeigerkontakt wieder voll sichtbar. */
.galerie-sprung.is-ruhig {
  opacity: 0.55;
}

.galerie-sprung:hover,
.galerie-sprung:focus-within {
  opacity: 1;
}

.galerie-sprung__btn {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  color: #fff6e6;
  background-color: #141210;
  border: 2px solid #c9a94f;
  border-radius: 50%;
  box-shadow: 0 8px 14px rgba(31, 35, 40, 0.32);
  cursor: pointer;
}

.galerie-sprung__btn:hover:not(:disabled) {
  background-color: #3a2f22;
}

.galerie-sprung__btn:focus-visible {
  outline: 3px solid #6d4f0a;
  outline-offset: 2px;
}

.galerie-sprung__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

@media print {
  .galerie-sprung {
    display: none;
  }
}

/* ---------- LoveStory: Bild im Fliesstext ---------- */

/* flow-root statt overflow, damit der schwebende Bildblock die Sektion
   aufspannt, ohne den Kartenschatten zu beschneiden. */
.page-section {
  display: flow-root;
}

.story-with-image {
  padding: 1.6rem 1.8rem 1.7rem;
}

/* Ueberschrift steht frei ueber Bild und Text. */
.story-with-image h2 {
  clear: both;
  margin: 0 0 1.3rem;
}

.story-with-image p,
.story-with-image ul {
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

/* Der schwebende Bildblock verkuerzt die Zeilen. Ohne Zugabe blieben neben
   dem Bild nur wenige Woerter pro Zeile stehen. */
.story-with-image p,
.story-with-image ul,
.story-with-image blockquote {
  max-width: none;
}

.story-figure {
  float: right;
  width: min(40%, 330px);
  margin: 0.3rem 0 1.6rem 2.4rem;
  padding: 0.6rem 0.6rem 0.2rem;
  background: #fdf8ee;
  border-radius: 0.25rem;
  box-shadow: 0 14px 24px rgba(31, 35, 40, 0.28);
  transform: rotate(2.2deg);
  transition: transform 0.35s ease;
}

/* Seiten im Wechsel, damit die Seite nicht einseitig kippt. */
.story-with-image:nth-of-type(even) .story-figure {
  float: left;
  margin: 0.3rem 2.4rem 1.6rem 0;
  transform: rotate(-2.6deg);
}

.story-figure:hover {
  transform: rotate(0deg) scale(1.02);
}

.story-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.15rem;
  filter: sepia(0.14) contrast(1.04);
}

/* Beschriftung im Polaroid-Rand, handschriftlich. */
.story-figure figcaption {
  padding: 0.55rem 0.2rem 0.5rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 0.88rem;
  color: #5d5040;
}

@media (max-width: 640px) {
  .story-figure,
  .story-with-image:nth-of-type(even) .story-figure {
    float: none;
    width: min(100%, 330px);
    margin: 0.3rem auto 1.4rem;
  }
}

/* ---------- Produktseite (Vorlage fuer WooCommerce) ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.product-breadcrumb {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 1rem auto 0;
  font-size: 0.85rem;
  color: #56493a;
}

.product-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-breadcrumb li + li::before {
  content: "\203A";
  margin-right: 0.35rem;
  color: #8c7a60;
}

.product-page {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.product-gallery,
.product-summary {
  padding: 1.4rem 1.5rem 1.5rem;
  border: 2px solid #cbb896;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 20px rgba(31, 35, 40, 0.1);
}

.gallery-main {
  margin: 0;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
  border: 8px solid #fdf8ee;
  border-radius: 0.3rem;
  box-shadow: 0 12px 22px rgba(31, 35, 40, 0.24);
  filter: sepia(0.12) contrast(1.03);
}

.gallery-hint {
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: #5d5040;
}

.gallery-thumbs {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 0.25rem;
  background: none;
  cursor: pointer;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.15rem;
  filter: sepia(0.12) contrast(1.03);
}

.gallery-thumb.is-active {
  border-color: #241f1a;
}

.gallery-thumb:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 3px;
}

.product-summary h1 {
  margin: 0.1rem 0 0.5rem;
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.2;
  /* Keine Versalien: Produktnamen wie PortraitMuse behalten ihre Schreibweise. */
  color: #221c15;
}

.product-rating {
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4a3f31;
}

.rating-stars {
  color: #9a7314;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.product-price {
  margin: 0 0 0.25rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.price-amount {
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #7a3418;
}

.price-note,
.product-legal {
  font-size: 0.85rem;
  color: #56493a;
}

.product-legal {
  margin: 0 0 1rem;
}

.product-excerpt {
  margin: 0 0 1.2rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.62;
}

.product-form {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 1rem 1rem;
  border: 2px dashed #cbb896;
  border-radius: 0.8rem;
  background: rgba(255, 253, 248, 0.85);
}

.variation-row {
  display: grid;
  gap: 0.2rem;
}

.variation-row label,
.quantity-field label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a3f31;
}

.variation-row select,
.variation-row input,
.quantity-field input {
  font: inherit;
  font-size: 0.92rem;
  min-height: 2.1rem;
  max-width: 18rem;
  padding: 0.3rem 0.5rem;
  border: 2px solid #241f1a;
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
}

/* Zahlenfelder bringen eine Eigenbreite mit und wuerden sonst ausbrechen. */
.quantity-field input {
  width: 100%;
  min-width: 0;
}

.variation-row select:focus-visible,
.variation-row input:focus-visible,
.quantity-field input:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1.1rem;
  margin-top: 0.3rem;
}

.quantity-field {
  display: grid;
  gap: 0.2rem;
  width: 4.5rem;
}

.cart-row .button {
  flex: 1 1 12rem;
  text-align: center;
  cursor: pointer;
}

.product-stock {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-stock.is-available {
  color: #2f5d59;
}

/* ---------- Testlayout: Formular ueber die volle Breite ---------- */

.product-form-wide {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 1.4rem auto 0;
}

.product-form-wide h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: #221c15;
}

.product-form-wide .product-form {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: end;
  gap: 0.9rem 1.4rem;
  padding: 1.2rem clamp(1rem, 2.5vw, 1.8rem) 1.3rem;
}

/* Ohne "contents" waeren alle Auswahlfelder ein einziges Rasterfeld. */
.product-form-wide [data-product-options] {
  display: contents;
}

.product-form-wide .variation-row select,
.product-form-wide .variation-row input {
  max-width: none;
}

.product-form-wide .cart-row,
.product-form-wide .product-stock {
  grid-column: 1 / -1;
}

.product-form-wide .cart-row .button {
  flex: 0 1 16rem;
}

.product-description-inline {
  margin-top: 0.4rem;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.62;
}

.product-description-inline p {
  margin: 0 0 0.7rem;
}

.product-meta {
  margin: 1.2rem 0 0.6rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.product-meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-meta dt {
  min-width: 9rem;
  font-weight: 700;
  color: #4a3f31;
}

.product-meta dd {
  margin: 0;
  color: #3a3025;
}

.product-care {
  margin: 0;
  font-size: 0.9rem;
}

/* Reiter unterhalb der Produktangaben. */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #cbb896;
  padding-bottom: 0.6rem;
}

.tab-button {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid #241f1a;
  border-radius: 0.3rem 0.3rem 0 0;
  background: #fffdf8;
  color: #241f1a;
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-button:hover {
  background: #f6e6c8;
}

.tab-button.is-active {
  color: #fff6e6;
  background-color: #241f1a;
}

.tab-button:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.related-products h2 {
  margin-bottom: 0.9rem;
}

.related-products .card-body h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.05rem;
}

.related-products .card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.related-products .card-body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
  }
}

@media (pointer: coarse) {
  .tab-button,
  .gallery-thumb {
    min-height: 44px;
  }
}

/* ---------- Rechtliche Seiten ---------- */

/* Leo-Band nur rechts und unten. Zum Inhalt hin laeuft es als
   gerissene Papierkante aus. Erzeugt von assets/build-leo-edges.ps1.
   isolation erzeugt den Stapelkontext, erst dadurch liegen die Baender
   mit z-index: -1 vor dem eigenen Hintergrund, aber hinter dem Text. */
.legal-page {
  position: relative;
  isolation: isolate;
  width: min(900px, calc(100% - 2rem));
  margin: 1.2rem auto 1.6rem;
  padding: 1.6rem 3.6rem 3.6rem 1.8rem;
  border: 0;
  border-radius: 0;
  background-color: #efe6d5;
  background-image:
    linear-gradient(0deg, rgba(250, 244, 234, 0.9), rgba(250, 244, 234, 0.9)),
    url("assets/hero-paper-texture.jpg");
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  background-size: auto, 640px auto;
  box-shadow: 0 18px 32px rgba(31, 35, 40, 0.2);
}

.legal-page::before,
.legal-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.legal-page::before {
  top: 0;
  right: 0;
  bottom: 0;
  width: 46px;
  background-image: url("assets/leo-edge-right.png");
  background-repeat: repeat-y;
  background-size: 46px auto;
}

.legal-page::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 46px;
  background-image: url("assets/leo-edge-bottom.png");
  background-repeat: repeat-x;
  background-size: auto 46px;
}

.legal-page h1 {
  margin: 0 0 0.3rem;
  font-family: var(--font-hand);
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: #221c15;
}

.legal-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-hand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #6a5a45;
}

.legal-body {
  padding: 1.1rem 1.2rem;
  border-radius: 0.5rem;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid #cbb896;
}

.legal-body p {
  max-width: 70ch;
  line-height: 1.6;
}

/* Von Hand gepflegte Seite: gegliedert statt einem Textblock. */
.legal-manual h2 {
  margin: 1.4rem 0 0.35rem;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--accent);
}

.legal-manual h2:first-child {
  margin-top: 0;
}

.legal-manual p {
  margin: 0;
}

.legal-placeholder {
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.legal-hint {
  margin: 0;
  font-size: 0.9rem;
  color: #56493a;
}

.legal-frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fffdf8;
}

.bildnachweise {
  margin-top: 1.2rem;
}

.bildnachweise p + p {
  margin-top: 0.7rem;
}

.legal-back {
  display: inline-flex;
  margin-top: 1rem;
  color: #7a3418;
  font-weight: 700;
}

/* Infoseite: Abschnitte nebeneinander, damit die Textzeilen kurz bleiben
   und der breite Container trotzdem gefuellt ist. */
.info-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 0.4rem 2.4rem;
}

.info-flow article {
  break-inside: avoid;
}

.info-flow h2 {
  margin: 0.9rem 0 0.3rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--accent);
}

.info-flow article:first-child h2,
.info-flow article:nth-child(2) h2 {
  margin-top: 0;
}

.info-flow p {
  max-width: none;
  margin: 0;
}

.info-flow p + p {
  margin-top: 0.6rem;
}

.ship-list {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.info-flow-foot {
  grid-column: 1 / -1;
  margin: 1.2rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid #e0d2b8;
}

.info-flow-foot .legal-back {
  margin-top: 0;
}

.payment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.payment-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.5rem;
  border: 1px solid #cbb896;
  border-radius: 0.55rem;
  background: rgba(255, 253, 248, 0.9);
  font-size: 0.88rem;
  color: #3a3025;
}

.pay-icon {
  flex: none;
  width: 30px;
  height: 22px;
  fill: none;
  stroke: #7a3418;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (forced-colors: active) {
  .pay-icon {
    stroke: CanvasText;
  }
}

/* ---------- Warenkorb ---------- */

/* Das Symbol traegt denselben Goldverlauf wie die Stay-Wild-Schrift.
   Die Form kommt als Maske, damit der Verlauf durchscheint. */
.cart-glyph {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  flex: none;
  background-color: #6d4f0a;
  background-image: linear-gradient(
    100deg,
    #6d4f0a 0%,
    #6d4f0a 40%,
    #9a7314 46%,
    #e3c368 50%,
    #9a7314 54%,
    #6d4f0a 60%,
    #6d4f0a 100%
  );
  background-size: 280% 100%;
  background-position: 100% 0;
  -webkit-mask-image: var(--cart-mask);
  mask-image: var(--cart-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  animation: title-gold-shine 6s ease-in-out infinite;
  filter: drop-shadow(0 1px 1px rgba(58, 42, 24, 0.35));
}

:root {
  --cart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.6 3h2.2l2.1 10.4a1.8 1.8 0 0 0 1.8 1.5h8.4a1.8 1.8 0 0 0 1.8-1.4l1.5-6.3H6.1'/%3E%3Ccircle cx='9.5' cy='19.4' r='1.5'/%3E%3Ccircle cx='17.2' cy='19.4' r='1.5'/%3E%3C/svg%3E");
}

.cart-glyph--hero {
  display: block;
  width: clamp(2.6rem, 5vw, 3.4rem);
  height: clamp(2.6rem, 5vw, 3.4rem);
  margin: 0 auto 0.4rem;
}

/* Statt der Plumeria traegt dieser Kopf das goldene Warenkorbsymbol. */
.page-hero--cart {
  text-align: center;
  padding-block: 1.4rem;
}

.page-hero--cart .page-lead {
  max-width: none;
  margin-inline: auto;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Etwas zurueckhaltender als die uebrigen Menuepunkte. */
.header-nav .cart-link {
  font-size: clamp(0.7rem, 1.15vw, 0.86rem);
  letter-spacing: 0.05em;
  padding: 0.3rem clamp(0.25rem, 0.7vw, 0.6rem);
}

.header-nav .cart-link .cart-glyph {
  width: 1.25em;
  height: 1.25em;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #7a3418;
  color: #fff6e6;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.cart-layout {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
}

.cart-status {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 0.9rem auto 0.6rem;
}

.cart-layout > .page-section {
  width: 100%;
  margin-top: 0;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e0d2b8;
}

.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-item-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 0.6rem;
  border: 1px solid #cbb896;
}

.cart-item-body h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-hand);
  font-size: 1.1rem;
}

.cart-item-body h3 a {
  color: inherit;
  text-decoration: none;
}

.cart-item-body h3 a:hover,
.cart-item-body h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-item-options {
  margin: 0 0 0.3rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.5rem;
  font-size: 0.82rem;
  color: #56493a;
}

.cart-item-options dt {
  font-weight: 700;
}

.cart-item-options dd {
  margin: 0;
}

.cart-item-single {
  margin: 0;
  font-size: 0.82rem;
  color: #6a5a45;
}

.cart-item-controls {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.cart-item-price {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 700;
  color: #7a3418;
}

.cart-remove {
  padding: 0;
  border: 0;
  background: none;
  color: #7a3418;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cart-remove:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.cart-empty {
  margin: 0;
  line-height: 1.6;
}

.cart-summary {
  position: sticky;
  top: 1rem;
}

.cart-summary h2 {
  margin: 0 0 0.6rem;
}

.cart-totals {
  margin: 0 0 0.7rem;
  display: grid;
  gap: 0.3rem;
}

.cart-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-totals dt {
  color: #4a3f31;
}

.cart-totals dd {
  margin: 0;
  font-weight: 700;
}

.cart-total-row {
  padding-top: 0.5rem;
  border-top: 2px solid #cbb896;
  font-size: 1.12rem;
}

.cart-total-row dd {
  font-family: var(--font-hand);
  color: #7a3418;
}

.cart-note-legal {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #56493a;
}

.cart-form {
  display: grid;
  gap: 0.8rem;
}

.cart-form textarea {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.45rem 0.55rem;
  border: 2px solid #241f1a;
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
  resize: vertical;
}

.cart-form textarea:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.required-mark {
  color: #a32020;
}

.field-hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #56493a;
}

.field-error {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a32020;
}

.cart-form input[aria-invalid="true"] {
  border-color: #a32020;
}

.cart-checkout {
  justify-self: start;
  cursor: pointer;
}

.cart-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #56493a;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-item-image {
    width: 72px;
    height: 72px;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-items: start;
    align-items: end;
    justify-content: space-between;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-glyph {
    animation: none;
    background-position: 50% 0;
  }
}

/* ---------- Kasse ----------
   Alle Selektoren nutzen die Original-Klassen von WooCommerce.
   Dadurch laesst sich dieser Abschnitt unveraendert in das Theme
   uebernehmen: kein Template muss angefasst werden. */

.woocommerce-checkout .woocommerce {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 0.9rem auto 0;
}

.woocommerce-notices-wrapper {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 0.9rem auto 0;
}

.woocommerce-error {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem 0.9rem 2.2rem;
  border: 2px solid #a32020;
  border-radius: 0.6rem;
  background: #fff4f0;
  color: #7a1a1a;
  font-weight: 600;
  line-height: 1.5;
}

.woocommerce-error:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.col2-set {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.3rem;
  align-items: start;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
#order_review {
  padding: 1.2rem 1.3rem 1.3rem;
  border: 2px solid #cbb896;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 20px rgba(31, 35, 40, 0.1);
}

.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  margin-top: 1.3rem;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
  margin: 0 0 0.8rem;
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  text-transform: uppercase;
  color: #221c15;
}

#order_review_heading {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 1.4rem auto 0.7rem;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
}

.form-row {
  margin: 0;
  display: grid;
  gap: 0.2rem;
  align-content: start;
}

.form-row-wide,
.form-row.notes,
.form-row.place-order {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a3f31;
}

.form-row .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #6a5a45;
}

.form-row abbr.required {
  color: #a32020;
  text-decoration: none;
  border: 0;
}

.woocommerce-input-wrapper {
  display: block;
}

.input-text,
.country_select {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  min-height: 2.1rem;
  padding: 0.3rem 0.5rem;
  border: 2px solid #241f1a;
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
}

textarea.input-text {
  min-height: 6rem;
  resize: vertical;
}

.input-text:focus-visible,
.country_select:focus-visible,
.input-checkbox:focus-visible,
.input-radio:focus-visible {
  outline: 3px solid #2f5d59;
  outline-offset: 2px;
}

.woocommerce-invalid .input-text,
.woocommerce-invalid .country_select {
  border-color: #a32020;
  background: #fff7f4;
}

.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.input-checkbox,
.input-radio {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  flex: none;
  accent-color: #7a3418;
}

#ship-to-different-address {
  margin: 0;
  text-transform: none;
}

.shipping_address {
  margin-top: 0.8rem;
}

/* ---------- Bestelluebersicht ---------- */

#order_review {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.1rem;
}

.shop_table th,
.shop_table td {
  padding: 0.55rem 0.2rem;
  text-align: left;
  border-bottom: 1px solid #e0d2b8;
  vertical-align: top;
}

.shop_table thead th {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6a5a45;
}

.shop_table .product-total,
.shop_table tfoot td {
  text-align: right;
  white-space: nowrap;
}

.shop_table .variation {
  margin: 0.3rem 0 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.45rem;
  font-size: 0.8rem;
  color: #56493a;
}

.shop_table .variation dt {
  font-weight: 700;
}

.shop_table .variation dd {
  margin: 0;
}

.shop_table .order-total th,
.shop_table .order-total td {
  border-bottom: 0;
  padding-top: 0.7rem;
  font-size: 1.1rem;
}

.shop_table .order-total td {
  font-family: var(--font-hand);
  font-weight: 700;
  color: #7a3418;
}

/* ---------- Zahlungsarten ---------- */

.payment-fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.payment-fieldset legend {
  padding: 0;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #221c15;
}

.wc_payment_methods {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.wc_payment_method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #cbb896;
  border-radius: 0.55rem;
  background: rgba(255, 253, 248, 0.9);
}

.wc_payment_method:has(.input-radio:checked) {
  border-color: #7a3418;
  box-shadow: inset 0 0 0 1px #7a3418;
}

.wc_payment_method label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #3a3025;
  cursor: pointer;
}

.pay-icon-wrap {
  display: inline-flex;
}

.payment_box {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  background: #f6ecd9;
  font-size: 0.85rem;
  line-height: 1.5;
}

.payment_box p {
  margin: 0;
}

/* ---------- Bestellabschluss ---------- */

.place-order {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.woocommerce-terms-and-conditions-wrapper {
  display: grid;
  gap: 0.5rem;
}

.checkout-legal,
.checkout-back {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #56493a;
}

#place_order {
  cursor: pointer;
}

@media (max-width: 620px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ---------- Danke: Bestellbestaetigung ----------
   Ebenfalls auf den Original-Klassen von WooCommerce
   (thankyou.php, order-details.php, order-details-customer.php). */

.woocommerce-order-received .woocommerce {
  width: min(1440px, calc(100% - 1.5rem));
  margin: 1rem auto 0;
}

.woocommerce-notice--success {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 2px solid #2f5d59;
  border-radius: 0.6rem;
  background: #eef6f2;
  color: #1d4340;
  font-weight: 700;
}

.woocommerce-order-overview {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 1rem 1.2rem;
  border: 2px solid #cbb896;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 20px rgba(31, 35, 40, 0.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.8rem 1.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a5a45;
}

.woocommerce-order-overview strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: #221c15;
}

.woocommerce-order-overview__total strong {
  color: #7a3418;
}

.order-steps {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.45rem;
  line-height: 1.55;
  max-width: 68ch;
}

.order-contact {
  margin: 0.9rem 0 0;
}

.woocommerce-order-details,
.woocommerce-customer-details {
  margin-top: 1.3rem;
  padding: 1.2rem 1.3rem 1.3rem;
  border: 2px solid #cbb896;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 20px rgba(31, 35, 40, 0.1);
}

.woocommerce-order-details__title,
.woocommerce-column__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  text-transform: uppercase;
  color: #221c15;
}

.woocommerce-column__title {
  font-size: 1.1rem;
}

.order-vat,
.order-notes p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #56493a;
}

.order-notes {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e0d2b8;
}

.order-notes h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--accent);
}

.woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
}

.woocommerce-columns--addresses address {
  font-style: normal;
  line-height: 1.6;
}

.order-back {
  margin: 1.3rem 0 0;
}

@media (max-width: 1180px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-layout,
  .shop-hero {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

  .hero-frame-wrap {
    max-width: 580px;
    width: 100%;
    margin-inline: auto;
  }
}

/* Das Stickmotiv soll so lange wie moeglich neben dem Formular stehen. */
@media (max-width: 620px) {
  .anfrage {
    /* minmax(0, 1fr) statt 1fr: sonst waechst die Spalte auf die
       Mindestbreite des Formulars und der Block laeuft rechts hinaus. */
    grid-template-columns: minmax(0, 1fr);
  }

  .anfrage-motiv {
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .header-nav {
    flex-wrap: wrap;
    border-radius: 0.75rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Bedienelemente: Mindestgroessen ---------- */

input[type="checkbox"],
input[type="radio"] {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  accent-color: var(--accent);
}

/* Touchgeraete (iPhone, Android, Tablet): 44px Antippflaeche.
   Auf Zeigergeraeten bleibt die Optik unveraendert. */
@media (pointer: coarse) {
  .header-nav a,
  .cat-name,
  .sub-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .cat-toggle {
    width: 44px;
    height: 44px;
  }

  .field input:not([type="checkbox"]):not([type="radio"]),
  .field textarea {
    min-height: 44px;
  }
}
