/* ============================================================
   Saras Welt | Design „Salbei & Sand“
   Schriften lokal eingebunden (keine Google-Server, DSGVO-freundlich)
   EB Garamond (Überschriften) · Inter (Fließtext)

   Regeln, die überall gelten:
   - Formen: weich und rund. Drei Stufen, sonst nichts:
     --r (28 px) für Bilder, Karten und Flächen,
     --r-sm (16 px) für Felder und kleine Vorschaubilder,
     --r-pill für Buttons, Filter, Etiketten und Mengenwahl.
   - Ein Akzent: Salbeigrün (--accent). Rot nur für Fehler.
   - Bewegung: nur transform und opacity. Alles endet bei
     prefers-reduced-motion (Block ganz unten).
   ============================================================ */

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond/EBGaramond.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond/EBGaramond-Italic.ttf') format('truetype');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f1ede3;
  --paper: #faf7f0;
  --stone: #e2dccd;
  --ink: #1c2b22;
  --ink-2: #3d4b42;
  --muted: #5c675e;
  --line: rgba(28, 43, 34, 0.15);
  --line-strong: rgba(28, 43, 34, 0.42);
  --accent: #4f6b55;
  --accent-ink: #44604a;
  --accent-soft: #d8e1d1;
  --on-accent: #ffffff;
  --night: #18261e;
  --on-night: #dbe3d9;
  --on-night-muted: #a5b5a8;
  --success: #2c6843;
  --error: #a3261d;
  --scrim: rgba(16, 24, 19, 0.5);
  --shadow: 0 24px 60px -28px rgba(28, 50, 36, 0.45);

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r: 28px;
  --r-sm: 16px;
  --r-pill: 999px;
  --max: 1360px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 72px;
  --announce-h: 38px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* Ebenen */
  --z-totop: 40;
  --z-header: 50;
  --z-overlay: 80;
  --z-drawer: 85;
  --z-menu: 90;
  --z-search: 95;
  --z-consent: 110;
  --z-toast: 120;
  --z-grain: 130;
  --z-cursor: 140;
  --z-skip: 150;
  --z-loader: 160;

  /* Wartezeit, solange der Ladebildschirm zu ist (setzt js/loader.js über .has-loader) */
  --intro: 0s;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111612;
    --paper: #19201b;
    --stone: #242d26;
    --ink: #ecefe8;
    --ink-2: #c6cdc4;
    --muted: #99a49b;
    --line: rgba(236, 239, 232, 0.14);
    --line-strong: rgba(236, 239, 232, 0.42);
    --accent: #55745c;
    --accent-ink: #a9c7ae;
    --accent-soft: #202d24;
    --night: #0a0e0b;
    --success: #86cba0;
    --error: #ff9488;
    --scrim: rgba(5, 8, 6, 0.62);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  position: relative;
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Feines Korn über der ganzen Seite: fest, nicht klickbar, kein Neuzeichnen beim Scrollen */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  color: var(--accent-ink);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a,
button,
input,
select,
textarea,
label,
summary {
  touch-action: manipulation;
}
code {
  padding: 1px 6px;
  background: var(--stone);
  border-radius: 6px;
  font-size: 0.9em;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.45em;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}
h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--accent-ink);
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus {
  color: var(--bg);
  transform: none;
}
/* Unsichtbare Marken für den IntersectionObserver (ersetzen Scroll-Listener) */
.scroll-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
  visibility: hidden;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: 880px;
}
.section {
  padding-block: clamp(72px, 9vw, 136px) clamp(80px, 10vw, 152px);
}
.section-flush {
  padding-top: 0;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--ink-2);
  max-width: 56ch;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 60px);
}
.section-head h2 {
  margin: 0;
}

/* ---------- Buttons & Links ----------
   Die Füllfarbe schiebt sich beim Überfahren von unten hinein (transform).
   --mx/--my setzt das Skript für den Magnet-Effekt. */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  --btn-hover: var(--accent);
  --btn-hover-fg: var(--on-accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--press, 1));
  /* Textfarbe springt ohne Überblendung um, kurz nachdem die Füllung startet */
  transition:
    transform 0.5s var(--ease),
    color 0s 0.12s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--btn-hover);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}
.btn:hover,
.btn:focus-visible {
  color: var(--btn-hover-fg);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}
.btn:active {
  --press: 0.97;
}
.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.45s var(--ease);
}
.btn:hover .icon-arrow-right {
  transform: translateX(4px);
}
.btn:hover .icon-send {
  transform: translate(3px, -3px);
}
.btn-accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-hover: var(--ink);
  --btn-hover-fg: var(--bg);
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-hover: var(--ink);
  --btn-hover-fg: var(--bg);
  border-color: var(--line-strong);
}
.btn-light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}
.btn-block {
  width: 100%;
}
.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.88rem;
}
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.link-arrow:hover::after {
  transform: scaleX(0.35);
}
.link-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease);
}
.link-arrow:hover .icon {
  transform: translateX(5px);
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  isolation: isolate;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.5s var(--ease);
}
.icon-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--stone);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease);
}
.icon-btn:hover {
  color: var(--ink);
}
.icon-btn:hover::before,
.icon-btn:focus-visible::before {
  opacity: 1;
  transform: none;
}
.icon-btn:active .icon {
  transform: scale(0.88);
}
.icon-btn .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--ease);
}

