/* ── Landing Page ── Warm Atelier ─────────────────────────────── */

:root {
  --lp-bg:       oklch(96.5% 0.012 70);
  --lp-bg-glow:  oklch(93%   0.028 75);
  --lp-text:     oklch(18%   0.020 55);
  --lp-soft:     oklch(50%   0.014 55);
  --lp-accent:   oklch(42%   0.13  32);
  --lp-rule:     oklch(82%   0.022 70);
  --lp-display:  'Bodoni Moda', Georgia, serif;
  --lp-sans:     'Mulish', system-ui, sans-serif;
}

/* ─ Reset dark app theme ─ */
body {
  background:
    radial-gradient(ellipse 70% 80% at 15% 85%, var(--lp-bg-glow) 0%, transparent 55%),
    var(--lp-bg) !important;
  color: var(--lp-text) !important;
  font-family: var(--lp-sans) !important;
  min-height: 100vh;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  z-index: 9998;
  mix-blend-mode: multiply;
}

/* ─ Index: stage ─ */
.lp-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(2.5rem, 10vw, 12rem) 6rem;
}

/* ─ Entry rule ─ */
.lp-rule {
  height: 1px;
  width: 3rem;
  background: var(--lp-rule);
  margin-bottom: 2.25rem;
  transform-origin: left;
}

/* ─ Brand heading ─ */
.lp-title {
  font-family: var(--lp-display);
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 700;
  font-style: italic;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--lp-text);
  margin: 0 0 1.75rem;
}

/* ─ Tagline ─ */
.lp-tagline {
  font-family: var(--lp-sans);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.012em;
  color: var(--lp-soft);
  max-width: 38ch;
  margin: 0 0 2.75rem;
}

/* ─ Closing ornament ─ */
.lp-mark {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--lp-accent);
}

.lp-mark svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lp-mark-line {
  display: block;
  height: 1px;
  width: 2.5rem;
  background: var(--lp-rule);
}

/* ─ Scroll reveal (assets/controllers/scroll-reveal_controller.js) ───
   Elements render fully visible by default; the controller adds
   `scroll-reveal--pending` right before observing, then swaps it for
   `scroll-reveal--visible` once the element enters the viewport. If JS
   never runs, content simply stays in its default visible state. ─ */
.scroll-reveal--pending {
  opacity: 0;
  transform: translateY(16px);
}

.lp-rule.scroll-reveal--pending {
  transform: scaleX(0);
}

.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--reveal-index, 0) * 0.16s + 0.1s),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--reveal-index, 0) * 0.16s + 0.1s);
}

.lp-rule.scroll-reveal--visible {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal--pending,
  .scroll-reveal--visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─ Footer ─ */
.lp-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.5rem, 10vw, 12rem);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 9999;
}

.lp-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  font-family: var(--lp-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lp-footer a:hover,
.lp-footer a:focus-visible {
  color: var(--lp-accent);
}

/* ─ Legal pages ("Atelier" layout — content unverändert, nur Darstellung) ─ */
.lp-legal {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 5.5rem) clamp(1.25rem, 6vw, 2.5rem) 7rem;
}

.lp-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  font-family: var(--lp-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lp-legal-back:hover,
.lp-legal-back:focus-visible {
  color: var(--lp-accent);
}

.lp-legal-title {
  font-family: var(--lp-display);
  font-style: italic;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--lp-text);
  margin: 0 0 0.5rem;
}

.lp-legal-meta {
  font-family: var(--lp-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-soft);
  margin: 0 0 2.5rem;
}

.lp-legal-rule {
  height: 1px;
  width: 2.5rem;
  background: var(--lp-rule);
  margin: 2.75rem 0;
  border: none;
}

.lp-legal h2 {
  font-family: var(--lp-display);
  font-style: italic;
  font-optical-sizing: auto;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lp-text);
  margin: 2.25rem 0 0.75rem;
}

.lp-legal p,
.lp-legal address,
.lp-legal ul {
  font-family: var(--lp-sans);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--lp-text);
  font-style: normal;
  margin: 0 0 1rem;
}

.lp-legal ul {
  padding-left: 1.25rem;
}

.lp-legal a {
  color: var(--lp-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lp-legal a:hover,
.lp-legal a:focus-visible {
  color: oklch(33% 0.15 32);
}

.lp-legal-footer {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--lp-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.lp-legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--lp-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lp-legal-footer a:hover,
.lp-legal-footer a:focus-visible {
  color: var(--lp-accent);
}

/* ─ Responsive ─ */
@media (max-width: 768px) {
  .lp-stage {
    padding-bottom: 8rem;
  }

  .lp-footer {
    gap: 1.25rem;
  }
}

@media (max-width: 576px) {
  .lp-footer {
    justify-content: center;
  }

  .lp-legal {
    padding-top: 2.5rem;
  }
}
