/* =============================================================
   FemMosaik e.V. — Coming-soon page
   Built on the official brand tokens (siehe Design System).
   ============================================================= */

/* ---------- BRAND FONTS (lokal gehostet) ---------- */
@font-face {
  font-family: "Work Sans";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("fonts/WorkSans-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Work Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/WorkSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Work Sans";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("fonts/WorkSans-Black.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("fonts/Inter-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-Bold.ttf") format("truetype");
}

:root {
  --lobster-pink:    #C65D67;
  --crimson-violet:  #622447;
  --powder-blush:    #FEC1B5;
  --burnt-rose:      #8A3F3C;
  --deep-purple:     #532153;

  --blush-50:   #FFF1EC;
  --blush-100:  #FEDFD5;
  --blush-200:  #FEC1B5;
  --rose-500:   #C65D67;
  --rose-700:   #8A3F3C;
  --plum-600:   #622447;
  --plum-700:   #532153;
  --plum-800:   #3B1738;
  --plum-900:   #260E25;

  --paper:      #FBF6F2;
  --ink-900:    #2B1421;
  --ink-700:    #4A2738;
  --ink-500:    #6E4459;
  --hairline:   rgba(83, 33, 83, 0.16);

  --fg-1:       var(--ink-900);
  --fg-2:       var(--ink-700);
  --fg-3:       var(--ink-500);
  --fg-onDark:  var(--paper);
  --fg-onDark2: var(--blush-100);

  --gradient-mosaic: linear-gradient(135deg, #532153 0%, #622447 28%, #8A3F3C 58%, #C65D67 82%, #FEC1B5 100%);

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(83,33,83,0.08), 0 1px 1px rgba(83,33,83,0.04);
  --shadow-md: 0 4px 10px rgba(83,33,83,0.08), 0 2px 4px rgba(83,33,83,0.06);
  --shadow-lg:
    0 28px 60px -18px rgba(38,14,37,0.42),
    0 12px 28px -10px rgba(138,63,60,0.20),
    0 2px 6px rgba(83,33,83,0.10);
  --shadow-glow: 0 0 0 6px rgba(198,93,103,0.18);

  --font-display: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --tracking-tight: -0.02em;
  --tracking-caps:  0.18em;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ---------- INTRO (Mosaik-Reveal) ---------- */
/* Die Seite startet als Vollbild-Mosaik. Kacheln zerbrechen
   diagonal von links oben nach rechts unten und geben die Card frei. */
.fm-intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  animation: fm-intro-done 0s 1500ms forwards;
}

.fm-intro-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fm-intro-tile {
  transform-box: fill-box;
  transform-origin: center;
  animation: fm-tile-shatter 750ms cubic-bezier(.6,0,.35,1) both;
  animation-delay: calc(var(--i) * 75ms);
}

@keyframes fm-tile-shatter {
  0%   { opacity: 1; transform: scale(1)    rotate(0deg); }
  55%  { opacity: 1; transform: scale(1.04) rotate(2deg); }
  100% { opacity: 0; transform: scale(0.35) rotate(-6deg); }
}

@keyframes fm-intro-done {
  to { visibility: hidden; }
}

/* ---------- BACKDROP ---------- */
/* Plum hero with mosaic pattern watermark — die Signatur-Bühne. */
.fm-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 0;
  background: var(--gradient-mosaic);
  overflow: hidden;
  isolation: isolate;
}

.fm-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/mosaic-pattern.svg");
  background-size: 720px auto;
  background-repeat: repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
  z-index: -1;
  animation: fm-drift 60s linear infinite;
}

.fm-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,14,37,0.35) 0%, rgba(83,33,83,0.15) 50%, rgba(38,14,37,0.55) 100%);
  z-index: -1;
}

@keyframes fm-drift {
  from { background-position: 0 0; }
  to   { background-position: 720px 720px; }
}

/* ---------- CARD ---------- */
.fm-card {
  width: 100%;
  max-width: 640px;
  margin: auto 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: fm-rise 900ms 450ms cubic-bezier(.2,.7,.2,1) both;
}

@keyframes fm-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Staggered Inhalts-Reveal nach der Card. */
.fm-brand        { animation: fm-fade-up 600ms  900ms cubic-bezier(.2,.7,.2,1) both; }
.fm-eyebrow      { animation: fm-fade-up 600ms 1040ms cubic-bezier(.2,.7,.2,1) both; }
.fm-headline     { animation: fm-fade-up 600ms 1120ms cubic-bezier(.2,.7,.2,1) both; }
.fm-lead         { animation: fm-fade-up 600ms 1200ms cubic-bezier(.2,.7,.2,1) both; }
.fm-divider      { animation: fm-fade-up 600ms 1280ms cubic-bezier(.2,.7,.2,1) both; }
.fm-social-lead  { animation: fm-fade-up 600ms 1340ms cubic-bezier(.2,.7,.2,1) both; }
.fm-social-group { animation: fm-fade-up 600ms 1400ms cubic-bezier(.2,.7,.2,1) both; }
.fm-footer       { animation: fm-fade-up 600ms 1500ms cubic-bezier(.2,.7,.2,1) both; }

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

