/* ==========================================================================
   Kreshnikët e.V. — Mitgliederanmeldung
   Standalone Stylesheet (kein Framework)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Great+Vibes&family=Montserrat:wght@200;300;400;500;600&display=swap');

@font-face {
  font-family: 'Sego';
  src: url('assets/SEGO.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/BricolageGrotesque.ttf') format('truetype');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: #050505;
  color: #F0EAE0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ============ TOKENS ============ */
:root {
  --bg: #050505;
  --gold-grad: linear-gradient(135deg, #f6e9ad 0%, #c9a24f 22%, #8c6d31 42%, #e7c66e 60%, #b78f44 80%, #f6e9ad 100%);
  --surface: #0a0a0a;
  --surface-2: #111;
  --gold: #C9A84C;
  --gold-dim: #8a7434;
  --crimson: #8B1220;
  --rose: #E8A898;
  --text: #F0EAE0;
  --muted: rgba(240,234,224,0.55);
  --muted-2: rgba(240,234,224,0.35);
  --line: rgba(201,168,76,0.18);
  --line-strong: rgba(201,168,76,0.45);
  --error: #e06a5a;
}

/* ============ TYPE UTILITIES ============ */
.script { font-family: 'Sego', 'Great Vibes', cursive; color: var(--rose); font-weight: 400; letter-spacing: 0.01em; }
.kresh {
  font-family: 'Sego', 'Great Vibes', cursive;
  color: #bc9555;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 400;
}
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 240ms ease;
}
.btn-gold {
  background: var(--gold-grad);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #1a1206;
  border: none;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,250,225,0.55), inset 0 -2px 4px rgba(90,66,20,0.4), 0 6px 18px -8px rgba(188,149,85,0.6);
  transition: background-position 500ms ease, box-shadow 240ms ease, transform 240ms ease;
}
.btn-gold:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,250,225,0.7), inset 0 -2px 4px rgba(90,66,20,0.4), 0 10px 24px -8px rgba(188,149,85,0.75);
  color: #1a1206;
}
.btn-gold:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--muted); border-color: rgba(240,234,224,0.25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost:disabled { opacity: 0.3; cursor: default; border-color: rgba(240,234,224,0.15); color: var(--muted-2); }

.hidden { display: none !important; }

/* ============ PAGE FRAME ============ */
.page {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 90px;
  z-index: 1;
}
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 38% at 50% -6%, rgba(201,168,76,0.13) 0%, rgba(201,168,76,0) 60%),
    radial-gradient(ellipse 50% 30% at 50% 108%, rgba(139,18,32,0.10) 0%, rgba(139,18,32,0) 65%);
}

/* ============ HEADER ============ */
.form-header { text-align: center; margin-bottom: 44px; }
.form-header .logo {
  height: 110px; width: auto; margin: 0 auto 22px;
  filter: drop-shadow(0 10px 30px rgba(201,168,76,0.18));
}
.form-header .eyebrow { display: block; margin-bottom: 16px; }
.form-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
.form-header .script-line {
  font-family: 'Sego', 'Great Vibes', cursive;
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.35;
  color: #bc9555;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}
.form-header .sub {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
}

/* ============ PROGRESS ============ */
.progress { margin-bottom: 36px; }
.progress-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.progress-meta .step-count {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
}
.progress-meta .step-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-style: italic;
  color: var(--muted);
}
.progress-track {
  height: 3px;
  background: rgba(240,234,224,0.09);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-grad);
  border-radius: 100px;
  transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ CARD / STEPS ============ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 48px);
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 2px;
  background: var(--gold-grad);
}

.step { display: none; animation: stepIn 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
}

.step-head { margin-bottom: 30px; }
.step-head .eyebrow { display: block; margin-bottom: 10px; }
.step-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-stretch: 75%;
  font-size: clamp(24px, 4vw, 30px);
  letter-spacing: -0.005em;
  color: var(--text);
}
.step-head .step-note {
  margin-top: 10px;
  font-size: 13px; line-height: 1.8;
  color: var(--muted);
}

/* ============ FIELDS ============ */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field > label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
}
.field > label .req { color: var(--rose); margin-left: 2px; }
.field > label .opt {
  color: var(--muted-2); letter-spacing: 0.12em; text-transform: none;
  font-weight: 400; margin-left: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 13px 15px;
  border-radius: 0;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.35), 0 6px 24px -12px rgba(201,168,76,0.4);
}
.field input[type="date"] { color-scheme: dark; }
.field.invalid input, .field.invalid textarea { border-color: rgba(224,106,90,0.7); }

.field-error {
  font-size: 11.5px;
  color: var(--error);
  display: none;
}
.field.invalid .field-error, .group.invalid .field-error { display: block; }

/* ============ PILL RADIO (Geschlecht, Alter, WhatsApp) ============ */
.group { display: flex; flex-direction: column; gap: 10px; }
.group-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
}
.group-label .req { color: var(--rose); margin-left: 2px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  position: relative;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--muted);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all 220ms ease;
  user-select: none;
}
.pill:hover span { border-color: var(--gold); color: var(--gold); }
.pill input:checked + span {
  background: var(--gold-grad);
  color: #1a1206;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(188,149,85,0.6);
}
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============ MITGLIEDSCHAFT CARDS ============ */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }

