/* ── STEVE WIRD 50 · abgeleitet vom SUPER-Westberlin-Design ─────────── */

@font-face {
  font-family: "Bossa";
  src: url("fonts/Bossa-ExtendedBold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Mono";
  src: url("fonts/NotoSansMono-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #142316;
  --cream: #f4efdc;
  --yellow: #ffd300;
  --pink: #f58ec3;
  --super-green: #03cb50;
}

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

[hidden] { display: none !important; }

html, body {
  background: var(--green);
  color: var(--cream);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  overflow-x: hidden;
}

/* ── Bilderwand ──────────────────────────────────────────────────────── */

.wall {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 20px);
  padding: 0 clamp(4px, 1vw, 16px);
  overflow: hidden;
  z-index: 0;
}

.col {
  flex: 1 1 0;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.col-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: drift linear infinite;
}
.col-track.rev { animation-direction: reverse; }

@keyframes drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.col-track img,
.col-track video {
  display: block;
  border-radius: 10px;
  height: auto;
}

/* Leichte Grund-Abdunkelung, Rest macht die per-Bild-Varianz */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 65% at 50% 45%, rgba(20,35,22,.28) 0%, rgba(20,35,22,.12) 60%, rgba(20,35,22,.03) 100%);
}

/* ── Farbblöcke hinter den Textzeilen ───────────────────────────────── */

.hl {
  display: inline-block;
  padding: .18em .5em .14em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .30);
}
.hl-yellow { background: var(--yellow); color: var(--green); }
.hl-pink   { background: var(--pink); color: var(--green); }
.hl-green  { background: var(--super-green); color: var(--green); }
.hl-cream  { background: var(--cream); color: var(--green); }
.hl-dark   { background: var(--green); color: var(--cream); }

.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.3deg); }

/* Aufpoppen beim Laden, schön gestaffelt */
.pop {
  animation: pop .55s cubic-bezier(.2, 1.6, .4, 1) backwards;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.6) rotate(0deg); }
}
.invite .pop:nth-of-type(1) { animation-delay: .05s; }
h1 .pop:nth-child(1) { animation-delay: .15s; }
h1 .pop:nth-child(3) { animation-delay: .28s; }
h1 .pop:nth-child(5) { animation-delay: .41s; }
.when .pop:nth-child(1) { animation-delay: .55s; }
.when .pop:nth-child(3) { animation-delay: .65s; }
.tags .pop:nth-child(1) { animation-delay: .78s; }
.tags .pop:nth-child(2) { animation-delay: .86s; }
.tags .pop:nth-child(3) { animation-delay: .94s; }
.tags .pop:nth-child(4) { animation-delay: 1.02s; }
.poem .pop:nth-child(1) { animation-delay: 1.14s; }
.poem .pop:nth-child(3) { animation-delay: 1.24s; }
.poem .pop:nth-child(5) { animation-delay: 1.34s; }
.rsvp-form.pop { animation-delay: 1.5s; }

/* ── Textblock ───────────────────────────────────────────────────────── */

.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  padding: clamp(14px, 3svh, 48px) 16px;
}

.invite {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
  margin-bottom: min(20px, 2.2svh);
}
.eyebrow .hl { padding: .5em .9em .45em; }

h1 {
  font-family: "Bossa", sans-serif;
  font-size: clamp(46px, 11vw, 88px);
  font-size: min(clamp(46px, 11vw, 88px), 9svh);
  line-height: 1.14;
  letter-spacing: .01em;
}
h1 .hl { padding: .05em .22em 0; border-radius: 10px; }

.fifty {
  animation: pop .55s cubic-bezier(.2,1.6,.4,1) backwards, sway 2.2s ease-in-out 1s infinite alternate;
}
@keyframes sway {
  from { transform: rotate(-2.2deg) scale(1); }
  to   { transform: rotate(2deg) scale(1.04); }
}

.when {
  margin-top: 30px;
  margin-top: min(30px, 2.8svh);
  font-size: clamp(13px, 3.4vw, 17px);
  font-weight: 650;
  line-height: 2.1;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.where { text-decoration: none; }
.where:hover { background: var(--yellow); }

.tags {
  margin-top: 22px;
  margin-top: min(22px, 2svh);
  font-size: clamp(13px, 3.2vw, 16px);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 750;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.poem {
  margin-top: 26px;
  margin-top: min(26px, 2.4svh);
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 2.05;
}

/* ── Formular ────────────────────────────────────────────────────────── */

.rsvp-form, .rsvp-done {
  margin: 34px auto 0;
  margin-top: min(34px, 3svh);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  gap: min(12px, 1.4svh);
  align-items: center;
}

.form-title {
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.field {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--green);
  background: var(--cream);
  border: 3px solid var(--green);
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.field::placeholder { color: rgba(20,35,22,.5); }
.field:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

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

.rsvp {
  margin-top: 8px;
  background: var(--yellow);
  color: var(--green);
  font-family: "Bossa", sans-serif;
  font-size: clamp(18px, 4.5vw, 22px);
  border: none;
  cursor: pointer;
  padding: 16px 46px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
.rsvp:hover { transform: translateY(-2px) rotate(-1.5deg) scale(1.04); background: var(--pink); }
.rsvp:active { transform: translateY(0) scale(.98); }
.rsvp:disabled { opacity: .6; cursor: wait; transform: none; }

.form-error {
  font-size: 13px;
  background: var(--green);
  color: var(--pink);
  padding: .4em .7em;
  border-radius: 6px;
}

.rsvp-done { gap: 14px; }
.cal-link {
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cal-link:hover { background: var(--yellow); }
.rsvp-done .big {
  font-family: "Bossa", sans-serif;
  font-size: clamp(40px, 9vw, 64px);
  padding: .05em .25em 0;
  border-radius: 10px;
}
.rsvp-done p:nth-child(2) {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Konfetti ───────────────────────────────────────────────────────── */

.confetti {
  position: fixed;
  top: -20px;
  z-index: 5;
  pointer-events: none;
  border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: .9; }
}

/* ── Kompakt-Modus für niedrige Screens (z. B. iPhone mini) ─────────── */

@media (max-height: 800px) {
  h1 { line-height: 1.08; }
  .when { line-height: 1.8; }
  .poem { line-height: 1.8; }
  .eyebrow { font-size: 11px; }
  .field { padding: 11px 14px; }
  .rsvp { margin-top: 4px; padding: 13px 40px; }
}

/* ── Ruhe-Modus ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .col-track, .fifty, .pop, .confetti { animation: none !important; }
}