/* ---------- Hinweisleiste ---------- */
.announce {
  position: relative;
  height: var(--announce-h);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  overflow: hidden;
}
.announce p {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding-inline: 16px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.6s,
    transform 0.8s var(--ease);
}
.announce p.active {
  opacity: 1;
  transform: none;
}
.announce p.leave {
  opacity: 0;
  transform: translateY(-100%);
}
.announce .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
}
/* Haarlinie und Milchglas blenden weich ein, sobald gescrollt wurde */
.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.site-header::before {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.site-header::after {
  top: auto;
  height: 1px;
  background: var(--line);
}
.site-header.scrolled {
  background: transparent;
}
.site-header.scrolled::before,
.site-header.scrolled::after {
  opacity: 1;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.header-left {
  display: flex;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover {
  color: var(--ink);
}
.logo img {
  height: 44px;
  width: auto;
}
.logo-text {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.main-nav ul {
  display: flex;
  gap: 2px;
  margin: 0 0 0 -14px;
  padding: 0;
  list-style: none;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--ink);
}
.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: -10px;
}
.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.cart-count.has-items {
  transform: scale(1);
}
.cart-count.bump {
  animation: bump 0.6s var(--ease);
}
.cart-btn.bump .icon {
  animation: bag-swing 0.7s var(--ease);
}
@keyframes bump {
  35% {
    transform: scale(1.5);
  }
}
@keyframes bag-swing {
  25% {
    transform: rotate(-14deg) translateY(-2px);
  }
  55% {
    transform: rotate(9deg);
  }
  80% {
    transform: rotate(-4deg);
  }
}
.menu-toggle {
  display: none;
}

/* ---------- Mobiles Menü ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter)
    calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-100%);
  visibility: hidden;
  transition:
    transform 0.7s var(--ease-io),
    visibility 0s 0.7s;
}
.mobile-menu.open {
  transform: none;
  visibility: visible;
  transition: transform 0.7s var(--ease-io);
}
.mobile-menu > .icon-btn {
  align-self: flex-end;
  margin-right: -10px;
}
.mobile-menu nav {
  margin-top: 3vh;
}
.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-menu nav li {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a {
  display: block;
  padding: 13px 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.6rem);
  line-height: 1.15;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease);
}
.mobile-menu.open nav a {
  transform: none;
  transition-delay: calc(0.25s + var(--i) * 0.06s);
}
.mobile-menu nav a[aria-current='page'] {
  font-style: italic;
  color: var(--accent-ink);
}
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.mobile-menu-foot a {
  padding-block: 8px;
}

/* ---------- Suche ---------- */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-search);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12vh) var(--gutter) 40px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0s 0.4s;
}
.search-panel.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s;
}
.search-panel > .icon-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(var(--gutter) - 10px);
}
.search-box {
  width: 100%;
  max-width: 760px;
  transform: translateY(24px);
  transition: transform 0.7s var(--ease);
}
.search-panel.open .search-box {
  transform: none;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.search-field::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.search-field:focus-within::after {
  transform: none;
}
.search-field .icon {
  width: 26px;
  height: 26px;
  color: var(--muted);
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  outline: none;
}
.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-results {
  display: grid;
  gap: 4px;
  max-height: 55vh;
  margin-top: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-radius: var(--r-sm);
  text-decoration: none;
  animation: rise-sm 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}
.search-result:hover,
.search-result:focus-visible {
  background: var(--stone);
  color: var(--ink);
}
.search-result .thumb {
  width: 64px;
  height: 64px;
  flex: none;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.search-result strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}
.search-result span span {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.search-empty {
  color: var(--muted);
}

/* ---------- Overlay & Warenkorb ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--scrim);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s,
    visibility 0s 0.45s;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(104%);
  visibility: hidden;
  transition:
    transform 0.65s var(--ease),
    visibility 0s 0.65s;
}
.cart-drawer.open {
  transform: none;
  visibility: visible;
  transition: transform 0.65s var(--ease);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 16px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0;
  font-size: 1.8rem;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 24px;
}
.drawer-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.drawer-foot:empty {
  display: none;
}
.drawer-foot .btn + .btn {
  margin-top: 10px;
}
.free-ship {
  font-size: 0.88rem;
  color: var(--ink-2);
}
.free-ship .icon {
  display: inline-block;
  vertical-align: -3px;
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
}
.free-ship-gap {
  margin-bottom: 20px;
}
.drawer-free {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-free:empty {
  display: none;
}
.free-ship-bar {
  height: 6px;
  border-radius: var(--r-pill);
  margin-top: 10px;
  background: var(--stone);
  overflow: hidden;
}
.free-ship-bar span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--accent-ink);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.line-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition:
    opacity 0.28s,
    transform 0.4s var(--ease);
}
.line-item:last-child {
  border-bottom: 0;
}
.stagger .line-item {
  animation: item-in 0.6s var(--ease) both;
  animation-delay: calc(0.12s + var(--i, 0) * 0.06s);
}
.line-item.leaving {
  opacity: 0;
  transform: translateX(28px);
}
@keyframes item-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
.line-item .thumb {
  display: block;
  width: 84px;
  height: 104px;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--stone);
}
.line-item h3 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}
.line-item h3 a {
  text-decoration: none;
}
/* Wesentliche Eigenschaften direkt vor dem Bestell-Button (§ 312j Abs. 2 BGB) */
.line-item .line-short {
  margin: 0 0 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.line-item .meta {
  font-size: 0.84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.line-item .price {
  text-align: right;
}
.line-item .remove {
  display: block;
  min-height: 32px;
  margin: 4px 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.line-item .remove:hover {
  color: var(--error);
}
.qty {
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
}
.qty button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
}
.qty button:hover {
  background: var(--stone);
}
.qty button:active .icon {
  transform: scale(0.8);
}
.qty .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}
.qty output,
.qty input {
  width: 30px;
  border: 0;
  background: none;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty output.tick,
.qty input.tick {
  animation: tick 0.4s var(--ease);
}
@keyframes tick {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.qty-lg {
  margin: 0;
}
.qty-lg button {
  width: 46px;
  height: 50px;
}
.qty-lg input {
  width: 36px;
}
.cart-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
  animation: rise-sm 0.6s var(--ease) both;
}
.cart-empty > .icon {
  width: 44px;
  height: 44px;
  stroke-width: 1.2;
}
.cart-empty p {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
}
.totals {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.totals .grand {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 600;
}
.tax-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: var(--z-toast);
  display: grid;
  justify-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 14px 24px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  animation:
    toast-in 0.5s var(--ease) both,
    toast-out 0.4s 2.8s var(--ease) forwards;
}
.toast .icon {
  width: 18px;
  height: 18px;
}
.toast.has-action {
  pointer-events: auto;
  animation:
    toast-in 0.5s var(--ease) both,
    toast-out 0.4s 5.6s var(--ease) forwards;
}
.toast button {
  min-height: 32px;
  margin: -6px -8px -6px 4px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Bilder ---------- */
.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--stone);
  color: var(--muted);
}
.ph .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.2;
}
.ph-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  font-size: 0.72rem;
  text-align: center;
}

/* Bild-Enthüllung beim Scrollen, nur mit transform:
   Die Maske (.ri-mask) fährt von unten herein, ihr Inhalt fährt gleich schnell
   dagegen. So steht das Bild scheinbar still und wird wie von einem Vorhang
   freigegeben. Die Maske legt das Skript an. */
.reveal-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
}
.ri-mask {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.js .reveal-img > .ri-mask {
  transform: translate3d(0, 101%, 0);
  transition: transform 1.3s var(--ease-io);
  transition-delay: calc(0.4s + var(--d, 0) * 0.12s + var(--intro));
}
.js .reveal-img > .ri-mask > * {
  transform: translate3d(0, -101%, 0) scale(1.2);
  transition: transform 1.3s var(--ease-io);
  transition-delay: calc(0.4s + var(--d, 0) * 0.12s + var(--intro));
}
/* Vor dem Bild wischt kurz eine salbeigrüne Fläche durch */
.js .reveal-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  transform: translate3d(0, 101%, 0);
  pointer-events: none;
}
.js .reveal-img.in::after {
  animation: wipe 1.5s var(--ease-io) both;
  animation-delay: calc(var(--d, 0) * 0.12s + var(--intro));
}
@keyframes wipe {
  0% {
    transform: translate3d(0, 101%, 0);
  }
  45% {
    transform: none;
  }
  100% {
    transform: translate3d(0, -101%, 0);
  }
}
.js .reveal-img.in > .ri-mask,
.js .reveal-img.in > .ri-mask > * {
  transform: none;
}

