/* ============================================================
   MINOU PAROVSKY · parovsky.art
   ============================================================ */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b050a;
  --plum: #2b0e22;
  --magenta: #b3227c;
  --magenta-soft: rgba(78, 30, 20, 0.4);
  --pink: #d94f9e;
  --gold: #c9a227;
  --ink: #f3ecf1;
  --ink-muted: #b5a2af;
  --ink-faint: #7d6b77;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100svh;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--magenta); color: #fff; }

/* ---------- Hintergrund-Welt: schwarzer Verlauf mit Magenta-Atmung ---------- */

body.home .navlink { color: var(--ink); }

body.home {
  background-image:
    radial-gradient(380px 340px at 62% 30%, rgba(54, 34, 22, 0.38), transparent 60%),
    radial-gradient(320px 460px at -6% 26%, rgba(64, 38, 24, 0.14), transparent 55%);
}

body.vernissage {
  background-image:
    radial-gradient(340px 280px at 50% 30%, rgba(40, 10, 24, 0.55), transparent 65%),
    linear-gradient(180deg, #10070c 0%, #0b0509 55%, #090408 100%);
}

/* Feines Korn — verhindert Banding, gibt der Fläche Leinwand-Textur */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Übergangs-Schleier zwischen den Seiten */
.veil {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
body.leaving .veil { opacity: 1; }

/* ---------- Kopfzeile ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1.1rem, 2.5vw, 1.8rem) clamp(1.4rem, 4vw, 3.2rem);
  animation: fadeDown 1.2s var(--ease-out) 0.9s backwards;
}

.brand {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}
.brand .tld { color: var(--pink); }
a.brand { transition: color 0.35s ease; }
a.brand:hover { color: var(--ink); }

.navlink {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
  padding-bottom: 0.35em;
  background: linear-gradient(var(--pink), var(--pink)) bottom left / 0% 1px no-repeat;
  transition: color 0.35s ease, background-size 0.45s var(--ease-out);
}
.navlink:hover, .navlink:focus-visible {
  color: var(--ink);
  background-size: 100% 1px;
}
.navarrow { color: var(--pink); }

/* ---------- Startseite: Bühne ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4.5rem, 8vh, 6rem) clamp(1.4rem, 4vw, 3.2rem) 2rem;
}

.intro {
  z-index: 10;
  flex: none;
  max-width: 620px;
}

.name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 400;
}

.minou {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--ink);
  animation: fadeUp 1.4s var(--ease-out) 0.15s backwards;
}

.rule {
  width: clamp(4.5rem, 8vw, 7rem);
  height: 2px;
  margin: clamp(1.1rem, 2.2vh, 1.6rem) 0;
  background: linear-gradient(90deg, var(--magenta), var(--pink));
  transform-origin: left center;
  animation: ruleIn 1.2s var(--ease-out) 0.75s backwards;
}

.surname {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.4rem);
  letter-spacing: 0.55em;
  margin-right: -0.55em;
  color: var(--ink);
  animation: fadeUp 1.3s var(--ease-out) 0.55s backwards;
}

.tagline {
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: fadeUp 1.3s var(--ease-out) 0.85s backwards;
}

/* Kontaktblock mit Gold-Akzent — wie auf der Karte */
.contact {
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  animation: fadeUp 1.3s var(--ease-out) 1.05s backwards;
}

.goldmark {
  position: relative;
  width: 9px;
  flex: none;
}
.goldmark::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8c85a, var(--gold) 60%, #8a6d15);
}
.goldmark::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  bottom: 0.1rem;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.8), rgba(201, 162, 39, 0));
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mail {
  color: var(--ink);
  text-decoration: none;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  letter-spacing: 0.06em;
  background: linear-gradient(var(--pink), var(--pink)) bottom left / 0% 1px no-repeat;
  padding-bottom: 2px;
  transition: color 0.35s ease, background-size 0.45s var(--ease-out);
}
.mail:hover, .mail:focus-visible { color: var(--pink); background-size: 100% 1px; }

.www {
  color: var(--pink);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.06em;
}

/* ---------- Das Bild: Kopf, der aus dem Schwarz auftaucht ---------- */

.artwork {
  position: relative;
  display: block;
  line-height: 0;
  text-decoration: none;
  outline: none;
}

