/* Öffentliche Seiten: Einladung, Anmeldung, Ticket.
   Dunkel und warm — die Seite ist der erste Eindruck der Party, nicht ein
   Formular. Keine Webfonts: das spart einen externen Request, funktioniert
   offline und schickt keine Besucherdaten zu Google. */

:root {
  --ink: #f4ece2;
  --ink-dim: #b9aa99;
  --bg: #15100e;
  --bg-raised: #1f1815;
  --line: #362a24;
  --accent: #c8102e;
  --accent-soft: #e8b84b;
  --ok: #6fbf73;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 34rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

header.hero { text-align: center; padding: 2.5rem 0 1.5rem; }
header.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent-soft);
}
header.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.9rem);
  line-height: 1.1;
  margin: 0.6rem 0 0.4rem;
}
header.hero .date { color: var(--ink-dim); margin: 0; }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 0.75rem; }

label { display: block; margin: 0.9rem 0 0.3rem; font-size: 0.88rem; color: var(--ink-dim); }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 16px; /* < 16px lässt iOS beim Fokus hineinzoomen */
  color: var(--ink);
  background: #120d0b;
  border: 1px solid var(--line);
  border-radius: 10px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.35rem; }
.roles label {
  margin: 0;
  text-align: center;
  padding: 0.7rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9rem;
  background: #120d0b;
}
.roles input { position: absolute; opacity: 0; pointer-events: none; }
.roles input:checked + span { color: var(--bg); }
.roles label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--bg); font-weight: 600; }

.check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.1rem 0 0; }
.check input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.check span { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.45; }

button.primary {
  width: 100%;
  margin-top: 1.4rem;
  padding: 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
button.primary:disabled { opacity: 0.55; cursor: default; }
button.link {
  background: none; border: none; color: var(--accent-soft);
  font: inherit; text-decoration: underline; cursor: pointer; padding: 0;
}

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

.note { font-size: 0.85rem; color: var(--ink-dim); }
.error { color: #ff9a9a; font-size: 0.9rem; margin-top: 0.8rem; }

.done { text-align: center; padding: 1rem 0 0.5rem; }
.done .mark { font-size: 2.6rem; line-height: 1; }
.done h2 { margin-top: 0.7rem; }

.ticket-qr { background: #fff; border-radius: var(--radius); padding: 1rem; margin: 1rem auto; max-width: 16rem; }
.ticket-qr svg { display: block; width: 100%; height: auto; }

.kv { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--ink-dim); }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; color: var(--accent-soft); letter-spacing: 0.06em; }

.paid { color: var(--ok); }

footer { text-align: center; padding: 2rem 0 0; font-size: 0.8rem; color: var(--ink-dim); }
footer a { color: var(--ink-dim); }