/* ---------- Hero (Startseite) ----------
   Drei Bild-Ebenen. Jede Ebene hat drei verschachtelte Hüllen, damit sich
   die Bewegungen nicht überschreiben:
   .hero-layer  folgt leicht dem Mauszeiger (--px/--py vom Skript)
   .hero-drift  wandert beim Scrollen (reine CSS-Scroll-Animation)
   .hero-frame  enthüllt das Bild beim Laden */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  min-height: min(calc(100dvh - var(--header-h) - var(--announce-h)), 860px);
  padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px);
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.9rem, 5.4vw, 5.2rem);
}
.hero .lead {
  margin-bottom: 36px;
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}
.hero-stage {
  position: relative;
  align-self: stretch;
  min-height: clamp(420px, 44vw, 700px);
}
.hero-layer {
  position: absolute;
  transform: translate3d(
    calc(var(--px, 0) * var(--depth, 0) * 1px),
    calc(var(--py, 0) * var(--depth, 0) * 1px),
    0
  );
}
.hero-drift,
.hero-frame {
  width: 100%;
  height: 100%;
}
.hero-frame {
  background: var(--stone);
}
.hero-a {
  --depth: 8;
  --drift: -36px;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
}
.hero-b {
  --depth: -22;
  --drift: -120px;
  left: 2%;
  bottom: 7%;
  width: 37%;
  aspect-ratio: 4 / 5;
  z-index: 2;
}
.hero-a .hero-frame {
  border-radius: var(--r-pill) var(--r-pill) var(--r) var(--r);
}
.hero-b .hero-frame {
  rotate: -4deg;
  box-shadow: var(--shadow);
  animation: float-a 6s calc(2s + var(--intro)) ease-in-out infinite alternate;
}
.hero-c .hero-frame {
  rotate: 6deg;
  border-radius: 50%;
  animation: float-b 7s calc(2.4s + var(--intro)) ease-in-out infinite alternate;
}
@keyframes float-a {
  to {
    translate: 0 -16px;
    rotate: -1deg;
  }
}
@keyframes float-b {
  to {
    translate: 6px 14px;
    rotate: -4deg;
  }
}
.hero-c {
  --depth: 30;
  --drift: -70px;
  left: 17%;
  top: 5%;
  width: 21%;
  aspect-ratio: 1;
}
/* Salbei-Fläche hinter dem Hauptbild: gibt der Bühne Tiefe ohne Schatten */
.hero-stage::before {
  content: '';
  position: absolute;
  right: -5%;
  top: 14%;
  bottom: -5%;
  width: 46%;
  background: var(--accent-soft);
  border-radius: var(--r-pill) var(--r-pill) var(--r) var(--r);
  transform-origin: bottom;
  animation: grow-y 1.4s calc(0.2s + var(--intro)) var(--ease-io) both;
}
@keyframes grow-y {
  from {
    transform: scaleY(0);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}
@keyframes rise-sm {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Wort-für-Wort-Einblendung der Überschriften */
.split .word,
.split-scroll .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.12em 0.14em;
  margin-block: -0.12em -0.14em;
}
.split .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 1.1s var(--ease) forwards;
  animation-delay: calc(0.1s + var(--w) * 0.06s + var(--intro));
}
.split-scroll .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(0.1s + var(--w) * 0.06s);
}
.split-scroll.in .word > span {
  transform: none;
}
@keyframes word-up {
  to {
    transform: none;
  }
}
.fade-up {
  animation: rise 1s var(--ease) both;
  animation-delay: calc(0.45s + var(--d, 0) * 0.12s + var(--intro));
}
.d-1 {
  --d: 1;
}
.d-2 {
  --d: 2;
}
.d-3 {
  --d: 3;
}
.d-4 {
  --d: 4;
}

