/* ============================================================
   Lindens 3D Website 2.0 — Shared Theme (Iter 2)
   Senior-UI-Designer Spec, Awwwards-Niveau
   Brand-Tuned to Logo 2.0 (#0a4848 / #1eb8b5)
   ============================================================ */

:root {
  /* === Lindens Brand Colors (extracted from Logo 2.0) === */
  --primary:        #0a4848;   /* deep teal — L-shape body */
  --primary-deep:   #023637;   /* darkest teal */
  --primary-focus:  #1eb8b5;   /* vibrant turquoise — leaf accent */
  --primary-on-dark:#3dd9d1;
  --primary-soft:   #e8f5f3;
  --primary-glow:   rgba(30,184,181,0.20);

  --accent-warm:    #d4a574;
  --accent-cool:    #1eb8b5;

  /* === Surfaces (Light) === */
  --canvas:           #ffffff;
  --canvas-parchment: #f5f5f7;
  --canvas-cream:     #faf6f0;
  --surface-pearl:    #fafafc;
  --surface-tile-1:   #0a3030;
  --surface-tile-2:   #0c3838;
  --surface-tile-3:   #082828;
  --surface-black:    #051e1e;

  /* === Ink === */
  --ink:           #0a3a36;
  --ink-strong:    #052220;
  --ink-muted-80:  #1a4845;
  --ink-muted-48:  #6b8784;
  --body-muted:    #c5dad7;
  --hairline:      #d8e8e6;

  /* === Shadows === */
  --shadow-card:        0 4px 24px rgba(10,72,72,0.08);
  --shadow-card-hover:  0 16px 40px rgba(10,72,72,0.22), 0 0 0 1px var(--primary-focus);
  --shadow-image:       0 30px 60px rgba(10,48,48,0.18);
  --shadow-cta:         0 8px 24px rgba(30,184,181,0.35);
  --shadow-glow:        0 0 32px rgba(30,184,181,0.4);

  /* === Animation Tokens === */
  --ease-premium:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snappy:   cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* === Typography === */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-eyebrow: 12px;
  --fs-body:    18px;
  --fs-small:   15px;
  --fs-h3:      22px;
  --fs-h2:      32px;
  --fs-h1:      40px;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

@media (min-width: 769px) {
  :root {
    --fs-h3: 28px;
    --fs-h2: 48px;
    --fs-h1: 64px;
  }
}

/* === Phase A7 Dark Mode === */
:root[data-theme="dark"] {
  --canvas:           #051e1e;
  --canvas-parchment: #082828;
  --canvas-cream:     #082828;
  --surface-pearl:    #0a3030;
  --surface-tile-1:   #0a3030;
  --surface-tile-2:   #0c3838;
  --surface-tile-3:   #061818;

  --ink:            #e8f5f3;
  --ink-strong:     #ffffff;
  --ink-muted-80:   #c5dad7;
  --ink-muted-48:   #87a8a4;
  --body-muted:     #c5dad7;
  --hairline:       #1a4845;

  --shadow-card:        0 4px 24px rgba(0,0,0,0.5);
  --shadow-card-hover:  0 16px 40px rgba(0,0,0,0.7), 0 0 0 1px var(--primary-focus);
  --shadow-image:       0 30px 60px rgba(0,0,0,0.6);
  --shadow-cta:         0 8px 24px rgba(30,184,181,0.5);

  /* Dark-mode tweaks for primary use */
  --primary:        #1eb8b5;
}

html { transition: background-color 300ms var(--ease-premium); }
body {
  transition:
    background-color 300ms var(--ease-premium),
    color 300ms var(--ease-premium);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: -0.2px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* === Headlines === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink-strong);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

/* === Eyebrow === */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-focus);
  margin-bottom: 12px;
}

/* === Global Smooth Hovers (300ms premium easing) === */
a, button, .tile, .card, .nav-links a, .cta, [role="button"] {
  transition:
    transform var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-premium),
    background-color var(--duration-base) var(--ease-premium),
    color var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-premium),
    opacity var(--duration-base) var(--ease-premium);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .custom-cursor, .custom-cursor-ring { display: none !important; }
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 769px) {
  .container { padding: 0 40px; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  will-change: transform;
}
.btn-primary {
  background: var(--primary-focus);
  color: var(--primary-deep);
  box-shadow: 0 2px 8px rgba(30,184,181,0.20);
}
.btn-primary:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-cta);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  color: var(--primary-focus);
}
:root[data-theme="dark"] .btn-secondary {
  color: var(--primary-on-dark);
  border-color: var(--primary-on-dark);
}
:root[data-theme="dark"] .btn-secondary:hover {
  background: var(--primary-on-dark);
  color: var(--primary-deep);
}

