/* ============================================================
   Grimmeisen — dark editorial jewelry presentation
   ============================================================ */
:root {
  --ink: #0c110d;
  --ink-2: #0f150f;
  --ink-3: #141a14;
  --card: #171d17;
  --paper: #f0f2ed;
  --silver: #cdced0;
  --muted: #83898a;
  --muted-2: #5d6360;
  --line: rgba(240, 242, 237, 0.13);
  --line-2: rgba(240, 242, 237, 0.07);
  --glow: rgba(205, 206, 208, 0.10);
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(18px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(205, 206, 208, .22);
  color: #fff;
}

/* ---------- Atmosphere Background ---------- */
.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fog {
  position: absolute;
  inset: -25%;
  background: radial-gradient(45% 40% at 30% 35%, rgba(52, 66, 54, .32), transparent 70%),
              radial-gradient(40% 40% at 72% 65%, rgba(38, 50, 44, .28), transparent 70%);
  filter: blur(30px);
}

.fog-a {
  animation: drift-a 46s ease-in-out infinite alternate;
}

.fog-b {
  background: radial-gradient(50% 45% at 60% 30%, rgba(30, 42, 36, .26), transparent 72%);
  animation: drift-b 60s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(3%, 2%, 0) scale(1.08); }
  to { transform: translate3d(-4%, -3%, 0) scale(1); }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 38%, transparent 45%, rgba(0, 0, 0, .55) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================
   LANDING
   ===================================================== */
.landing {
  position: relative;
  z-index: 10;
}

.landing-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 1.4rem var(--pad);
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.landing-top a {
  color: var(--muted-2);
  transition: color .3s;
}

.landing-top a:hover {
  color: var(--paper);
}

.landing-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--pad) 4rem;
}

.hero-mark {
  width: clamp(220px, 34vw, 440px);
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .6));
  animation: fade-up 1.6s var(--ease) both;
}

.hero-word {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .18em;
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  animation: fade-up 1.6s var(--ease) .15s both;
}

.hero-sub {
  max-width: 38ch;
  margin: 1.4rem auto 0;
  font-size: .74rem;
  line-height: 1.9;
  letter-spacing: .05em;
  color: var(--muted);
  animation: fade-up 1.6s var(--ease) .3s both;
}

/* ---------- EDITORIAL SECTION & FREIGESTELLTE BILDER ---------- */
.editorial {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem var(--pad);
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 13vh, 150px);
}

.ed-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.ed-block:nth-child(even) {
  direction: rtl;
}

.ed-block:nth-child(even) > * {
  direction: ltr;
}

.ed-media {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ed-media img {
  max-height: clamp(180px, 30vh, 320px);
  width: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.65));
  transition: transform 1s var(--ease), filter 1s var(--ease);
}

.ed-block:hover .ed-media img {
  transform: translateY(-8px) scale(1.02);
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.8));
}

.ed-body .ed-num {
  font-size: .62rem;
  letter-spacing: .3em;
  color: var(--muted-2);
}

.ed-body .ed-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: .03em;
  margin: .4rem 0 1rem;
  cursor: pointer;
  display: inline-block;
  transition: color .3s;
}

.ed-body .ed-name:hover {
  color: var(--silver);
}

.ed-body .ed-text {
  font-size: .72rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.2rem;
}

.price-action {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 1rem;
}

.ring-price {
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--silver);
}

.enquire-btn {
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: .45em 1.2em;
  transition: border-color .3s, background .3s;
}

.enquire-btn:hover {
  border-color: rgba(240, 242, 237, .5);
  background: rgba(240, 242, 237, .06);
}

.enquire-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.2rem;
  animation: fade .3s var(--ease);
}

.enquire-options[hidden] {
  display: none;
}

.enquire-opt-btn {
  align-self: flex-start;
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--silver);
  border: 1px solid var(--line-2);
  padding: .5em 1em;
  background: rgba(20, 26, 20, .6);
  transition: border-color .3s, color .3s;
}

.enquire-opt-btn:hover {
  border-color: var(--line);
  color: var(--paper);
}

.toast {
  display: block;
  font-size: .65rem;
  color: var(--silver);
  margin: -.4rem 0 1.2rem;
  letter-spacing: .05em;
  animation: fade .3s var(--ease);
}

.toast[hidden] {
  display: none;
}

/* ---------- LIGHTBOX / GALERIE ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 17, 13, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fade .3s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--paper);
  opacity: .6;
  transition: opacity .3s;
  z-index: 101;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-content img {
  max-width: 80vw;
  max-height: 75vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--paper);
  opacity: .5;
  transition: opacity .3s;
  z-index: 102;
}

.nav-arrow:hover {
  opacity: 1;
}

.nav-arrow.prev { left: -60px; }
.nav-arrow.next { right: -60px; }

.lightbox-dots {
  display: flex;
  gap: .8rem;
  margin-top: 1.5rem;
}

.lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background .3s, transform .3s;
}

.lightbox-dot.active {
  background: var(--paper);
  transform: scale(1.3);
}

/* ---------- FOOTER ---------- */
.landing-foot {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 3rem var(--pad);
  border-top: 1px solid var(--line-2);
  margin-top: 3rem;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- ANIMATIONEN ---------- */
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .ed-block, .ed-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.4rem;
  }
  .ed-media img {
    max-height: 220px;
  }
  .nav-arrow.prev { left: 10px; }
  .nav-arrow.next { right: 10px; }
}

:focus-visible {
  outline: 2px solid rgba(240, 242, 237, .6);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .001ms !important; }
  .fog { display: none; }
}