/* ---------- Laufband ---------- */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
}
.marquee-view {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track {
  animation-play-state: paused;
}
.marquee-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -22px;
}
@keyframes marquee {
  to {
    transform: translate3d(-100%, 0, 0);
  }
}
.marquee li {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: 20px 0 20px clamp(20px, 3vw, 44px);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  white-space: nowrap;
}
.marquee li.is-fact {
  font-style: italic;
  color: var(--muted);
}
.marquee a {
  text-decoration: none;
}
.marquee .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-ink);
}

/* ---------- Produktkarten ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 3.4vw, 52px) clamp(14px, 2vw, 28px);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card .media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--stone);
}
/* Das Foto neigt sich in seinem Rahmen zur Maus (--rx/--ry setzt das Skript).
   Bewusst nur das Bild: bekäme der Rahmen ein transform, lägen die Knöpfe
   darin unter dem Karten-Link und wären nicht mehr klickbar. */
.product-card .media img,
.product-card .media .ph {
  transform: perspective(900px) rotateX(calc(var(--ry, 0) * -8deg))
    rotateY(calc(var(--rx, 0) * 8deg)) scale(var(--zoom, 1.05));
  transition: transform 0.9s var(--ease);
}
.product-card:hover .media img {
  --zoom: 1.12;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
}
.badge-sale {
  background: var(--accent);
  color: var(--on-accent);
}
.wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.5s var(--ease);
}
.product-card .wish {
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(16, 24, 19, 0.55));
}
.product-card .wish:hover {
  color: var(--ink);
  filter: none;
}
.product-card:hover .wish,
.wish:focus-visible,
.wish[aria-pressed='true'] {
  opacity: 1;
}
.wish .icon {
  width: 19px;
  height: 19px;
}
.wish[aria-pressed='true'] svg {
  fill: currentColor;
  animation: heart 0.55s var(--ease);
}
@keyframes heart {
  40% {
    transform: scale(1.35);
  }
}
.quick-add {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: auto;
  min-height: 46px;
  border: 0;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(var(--press, 1));
  transition:
    transform 0.5s var(--ease),
    opacity 0.35s,
    color 0s 0.12s;
}
.product-card:hover .quick-add,
.product-card:focus-within .quick-add,
.quick-add.is-added {
  opacity: 1;
  transform: scale(var(--press, 1));
}
.quick-add.is-added,
.btn.is-added {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
}
.is-added .icon {
  animation: pop 0.5s var(--ease);
}
@keyframes pop {
  from {
    transform: scale(0.3) rotate(-30deg);
  }
}
.product-card .info {
  display: grid;
  gap: 2px;
  padding-top: 14px;
}
.product-card .cat {
  font-size: 0.8rem;
  color: var(--muted);
}
.product-card h3 {
  margin: 0;
  font-size: 1.3rem;
}
.product-card h3 a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  background-size: 0 1px;
}
.product-card:hover h3 a {
  color: var(--ink);
  background-size: 100% 1px;
}
.product-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card .price-block {
  margin-top: 4px;
}
.product-card .price-legal a {
  position: relative;
  z-index: 2;
}
.price-block {
  display: grid;
  gap: 2px;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.price {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-sale {
  color: var(--accent-ink);
}
.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-legal,
.price-base,
.price-lowest {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.price-legal a {
  color: inherit;
}

/* Startseite: ein großes Produkt, vier kleine */
@media (min-width: 1081px) {
  .product-grid.is-featured .product-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .product-grid.is-featured .product-card:first-child .media {
    flex: 1;
    aspect-ratio: auto;
    min-height: 0;
  }
  .product-grid.is-featured .product-card:first-child h3 {
    font-size: 1.9rem;
  }
}

/* ---------- Kategorien: Namensliste mit wechselndem Bild ---------- */
.cat-index {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}
.cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.cat-list li {
  border-bottom: 1px solid var(--line);
}
.cat-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
  padding: clamp(20px, 2.6vw, 34px) 0;
  text-decoration: none;
  transition:
    opacity 0.4s,
    transform 0.6s var(--ease);
}
.cat-row:hover {
  color: var(--ink);
}
.cat-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.cat-text {
  grid-column: 1;
  font-size: 0.95rem;
  color: var(--muted);
}
.cat-row .icon {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 28px;
  height: 28px;
  color: var(--accent-ink);
  opacity: 0;
  transform: translateX(-16px);
  transition:
    opacity 0.4s,
    transform 0.6s var(--ease);
}
.cat-thumb {
  display: none;
}
.cat-stage {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--stone);
}
.cat-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 0.7s,
    transform 1.4s var(--ease);
}
.cat-pane.is-active {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (min-width: 901px) {
  .cat-list:hover .cat-row,
  .cat-list:focus-within .cat-row {
    opacity: 0.4;
  }
  .cat-list .cat-row:hover,
  .cat-list .cat-row:focus-visible {
    opacity: 1;
    transform: translateX(14px);
  }
  .cat-row:hover .icon,
  .cat-row:focus-visible .icon {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Geschichte ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.story-media {
  position: relative;
  margin-bottom: 8%;
}
.story-media .main {
  aspect-ratio: 4 / 5;
}
.story-media .small-wrap {
  --plx: 14%;
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 42%;
}
.story-media .small {
  aspect-ratio: 1;
  rotate: 5deg;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.story-text p {
  color: var(--ink-2);
  max-width: 60ch;
}
.story-text .link-arrow {
  margin-top: 12px;
}

/* ---------- Bildband mit Zitat ---------- */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(80dvh, 720px);
  padding: 80px var(--gutter);
  overflow: hidden;
  color: #f4f5f8;
  text-align: center;
  isolation: isolate;
}
.band-bg {
  --plx: 8%;
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
}
.band blockquote {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.band cite {
  display: block;
  margin-top: 26px;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
}

/* Scroll-Parallax ohne Skript: läuft im Browser-Compositor.
   Browser ohne animation-timeline zeigen das Bild einfach ruhig. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-parallax] {
      animation: plx linear both;
      animation-timeline: view();
    }
    .hero-drift {
      animation: drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    /* Fortschrittslinie unter dem Kopfbereich */
    .scroll-progress {
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
    /* Produkt- und Kategoriebilder wandern in ihrem Rahmen leicht mit */
    .product-card .media img,
    .cat-thumb img,
    .story-media .main img {
      scale: 1.14;
      animation: plx-img linear both;
      animation-timeline: view();
    }
    /* Großes Hero-Bild zoomt beim Wegscrollen sanft heraus */
    .hero-a .hero-frame img {
      animation: zoom-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    /* Fußbereich schiebt sich wie eine Karte von unten herein */
    .site-footer {
      animation: footer-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}
@keyframes plx {
  from {
    transform: translate3d(0, calc(var(--plx, 8%) * -1), 0);
  }
  to {
    transform: translate3d(0, var(--plx, 8%), 0);
  }
}
@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes plx-img {
  from {
    translate: 0 -5%;
  }
  to {
    translate: 0 5%;
  }
}
@keyframes zoom-out {
  from {
    scale: 1.18;
  }
  to {
    scale: 1;
  }
}
@keyframes footer-in {
  from {
    scale: 0.92;
    translate: 0 60px;
  }
}
@keyframes drift {
  to {
    transform: translate3d(0, var(--drift, -60px), 0);
  }
}

/* ---------- Service-Leiste ---------- */
.service-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.service-row > div {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.service-row .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  color: var(--accent-ink);
  stroke-width: 1.4;
  transition: transform 0.6s var(--ease);
}
.service-row.reveal.in > div > .icon,
.info-card.reveal.in > .icon {
  animation: pop 0.8s var(--ease) backwards;
  animation-delay: calc(0.25s + var(--i, 0) * 0.08s + var(--d, 0) * 0.1s);
}
.service-row > div:hover .icon {
  transform: translateY(-4px) rotate(-6deg);
}
.service-row h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
}
.service-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ---------- Newsletter ---------- */
.newsletter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding: clamp(28px, 5vw, 76px);
  border-radius: var(--r);
  background: var(--accent-soft);
}
.newsletter-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.newsletter-box::before,
.newsletter-box::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  animation: float-b 9s ease-in-out infinite alternate;
}
.newsletter-box::before {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -120px;
}
.newsletter-box::after {
  width: 160px;
  height: 160px;
  right: 6%;
  top: -70px;
  animation-name: float-a;
  animation-duration: 7s;
}
.newsletter-box h2 {
  margin: 0 0 10px;
}
.newsletter-box p {
  margin: 0;
  color: var(--ink-2);
}
.newsletter-box label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
}
.newsletter-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.newsletter-form::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.newsletter-form:focus-within::after {
  transform: none;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 0 14px;
  border: 0;
  background: none;
  font-size: 1.1rem;
  outline: none;
}
.newsletter-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.newsletter-form .btn {
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0 18px;
}
.newsletter-box .form-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(72px, 9vw, 136px);
  border-radius: var(--r) var(--r) 0 0;
  background: var(--night);
  color: var(--on-night);
  font-size: 0.94rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-block: clamp(56px, 7vw, 96px) 56px;
}
.footer-brand .logo,
.footer-brand .logo:hover {
  color: #fff;
}
.footer-brand .logo-text {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
}
.footer-brand p {
  max-width: 34ch;
  margin-top: 16px;
}
.site-footer h2 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--on-night-muted);
}
.site-footer ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li a {
  display: inline-block;
  padding-block: 4px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 3px) / 0 1px;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer li a:hover {
  background-size: 100% 1px;
}
.footer-contact {
  margin-top: 18px !important;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.footer-contact .icon {
  width: 16px;
  height: 16px;
  color: var(--on-night-muted);
}
.site-footer li a.withdraw-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
  background: none;
  color: #fff;
  font-weight: 500;
}
.site-footer li a.withdraw-link:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
/* Widerrufs-Button im Header (§ 356a BGB: auf jeder Seite gut sichtbar) */
.header-withdraw {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}
.header-withdraw:hover {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}
/* Auf dem Handy eigene Zeile unter dem Header, damit Suche und Warenkorb Platz behalten */
.header-withdraw-row {
  display: none;
}
.withdraw-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.5s var(--ease);
}
.withdraw-link:hover .icon {
  transform: rotate(-35deg);
}
.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}
.payments span {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.84rem;
  color: var(--on-night-muted);
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom button {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: var(--z-totop);
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + 16px), 0);
  pointer-events: none;
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease);
}
.to-top.show {
  opacity: 1;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  pointer-events: auto;
}
.to-top:hover .icon {
  transform: translateY(-3px);
}

