/* The Wacky Witches – "Hell & Holz" */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f3ece0;
  --bg-deep: #e9dfcc;
  --paper: #fbf7f0;
  --ink: #2b2018;
  --ink-soft: #5c4939;
  --ink-faint: #8a7461;
  --line: rgba(60, 40, 22, 0.14);
  --accent: #b2291e;
  --accent-deep: #8c1f16;
  --gold: #b3883f;
  --workshop: #2b2219;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .08), 0 6px 18px -8px rgba(60, 40, 20, .22);
  --shadow-lg: 0 40px 70px -36px rgba(60, 40, 20, .5);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1240px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lock, html.lock body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 12px var(--gutter);
  transition: background .4s, box-shadow .4s, transform .7s var(--ease-out), opacity .7s;
}
.site-header.scrolled { background: rgba(243, 236, 224, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.intro-loading .site-header, .intro-playing .site-header { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.brand img { width: 44px; height: 44px; }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(75, 44, 24, .08); color: var(--ink); }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); text-decoration: none; transition: background .2s; }
.cart-link:hover { background: rgba(75, 44, 24, .08); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 35; background: var(--bg); padding: 96px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-family: var(--font-display); font-weight: 600; font-size: 34px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 880px) {
  .main-nav { display: none; }
  .cart-link { margin-left: auto; }
  .nav-toggle { display: flex; }
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15.5px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: rgba(43, 32, 24, .28); color: var(--ink); background: rgba(251, 247, 240, .5); }
.btn-ghost:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--workshop);
  transition: background-color 1.8s ease;
}
.intro-outro .hero, .intro-done .hero, .no-webgl .hero { background: var(--bg); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero-fallback { display: none; position: absolute; inset: 0; background: url("../img/laser/engraved.jpg") 72% 50% / cover; }
.no-webgl .hero-fallback { display: block; }
.no-webgl .hero-canvas { display: none; }

.intro-loader {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0;
  display: flex; align-items: center; gap: 12px;
  color: #eadbc4; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.intro-loading .intro-loader { opacity: .9; }
.intro-loader .dot { width: 8px; height: 8px; border-radius: 50%; background: #9a86ff; box-shadow: 0 0 14px 4px rgba(139, 116, 255, .75); animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.intro-skip {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 3;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(243, 236, 224, .28); background: rgba(20, 14, 10, .35); color: rgba(243, 236, 224, .82);
  font: 500 14px var(--font-body);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .4s, background .2s;
}
.intro-skip:hover { background: rgba(20, 14, 10, .6); }
.intro-playing .intro-skip { opacity: 1; pointer-events: auto; }

.hero-copy {
  position: absolute; z-index: 2; left: var(--gutter); top: 50%;
  width: min(34rem, 40vw);
  transform: translateY(-44%); opacity: 0; pointer-events: none;
}
.intro-outro .hero-copy, .intro-done .hero-copy, .no-webgl .hero-copy {
  opacity: 1; transform: translateY(-50%); pointer-events: auto;
  transition: opacity 1.1s .55s, transform 1.4s .55s var(--ease-out);
}
.hero h1 { font-size: clamp(46px, 6.6vw, 104px); line-height: .96; margin: .22em 0 .32em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { margin: 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-soft); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.next-fair { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 14.5px; text-decoration: none; }
.next-fair strong { color: var(--ink); }
.next-fair:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

.replay, .scroll-hint {
  position: absolute; z-index: 3; bottom: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft); font: 500 14px var(--font-body); text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .8s 1.4s;
}
.replay { right: var(--gutter); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 247, 240, .6); cursor: pointer; }
.replay:hover { color: var(--ink); border-color: rgba(43, 32, 24, .3); }
.replay[hidden] { display: none; }
.scroll-hint { left: 50%; transform: translateX(-50%); flex-direction: column; gap: 2px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.scroll-hint svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.intro-done .replay, .intro-done .scroll-hint { opacity: 1; pointer-events: auto; }

@media (max-aspect-ratio: 19/20) {
  .hero-copy { left: var(--gutter); right: var(--gutter); top: auto; bottom: 78px; width: auto; transform: translateY(18px); }
  .intro-outro .hero-copy, .intro-done .hero-copy, .no-webgl .hero-copy { transform: none; }
  .hero h1 { font-size: clamp(42px, 11.5vw, 68px); margin: .18em 0 .28em; }
  .hero .lead { font-size: 16px; }
  .cta-row { margin-top: 20px; }
  .next-fair { margin-top: 18px; }
  .replay { bottom: auto; top: 74px; padding: 7px 12px; font-size: 13px; }
  .scroll-hint span { display: none; }
  .scroll-hint { bottom: 16px; }
  .no-webgl .hero-fallback { background-position: 50% 12%; background-size: 150% auto; background-repeat: no-repeat; }
}
@media (max-aspect-ratio: 19/20) and (max-height: 700px) {
  .hero .lead { display: none; }
}

/* ------------------------------------------------------------------ Schicht fuer Schicht */
.layers { position: relative; height: 430vh; background: var(--bg); }
.layers-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.layers-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.layers-steps { position: absolute; z-index: 1; left: var(--gutter); top: 0; bottom: 0; width: min(31rem, 38vw); }
.step { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-38%); opacity: 0; transition: opacity .55s, transform .8s var(--ease-out); }
.step.active { opacity: 1; transform: translateY(-50%); }
.step-no { display: block; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 54px; line-height: 1; color: var(--gold); }
.step h2 { font-size: clamp(30px, 3.5vw, 50px); line-height: 1.04; margin: .25em 0 .4em; }
.step p { margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.25vw, 19px); }
.layers-progress { position: absolute; z-index: 1; left: var(--gutter); bottom: 34px; width: 150px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.layers-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.layers-loading::after { content: "3D-Ansicht lädt …"; position: absolute; right: 18%; top: 50%; color: var(--ink-faint); font-size: 14px; }
@media (max-aspect-ratio: 19/20) {
  .layers-steps { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 64px; height: 44%; }
  .step { top: auto; bottom: 0; transform: translateY(14px); }
  .step.active { transform: none; }
  .step-no { font-size: 38px; }
  .step h2 { font-size: clamp(26px, 7.4vw, 36px); }
  .layers-progress { bottom: 26px; }
}

/* ------------------------------------------------------------------ Teaser */
.teasers { padding: clamp(80px, 12vw, 150px) var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; margin: .25em 0 0; }
.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.teaser {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px;
  padding: 28px 24px 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.teaser:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.teaser-icon { font-size: 26px; color: var(--accent); line-height: 1; }
.teaser h3 { margin: 6px 0 0; font-size: 26px; }
.teaser p { margin: 0; color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.teaser-more { font-weight: 600; font-size: 14.5px; color: var(--ink); }
@media (max-width: 1000px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .teaser-grid { grid-template-columns: 1fr; } .teaser { min-height: 0; } }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px 40px; align-items: start;
  padding: 56px var(--gutter) 40px; background: var(--bg-deep); color: var(--ink-soft); font-size: 15px;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand p { margin: 0; line-height: 1.4; }
.footer-brand strong { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.footer-links, .footer-legal { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr; } }

/* ================================================================== Unterseiten */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-faint); }
.small { font-size: 13.5px; }
.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.page-head { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(118px, 15vw, 176px) var(--gutter) clamp(36px, 5vw, 60px); }
.page-head h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1.02; margin: .25em 0 .35em; max-width: 14em; }
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head .lead { max-width: 40em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.section-head .eyebrow { flex-basis: 100%; }
.section-link { margin-left: auto; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.section-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Startseite: fertige Stuecke */
.showcase { padding: clamp(70px, 10vw, 130px) 0 0; }
.showcase .section-head { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto 26px; padding: 0 var(--gutter); }
.showcase .section-head h2 { font-size: clamp(32px, 4vw, 54px); margin: .2em 0 0; }
.showcase-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 300px); gap: 16px; overflow-x: auto; padding: 4px var(--gutter) 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.show-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.show-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease-out), box-shadow .4s; }
.show-card:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.show-card span { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.2; }

