/* Fae Mail Club – Coming-soon-Seite
   Schriften lokal gehostet (kein Abruf bei Google, DSGVO-freundlich). */

@font-face { font-family: "IM Fell English"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Grundfarben aus dem Logo */
  --night: #1B1626;
  --night-raised: #241D33;
  --parchment: #F3EADB;
  --mist: #B9B0C8;
  --gilt: #C9A45C;
  --gilt-light: #E2C68A;
  --wax: #8E2F45;
  --wax-deep: #74243A;
  /* Farbschnitt-Töne – nur für die Buchkanten */
  --edge-teal: #2C6E6A;
  --edge-violet: #6A4C9C;

  --fell: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wordmark: "Cinzel", Georgia, serif;

  --measure: 34rem;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gilt-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--gilt-light); outline-offset: 3px; }

.shell { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Kopf ---------- */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--parchment); text-decoration: none; }
.logo svg { width: 58px; height: auto; flex: none; }
.logo-word { display: block; font-family: var(--wordmark); font-weight: 600; font-size: 1.05rem; letter-spacing: .14em; line-height: 1.1; }
.logo-sub { display: block; font-family: var(--fell); font-style: italic; font-size: 1rem; color: var(--gilt); }

.lang { display: flex; gap: 4px; }
.lang button {
  font: 500 .95rem/1 var(--sans); color: var(--mist);
  background: none; border: 1px solid transparent; border-radius: 2px;
  min-height: 44px; min-width: 44px; padding: 0 12px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--parchment); border-color: rgba(201,164,92,.55); }
.lang button:hover { color: var(--parchment); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(24px, 5vw, 64px) clamp(72px, 9vw, 120px);
}
h1 {
  font-family: var(--fell); font-weight: 400;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 13ch;
  text-wrap: balance;
}
.lead { font-size: 1.3rem; line-height: 1.55; max-width: var(--measure); margin: 0 0 36px; color: var(--parchment); }