/* ---------- Mauszeiger-Etikett (nur mit Maus, natürlicher Zeiger bleibt) ---------- */
.cursor-tag {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  color: var(--on-accent);
  font-size: 0.82rem;
  font-weight: 500;
  pointer-events: none;
  will-change: transform;
}
.cursor-tag span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity 0.3s,
    transform 0.5s var(--ease);
}
.cursor-tag.show span {
  opacity: 1;
  transform: none;
}

/* ---------- Cookie-Banner ---------- */
.consent {
  position: fixed;
  left: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: var(--z-consent);
  width: min(440px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
  animation: toast-in 0.6s var(--ease) both;
}
.consent h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
}
.consent p {
  font-size: 0.88rem;
  color: var(--ink-2);
}
.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---------- Unterseiten-Kopf ---------- */
.page-hero {
  padding-block: clamp(36px, 5vw, 80px) clamp(28px, 4vw, 52px);
}
.page-hero .container {
  position: relative;
  padding-bottom: clamp(28px, 4vw, 52px);
}
/* Linie zeichnet sich beim Laden von links nach rechts */
.page-hero .container::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  animation: draw-x 1.4s calc(0.3s + var(--intro)) var(--ease-io) both;
}
@keyframes draw-x {
  from {
    transform: scaleX(0);
  }
}
.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}
.page-hero .lead {
  margin: 0;
}
.page-hero .narrow {
  margin-inline: auto;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.5;
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.pdp-top {
  padding-top: 32px;
}
.page-banner {
  position: relative;
  border-radius: 0;
  height: clamp(240px, 36vw, 480px);
  margin-bottom: clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.page-banner .banner-inner {
  --plx: 7%;
  position: absolute;
  inset: -10% 0;
}

/* ---------- Shop ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 36px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  overflow: hidden;
  isolation: isolate;
  transition: color 0s 0.12s;
}
.chip::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.chip:hover {
  color: var(--ink);
}
.chip:active {
  transform: scale(0.97);
}
.chip[aria-pressed='true'] {
  color: var(--bg);
  border-color: var(--ink);
}
.chip[aria-pressed='true']::before {
  transform: none;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.select {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select select {
  appearance: none;
  min-height: 44px;
  padding: 8px 32px 8px 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.select option {
  background: var(--paper);
  color: var(--ink);
}
.select .icon {
  position: absolute;
  right: 4px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  transition: transform 0.4s var(--ease);
}
.select:focus-within .icon {
  transform: rotate(180deg);
}
.result-count {
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.product-grid.animate .product-card {
  animation: card-in 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
.empty-state {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Produktdetail ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
}
.gallery.single {
  grid-template-columns: minmax(0, 1fr);
}
.gallery-main {
  grid-column: -2;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--stone);
  cursor: zoom-in;
}
.gallery-main img {
  transition: transform 0.3s ease-out;
}
.gallery-main.zoom img {
  transform: scale(1.8);
}
.gallery-main.swap img {
  animation: fade-in 0.5s var(--ease);
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
}
.gallery-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 10px;
}
.gallery-thumbs button {
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: none;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.25s;
}
.gallery-thumbs button:hover,
.gallery-thumbs button[aria-pressed='true'] {
  opacity: 1;
  border-color: var(--ink);
}
.pdp-info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.pdp-info > * {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(0.15s + var(--n, 0) * 0.07s + var(--intro));
}
.pdp-info > :nth-child(2) {
  --n: 1;
}
.pdp-info > :nth-child(3) {
  --n: 2;
}
.pdp-info > :nth-child(4) {
  --n: 3;
}
.pdp-info > :nth-child(5) {
  --n: 4;
}
.pdp-info > :nth-child(6) {
  --n: 5;
}
.pdp-info > :nth-child(n + 7) {
  --n: 6;
}
.pdp-info .eyebrow {
  display: block;
}
.pdp-info h1 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}
.pdp-info .price {
  font-size: 1.4rem;
}
.pdp-info .short {
  margin: 22px 0;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.buy-row {
  display: flex;
  gap: 10px;
  margin: 26px 0 18px;
}
.buy-row .btn {
  flex: 1;
}
.buy-row .wish {
  position: relative;
  top: auto;
  right: auto;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  opacity: 1;
}
.buy-row .wish::before {
  border-radius: 50%;
}
.buy-row .wish[aria-pressed='true'] {
  color: var(--accent-ink);
}
.delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--success);
}
.delivery .icon {
  width: 16px;
  height: 16px;
}
.pdp-perks {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  font-size: 0.9rem;
}
.pdp-perks div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdp-perks .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-ink);
}
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.accordion summary:hover {
  color: var(--accent-ink);
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease);
}
.accordion details[open] summary .icon {
  transform: rotate(135deg);
}
.accordion .acc-body {
  padding-bottom: 20px;
  color: var(--ink-2);
  font-size: 0.96rem;
  animation: rise-sm 0.5s var(--ease);
}
.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin: 0;
}
.spec-list dt {
  font-weight: 600;
}
.spec-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---------- Warenkorb & Kasse ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.panel {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
.panel-center {
  padding: 64px 24px;
  text-align: center;
  animation: rise 0.7s var(--ease) both;
}
.panel-center .lead {
  margin-inline: auto;
}
.summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.summary h2 {
  font-size: 1.9rem;
}
.summary .line-item {
  grid-template-columns: 56px 1fr auto;
  padding: 12px 0;
}
.summary .line-item .thumb {
  width: 56px;
  height: 70px;
}
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.secure-note .icon {
  width: 14px;
  height: 14px;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 0.88rem;
  font-weight: 500;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.steps li + li::after {
  order: -1;
  content: '';
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}
.steps li[aria-current='step'] {
  color: var(--ink);
}
.steps li[aria-current='step']::before {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  animation: pop-in 0.5s var(--ease);
}
@keyframes pop-in {
  from {
    transform: scale(0.5);
  }
}
.steps li.done::before {
  background: var(--accent-soft);
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

/* ---------- Formulare ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
fieldset {
  min-width: 0;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
}
fieldset.last {
  margin-bottom: 0;
}
legend {
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
}
.field {
  display: grid;
  align-content: start;
}
.field label {
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 500;
}
.field:focus-within label {
  color: var(--accent-ink);
}
.req {
  color: var(--accent-ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input[type='file'] {
  padding: 9px 10px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field textarea.short-area {
  min-height: 90px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 1px;
  border-color: var(--accent-ink);
}
[aria-invalid='true'] {
  border-color: var(--error) !important;
}
.field-hint {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}
p.field-hint {
  margin: 0;
}
.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--error);
  animation: rise-sm 0.35s var(--ease);
}
.field-error .icon {
  width: 15px;
  height: 15px;
}
.shake {
  animation: shake 0.4s var(--ease);
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(4px);
  }
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.radio-cards {
  display: grid;
  gap: 8px;
}
.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
}
.radio-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent-ink);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 0.25s,
    transform 0.4s var(--ease);
}
.radio-card:has(input:checked)::before {
  opacity: 1;
  transform: none;
}
.radio-card > * {
  position: relative;
}
.radio-card:active {
  transform: scale(0.995);
}
.radio-card input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}
.radio-card small {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  animation: rise 0.6s var(--ease);
}
.form-error {
  margin: 16px 0 0;
  color: var(--error);
}
.form-success .icon {
  width: 26px;
  height: 26px;
  color: var(--success);
  animation: pop 0.6s 0.1s var(--ease) both;
}
.form-success p:last-child {
  margin: 0;
}
.big-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--success);
  animation: pop 0.7s 0.15s var(--ease) both;
}
.order-legal {
  margin: 18px 0;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.demo-note,
.legal-todo {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.9rem;
}
.demo-note .icon,
.legal-todo .icon {
  margin-top: 3px;
  color: var(--accent-ink);
}
.demo-note p,
.legal-todo p:last-child {
  margin: 0;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.h-sm {
  font-size: 1.8rem;
}
.text-link {
  font-size: 0.92rem;
}

/* ---------- Text- und Rechtsseiten ---------- */
.prose {
  max-width: 720px;
}
.prose h2 {
  margin-top: 1.8em;
  font-size: 1.9rem;
}
.prose h3 {
  margin-top: 1.4em;
  font-size: 1.3rem;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose .panel p:last-child {
  margin: 0;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin: 0 0 56px;
}
.info-card {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.info-card .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  color: var(--accent-ink);
  stroke-width: 1.4;
  transition: transform 0.6s var(--ease);
}
.info-card:hover .icon {
  transform: translateY(-4px) rotate(-6deg);
}
.info-card h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.info-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
.table th,
.table td {
  padding: 14px 12px 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

.values-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
}
.value-card {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.value-card .num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-ink);
}
.value-card h3 {
  font-size: 1.6rem;
}
.value-card:first-child h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}
.value-card p {
  margin: 0;
  color: var(--ink-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.contact-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.contact-list .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-ink);
}
.contact-list small {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.auth-grid .panel h2 {
  font-size: 2rem;
}
.auth-grid form {
  display: grid;
  gap: 16px;
}

/* ---------- Scroll-Animationen ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.1s + var(--intro));
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
/* Raster: nicht der Kasten erscheint, sondern jede Karte einzeln nacheinander */
.js .product-grid.reveal,
.js .cat-index.reveal,
.js .service-row.reveal {
  opacity: 1;
  transform: none;
}
.js .product-grid.reveal .product-card,
.js .cat-index.reveal .cat-list li,
.js .cat-index.reveal .cat-stage,
.js .service-row.reveal > div {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.js .product-grid.reveal.in .product-card,
.js .cat-index.reveal.in .cat-list li,
.js .cat-index.reveal.in .cat-stage,
.js .service-row.reveal.in > div {
  opacity: 1;
  transform: none;
}
.service-row > div:nth-child(2),
.cat-list li:nth-child(2) {
  --i: 1;
}
.service-row > div:nth-child(3),
.cat-list li:nth-child(3) {
  --i: 2;
}
.service-row > div:nth-child(4),
.cat-list li:nth-child(4) {
  --i: 3;
}

/* ---------- Ladebildschirm ----------
   Dunkelgrüner Vorhang mit Schriftzug und Ladebalken. Fährt nach knapp
   zwei Sekunden nach oben weg. Reine CSS-Animation, deshalb auch ohne Skript
   und per Doppelklick sicher. Die Unterkante ist rund (verspielt). */
.loader {
  position: fixed;
  inset: 0 0 -16vh;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  padding-bottom: 16vh;
  border-radius: 0 0 50% 50% / 0 0 16vh 16vh;
  background: var(--night);
  color: #fff;
  pointer-events: none;
  animation: loader-out 1.1s 1.9s var(--ease-io) forwards;
}
.no-loader .loader {
  display: none;
}
@keyframes loader-out {
  to {
    transform: translate3d(0, -102%, 0);
    visibility: hidden;
  }
}
.loader-inner {
  display: grid;
  justify-items: center;
  gap: 26px;
  animation: loader-inner-out 0.6s 1.75s var(--ease) forwards;
}
@keyframes loader-inner-out {
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}
.loader-word {
  display: block;
  overflow: hidden;
  padding-block: 0.1em;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.loader-word span {
  display: block;
  animation: word-in 1s 0.15s var(--ease) backwards;
}
@keyframes word-in {
  from {
    transform: translateY(110%) rotate(4deg);
  }
}
.loader-bar {
  display: block;
  width: min(220px, 50vw);
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  transform-origin: left;
  animation: loader-fill 1.5s 0.25s var(--ease-io) backwards;
}
@keyframes loader-fill {
  from {
    transform: scaleX(0);
  }
}
.has-loader {
  --intro: 2.1s;
}
/* Kopfbereich fällt nach dem Ladebildschirm von oben herein */
.has-loader .announce,
.has-loader .header-inner > * {
  animation: drop-in 0.9s var(--ease) backwards;
  animation-delay: calc(var(--intro) + var(--n, 0) * 0.08s);
}
.has-loader .header-inner > :nth-child(2) {
  --n: 1;
}
.has-loader .header-inner > :nth-child(3) {
  --n: 2;
}
@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
}

/* Fortschrittslinie: zeigt, wie weit die Seite gescrollt ist */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Seitenübergang ---------- */
main {
  animation: page-in 0.7s var(--intro) var(--ease) backwards;
}
@keyframes page-in {
  from {
    opacity: 0;
  }
}
main,
.site-footer {
  transition:
    opacity 0.22s,
    transform 0.3s var(--ease);
}
.is-leaving main,
.is-leaving .site-footer {
  opacity: 0;
  transform: translateY(-10px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-grid.is-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid.is-featured .product-card:first-child {
    grid-column: 1 / -1;
  }
  .product-grid.is-featured .product-card:first-child .media {
    aspect-ratio: 16 / 11;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .service-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
    margin-left: -10px;
  }
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
  }
  .header-actions .header-withdraw {
    display: none;
  }
  .header-withdraw-row {
    display: flex;
    justify-content: center;
    padding: 0 var(--gutter) 10px;
  }
  .header-withdraw-row .header-withdraw {
    margin: 0;
    padding: 6px 14px;
    font-size: 0.78rem;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 36px;
    padding-top: 36px;
  }
  .hero-stage {
    min-height: 0;
    aspect-ratio: 1 / 1.02;
  }
  .hero-a {
    width: 66%;
  }
  .hero-b {
    left: 0;
    width: 42%;
  }
  .hero-c {
    left: 6%;
    width: 24%;
  }
  .story,
  .pdp,
  .contact-grid,
  .newsletter-box,
  .cat-index {
    grid-template-columns: 1fr;
  }
  .newsletter-box {
    align-items: start;
  }
  .story-media {
    margin-right: 6%;
  }
  .pdp-info {
    position: static;
  }
  /* Kategorien: statt Wechselbild bekommt jede Zeile ihr eigenes Bild */
  .cat-stage {
    display: none;
  }
  .cat-list {
    display: grid;
    gap: 28px;
    border-top: 0;
  }
  .cat-list li {
    border-bottom: 0;
  }
  .cat-row {
    padding: 0;
  }
  .cat-thumb {
    display: block;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--stone);
  }
  .cat-row .icon {
    grid-row: 2 / span 2;
    opacity: 1;
    transform: none;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card h3 {
    font-size: 1.15rem;
  }
  .auth-grid,
  .form-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .quick-add {
    left: 6px;
    right: 6px;
    bottom: 6px;
    opacity: 1;
    transform: scale(var(--press, 1));
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.84rem;
  }
  .wish {
    opacity: 1;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery-main {
    grid-column: 1;
  }
  .gallery-thumbs {
    grid-row: 2;
    grid-template-columns: repeat(4, 1fr);
  }
  .buy-row {
    flex-wrap: wrap;
  }
  .buy-row .btn {
    flex: 1 1 100%;
    order: 3;
  }
  .hide-sm {
    display: none;
  }
  .steps li span {
    display: none;
  }
  .steps li[aria-current='step'] span {
    display: inline;
  }
  .footer-top {
    padding-block: 52px 36px;
  }
  .consent {
    left: 12px;
    right: 12px;
    width: auto;
  }
  .line-item {
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
  }
  .line-item .thumb {
    width: 72px;
    height: 90px;
  }
  .newsletter-form {
    flex-wrap: wrap;
    border-bottom: 0;
  }
  .newsletter-form::after {
    display: none;
  }
  .newsletter-form input {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    margin-bottom: 8px;
  }
  .newsletter-form .btn {
    width: 100%;
    min-height: 50px;
    margin: 4px 0 0;
  }
}

@media (max-width: 520px) {
  .service-row {
    grid-template-columns: 1fr;
  }
  .header-actions .account-link {
    display: none;
  }
  .consent-actions {
    grid-template-columns: 1fr;
  }
  .announce p {
    font-size: 0.74rem;
  }
  .logo-text {
    font-size: 1.6rem;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- Weniger Bewegung ----------
   Wer im Betriebssystem „Bewegung reduzieren“ einstellt, bekommt eine ruhige
   Seite: keine Animationen, kein Parallax, kein Laufband, kein Magnet-Effekt. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .product-grid.reveal .product-card,
  .js .cat-index.reveal .cat-list li,
  .js .cat-index.reveal .cat-stage,
  .js .service-row.reveal > div,
  .js .reveal-img > .ri-mask,
  .js .reveal-img > .ri-mask > *,
  .split .word > span,
  .split-scroll .word > span,
  .hero-layer,
  .hero-drift,
  [data-parallax] {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn,
  .icon-btn {
    --mx: 0px !important;
    --my: 0px !important;
  }
  .marquee-view {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
  }
  .marquee-track[aria-hidden='true'],
  .marquee-toggle,
  .loader,
  .scroll-progress,
  .cursor-tag {
    display: none;
  }
}