/* Der Kopf steht frei: oben und rechts abgesetzt, näher zur Schrift,
   alle Kanten lösen sich weich ins Dunkel — Farben unangetastet. */
.hero .artwork {
  position: relative;
  flex: none;
  width: min(52vw, 64svh);
  animation: portraitFade 1.8s ease-out 0.1s backwards;
}

.hero .portrait {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0.5%, #000 11%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 92%, transparent 99.5%);
          mask-image:
    linear-gradient(to right, transparent 0.5%, #000 11%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 92%, transparent 99.5%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* Einladung, weiterzugehen — erscheint beim Berühren des Bildes */
.hint {
  position: absolute;
  left: 50%;
  bottom: clamp(3rem, 11vh, 5.5rem);
  transform: translate(-50%, 8px);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(11, 5, 10, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(217, 79, 158, 0.35);
  border-radius: 2rem;
  padding: 0.7em 1.5em 0.65em 1.7em;
  opacity: 0;
  line-height: 1;
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.hint .arrow { color: var(--pink); letter-spacing: 0; }
.hint { z-index: 2; }
.artwork:hover .hint, .artwork:focus-visible .hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Einladungs-Seite: Text links, Kopf weit rechts ---------- */

body.einladung {
  background-image:
    radial-gradient(380px 340px at 62% 30%, rgba(54, 34, 22, 0.38), transparent 60%),
    radial-gradient(320px 460px at -6% 26%, rgba(64, 38, 24, 0.14), transparent 55%);
}
body.einladung .navlink { color: var(--ink); }

.side-invite {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(4.5rem, 8vh, 6rem) clamp(1.4rem, 4vw, 3.2rem) 2rem;
}

.side-invite .intro {
  z-index: 10;
  width: min(52%, 640px);
  padding-right: clamp(0.5rem, 4vw, 4rem);
  align-self: flex-start;
  margin-top: clamp(0.5rem, 5vh, 3rem);
}

.side-invite .overline {
  text-align: left;
  margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
  animation: fadeUp 1.2s var(--ease-out) 0.15s backwards;
}

.side-invite .minou {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  animation: fadeUp 1.4s var(--ease-out) 0.3s backwards;
}
.side-invite .surname {
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  animation-delay: 0.5s;
}
.side-invite .details .row dd {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}
.side-invite .rule { animation-delay: 0.65s; }

.side-invite .details {
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.05rem, 2.4vh, 1.5rem);
  animation: fadeUp 1.3s var(--ease-out) 0.65s backwards;
}

.side-invite .actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(2rem, 4.5vh, 3rem);
  animation: fadeUp 1.3s var(--ease-out) 0.85s backwards;
}

/* Der Kopf der zweiten Karte — links, beim Seitenwechsel entsteht
   durch das Verschmelzen eine Bewegung von rechts nach links */
.side-invite .artwork {
  position: absolute;
  top: clamp(3.2rem, 8vh, 5.5rem);
  left: clamp(2rem, 7vw, 9rem);
  width: min(48vw, 66svh);
  animation: portraitFade 1.8s ease-out 0.1s backwards;
}

.side-invite .artwork img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 9%, #000 79%, transparent 98%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 99.5%);
          mask-image:
    linear-gradient(to right, transparent 0%, #000 9%, #000 79%, transparent 98%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 99.5%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

.side-invite .hint { bottom: 12%; }

/* ---------- Vernissage-Seite ---------- */

.invite {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(5.5rem, 10vh, 7rem) clamp(1.4rem, 4vw, 3rem) 4.5rem;
}
/* vertikal zentriert, wenn Platz ist — scrollt sauber, wenn nicht */
.invite > :first-child { margin-top: auto; }
.invite > :last-child { margin-bottom: auto; }

.overline {
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: fadeUp 1.2s var(--ease-out) 0.2s backwards;
}

.invite .artwork {
  margin-top: clamp(1.2rem, 3vh, 2rem);
  width: min(86vw, 67svh, 660px);
  animation: portraitIn 1.8s var(--ease-out) 0.15s backwards;
  will-change: transform;
}

/* Breites Oval — so viel Originalbild wie möglich, Stirn bleibt ganz */
.invite .artwork img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.06) contrast(1.04);
  -webkit-mask-image:
    radial-gradient(ellipse 49% 46% at 51% 46%, #000 96%, transparent 99.7%);
          mask-image:
    radial-gradient(ellipse 49% 46% at 51% 46%, #000 96%, transparent 99.7%);
}

.invite .hint { bottom: 14%; }

/* Dezente Werk-Beschriftung wie ein Galerieschild */
.werklabel {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.45em;
  margin-right: -0.45em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: clamp(1.8rem, 4.5vh, 2.8rem);
  animation: fadeUp 1.3s var(--ease-out) 0.5s backwards;
}

.invite .name {
  align-items: center;
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
}
.invite .minou {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  animation-delay: 0.35s;
}
.invite .rule {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
  animation-delay: 0.8s;
}
.invite .surname {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.6em;
  margin-right: -0.6em;
  animation-delay: 0.6s;
}

.details {
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.05rem, 2.4vh, 1.5rem);
  animation: fadeUp 1.3s var(--ease-out) 0.9s backwards;
}

.details .row dt {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.details .row dd {
  font-size: clamp(1.02rem, 2.2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.09em;
  line-height: 1.65;
  color: var(--ink);
}

.actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
  animation: fadeUp 1.3s var(--ease-out) 1.15s backwards;
}

.action {
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  border: 1px solid rgba(181, 162, 175, 0.28);
  border-radius: 2rem;
  padding: 0.85em 1.7em 0.8em 1.9em;
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.action:hover, .action:focus-visible {
  color: var(--ink);
  border-color: var(--pink);
  background-color: rgba(179, 34, 124, 0.12);
}

.sep {
  width: 1px;
  height: 1.4rem;
  background: rgba(181, 162, 175, 0.25);
}

/* ---------- Fußzeile ---------- */

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 45;
  animation: fadeUp 1.2s var(--ease-out) 1.4s backwards;
}
.foot .mail { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--ink-faint); }
.foot .mail:hover { color: var(--pink); }
.foot .dot { color: var(--ink-faint); }

body.vernissage .foot { position: static; padding-bottom: 2rem; }
body.einladung .foot { position: static; padding-bottom: 1.8rem; }

/* ---------- Bewegung ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ruleIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes portraitIn {
  from { opacity: 0; transform: scale(1.035); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes portraitFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.15s !important;
  }
}

/* ---------- Responsiv ---------- */

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 5rem;
  }
  .hero .artwork {
    position: relative;
    order: -1;
    top: auto;
    right: auto;
    width: 100%;
  }
  /* Wie die Karte: Bild läuft nur unten ins Schwarz, sonst randlos */
  .hero .portrait {
    -webkit-mask-image: linear-gradient(to top, transparent 0.5%, #000 8%);
            mask-image: linear-gradient(to top, transparent 0.5%, #000 8%);
    -webkit-mask-composite: source-over;
            mask-composite: add;
  }
  .intro {
    width: 100%;
    text-align: center;
    padding: 0 1.4rem;
    margin-top: clamp(-3.5rem, -9vw, -1rem);
  }
  .name { align-items: center; }
  .contact {
    justify-content: center;
    margin-top: 2rem;
  }
  .goldmark::after { display: none; }
  .goldmark { width: 9px; height: 9px; align-self: center; }
  .goldmark::before { top: -4px; }
  .contact-lines { align-items: flex-start; }
  .hint { display: none; }
  .foot { display: none; }
  body.vernissage .foot { display: flex; }
  .actions { flex-wrap: wrap; justify-content: center; }

  /* Einladungs-Seite mobil: Kopf rechts oben, Text darunter */
  .side-invite {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 4.5rem;
  }
  .side-invite .artwork {
    position: relative;
    order: -1;
    top: auto;
    left: auto;
    width: 58vw;
    margin-right: auto;
  }
  .side-invite .intro {
    width: 100%;
    padding: 0 1.6rem;
    margin-top: clamp(-4rem, -10vw, -1.5rem);
  }
  .side-invite .actions { justify-content: flex-start; }
}

@media (max-width: 400px) {
  .surname { letter-spacing: 0.42em; margin-right: -0.42em; }
}