/* Galerie: Explosionsansicht */
.explode {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.explode-copy h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; margin: .25em 0 .4em; }
.explode-copy p { color: var(--ink-soft); }
.range { display: grid; gap: 10px; margin: 26px 0 12px; font-weight: 600; font-size: 15px; }
.range input { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; }
.explode-hint { font-size: 14px; color: var(--ink-faint); }
.explode-stage { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.explode-canvas { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.explode-canvas.dragging { cursor: grabbing; }
.explode-canvas:focus-visible { outline-offset: -4px; }
.explode-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-faint); font-size: 14px; }
@media (max-width: 860px) { .explode { grid-template-columns: 1fr; } .explode-stage { order: -1; } }

/* Galerie: Filter + Mauerwerk */
.gallery { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gutter) clamp(70px, 9vw, 120px); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font: 500 14.5px var(--font-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: rgba(43, 32, 24, .3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.masonry { columns: 3 280px; column-gap: 18px; }
.art-card {
  position: relative; display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; break-inside: avoid; cursor: zoom-in; background: var(--bg-deep); box-shadow: var(--shadow-sm); text-align: left;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.art-card img { width: 100%; height: auto; transition: transform .8s var(--ease-out); }
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.art-card:hover img { transform: scale(1.03); }
.art-caption {
  position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(28, 18, 10, .72), rgba(28, 18, 10, 0)); color: #fbf7f0; font-size: 13px;
}
.art-caption strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.art-caption span { opacity: .8; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(251, 247, 240, .92); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.gallery-note { margin-top: 26px; font-size: 14px; color: var(--ink-faint); }

/* Bilder-Dialog */
.lightbox { width: min(1180px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6); }
.lightbox::backdrop { background: rgba(28, 20, 14, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr); max-height: 94vh; }
.lightbox-figure { position: relative; margin: 0; background: #1d1611; display: grid; place-items: center; min-height: min(70vh, 640px); }
.lightbox-figure img { max-width: 100%; max-height: 90vh; object-fit: contain; opacity: 0; transition: opacity .35s; user-select: none; -webkit-user-drag: none; }
.lightbox-figure img.ready { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(251, 247, 240, .9); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(251, 247, 240, .92); color: var(--ink); font-size: 17px; cursor: pointer; }
.lightbox-side { padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.lightbox-side h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: 0 0 6px; }
.lightbox-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.lightbox-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.lightbox-thumbs button[aria-current="true"] { border-color: var(--accent); }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.lightbox-actions [hidden] { display: none; }
@media (max-width: 760px) {
  .lightbox { width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; }
  .lightbox-inner { grid-template-columns: 1fr; max-height: 100vh; overflow-y: auto; }
  .lightbox-figure { min-height: 0; height: 58vh; }
  .lightbox-figure img { max-height: 58vh; }
  .lightbox-side { padding: 22px 20px 30px; }
}

/* Shop */
.shop { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: 100px; }
.product-media { position: relative; display: block; padding: 0; border: 0; background: var(--bg); cursor: zoom-in; }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease-out); }
.product:hover .product-media img { transform: scale(1.03); }
.product-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; flex: 1; }
.product-body h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.facts { margin: 0; font-size: 14px; color: var(--ink-faint); }
.price { margin: 8px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink); }
.stock { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); }
.stock.last { color: var(--accent); font-weight: 600; }
.product-body .btn { margin-top: auto; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-wide { width: 100%; }
.shop-hint { margin: 40px 0 0; padding: 26px 28px; border-radius: var(--radius); background: var(--bg-deep); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.shop-hint h2 { margin: 0; font-size: 24px; flex-basis: 100%; }
.shop-hint p { margin: 0; color: var(--ink-soft); flex: 1 1 320px; }

.cart { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter); scroll-margin-top: 80px; }
.cart-box { max-width: 760px; margin-left: auto; margin-right: auto; padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cart-box > h2 { margin: 0 0 16px; font-size: 32px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto 36px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-line-main { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.cart-line-main .muted { font-size: 13.5px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button[disabled] { opacity: .3; cursor: default; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.remove { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink-faint); cursor: pointer; }
.remove:hover { background: var(--bg); color: var(--accent); }
.cart-sum dl { margin: 18px 0 6px; display: grid; gap: 6px; }
.cart-sum dl div { display: flex; justify-content: space-between; }
.cart-sum dt { color: var(--ink-soft); }
.cart-sum dd { margin: 0; font-weight: 600; }
.cart-sum .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; }
.cart-sum .total dt { color: var(--ink); font-weight: 600; }
.tax-note { font-size: 13px; color: var(--ink-faint); margin: 4px 0 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 18px; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.check.invalid span { color: var(--accent); }
.checkout .small { margin: 10px 0 0; }
.order-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 4px 0 14px; }
.form-msg { margin: 12px 0 0; font-size: 14.5px; color: var(--accent); min-height: 1em; }
.form-msg a { color: inherit; font-weight: 600; }
.cart-done h3 { font-size: 26px; margin: 10px 0 6px; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 56px 1fr 32px; grid-template-areas: "img main remove" "img qty total"; row-gap: 8px; }
  .cart-line img { grid-area: img; width: 56px; height: 56px; }
  .cart-line-main { grid-area: main; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-line .line-total { grid-area: total; justify-self: end; }
  .cart-line .remove { grid-area: remove; }
}

/* Auftragsarbeit */
.variants, .steps-grid, .form-section { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wide-photo { margin: 0; }
.wide-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-sm); }
.wide-photo figcaption { margin-top: 12px; color: var(--ink-faint); font-size: 14.5px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(50px, 7vw, 90px); }
.steps-grid article { padding: 24px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.steps-grid .step-no { font-size: 40px; }
.steps-grid h3 { margin: 10px 0 6px; font-size: 22px; }
.steps-grid p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 960px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }

.form-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); padding-bottom: clamp(70px, 9vw, 120px); }
.form-section.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.form-intro h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin: 0 0 12px; }
.form-intro p { color: var(--ink-soft); }
.small-photo { margin: 24px 0 0; }
.small-photo img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); align-content: start; }
.form h2 { margin: 0 0 6px; font-size: 30px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(43, 32, 24, .2); background: #fffdf9;
  font: 400 16px/1.4 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(178, 41, 30, .15); }
