@font-face { font-family: "ABC Diatype Semi-Mono"; src: url("/fonts/ABCDiatypeSemiMono-Medium.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "ABC Diatype Semi-Mono"; src: url("/fonts/ABCDiatypeSemiMono-MediumItalic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "ABC Diatype Semi-Mono"; src: url("/fonts/ABCDiatypeSemiMono-Heavy.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Prickly Pear"; src: url("/fonts/PricklyPear-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --navy: #003057;
  --navy-deep: #00223f;
  --sky: #b4cdee;
  --sky-soft: rgba(180, 205, 238, .14);
  --paper: #fbfaf9;
  --paper-2: #f1eee9;
  --ink: #003057;
  --muted: rgba(0, 48, 87, .62);
  --line: rgba(0, 48, 87, .18);
  --danger: #c2410c;
  --mono: "ABC Diatype Semi-Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hand: "Prickly Pear", "Comic Sans MS", cursive;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[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: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--navy); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px dashed var(--sky); outline-offset: 4px; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; pointer-events: none; animation: loaderFailsafe .01s 9s forwards; }
.js .loader { display: grid; }
.js.reduced .loader { display: none; }
.loader__panel { position: absolute; inset: 0; background: var(--paper); transform-origin: top; }
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--navy); }
.loader__gif { display: block; width: 120px; height: 120px; }
.loader__pct { font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Scroll-Nudel (Isar) ---------- */
.river { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; overflow: hidden; color: var(--sky); contain: layout paint; }
.river svg { position: absolute; overflow: visible; }

/* ---------- Static IZA characters (SVG als Maske -> beliebig einfärbbar) ---------- */
.ch { display: block; background: currentColor; -webkit-mask: var(--ch) center / contain no-repeat; mask: var(--ch) center / contain no-repeat; }
.ch--dumpling { --ch: url("/img/chars/dumpling.svg"); aspect-ratio: 259.96 / 249.25; }
.ch--dumpling-cheeky { --ch: url("/img/chars/dumpling-cheeky.svg"); aspect-ratio: 259.96 / 249.25; }
.ch--dumpling-surprised { --ch: url("/img/chars/dumpling-surprised.svg"); aspect-ratio: 259.96 / 249.25; }
.ch--mochi { --ch: url("/img/chars/mochi.svg"); aspect-ratio: 295.03 / 188.66; }
.ch--mochi-alt { --ch: url("/img/chars/mochi-alt.svg"); aspect-ratio: 288.73 / 194.09; }
.ch--slurpy { --ch: url("/img/chars/slurpy.svg"); aspect-ratio: 309.49 / 245.25; }
.ch--slurpy-alt { --ch: url("/img/chars/slurpy-alt.svg"); aspect-ratio: 286.71 / 281.87; }


/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
.has-cursor .cursor.is-visible { opacity: 1; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input:not([type=checkbox]):not([type=radio]), .has-cursor textarea { cursor: text !important; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 7px; height: 7px; background: var(--paper); transition: background .25s, opacity .2s, width .25s var(--ease), height .25s var(--ease); }
.cursor__ring {
  width: 38px; height: 38px; border: 1.5px solid var(--sky);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), background .3s var(--ease), border-color .3s, opacity .2s;
}
.cursor__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 62px; height: 62px; background: rgba(180, 205, 238, .18); }
.cursor.is-hover .cursor__dot { width: 4px; height: 4px; }
.cursor.is-big .cursor__ring { width: 120px; height: 120px; background: rgba(180, 205, 238, .12); border-color: rgba(180, 205, 238, .6); }
.cursor.has-label .cursor__ring { width: 76px; height: 76px; background: var(--sky); border-color: var(--sky); }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring, .cursor.is-text .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; }
.cursor.on-light .cursor__dot { background: var(--navy); }
.cursor.on-light .cursor__ring { border-color: var(--navy); }
.cursor.on-light.is-hover .cursor__ring { background: rgba(0, 48, 87, .08); }
.cursor.on-light.has-label .cursor__ring { background: var(--navy); border-color: var(--navy); }
.cursor.on-light.has-label .cursor__label { color: var(--paper); }

/* ---------- Bar + ticker ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--gutter);
  color: var(--paper);
  background: rgba(0, 48, 87, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.bar__brand { font-weight: 800; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -.02em; text-decoration: none; }
.bar__cta {
  text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 18px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.bar__cta:hover { background: var(--paper); color: var(--navy); }

.ticker {
  position: sticky; top: 64px; z-index: 40;
  margin-top: 64px;
  background: var(--paper); color: var(--navy);
  overflow: hidden; white-space: nowrap;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 0;
  border-block: 1.5px solid var(--navy);
}
.ticker__track { display: inline-flex; gap: 22px; will-change: transform; }
.ticker__track i { font-style: normal; opacity: .55; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 104px);
  padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(80px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 50% at 75% 30%, rgba(180, 205, 238, .18), transparent 70%);
}
.hero__title { margin: 0; grid-column: 1 / -1; grid-row: 1; font-weight: 400; }
.scrawl {
  display: flex; flex-direction: column;
  font-family: var(--hand); color: var(--sky);
  line-height: .82; letter-spacing: -.01em;
}
.scrawl__line { display: block; width: fit-content; }
.scrawl__line--1 { font-size: clamp(80px, 15vw, 230px); transform: rotate(-3deg); margin-left: .05em; }
.scrawl__line--2 { font-size: clamp(120px, 26vw, 400px); margin-left: clamp(24px, 12vw, 220px); transform: rotate(1.5deg); }
.scrawl__line--3 { font-size: clamp(70px, 13vw, 200px); transform: rotate(-1.5deg); }
.scrawl .char { display: inline-block; will-change: transform; }

.hero__tag {
  position: absolute; top: clamp(28px, 6vw, 72px); right: var(--gutter);
  margin: 0; text-align: right;
  font-size: clamp(22px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.02em; font-weight: 500;
  display: flex; flex-direction: column;
}
.hero__tag span { display: block; overflow: hidden; }

/* Original IZA "Slurpy" – per Maske einfärbbar */
.slurpy {
  aspect-ratio: 309.49 / 245.25;
  background: var(--sky);
  -webkit-mask: url("/img/chars/slurpy.svg") center / contain no-repeat;
  mask: url("/img/chars/slurpy.svg") center / contain no-repeat;
}
.slurp {
  position: absolute; right: clamp(8px, 6vw, 120px); bottom: clamp(70px, 9vw, 120px);
  width: clamp(160px, 24vw, 340px);
}
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 4vw, 40px);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.hero__scroll svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters img { position: absolute; width: 96px; height: auto; aspect-ratio: 1; opacity: .6; will-change: transform; }
.floaters img:nth-child(3n) { width: 76px; }
.floaters img:nth-child(4n) { width: 120px; }

