/* =========================================================
   MARCELINA ADAMCZYK | THE INNER STANDARD | Waitlist
   Keine externen Dienste, keine Cookies, keine Webfonts-CDN.
   ========================================================= */

:root {
  --espresso: #1A0F0B;      /* Deep Black Espresso (abgedunkelt, damit Mobile satt wirkt). Alternative laut Brand: #2B180F */
  --espresso-2: #24140E;
  --cream: #F7F3EC;
  --gold: #B1844F;
  --gold-soft: #C49A63;
  --text-dark: #26201A;

  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Avenir", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Optional: Schriften selbst hosten (DSGVO-konform, kein Google-Server-Aufruf).
   Dateien in /fonts ablegen und Block aktivieren:
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--cream); color: var(--espresso); padding: 10px 16px;
  font-size: 13px; letter-spacing: .08em; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 1px solid var(--gold-soft); outline-offset: 4px; }

/* ---------------- Stage ---------------- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}

.brand {
  position: absolute; z-index: 5;
  top: clamp(24px, 3.4vw, 44px);
  left: clamp(28px, 5.2vw, 84px);
  display: block; width: clamp(128px, 11vw, 176px);
}
.brand img { width: 100%; }

/* Crisp text-based brand lockup: no raster rectangle or white background. */
.brand { width: clamp(170px, 17vw, 240px); padding: 0; background: transparent; text-align: center; text-decoration: none; color: var(--gold-soft); line-height: 1; }
.brand-gem { display: block; width: 72px; height: 45px; margin: 0 auto -2px; overflow: visible; }
.brand-name { display: block; margin-top: 9px; font: 400 clamp(18px, 2vw, 27px)/1 var(--serif); letter-spacing: .13em; }
.brand-surname { display: block; margin-top: 7px; font: 400 9px/1.2 var(--sans); letter-spacing: .42em; }
@media (max-width: 859px) {
  .brand { width: 190px; padding: 0; }
  .brand-name { font-size: 21px; }
}

/* Content */
.content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(168px, 20vh, 210px) clamp(28px, 5.2vw, 84px) 0;
  min-height: 100vh; min-height: 100svh;
}
.content-inner { max-width: 600px; }

.presents {
  margin: 0 0 clamp(18px, 2.4vh, 28px);
  font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold);
}
.title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  text-transform: uppercase; letter-spacing: .05em; line-height: 1;
  font-size: clamp(46px, 5.9vw, 108px);
  color: var(--cream);
}
.title span { display: inline; }
.title .w2::after { content: ""; display: block; }

.rule { width: 44px; height: 1px; background: var(--gold); margin: clamp(18px, 2.8vh, 30px) 0; border: 0; }

.signature {
  margin: 0;
  font-size: 11px; letter-spacing: .46em; text-transform: uppercase; color: var(--gold-soft);
  line-height: 2.1;
}

.panel { margin-top: clamp(26px, 4.2vh, 48px); }
.teaser {
  margin: 0 0 14px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 1.9vw, 30px); line-height: 1.35; color: var(--cream);
}
.teaser-kicker {
  display: block; margin: 0 0 12px;
  font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold);
}
.lines { margin: 0 0 clamp(24px, 3.4vh, 36px); font-size: 14px; letter-spacing: .03em; color: var(--cream); opacity: .86; }