.plan { position: relative; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card {
  display: flex; flex-direction: column; gap: 6px;
  height: 100%;
  background: var(--surface-2);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 26px 20px 22px;
  cursor: pointer;
  text-align: center;
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
  user-select: none;
}
.plan-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.plan input:checked + .plan-card {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 18px 40px -22px rgba(201,168,76,0.45);
  transform: translateY(-2px);
}
.plan input:focus-visible + .plan-card { outline: 2px solid var(--gold); outline-offset: 3px; }
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold-grad);
  color: #1a1206;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 1;
}
.plan.popular .plan-card { border-color: var(--line-strong); }
.plan-name {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.plan-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; font-weight: 500;
  line-height: 1;
  color: var(--text);
}
.plan-price small {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.plan-detail { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 6px; }
.plan-check {
  margin-top: auto; padding-top: 16px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-2);
  transition: color 220ms ease;
}
.plan input:checked + .plan-card .plan-check { color: var(--gold); }

/* ============ CONSENTS ============ */
.consent-list { display: flex; flex-direction: column; gap: 14px; }
.consent {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 220ms ease;
  user-select: none;
}
.consent:hover { border-color: var(--line-strong); }
.consent.invalid { border-color: rgba(224,106,90,0.6); }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1px solid rgba(201,168,76,0.45);
  display: grid; place-items: center;
  transition: all 200ms ease;
}
.consent .box::after {
  content: '';
  width: 11px; height: 6px;
  border-left: 2px solid #1a1206;
  border-bottom: 2px solid #1a1206;
  transform: rotate(-45deg) scale(0);
  margin-top: -3px;
  transition: transform 180ms ease;
}
.consent input:checked ~ .box { background: var(--gold-grad); border-color: transparent; }
.consent input:checked ~ .box::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible ~ .box { outline: 2px solid var(--gold); outline-offset: 3px; }
.consent .consent-body { display: flex; flex-direction: column; gap: 5px; }
.consent .consent-title {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text);
}
.consent .consent-title .opt {
  color: var(--muted-2); text-transform: none; letter-spacing: 0.1em; font-weight: 400;
}
.consent .consent-text { font-size: 12.5px; line-height: 1.75; color: var(--muted); }

/* ============ SIGNATURE ============ */
.sig-wrap { display: flex; flex-direction: column; gap: 10px; }
.sig-canvas-frame {
  position: relative;
  background: #f7f3ea;
  border: 1px solid var(--line-strong);
  height: 190px;
  cursor: crosshair;
  overflow: hidden;
}
.sig-canvas-frame canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.sig-baseline {
  position: absolute; left: 8%; right: 8%; bottom: 44px;
  border-bottom: 1px dashed rgba(26,18,6,0.35);
  pointer-events: none;
}
.sig-x {
  position: absolute; left: 8%; bottom: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-style: italic;
  color: rgba(26,18,6,0.4);
  pointer-events: none;
}
.sig-hint {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(26,18,6,0.35);
  pointer-events: none;
  transition: opacity 240ms ease;
}
.sig-canvas-frame.signed .sig-hint { opacity: 0; }
.sig-actions { display: flex; justify-content: space-between; align-items: center; }
.sig-clear {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.sig-clear:hover { color: var(--gold); border-bottom-color: var(--gold); }
.sig-who { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

/* ============ NAV ============ */
.form-nav {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-nav .btn { min-width: 150px; }
@media (max-width: 480px) {
  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; }
}

/* ============ GLOBAL ERROR / SENDING ============ */
.form-alert {
  display: none;
  margin-top: 20px;
  border: 1px solid rgba(224,106,90,0.5);
  background: rgba(139,18,32,0.12);
  color: #f0c2ba;
  font-size: 13px; line-height: 1.7;
  padding: 14px 18px;
}
.form-alert.show { display: block; }

/* ============ SUCCESS ============ */
.success { text-align: center; padding: clamp(30px, 6vw, 60px) 10px; }
.success .success-mark {
  width: 74px; height: 74px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  background: rgba(201,168,76,0.06);
}
.success .success-mark::after {
  content: '';
  width: 26px; height: 14px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  margin-top: -6px;
}
.success h2 {
  font-family: 'Sego', 'Great Vibes', cursive;
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  color: #bc9555;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 26px;
}
.success .success-sq {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 3vw, 23px);
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 30px;
}
.success .success-divider {
  width: 56px; height: 1px;
  background: var(--gold-grad);
  margin: 0 auto 30px;
}
.success .success-de {
  font-size: 14px; line-height: 2;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto;
}
.success .demo-note {
  display: none;
  margin: 34px auto 0;
  max-width: 460px;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted-2);
  border: 1px dashed rgba(201,168,76,0.3);
  padding: 10px 16px;
}
.success .demo-note.show { display: block; }

/* ============ FOOTER ============ */
.page-foot {
  margin-top: 56px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 2.2;
}
.page-foot .tagline {
  font-family: 'Sego', 'Great Vibes', cursive;
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--rose);
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}