/* ---------- Details ---------- */
.details { padding: clamp(72px, 12vw, 160px) var(--gutter); }
.details > * { position: relative; z-index: 2; }
.details__intro {
  max-width: 26ch; margin: 0 0 clamp(48px, 8vw, 96px);
  font-size: clamp(24px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.025em;
}
.reveal-lines .line { overflow: hidden; }
.details__grid {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid rgba(251, 250, 249, .35);
}
.detail { padding: 22px 22px 22px 0; border-right: 1.5px solid rgba(251, 250, 249, .2); }
.detail + .detail { padding-left: 22px; }
.detail:last-child { border-right: 0; }
.detail dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 18px; }
.detail dd { margin: 0; font-size: 14px; }
.detail .addr { display: block; opacity: .9; }
.route {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(180, 205, 238, .55);
  color: var(--sky); text-decoration: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.route:hover { background: var(--sky); color: var(--navy); border-color: var(--sky); }
.detail .big {
  display: block; font-family: var(--hand); color: var(--sky);
  font-size: clamp(48px, 5.6vw, 88px); line-height: .9; margin-bottom: 8px; white-space: nowrap;
}

/* ---------- RSVP ---------- */
.rsvp {
  padding: 0 var(--gutter) clamp(80px, 12vw, 160px);
  display: grid; place-items: center;
}
.rsvp__card {
  width: min(100%, 720px);
  background: var(--paper); color: var(--ink);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(22px, 5vw, 52px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
  position: relative; z-index: 2;
}
.rsvp__top { display: flex; align-items: center; gap: 16px; min-height: 34px; margin-bottom: clamp(16px, 3vw, 28px); }
.back { border: 0; background: none; padding: 6px 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.back:hover { color: var(--ink); }
.progress { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.progress li { width: 26px; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.progress li::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress li.is-done::after { transform: scaleX(1); }
.step-count { margin: 0; font-size: 12px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }

.stage { position: relative; }
.step { outline: none; }
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rsvp__title { font-weight: 400; margin: 0 0 clamp(28px, 5vw, 44px); font-family: var(--hand); font-size: clamp(56px, 9vw, 104px); line-height: .85; letter-spacing: -.01em; }
.step__title { font-weight: 400; margin: 0 0 6px; font-family: var(--hand); font-size: clamp(44px, 7vw, 72px); line-height: .9; }
.step__sub { margin: 0 0 clamp(20px, 3.5vw, 30px); color: var(--muted); font-size: 14px; }

/* Partiful-artige Emoji-Buttons */
.choice { display: flex; gap: clamp(20px, 6vw, 56px); }
.choice__btn {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border: 0; background: none; padding: 0;
}
.choice__bubble {
  width: clamp(96px, 16vw, 128px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  box-shadow: inset 0 -6px 0 rgba(0, 48, 87, .06);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.choice__btn:hover .choice__bubble { border-color: var(--navy); transform: translateY(-4px); }
.choice__btn:focus-visible { outline: none; }
.choice__btn:focus-visible .choice__bubble { outline: 2px dashed var(--navy); outline-offset: 4px; }
.choice__btn.is-selected .choice__bubble { background: var(--navy); border-color: var(--navy); }
.choice__emoji { font-size: clamp(44px, 7vw, 58px); line-height: 1; display: inline-block; }
.choice__label { font-size: 15px; font-weight: 500; letter-spacing: .02em; }

.form__row { display: grid; gap: 14px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid transparent; border-radius: 14px;
  padding: 15px 16px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus { outline: none; border-color: var(--navy); background: #fff; }
.field.is-invalid input { border-color: var(--danger); }
.step__actions { margin-top: 8px; }

.diet { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.diet__opt input { position: absolute; opacity: 0; pointer-events: none; }
.diet__opt span {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--paper-2);
  font-size: 15px; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.diet__opt b { font-size: 26px; font-weight: 400; line-height: 1; display: inline-block; }
.diet__opt:hover span { border-color: var(--navy); }
.diet__opt input:checked + span { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.diet__opt input:focus-visible + span { outline: 2px dashed var(--navy); outline-offset: 3px; }
.diet.is-invalid .diet__opt span { border-color: var(--danger); }

.final { margin-top: 6px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0 0 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 22px; height: 22px; border: 1.5px solid var(--navy); border-radius: 7px; display: grid; place-items: center; transition: background .2s var(--ease); }
.check__box::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease); }
.check input:checked + .check__box { background: var(--navy); }
.check input:checked + .check__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible + .check__box { outline: 2px dashed var(--navy); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--danger); }
.check a { color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { min-height: 1.4em; margin: 2px 0 10px; color: var(--danger); font-size: 14px; }

.submit {
  position: relative; width: 100%;
  border: 0; border-radius: 999px;
  background: var(--navy); color: var(--paper);
  padding: 19px 28px; font-size: 16px; font-weight: 500; letter-spacing: .04em;
  overflow: hidden;
}
.submit::before { content: ""; position: absolute; inset: 0; background: var(--sky); transform: translateY(101%); transition: transform .45s var(--ease); }
.submit:hover::before { transform: translateY(0); }
.submit:hover { color: var(--navy); }
.submit > * { position: relative; }
.submit__loader { display: none; gap: 6px; justify-content: center; }
.submit__loader i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: bob .8s infinite ease-in-out; }
.submit__loader i:nth-child(2) { animation-delay: .12s; }
.submit__loader i:nth-child(3) { animation-delay: .24s; }
@keyframes bob { 50% { transform: translateY(-6px); opacity: .5; } }
.submit.is-loading { pointer-events: none; }
.submit.is-loading .submit__text { display: none; }
.submit.is-loading .submit__loader { display: inline-flex; }

.success { text-align: center; padding: 4px 0; }
.success__face { display: block; width: 170px; height: 170px; margin: -10px auto 0; }
.success__title { font-weight: 400; font-family: var(--hand); font-size: clamp(44px, 7vw, 76px); line-height: .9; margin: 0 0 14px; }
.success__text { max-width: 44ch; margin: 0 auto 26px; color: var(--muted); }
.success__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn-ghost { border: 1.5px solid var(--navy); background: transparent; border-radius: 999px; padding: 14px 24px; font-size: 15px; transition: background .25s var(--ease), color .25s var(--ease); }
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn-link { border: 0; background: none; text-decoration: underline; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 2; background: var(--paper); color: var(--navy); padding: clamp(48px, 8vw, 96px) var(--gutter) 28px; }
.foot__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 40px; }
.foot__bowl { width: clamp(110px, 16vw, 220px); flex: none; color: var(--navy); transform-origin: 50% 90%; }
.foot__big { font-weight: 400; margin: 0; font-family: var(--hand); font-size: clamp(64px, 13vw, 200px); line-height: .82; }
.foot__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; border-top: 1.5px solid var(--line); padding-top: 18px; }
.foot__meta a { text-decoration: none; }
.foot__meta a:hover { text-decoration: underline; }

/* ---------- Burst particles ---------- */
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.burst span { position: absolute; left: 0; top: 0; font-size: 26px; will-change: transform; font-family: system-ui, sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .details__grid { grid-template-columns: 1fr 1fr; }
  .detail { padding: 20px 16px 20px 0; border-bottom: 1.5px solid rgba(251, 250, 249, .2); }
  .detail + .detail { padding-left: 0; }
  .detail:nth-child(2n) { border-right: 0; padding-left: 16px; }
}
@media (max-width: 560px) {
  .hero { min-height: calc(100svh - 100px); align-items: start; padding-top: 104px; }
  .hero__tag { top: 24px; font-size: 22px; }
  .scrawl__line--2 { margin-left: 18px; }
  .slurp { right: 12px; bottom: 80px; width: 160px; }
  .floaters img { width: 64px; }
  .floaters img:nth-child(4n) { width: 84px; }
  .form__row--2 { grid-template-columns: 1fr; gap: 0; }
  .choice { justify-content: space-around; gap: 12px; }
  .diet { grid-template-columns: 1fr 1fr; }
  .diet__opt span { padding: 14px; gap: 8px; font-size: 14px; }
  .details__grid { grid-template-columns: 1fr; }
  .detail, .detail:nth-child(2n) { border-right: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll svg, .submit__loader i { animation: none; }
}