/* ---------------- Form ---------------- */
.form { max-width: 460px; }
.field { position: relative; }
.form input[type="email"] {
  width: 100%;
  background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid rgba(177, 132, 79, .65); border-radius: 0;
  padding: 14px 2px 14px;
  font: 300 16px/1.4 var(--sans); letter-spacing: .04em;
  transition: border-color .5s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form input[type="email"]::placeholder { color: rgba(247, 243, 236, .5); }
.form input[type="email"]:focus { outline: none; border-bottom-color: var(--cream); }
.form input[aria-invalid="true"] { border-bottom-color: #d9a48a; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  position: relative; overflow: hidden;
  display: block; width: 100%; min-height: 56px; margin-top: 20px;
  background: var(--cream); color: var(--espresso);
  border: 1px solid var(--cream); border-radius: 0; cursor: pointer;
  font: 400 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase;
  padding: 0 24px;
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--cream); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.consent {
  margin: 18px 0 0; font-size: 11.5px; line-height: 1.75; letter-spacing: .02em;
  color: rgba(247, 243, 236, .66);
}
.consent a { color: var(--cream); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.opt { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; font-size: 11.5px; line-height: 1.7; color: rgba(247, 243, 236, .66); cursor: pointer; }
.opt input {
  flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0;
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(177, 132, 79, .8); background: transparent; border-radius: 0; cursor: pointer;
  display: grid; place-content: center;
}
.opt input::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: scale(0); transition: transform .25s var(--ease); }
.opt input:checked::after { transform: scale(1); }

.status { min-height: 1.6em; margin: 12px 0 0; font-size: 12.5px; letter-spacing: .02em; color: #e3b79e; }
.notice {
  margin: 14px 0 0; padding: 10px 12px;
  border: 1px dashed rgba(177, 132, 79, .7);
  font-size: 11.5px; line-height: 1.6; letter-spacing: .03em; color: var(--gold-soft);
}

/* Views */
.view h2 {
  margin: 0 0 16px;
  font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1;
  font-size: clamp(34px, 3.8vw, 60px);
}
.view h2:focus { outline: none; }
.view .lead { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.4; color: var(--cream); }
.view p { margin: 0 0 12px; font-size: 14px; max-width: 440px; color: rgba(247, 243, 236, .86); }
.view .small { font-size: 12px; color: rgba(247, 243, 236, .6); }
.response-frame { display: none; width: 0; height: 0; border: 0; }
.welcome-state .content { justify-content: center; }
.welcome-state .presents, .welcome-state .title, .welcome-state .rule, .welcome-state .signature { display: none; }
.welcome-state .panel { margin-top: 34px; }
.welcome-state .view h2 { color: var(--cream); font-size: clamp(46px, 5vw, 76px); line-height: 1.06; }
.welcome-state .view .lead { font-size: clamp(21px, 2.1vw, 30px); }
.welcome-state .view p { line-height: 1.8; }
.welcome-state .view .welcome-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .28em; color: var(--gold-soft); margin-bottom: 26px; }
.welcome-state .view .welcome-italic { font-family: var(--serif); font-size: clamp(19px, 2vw, 25px); font-style: italic; color: var(--gold-soft); margin-top: 24px; }
.welcome-state .view .welcome-verse { color: var(--gold-soft); letter-spacing: .18em; font-size: 12px; margin-top: 35px; }
.welcome-back { display: inline-block; padding: 9px 0; color: var(--gold-soft); text-decoration-color: var(--gold); font-size: 12px; }
.welcome-state .photo img { object-position: 50% 20%; }

/* Footer */
.legal {
  margin-top: auto; padding: 56px 0 28px;
  font-size: 11px; letter-spacing: .14em; color: rgba(247, 243, 236, .6);
}
.legal a { text-decoration: none; padding: 6px 2px; }
.legal a:hover { color: var(--cream); }
.legal .sep { margin: 0 10px; color: var(--gold); }

/* ---------------- Visual ---------------- */
.visual { position: relative; z-index: 1; overflow: hidden; min-height: 100vh; min-height: 100svh; }
.photo { position: absolute; inset: -2% -2%; will-change: transform; transition: transform .9s var(--ease); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--espresso) 0%, rgba(26, 15, 11, .6) 14%, rgba(26, 15, 11, 0) 46%),
    linear-gradient(0deg, rgba(26, 15, 11, .55) 0%, rgba(26, 15, 11, 0) 30%),
    linear-gradient(180deg, rgba(26, 15, 11, .35) 0%, rgba(26, 15, 11, 0) 22%),
    rgba(26, 15, 11, .16);
}