/* === Top Nav === */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 48, 48, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 184, 181, 0.15);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: white;
}
.nav-logo img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform var(--duration-base) var(--ease-premium);
}
.nav-logo:hover img { transform: scale(1.05) rotate(-2deg); }

.nav-logo .word {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: white;
  display: none;
}
.nav-logo .word-sub {
  display: none;
}
@media (min-width: 900px) {
  .nav-logo .word { display: inline-block; }
  .nav-logo .word-sub {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--primary-on-dark);
    opacity: 0.85;
    margin-top: 2px;
    line-height: 1;
  }
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  opacity: 0.85;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--primary-on-dark);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active {
  color: var(--primary-on-dark);
  opacity: 1;
}
.nav-links a.cta {
  background: var(--primary-focus);
  color: var(--primary-deep);
  opacity: 1;
  margin-left: 8px;
  padding: 10px 18px;
  font-weight: 600;
}
.nav-links a.cta:hover {
  background: white;
  color: var(--primary-deep);
  transform: translateY(-1px);
}

/* Theme-Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--primary-focus);
  color: var(--primary-on-dark);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 400ms var(--ease-premium), opacity 200ms var(--ease-premium);
  position: absolute;
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }

/* Mobile-Burger */
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
}
.nav-burger svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
  .nav-inner { padding: 10px 14px; }
  .nav-logo img { height: 44px; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary-deep);
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid rgba(30,184,181,0.2);
    transform: translateY(-130%);
    transition: transform var(--duration-base) var(--ease-premium);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 16px; }
  .nav-links a.cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .theme-toggle { margin: 8px auto 0; }
  .nav-burger { display: block; }
}

/* === Footer === */
.global-footer {
  background: var(--surface-tile-3);
  color: var(--body-muted);
  padding: 64px 0 32px;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 14px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.footer-brand .word { display: none; } /* logo image carries the wordmark */
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--body-muted); margin: 8px 0 0; }
.footer-tagline {
  display: block;
  font-size: 13px;
  color: var(--primary-on-dark);
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-style: italic;
}
.footer-col h4 {
  font-family: var(--font-sans);
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--body-muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover { color: var(--primary-on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted-48);
}

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 20% 30%, rgba(30,184,181,0.20) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(212,165,116,0.16) 0%, transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(10,72,72,0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-cream) 100%);
}
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(30,184,181,0.30) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(212,165,116,0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(30,184,181,0.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-cream) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* Hero-3D-Stage */
.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 0 auto 28px;
  max-width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-3d-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 30px 60px rgba(10,72,72,0.35));
}
.hero-3d-fallback {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(10,72,72,0.30));
}
@media (max-width: 600px) {
  .hero-3d-stage { height: 240px; max-width: 280px; }
  .hero-3d-fallback { width: 220px; height: 220px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30,184,181,0.10);
  color: var(--primary);
  border: 1px solid var(--primary-focus);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
:root[data-theme="dark"] .hero-badge { color: var(--primary-on-dark); }
.hero h1 {
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--ink-strong) 0%, var(--primary) 50%, var(--primary-focus) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-on-dark) 50%, var(--primary-focus) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tagline {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-muted-80);
  max-width: 720px;
  margin: 0 auto 36px;
}
@media (max-width: 768px) {
  .hero { padding: 40px 0 72px; }
  .hero .tagline { font-size: 18px; }
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* === Hero Stats Row === */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stat {
  text-align: center;
  min-width: 100px;
}
.hero-stat .stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--primary-focus);
  line-height: 1;
}
.hero-stat .stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  margin-top: 6px;
}

/* === Trust-Marquee (with Spool-Icons) === */
.trust-marquee {
  overflow: hidden;
  padding: 28px 0;
  background: var(--canvas-cream);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.trust-marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-x 36s linear infinite;
}
.trust-marquee:hover .trust-marquee-track { animation-play-state: paused; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink-muted-80);
  white-space: nowrap;
  perspective: 800px;
  transition: transform var(--duration-base) var(--ease-premium);
}
.trust-item:hover { transform: rotateY(8deg) scale(1.05); }
.trust-item .stars {
  color: var(--accent-warm);
  letter-spacing: 2px;
}
.trust-item .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary-focus);
  margin: 0 8px;
}
.trust-spool {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary-focus);
  animation: spool-spin 4s linear infinite;
}
@keyframes spool-spin { to { transform: rotate(360deg); } }

