/* Ein Papiergrund, eine Schriftwelt, ein durchgehender Wald. */
:root {
  --paper: #f6f5f1;
  --ink: #292c29;
  --green: #292c29;
  --green-light: #e8e7e2;
  --muted: #686b65;
  --line: #292c2924;
  --gold: #77776c;
}

body { background: var(--paper); }
main, .site-footer { position: relative; }
.preview-bar {
  background: transparent;
  color: var(--muted);
  min-height: 33px;
}
.preview-bar button { border-left-color: var(--line); }
.site-header {
  background: #f6f5f1e8;
  border-bottom-color: transparent;
  transition: background .4s, border-color .4s;
}
.site-header.is-scrolled { background: #f6f5f1f2; border-bottom-color: #292c2910; }
.button { border-radius: 2px; transition: background .25s, color .25s, transform .3s; }
.button:hover { background: #41443e; }
.button-outline { border-color: #292c2940; }
.button-outline:hover { background: #292c2909; }
.button-light { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-light:hover { background: #41443e; }
.text-button { color: var(--ink); }
.eyebrow { color: #5d625b; font-weight: 500; }
.price, .detail-price { color: var(--ink); }
.status, .status.made, .status.unavailable { color: var(--muted); }
.status.unavailable { color: #83857e; }
.detail-status, .detail-status.made, .detail-status.unavailable {
  background: transparent;
  border: 1px solid #292c292e;
  color: var(--muted);
}
.image-chip { background: #f6f5f1eb; color: var(--ink); }

/* Das Panorama läuft oben und unten in dieselbe Grundfläche aus. */
.forest-scene {
  position: relative;
  background: url('assets/waldkante.webp') center bottom / cover no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.forest-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
}
.forest-stage-landscape {
  position: absolute;
  inset: auto -2% 24px;
  height: clamp(370px, 32vw, 490px);
  transform: translate3d(0, var(--forest-shift, 0px), 0) scale(1.025);
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 68%, transparent 95%);
  mask-image: linear-gradient(transparent, #000 20%, #000 68%, transparent 95%);
  will-change: transform;
}
.forest-stage-copy {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 255px;
  text-align: center;
}
.forest-stage h1 {
  margin: 19px 0 22px;
  font-size: clamp(4.3rem, 6.6vw, 6rem);
  line-height: 1.04;
}
.forest-stage h1 em { color: var(--ink); }
.forest-stage .intro {
  max-width: 580px;
  margin: auto;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #5d625b;
}
.forest-stage .hero-buttons { justify-content: center; margin-top: 27px; }
.forest-stage .text-button { background: transparent; box-shadow: none; }
.woodland-mist {
  position: absolute;
  z-index: 1;
  inset: auto -12% 25px;
  height: 230px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 24% 58%, #f6f5f1a8 0, #f6f5f170 27%, transparent 57%),
    radial-gradient(ellipse at 77% 48%, #f6f5f1b8 0, #f6f5f155 30%, transparent 61%);
  filter: blur(10px);
  animation: woodland-mist 19s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.scene-toggle {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1224px) / 2));
  bottom: 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #292c2933;
  border-radius: 50%;
  color: var(--ink);
  background: #f6f5f1bf;
  backdrop-filter: blur(7px);
}
.scene-toggle:hover { background: var(--paper); }
.scene-toggle svg { width: 17px; height: 17px; }
.intro-strip {
  border: 0;
  padding-top: 3px;
  padding-bottom: 15px;
  color: #73766f;
}
.intro-strip span+span { border-color: #292c2920; }
.forest-divider { display: none; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section.wrap { padding-left: 40px; padding-right: 40px; }
.browse-section { border: 0; }
.home-featured { padding-top: 62px; }

/* Produktansichten und Motivwelten sitzen auf demselben Papier. */
.product-image, .product-image.artwork, .detail-image-button,
.category-card, .category-card.christmas, .manufaktur-picture {
  background: transparent;
  border-radius: 0;
}
.product-image img, .detail-image-button img, .manufaktur-picture img {
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.product-image.artwork img { -webkit-mask-image: none; mask-image: none; }
.product-meta { margin-top: 18px; }
.product-title { color: var(--ink); }
.browse-tabs { padding: 0; border: 0; gap: 22px; border-radius: 0; }
.browse-tabs button {
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 8px 1px;
  color: var(--muted);
  border-radius: 0;
}
.browse-tabs button[aria-selected=true] {
  background: transparent;
  color: var(--ink);
  border-bottom-color: currentColor;
}
.category-card, .theme-grid .category-card {
  aspect-ratio: auto;
  overflow: visible;
}
.category-card:after { display: none; }
.category-card img {
  height: auto;
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.category-card.forest img { filter: none; }
.category-card.christmas img {
  background: var(--ink);
  padding: 22px;
  object-fit: contain;
  mix-blend-mode: normal;
}
.category-name, .theme-grid .category-name {
  position: static;
  color: var(--ink);
  padding: 18px 0 0;
}
.category-name h3 { font-size: 1.75rem; }
.category-name p { font-size: .9375rem; color: var(--muted); opacity: 1; }
.theme-grid h3 { font-size: 2rem; }
.theme-grid .category-card img { aspect-ratio: 1.4 / 1; }

/* Keine abgesetzte Farbfläche für individuelle Anfertigungen. */
.custom-banner {
  isolation: isolate;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.custom-banner:after {
  inset: auto -5% 20px;
  width: 110%;
  height: 320px;
  background: url('assets/waldkante.webp') center bottom / cover no-repeat;
  filter: none;
  mix-blend-mode: multiply;
  opacity: .26;
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 60%, transparent 95%);
  mask-image: linear-gradient(transparent, #000 32%, #000 60%, transparent 95%);
}
.custom-inner {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 130px;
  gap: 80px;
}
.custom-inner .eyebrow { color: #5d625b; }
.custom-inner p { color: var(--muted); }
.custom-inner h2 { font-size: clamp(2.8rem, 4.4vw, 4.2rem); }

.page-intro { position: relative; max-width: none; isolation: isolate; padding-bottom: 40px; }
.page-intro:before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -40px;
  bottom: -40px;
  width: min(67vw, 760px);
  height: 225px;
  background: url('assets/waldkante.webp') right bottom / auto 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: .28;
  -webkit-mask-image: radial-gradient(ellipse at 100% 50%, #000 5%, transparent 75%);
  mask-image: radial-gradient(ellipse at 100% 50%, #000 5%, transparent 75%);
}
.page-intro p:not(.eyebrow) { max-width: 580px; background: none; }
.catalog-tools { border-top: 0; }
.filter-tab.active { background: var(--ink); border-color: var(--ink); }
.filter-tab:hover:not(.active) { background: #292c2909; border-color: #292c2940; }
.catalog-search input, .select-shell select, .variant-field select {
  background: #f6f5f1a3;
  color: var(--ink);
  border-color: var(--line);
}
.contact-panel { background: transparent; border: 0; padding: 42px 0; }
.related { padding-top: 95px; }
.related:before { display: none; }
.site-footer { background: transparent; margin-top: 0; padding-top: 28px; }
.footer-forest {
  display: none;
}
.footer-grid { padding-top: 0; }
.footer-bottom { border-color: #292c2918; }
.inquiry-product { background: #292c2908; }
.empty-state { border-color: transparent; }
.menu-dialog, dialog { background: var(--paper); }
.toast { background: var(--ink); }

/* Bewegung bleibt eine Ergänzung und lässt sich jederzeit pausieren. */
html[data-motion=on] .reveal-target {
  transition: opacity .7s ease, transform .85s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
html[data-motion=on] .reveal-target:not(.in-view) {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}
html[data-motion=off] .woodland-mist { animation-play-state: paused; }
html[data-motion=off] .forest-stage-landscape { transform: none; will-change: auto; }
@keyframes woodland-mist {
  0% { transform: translate3d(-28px, 4px, 0) scale(1); opacity: .62; }
  100% { transform: translate3d(48px, -13px, 0) scale(1.08); opacity: 1; }
}

@media (min-width: 1600px) { .forest-stage-copy { padding-bottom: 290px; } }
@media (max-width: 1100px) { .section.wrap { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 800px) {
  .forest-stage-copy { padding-top: 38px; padding-bottom: 240px; }
  .forest-stage h1 { font-size: clamp(3.5rem, 8vw, 5rem); }
  .forest-stage .intro { max-width: 500px; }
  .forest-stage .hero-buttons .text-button { display: inline-block; }
  .page-intro:before { right: -28px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .custom-inner { gap: 38px; padding-top: 72px; padding-bottom: 100px; }
}
@media (max-width: 620px) {
  .preview-bar { padding-top: 4px; padding-bottom: 0; min-height: 27px; }
  .forest-stage-copy { padding-top: 27px; padding-bottom: 225px; }
  .forest-stage h1 { margin: 16px 0 21px; font-size: clamp(3rem, 12.8vw, 4.4rem); line-height: 1.06; }
  .forest-stage .eyebrow { max-width: 340px; margin: auto; }
  .forest-stage .intro { max-width: 390px; font-size: 1.0625rem; line-height: 1.75; }
  .forest-stage .hero-buttons { gap: 18px; margin-top: 25px; }
  .forest-stage .hero-buttons .button { padding-left: 20px; padding-right: 20px; }
  .forest-stage .hero-buttons .text-button { font-size: .9375rem; }
  .forest-stage-landscape { height: 325px; background-size: auto 100%; }
  .forest-stage-landscape:before,
  .forest-stage-landscape:after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 61%;
    background: url('assets/waldkante.webp') left bottom / auto 100% no-repeat;
    -webkit-mask-image: linear-gradient(to right, #000 32%, transparent 100%);
    mask-image: linear-gradient(to right, #000 32%, transparent 100%);
  }
  .forest-stage-landscape:after {
    left: auto;
    right: 0;
    background-position: right bottom;
    -webkit-mask-image: linear-gradient(to left, #000 32%, transparent 100%);
    mask-image: linear-gradient(to left, #000 32%, transparent 100%);
  }
  .woodland-mist { height: 160px; bottom: 23px; opacity: .7; }
  .scene-toggle { right: 20px; bottom: 24px; }
  .intro-strip { padding-top: 0; padding-bottom: 10px; font-size: .875rem; }
  .section, .home-featured { padding-top: 45px; padding-bottom: 45px; }
  .section.wrap { padding-left: 22px; padding-right: 22px; }
  .browse-tabs { width: auto; gap: 25px; }
  .browse-tabs button { padding: 8px 0; }
  .category-name, .theme-grid .category-name { padding-top: 13px; }
  .category-name h3 { font-size: 1.45rem; }
  .category-name p { font-size: .875rem; }
  .theme-grid h3 { font-size: 1.9rem; }
  .custom-inner { padding-top: 60px; padding-bottom: 95px; gap: 28px; }
  .custom-inner h2 { font-size: 3rem; }
  .custom-banner:after { bottom: 15px; height: 300px; opacity: .2; background-size: auto 100%; }
  .page-intro { padding-top: 35px; padding-bottom: 28px; }
  .page-intro:before { right: -22px; width: 68%; height: 190px; opacity: .22; }
  .contact-panel { padding: 30px 0; }
  .related { padding-top: 55px; }
  .footer-forest { height: 160px; opacity: .32; background-size: auto 100%; margin-top: -15px; }
  .footer-grid { padding-top: 0; }
}
@media (max-width: 360px) {
  .forest-stage-copy { padding-bottom: 200px; }
  .forest-stage-landscape { height: 295px; }
  .forest-stage .hero-buttons { gap: 15px; }
  .forest-stage .hero-buttons .button { padding-left: 15px; padding-right: 15px; }
  .forest-stage .hero-buttons .text-button { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .woodland-mist { animation: none !important; }
  .forest-stage-landscape { transform: none !important; will-change: auto; }
  .reveal-target { opacity: 1 !important; transform: none !important; transition: none !important; }
}
