/* ============================================================
   MONTCOURT — Coming Soon / Waitlist
   Old Money · Quiet Luxury
   ============================================================ */

/* ---------- Fonts: lokal gehostet (DSGVO — kein Google-CDN) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-v21-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-v21-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-v21-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/dm-sans-v17-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-v17-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-sans-v17-latin-500.woff2") format("woff2");
}

:root {
  --green: #1B3A2D;
  --green-deep: #142a20;
  --cream: #F2ECD9;
  --gold: #B8963E;
  --gold-soft: rgba(184, 150, 62, 0.4);
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset (scoped, no global * kill) ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--green);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Honeypot — versteckt für Menschen, sichtbar für Bots */
.hp-field { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Entrance-Animation (Seitenstart, Framer-Motion-Look) ---------- */
.intro {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease),
    filter 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.13s + 0.15s);
}
.intro-started .intro {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Headline-Zeilen: Clip-Reveal von unten (wie Framer Motion staggerChildren) */
.line-mask { display: block; overflow: hidden; }
.intro-line {
  display: block;
  transform: translateY(110%);
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.13s + 0.15s);
}
.intro-started .intro-line { transform: none; }

/* Gold-Linie zeichnet sich über der Headline */
.hero__rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 1.6rem;
  background: var(--gold);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 1.3s var(--ease), opacity 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.13s + 0.15s);
  opacity: 0;
}
.intro-started .hero__rule { transform: scaleX(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro-line, .hero__rule {
    opacity: 1; transform: none; filter: none; transition: none;
  }
}

/* ---------- Reveal-Animation (scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Divider ---------- */
.divider {
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 1.4rem;
  background: var(--gold);
}
.divider--gold { background: var(--gold); }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.section-title {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.1;
  color: var(--green);
}
.section-title--light { color: var(--cream); }
.section-lead, .detail__text, .closer__lead {
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.section-lead { margin-top: 0.6rem; color: rgba(27, 58, 45, 0.7); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--green);
  color: var(--cream);
  overflow: hidden;
}
/* Hintergrundbild mit langsamem Ken-Burns-Zoom */
.hero__bg {
  position: absolute; inset: -4%;
  background-image: url("images/hero.jpg?v=2");
  background-size: cover;
  /* Band liegt im linken Bilddrittel — beim Mobile-Crop im Fokus behalten */
  background-position: 22% center;
  animation: kenburns 26s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-1.5%); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,42,32,0.55) 0%, rgba(20,42,32,0.35) 45%, rgba(20,42,32,0.85) 100%);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
}
.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  margin: 0.4rem 0 auto;
  color: var(--cream);
}
.hero__content {
  max-width: 620px;
  text-align: center;
  margin: auto 0;
  padding-bottom: 2rem;
}
/* PC-Ansicht: Content optisch mittig heben (Wortmarke oben drückt ihn sonst nach unten) */
@media (min-width: 900px) {
  .hero__content { padding-bottom: 14vh; }
}
.hero__headline {
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 1.02;
  font-weight: 500;
  color: var(--cream);
}
.hero__subline {
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 1.2rem auto 2rem;
  max-width: 34ch;
  color: rgba(242, 236, 217, 0.9);
}
.hero__trust {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(242, 236, 217, 0.65);
  margin: 1.1rem 0 0;
}

/* ============================================================
   WAITLIST FORM
   ============================================================ */
.waitlist-form { width: 100%; max-width: 460px; margin: 0 auto; }
.waitlist-form--center { margin: 2rem auto 0; }

.waitlist-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.waitlist-form input[type="email"] {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--green);
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.waitlist-form input[type="email"]::placeholder { color: rgba(27, 58, 45, 0.45); }
.waitlist-form input[type="email"]:focus { border-color: var(--gold); }