/* === Tile-Grid === */
.section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head .sub {
  font-size: 18px;
  color: var(--ink-muted-80);
  line-height: 1.55;
  margin: 0;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  will-change: transform;
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.tile-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--canvas-cream);
}
.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-premium);
}
.tile:hover .tile-image img { transform: scale(1.06); }
.tile-body { padding: 22px 24px 26px; flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }
.tile-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-focus);
}
.tile h3 { font-size: var(--fs-h3); margin: 0; }
.tile-desc { font-size: 15px; color: var(--ink-muted-80); margin: 0; line-height: 1.5; }
.tile-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
}
.tile-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-strong);
}
.tile-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-focus);
}
.tile:hover .tile-cta { color: var(--primary); }
:root[data-theme="dark"] .tile:hover .tile-cta { color: var(--primary-on-dark); }
.tile-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-deep);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  z-index: 1;
}

/* === Reviews Carousel === */
.reviews-section {
  padding: 80px 0;
  background: var(--canvas-cream);
}
.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 769px) {
  .review-card { flex: 0 0 380px; }
}
.review-stars {
  color: var(--accent-warm);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.review-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 20px;
}
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.review-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-strong);
}
.review-place {
  font-size: 13px;
  color: var(--ink-muted-48);
}
.review-product {
  font-size: 12px;
  color: var(--primary-focus);
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* === Werkstatt / Process === */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 600px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--primary-focus);
  margin-bottom: 12px;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { font-size: 15px; color: var(--ink-muted-80); margin: 0; line-height: 1.55; }

/* === Section variants === */
.section.dark {
  background: linear-gradient(180deg, var(--surface-tile-1), var(--surface-tile-3));
  color: var(--body-muted);
}
.section.dark h2 { color: white; }
.section.dark .sub { color: var(--body-muted); }

/* === Form === */
.form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
  display: block;
  margin-bottom: 6px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  outline: none;
}
.form input:focus,
.form textarea:focus {
  border-color: var(--primary-focus);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   Iter 2 — Premium Animation Stack
   ============================================================ */

/* Filament-Spinner Loader */
.filament-loader {
  display: inline-flex;
  width: 48px;
  height: 48px;
  color: var(--primary-focus);
}
.filament-loader svg {
  width: 100%;
  height: 100%;
  animation: spool-spin 1.2s linear infinite;
}

/* Custom Cursor (Desktop only) */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor { cursor: none; }
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor .tile,
  body.has-custom-cursor [role="button"],
  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor label { cursor: none; }

  .custom-cursor,
  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
      width 200ms var(--ease-premium),
      height 200ms var(--ease-premium),
      background-color 200ms var(--ease-premium),
      border-color 200ms var(--ease-premium),
      opacity 200ms var(--ease-premium);
    will-change: transform, top, left;
  }
  .custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-focus);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-glow);
  }
  .custom-cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--primary-focus);
    border-radius: 50%;
    opacity: 0.6;
  }
  body.cursor-hover .custom-cursor {
    width: 0;
    height: 0;
    opacity: 0;
  }
  body.cursor-hover .custom-cursor-ring {
    width: 56px;
    height: 56px;
    background: rgba(30,184,181,0.10);
    border-color: var(--primary-on-dark);
    opacity: 1;
  }
}

/* Page-transition Overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--primary-deep);
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 350ms var(--ease-premium);
}
.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

/* Print-Layer reveal — initial state for GSAP-managed elements */
.reveal-init {
  opacity: 0;
}

/* Magnetic-Button base */
.btn-magnetic {
  will-change: transform;
}

/* === Schema ld+json visual hint (keep zero-impact) === */
script[type="application/ld+json"] { display: none; }

/* ============================================================
   Brand-Image Layer (Iter 3) — Grok-Generated Hero/Story Bilder
   ============================================================ */

/* Atmospheric Hero-Background hinter Three.js-Logo-Plane (index) */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
  mix-blend-mode: multiply;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9) blur(0.5px);
}
.hero-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--canvas) 80%),
    linear-gradient(180deg, transparent 0%, var(--canvas-cream) 100%);
}
:root[data-theme="dark"] .hero-bg-image {
  opacity: 0.55;
  mix-blend-mode: screen;
}
:root[data-theme="dark"] .hero-bg-image::after {
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--canvas) 80%),
    linear-gradient(180deg, transparent 0%, var(--canvas) 100%);
}
/* Three.js-Stage muss VOR dem Background liegen */
.hero .hero-inner { z-index: 2; }
.hero-3d-stage { z-index: 3; }