/* ---------------- Animation ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

.rise { opacity: 0; animation: rise 1.3s var(--ease) forwards; }
.d1 { animation-delay: .25s; } .d2 { animation-delay: .45s; } .d3 { animation-delay: .7s; }
.d4 { animation-delay: .95s; } .d5 { animation-delay: 1.15s; } .d6 { animation-delay: 1.4s; }
.fade { opacity: 0; animation: fade 1.6s ease forwards; animation-delay: .1s; }
.photo-in { opacity: 0; animation: settle 2.4s var(--ease) forwards; }

/* ---------------- Mobile ---------------- */
@media (max-width: 859px) {
  .welcome-state .content { justify-content: flex-start; }
  .welcome-state .panel { margin-top: 0; }
  .welcome-state .view h2 { font-size: clamp(42px, 11vw, 60px); }
  .stage { display: flex; flex-direction: column; }
  .brand { left: 50%; transform: translateX(-50%); width: 190px; top: 18px; }
  /* Keep the brand visible without placing the diamond over the face
     in the alternate welcome portrait on narrow screens. */
  .welcome-state .brand { left: 14px; top: 18px; transform: none; width: 116px; }
  .welcome-state .brand-gem { width: 48px; height: 32px; }
  .welcome-state .brand-name { font-size: 14px; letter-spacing: .09em; }
  .welcome-state .brand-surname { font-size: 7px; letter-spacing: .24em; }

  .visual { order: 1; min-height: 0; height: 54vh; height: 54svh; max-height: 620px; }
  .photo img { object-position: 50% 0%; }
  .veil {
    background:
      linear-gradient(0deg, var(--espresso) 0%, rgba(26, 15, 11, .72) 24%, rgba(26, 15, 11, 0) 62%),
      linear-gradient(180deg, rgba(26, 15, 11, .55) 0%, rgba(26, 15, 11, 0) 26%),
      rgba(26, 15, 11, .14);
  }

  .content { order: 2; min-height: 0; padding: 0 26px 0; margin-top: -76px; justify-content: flex-start; text-align: center; align-items: center; }
  .content-inner { max-width: 440px; width: 100%; }
  .presents { display: none; }
  .title { font-size: clamp(38px, 11.6vw, 72px); }
  .rule { margin: 20px auto; }
  .signature { font-size: 10.5px; letter-spacing: .42em; }
  .teaser-kicker { font-size: 10px; letter-spacing: .24em; }
  .panel { margin-top: 24px; }
  .form { margin: 0 auto; text-align: left; }
  .view p { margin-left: auto; margin-right: auto; }
  .legal { text-align: center; padding: 40px 0 26px; }
}

/* ---------------- Rechtsseiten ---------------- */
.doc { min-height: 100vh; padding: clamp(36px, 6vw, 72px) 26px 40px; }
.doc-inner { max-width: 720px; margin: 0 auto; }
.doc .brand { position: static; transform: none; width: 132px; margin: 0 auto clamp(32px, 5vw, 56px); }
.doc h1 {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1;
  font-size: clamp(30px, 4.6vw, 52px); margin: 0 0 12px; text-align: center;
}
.doc .draft {
  margin: 0 auto 40px; max-width: 560px; padding: 12px 16px; text-align: center;
  border: 1px dashed rgba(177, 132, 79, .7); color: var(--gold-soft); font-size: 12px; letter-spacing: .04em; line-height: 1.6;
}
.doc h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .02em;
  margin: 44px 0 12px; color: var(--cream);
}
.doc h3 { font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 26px 0 8px; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.85; color: rgba(247, 243, 236, .86); }
.doc ul { padding-left: 20px; }
.doc .open { color: var(--gold-soft); font-style: italic; }
.doc a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.doc .back { display: inline-block; margin-top: 48px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--gold-soft); }
.doc footer { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(177, 132, 79, .3); font-size: 11px; letter-spacing: .14em; color: rgba(247, 243, 236, .6); text-align: center; }
.doc footer a { text-decoration: none; }
.doc footer .sep { margin: 0 10px; color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .rise, .fade, .photo-in { animation: none; opacity: 1; transform: none; }
  .photo { transition: none; }
  .btn, .form input[type="email"] { transition: none; }
}