.waitlist-form button {
  padding: 0.95rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.waitlist-form button:hover { background: transparent; color: var(--gold); }
.waitlist-form button:disabled { opacity: 0.55; cursor: default; }

.form-message {
  min-height: 1.2rem;
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.form-message.is-shown { opacity: 1; }
.form-message.is-error { color: #c98a8a; }
/* On cream sections success is green; on dark sections it's gold */
.form-message.is-success { color: var(--gold); }

/* ---------- Referral-Panel (nach erfolgreicher Anmeldung) ---------- */
.referral-panel {
  margin-top: 1.4rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  animation: panel-in 0.7s var(--ease);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.referral-panel__position {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--cream);
  margin: 0 0 0.4rem;
}
.referral-panel__status {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 236, 217, 0.7);
  margin: 0 0 0.9rem;
}
.referral-panel__status.is-secured { color: var(--gold); }
.referral-panel__hint {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: rgba(242, 236, 217, 0.75);
  margin: 0 0 1rem;
}
.referral-panel__row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.referral-panel__row input[type="text"] {
  flex: 1;
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--cream);
  background: rgba(242, 236, 217, 0.08);
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  outline: none;
}
.referral-panel__copy {
  padding: 0.75rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.referral-panel__copy:hover { background: transparent; color: var(--gold); }

@media (min-width: 620px) {
  .referral-panel__row { flex-direction: row; }
  .referral-panel__copy { white-space: nowrap; }
}

/* ============================================================
   KOLLEKTION
   ============================================================ */
.collection {
  background: var(--cream);
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
}
.collection__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.card { text-align: center; }
/* Karten staffeln sich beim Scroll-Reveal */
.collection__grid .card:nth-child(1) { transition-delay: 0s; }
.collection__grid .card:nth-child(2) { transition-delay: 0.12s; }
.collection__grid .card:nth-child(3) { transition-delay: 0.24s; }
.collection__grid .card:nth-child(4) { transition-delay: 0.36s; }

/* Produktbilder mit Creme-Studiohintergrund — verschmelzen mit der Sektion, kein Kasten */
.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden; /* Zoom bleibt im Rahmen, keine Kanten sichtbar */
  border-radius: 4px;
  transition: box-shadow 0.7s var(--ease);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* leicht vorgezoomt — beschneidet den Bildrand und damit jede Restkante */
  transform: scale(1.04);
  transition: transform 1.1s var(--ease);
}
/* Hover: Zoom + sanftes goldenes Leuchten unten */
.card:hover .card__media img { transform: scale(1.12); }
.card:hover .card__media {
  box-shadow: 0 26px 46px -18px rgba(184, 150, 62, 0.55);
}
.card__badge {
  position: absolute;
  z-index: 1; /* über der Rand-Vignette (::after) */
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}
.card__name { font-size: 1.65rem; margin-top: 1.1rem; }
.card__meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27, 58, 45, 0.6);
  margin: 0.35rem 0 0;
}

/* Missing image placeholder */
.img-missing {
  width: 100%; height: 100%;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

/* ============================================================
   DETAILS
   ============================================================ */
.details {
  background: var(--green);
  color: var(--cream);
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
}
.details__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.detail__title { font-size: 1.7rem; color: var(--cream); margin-bottom: 0.6rem; }
.detail__text { color: rgba(242, 236, 217, 0.8); max-width: 30ch; margin: 0 auto; }

/* ============================================================
   LIFESTYLE
   ============================================================ */
.lifestyle {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.lifestyle__media { background: var(--white); overflow: hidden; }
.lifestyle__media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 60vh;
  will-change: transform;
  transform: scale(1.12); /* Puffer für Parallax-Verschiebung */
}
.lifestyle__text {
  padding: clamp(3rem, 9vw, 6rem) 1.5rem;
  text-align: center;
  align-self: center;
  max-width: 620px;
  margin: 0 auto;
}
.lifestyle__body {
  font-size: 1.02rem;
  color: rgba(27, 58, 45, 0.78);
  margin-top: 1.2rem;
}

/* ============================================================
   CLOSER / ZWEITE WAITLIST
   ============================================================ */
.closer {
  background: var(--green-deep);
  color: var(--cream);
  padding: clamp(4.5rem, 12vw, 8rem) 1.5rem;
  text-align: center;
}
.closer__inner { max-width: 620px; margin: 0 auto; }
.closer__lead { color: rgba(242, 236, 217, 0.8); margin-top: 0.7rem; }
.closer__trust {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(242, 236, 217, 0.55);
  margin: 1.2rem 0 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--green);
  color: rgba(242, 236, 217, 0.75);
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid var(--gold-soft);
}
.footer__wordmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--cream);
  margin: 0 0 1.2rem;
}
.footer__links {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.6rem;
}
.footer__links a { color: var(--gold); transition: opacity 0.3s var(--ease); }
.footer__links a:hover { opacity: 0.7; }
.footer__sep { margin: 0 0.7rem; color: var(--gold-soft); }
.footer__legal {
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(242, 236, 217, 0.5);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   LEGAL (Impressum / Datenschutz)
   ============================================================ */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) 1.5rem;
  min-height: 70vh;
}
.legal__back {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.legal__back:hover { opacity: 0.7; }
.legal__title {
  font-size: clamp(2rem, 7vw, 3rem);
  margin-bottom: 1.5rem;
}
.legal__todo {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  padding: 0.6rem 0.9rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.legal__body { color: rgba(27, 58, 45, 0.78); max-width: 56ch; }
.legal__heading {
  font-size: 1.35rem;
  color: var(--green);
  margin: 2.2rem 0 0.7rem;
}
.legal__body a { color: var(--gold); word-break: break-word; }
.legal__body a:hover { opacity: 0.75; }
.legal__stand {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27, 58, 45, 0.5);
}

/* ============================================================
   RESPONSIVE — Tablet / Desktop
   ============================================================ */
@media (min-width: 620px) {
  .waitlist-form__row { flex-direction: row; }
  .waitlist-form__row input[type="email"] { flex: 1; }
  .waitlist-form button { white-space: nowrap; }
}

@media (min-width: 760px) {
  .collection__grid { grid-template-columns: repeat(2, 1fr); gap: 2.6rem; }
  .details__grid { grid-template-columns: repeat(3, 1fr); }
  .lifestyle { grid-template-columns: 1fr 1fr; }
  .lifestyle__text { text-align: left; margin: 0; }
  .lifestyle__text .divider { margin-left: 0; }
}

@media (min-width: 1080px) {
  .collection__grid { grid-template-columns: repeat(4, 1fr); }
}