/* Section-Image Wrapper — fuer Werkstatt-Story und Produkte-Banner */
.brand-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-image);
  background: var(--canvas-cream);
}
.brand-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-premium);
}
.brand-image:hover img { transform: scale(1.03); }

/* Ratio-Variants */
.brand-image.ratio-3-2 { aspect-ratio: 3/2; }
.brand-image.ratio-16-9 { aspect-ratio: 16/9; }
.brand-image.ratio-4-3 { aspect-ratio: 4/3; }

/* Full-Bleed Banner (Produkte) */
.products-banner-strip {
  width: 100%;
  margin: 0 auto 24px;
  max-width: 1400px;
  padding: 0 24px;
}
.products-banner-strip .brand-image {
  aspect-ratio: 16/6;
  border-radius: var(--radius-lg);
}
@media (max-width: 700px) {
  .products-banner-strip .brand-image { aspect-ratio: 16/9; }
}

/* Page-Hero mit Hintergrund-Bild (Kontakt) */
.page-hero-imaged {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-imaged .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-hero-imaged .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.32;
  filter: saturate(0.9);
}
.page-hero-imaged .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, var(--canvas) 75%),
    linear-gradient(180deg, transparent 60%, var(--canvas-cream) 100%);
}
:root[data-theme="dark"] .page-hero-imaged .page-hero-bg img { opacity: 0.42; }
:root[data-theme="dark"] .page-hero-imaged .page-hero-bg::after {
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, var(--canvas) 75%),
    linear-gradient(180deg, transparent 60%, var(--canvas) 100%);
}
.page-hero-imaged > .container { position: relative; z-index: 1; }

/* ============================================================
   Iter 4 — Workshop 4-Card Story Grid
   ============================================================ */
.workshop-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 8px 0 12px;
}
@media (min-width: 700px)  { .workshop-story-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (min-width: 1080px) { .workshop-story-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.workshop-story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--primary-focus);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-premium);
}
.workshop-story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.workshop-story-card .card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--canvas-cream);
}
.workshop-story-card .card-image img,
.workshop-story-card .card-image picture {
  width: 100%;
  height: 100%;
  display: block;
}
.workshop-story-card .card-image img {
  object-fit: cover;
  transition: transform 800ms var(--ease-premium);
}
.workshop-story-card:hover .card-image img { transform: scale(1.04); }
.workshop-story-card .card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.workshop-story-card .card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-focus);
}
.workshop-story-card h3 {
  font-size: var(--fs-h3);
  margin: 0;
  line-height: 1.25;
}
.workshop-story-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted-80);
  margin: 0;
}

/* ============================================================
   Iter 4 — Category Header Banners (produkte.html)
   ============================================================ */
.category-header-banner {
  position: relative;
  width: 100%;
  height: 240px;
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-image);
  isolation: isolate;
}
@media (max-width: 768px) {
  .category-header-banner { height: 160px; margin-bottom: 20px; }
}
.category-header-banner picture,
.category-header-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.category-header-banner img {
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-premium);
}
.category-header-banner:hover img { transform: scale(1.06); }
.category-header-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2,54,55,0) 0%, rgba(2,54,55,0.55) 80%, rgba(2,54,55,0.85) 100%),
    linear-gradient(90deg, rgba(2,54,55,0.45) 0%, rgba(2,54,55,0) 50%);
  pointer-events: none;
}
.category-header-banner .banner-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 32px;
  color: #fff;
}
@media (max-width: 768px) {
  .category-header-banner .banner-content { padding: 18px 22px; }
}
.category-header-banner .banner-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-on-dark);
  margin-bottom: 8px;
}
.category-header-banner .banner-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  line-height: 1.1;
}
.category-header-banner .banner-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 640px;
}
@media (max-width: 600px) {
  .category-header-banner .banner-desc { display: none; }
}

/* ============================================================
   Iter 4 — Mobile-Hero-Crop fix (Picture/source media query handles)
   Add object-position fallback if browser ignores <source media>
   ============================================================ */
@media (max-width: 700px) {
  .hero-bg-image img { object-position: 65% 45%; }
}