.fm-card-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-mosaic);
  z-index: 0;
}

/* Inhaltsschicht über der Stripe. */
.fm-brand,
.fm-eyebrow,
.fm-headline,
.fm-lead,
.fm-divider,
.fm-social-lead,
.fm-social-group { position: relative; z-index: 2; }

/* ---------- BRAND LOCKUP ---------- */
.fm-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.fm-brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  background: var(--paper);
}

.fm-brand-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
  color: var(--plum-700);
  margin: 0;
}

.fm-brand-sub {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--rose-500);
  margin-top: -8px;
}

/* ---------- MESSAGE ---------- */
.fm-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px 0;
  color: var(--rose-500);
}

.fm-eyebrow::before,
.fm-eyebrow::after {
  content: "";
  flex: 0 0 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.fm-eyebrow span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.fm-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.8vw, 44px);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: var(--plum-700);
  margin: 0 0 22px 0;
  text-wrap: balance;
}

.fm-headline-accent {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--rose-700);
  position: relative;
  white-space: nowrap;
  padding: 0 0.04em;
  background-image: linear-gradient(180deg, transparent 78%, rgba(254,193,181,0.62) 78%, rgba(254,193,181,0.62) 96%, transparent 96%);
  background-repeat: no-repeat;
}

.fm-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 44ch;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ---------- DIVIDER (Mosaik-Kacheln) ---------- */
.fm-divider {
  margin: 38px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 14px;
}

.fm-divider span {
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(59,23,56,0.45);
}

.fm-divider span:nth-child(1) { background: var(--plum-700); transform: rotate(-8deg) translateY(-1px); }
.fm-divider span:nth-child(2) { background: var(--plum-600); transform: rotate(5deg)  translateY(2px); }
.fm-divider span:nth-child(3) { background: var(--rose-700); transform: rotate(-3deg) translateY(-2px); }
.fm-divider span:nth-child(4) { background: var(--rose-500); transform: rotate(9deg)  translateY(1px); }
.fm-divider span:nth-child(5) { background: var(--blush-200); transform: rotate(-6deg) translateY(-1px); }

/* ---------- SOCIAL CTA ---------- */
.fm-social-lead {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--rose-500);
  margin: 0 0 14px 0;
}

.fm-social-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.fm-social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 16px;
  border-radius: var(--radius-pill);
  background-image: var(--gradient-mosaic);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 8px 22px -10px rgba(38,14,37,0.45), 0 2px 4px rgba(83,33,83,0.18);
  transition:
    transform 200ms ease,
    box-shadow 220ms ease,
    background-position 600ms cubic-bezier(.4,0,.2,1);
}

.fm-social:hover,
.fm-social:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(38,14,37,0.55), 0 4px 8px rgba(138,63,60,0.22);
  background-position: 100% 50%;
}

.fm-social:focus-visible {
  outline: none;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.fm-social:active {
  transform: translateY(0);
}

.fm-social-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 1px rgba(38,14,37,0.25));
}

.fm-social-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.fm-social-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--blush-100);
}

.fm-social-handle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--paper);
}

.fm-social-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  transition: transform 180ms ease;
}

.fm-social:hover .fm-social-arrow,
.fm-social:focus-visible .fm-social-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* ---------- FOOTER (in stage, schwebend) ---------- */
.fm-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 28px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--blush-100);
  text-shadow: 0 1px 12px rgba(38,14,37,0.55);
  opacity: 0.92;
}

.fm-footer-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--powder-blush);
  border: 1px solid rgba(255,241,236,0.55);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(254,193,181,0.55);
}

.fm-footer a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--powder-blush);
  text-underline-offset: 3px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 520px) {
  .fm-stage { padding: 28px 16px 0; }
  .fm-card  { padding: 40px 24px; border-radius: var(--radius-md); }
  .fm-brand-mark { width: 80px; height: 80px; }

  .fm-mosaic-accent--tr {
    width: 150px; height: 120px;
    top: -26px; right: -28px;
  }
  .fm-mosaic-accent--bl {
    width: 112px; height: 92px;
    bottom: -20px; left: -22px;
  }

  .fm-eyebrow::before,
  .fm-eyebrow::after { flex-basis: 22px; }

  .fm-footer { margin: 24px 0 20px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-intro { display: none; }
  .fm-stage::before,
  .fm-card,
  .fm-brand,
  .fm-eyebrow,
  .fm-headline,
  .fm-lead,
  .fm-divider,
  .fm-social-lead,
  .fm-social-group,
  .fm-footer { animation: none; }
  .fm-social,
  .fm-social-arrow { transition: none; }
  .fm-social:hover,
  .fm-social:focus-visible { transform: none; background-position: 0% 50%; }
  .fm-social:hover .fm-social-arrow,
  .fm-social:focus-visible .fm-social-arrow { transform: none; }
}