.field.invalid input, .field.invalid textarea { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { justify-self: start; }
@media (max-width: 860px) { .form-section { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Messen */
.fairs, .booth { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.fair-list { display: grid; gap: 12px; max-width: 860px; }
.list-title { font-size: 15px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin: 18px 0 4px; }
.fair { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.fair.past { opacity: .7; background: transparent; }
.fair-date { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 16px; background: var(--ink); color: var(--paper); line-height: 1; }
.fair.past .fair-date { background: var(--bg-deep); color: var(--ink-soft); }
.fair-date .day { font-family: var(--font-display); font-weight: 600; font-size: 30px; }
.fair-date .mon { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.fair-body h3 { margin: 0 0 4px; font-size: 23px; }
.fair-body p { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .fair { grid-template-columns: 60px 1fr; } .fair-date { width: 60px; height: 60px; } .fair .btn { grid-column: 1 / -1; } }
.booth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(70px, 9vw, 120px); }
.booth-photo { margin: 0; }
.booth-photo img { border-radius: 22px; box-shadow: var(--shadow-lg); }
.booth-photo figcaption { margin-top: 12px; color: var(--ink-faint); font-size: 14.5px; }
.booth-copy h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 860px) { .booth { grid-template-columns: 1fr; } }

/* Kontakt */
.contact-grid { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(50px, 7vw, 90px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card.disabled { pointer-events: none; opacity: .7; }
.contact-card h2 { margin: 8px 0 0; font-size: 24px; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }

/* Rechtliches */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(118px, 15vw, 170px) var(--gutter) clamp(70px, 9vw, 120px); }
.legal h1 { font-size: clamp(38px, 5vw, 62px); margin: .2em 0 .5em; }
.legal h2 { font-size: 24px; margin: 1.6em 0 .4em; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.todo { padding: 18px 20px; border-radius: 14px; background: #fff3c4; border: 1px solid #e6cf7a; color: #5a4300; font-size: 15px; }
.todo strong { display: block; margin-bottom: 4px; }
.ph { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #fff3c4; color: #6b5200; font-size: .92em; }
.ph-block { padding: 14px 16px; border-radius: 12px; border: 2px dashed #e6cf7a; color: #6b5200; background: #fffbea; }

/* Vergleichsleiste fuer die Intro-Varianten (nur mit ?variante=...) */
.variant-bar {
  position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(28, 20, 14, .82); color: #f3ece0;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); font-size: 13.5px;
}
.variant-bar .label { padding: 0 10px; opacity: .7; white-space: nowrap; }
.variant-bar a { padding: 8px 14px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 500; white-space: nowrap; }
.variant-bar .short { display: none; }
.variant-bar a:hover { background: rgba(243, 236, 224, .12); }
.variant-bar a[aria-current="page"] { background: #f3ece0; color: #2b2018; }
.compare .intro-skip, .compare .replay, .compare .scroll-hint { bottom: 76px; }
@media (max-width: 560px) {
  .variant-bar { bottom: 12px; }
  .variant-bar .label, .variant-bar .long { display: none; }
  .variant-bar .short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 10.11.2026: ohne Shop – Anfragen-Knopf im Kopf, Kontaktfenster ---------- */
.btn-nav { margin-left: 10px; padding: 9px 18px; font-size: 14.5px; }
@media (max-width: 880px) { .btn-nav { margin-left: auto; padding: 8px 14px; } }
@media (max-width: 380px) { .btn-nav { display: none; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.ok { color: #2f6b2f; }
.contact-dialog { width: min(720px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6); overflow-y: auto; }
.contact-dialog::backdrop { background: rgba(28, 20, 14, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact-dialog .form { border: 0; box-shadow: none; border-radius: 0; padding-top: 30px; }
.contact-dialog .form h2 { padding-right: 44px; font-size: clamp(22px, 3vw, 28px); }
.page-kontakt .form-section { padding-bottom: clamp(40px, 6vw, 70px); }