/* Bücherstapel – das eine auffällige Element der Seite */
.stack { width: 100%; max-width: 620px; justify-self: end; overflow: visible; margin-right: -2%; }
.stack .book { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .stack .book { opacity: 0; animation: drop-in .7s cubic-bezier(.2,.8,.2,1) forwards; }
  .stack .book:nth-of-type(1) { animation-delay: .05s; }
  .stack .book:nth-of-type(2) { animation-delay: .15s; }
  .stack .book:nth-of-type(3) { animation-delay: .25s; }
  .stack .book:nth-of-type(4) { animation-delay: .35s; }
  .stack .book:nth-of-type(5) { animation-delay: .45s; }
  .stack .book:nth-of-type(6) { animation-delay: .55s; }
  .stack .book:nth-of-type(7) { animation-delay: .65s; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }

/* ---------- Anmeldung ---------- */
.signup { max-width: var(--measure); }
.signup label.field-label { display: block; font-size: 1rem; color: var(--mist); margin-bottom: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input[type="email"] {
  flex: 1 1 240px; min-width: 0; min-height: 52px;
  font: 400 1.1rem var(--sans); color: var(--parchment);
  background: var(--night-raised);
  border: 1px solid rgba(201,164,92,.5); border-radius: 2px;
  padding: 12px 14px;
}
.row input[type="email"]::placeholder { color: #8D83A0; }
.row input[type="email"]:focus-visible { outline: 2px solid var(--gilt-light); outline-offset: 1px; border-color: var(--gilt-light); }

.btn {
  flex: 0 0 auto; min-height: 52px; padding: 12px 22px;
  font: 600 1.05rem var(--sans); color: var(--parchment);
  background: var(--wax); border: 0; border-radius: 2px; cursor: pointer;
}
.btn:hover { background: var(--wax-deep); }
.btn[disabled] { opacity: .7; cursor: progress; }

.interests { border: 0; padding: 0; margin: 22px 0 0; }
.interests legend { padding: 0; margin-bottom: 8px; font-size: 1rem; color: var(--mist); }
.ticks { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ticks label, .consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ticks label { min-height: 44px; align-items: center; font-size: 1.02rem; }
.ticks input, .consent input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0; flex: none; cursor: pointer;
  border: 1px solid rgba(201,164,92,.7); border-radius: 2px; background: var(--night-raised);
  display: inline-grid; place-content: center;
}
.ticks input::before, .consent input::before {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2px solid var(--night); border-bottom: 2px solid var(--night);
  transform: rotate(-45deg) scale(0); transition: transform .12s ease;
}
.ticks input:checked, .consent input:checked { background: var(--gilt); border-color: var(--gilt); }
.ticks input:checked::before, .consent input:checked::before { transform: rotate(-45deg) scale(1); }
@media (prefers-reduced-motion: reduce) { .ticks input::before, .consent input::before { transition: none; } }
.consent { margin-top: 18px; font-size: .95rem; line-height: 1.5; color: var(--mist); }
.consent input { margin-top: 3px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 14px 0 0; min-height: 1.6em; font-size: 1rem; }
.status.error { color: #F2A7B6; }
.done-msg { display: none; }
.signup.done form { display: none; }
.signup.done .done-msg { display: block; }
.done-msg h2 { font-family: var(--fell); font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 0 0 10px; }
.done-msg p { margin: 0 0 8px; color: var(--mist); }

/* ---------- Was es geben wird ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid rgba(201,164,92,.22); }
h2 {
  font-family: var(--fell); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.08;
  margin: 0 0 40px; max-width: 22ch;
}
.offer { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(32px, 6vw, 88px); }
.offer li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 20px; }
.edge { width: 22px; border-radius: 2px; min-height: 100%; }
.edge-violet { background: linear-gradient(180deg, #6A4C9C, #8E2F45); }
.edge-teal   { background: linear-gradient(180deg, #1F4F55, #2C6E6A); }
.edge-gilt   { background: linear-gradient(180deg, #B8904A, #E2C68A 50%, #B8904A); }
.edge-rose   { background: linear-gradient(180deg, #8E2F45, #C46A80); }
.edge { background-blend-mode: normal; position: relative; overflow: hidden; }
.edge::after { /* Sprenkel wie beim Farbschnitt */
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 30% 20%, rgba(243,234,219,.7), transparent 70%),
    radial-gradient(1px 1px at 70% 45%, rgba(243,234,219,.55), transparent 70%),
    radial-gradient(1.2px 1.2px at 40% 75%, rgba(243,234,219,.6), transparent 70%);
  background-size: 22px 28px;
}
.offer h3 { font-family: var(--fell); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin: 0 0 8px; }
.offer p { margin: 0; color: var(--mist); max-width: 30rem; }

/* ---------- Wer & wann ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.prose p { margin: 0 0 18px; max-width: var(--measure); font-size: 1.15rem; }
.prose .signoff { font-family: var(--fell); font-style: italic; font-size: 2.1rem; line-height: 1; color: var(--gilt-light); margin: 30px 0 6px; }
.prose .role { margin: 0 0 22px; color: var(--mist); }
.prose .legal-entity { font-size: .95rem; color: var(--mist); margin: 0; }

.launch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.launch p { margin: 0 0 16px; max-width: 26rem; font-size: 1.15rem; }
.launch .date { font-family: var(--fell); font-size: clamp(2.4rem, 3.7vw, 3.1rem); line-height: 1.05; color: var(--gilt-light); margin-bottom: 18px; }
.launch a { font-weight: 600; }

/* ---------- Fuß ---------- */
.footer { border-top: 1px solid rgba(201,164,92,.22); padding-block: 32px 44px; }
.footer .shell { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .95rem; color: var(--mist); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--mist); }
.footer a:hover { color: var(--parchment); }

/* ---------- Unterseiten (Bestätigen, Abmelden, Rechtliches) ---------- */
.page { padding-block: 32px 96px; }
.page .inner { max-width: 44rem; }
.page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: none; }
.page h2 { font-size: 1.5rem; margin: 40px 0 8px; max-width: none; }
.page p { max-width: var(--measure); }
.placeholder { background: rgba(142,47,69,.55); padding: 0 4px; border-radius: 2px; }
.page .btn { margin-top: 8px; }

/* ---------- Responsiv ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .stack { order: -1; max-width: 380px; justify-self: start; margin-right: 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .offer { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .launch { grid-template-columns: minmax(0, 1fr); }
    .btn { flex: 1 1 100%; }
  .stack { max-width: 300px; }
}
