/* ============================================================
   Anmeldung zur Aperol-Party

   Liegt bewusst in einer eigenen Datei: Sie wird nur auf
   events-kurse.html geladen und muss nicht in jedem Seitenaufruf
   der Website mitgeschleppt werden.
   ============================================================ */

.anm { padding: 0 0 var(--sp-20); scroll-margin-top: 90px; }

.anm-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ---------- Kopf ---------- */

.anm-head {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-8) var(--sp-10);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-6); flex-wrap: wrap;
}
.anm-head h2 { margin: 0 0 6px; font-size: 1.75rem; font-weight: 700; line-height: 1.15; color: var(--white); }
.anm-head p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.97rem; line-height: 1.6; max-width: 46ch; }
.anm-kicker {
  display: inline-block; background: var(--tan); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: var(--sp-3);
}
.anm-frei {
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.72);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.anm-frei::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #4FD18B; box-shadow: 0 0 0 4px rgba(79, 209, 139, 0.22);
}

.anm-head-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-3); }
.anm-oeffnen { white-space: nowrap; }


/* ---------- Raster ---------- */

.anm-grid { display: grid; grid-template-columns: 1fr 290px; }
.anm-grid[hidden] { display: none; }
@media (max-width: 860px) { .anm-grid { grid-template-columns: 1fr; } }

.anm-form { padding: var(--sp-10); }
@media (max-width: 560px) { .anm-form { padding: var(--sp-6); } .anm-head { padding: var(--sp-6); } }

/* ---------- Schritte ---------- */

/* Ein generisches section-Polster aus style.css wuerde die Schritte
   sonst um fast 100px nach unten schieben. */
.anm-panel { display: none; padding: 0; margin: 0; }
.anm-panel.an { display: block; animation: anmEin 0.28s ease both; }
@keyframes anmEin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .anm-panel.an { animation: none; } }

.anm-schritt {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--text-faint); margin: 0 0 var(--sp-2);
}
.anm-panel h3 { margin: 0 0 var(--sp-2); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.anm-sub { margin: 0 0 var(--sp-6); color: var(--text-muted); font-size: 0.94rem; line-height: 1.65; }

/* ---------- Felder ---------- */

.anm-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 560px) { .anm-reihe { grid-template-columns: 1fr; } }

.anm-feld { margin-bottom: var(--sp-4); }
.anm-feld label {
  display: block; font-size: 0.83rem; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
.anm-feld label .opt { font-weight: 500; color: var(--text-faint); }
.anm-feld input,
.anm-feld select,
.anm-feld textarea {
  width: 100%; box-sizing: border-box;
  font-family: var(--font); font-size: 0.97rem; color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--cream-dark); border-radius: 11px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.anm-feld textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.anm-feld input:focus,
.anm-feld select:focus,
.anm-feld textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(19, 13, 76, 0.09);
}
.anm-hilfe { margin-top: 6px; font-size: 0.8rem; color: var(--text-faint); line-height: 1.55; }

/* Die Falle für Formularroboter: für Menschen unsichtbar, aber nicht
   display:none, damit ausfüllende Roboter sie überhaupt finden. */
.anm-falle {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* ---------- Anzahl ---------- */

.anm-anzahl { display: flex; align-items: center; gap: var(--sp-3); }
.anm-anzahl button {
  width: 42px; height: 42px; flex: none;
  border: 1.5px solid var(--cream-dark); background: var(--white);
  border-radius: 11px; color: var(--navy); font-size: 1.25rem; font-weight: 700;
  cursor: pointer; line-height: 1; transition: background 0.15s, border-color 0.15s;
}
.anm-anzahl button:hover:not(:disabled) { background: var(--cream); border-color: var(--navy); }
.anm-anzahl button:disabled { opacity: 0.35; cursor: default; }
.anm-anzahl output {
  min-width: 46px; text-align: center;
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
}
.anm-anzahl .anm-anzahl-text { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Kästchen ---------- */

.anm-haken {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 0.88rem; line-height: 1.6; color: var(--text-muted);
  margin: var(--sp-5) 0 var(--sp-2); cursor: pointer;
}
.anm-haken input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--navy); }
.anm-haken a { color: var(--brown); }

/* ---------- Stripe ---------- */

.anm-stripe {
  border: 1.5px solid var(--cream-dark); border-radius: 14px;
  padding: var(--sp-5); background: var(--white); margin-bottom: var(--sp-5);
}
.anm-lade > div {
  height: 42px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--cream) 25%, var(--cream-dark) 37%, var(--cream) 63%);
  background-size: 400% 100%; animation: anmSchimmer 1.3s ease infinite;
}
@keyframes anmSchimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Meldungen und Knöpfe ---------- */

.anm-fehler {
  display: none; margin: var(--sp-4) 0 0;
  background: #FCEDEA; border-left: 3px solid var(--danger);
  color: var(--danger); border-radius: 0 10px 10px 0;
  padding: 12px 15px; font-size: 0.9rem; line-height: 1.6;
}
.anm-fehler.an { display: block; }

.anm-aktion { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; }
.anm-aktion .btn { flex: 1; min-width: 190px; justify-content: center; text-align: center; }
.anm-zurueck {
  flex: none; background: transparent; border: 1.5px solid var(--line);
  color: var(--navy); border-radius: 999px; padding: 13px 22px;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.anm-zurueck:hover { background: var(--cream); }

.anm-spinner {
  display: inline-block; width: 15px; height: 15px; margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  border-radius: 50%; vertical-align: -2px; animation: anmDreh 0.7s linear infinite;
}
@keyframes anmDreh { to { transform: rotate(360deg); } }

/* ---------- Übersicht ---------- */

.anm-summe {
  background: var(--cream); border-left: 1px solid var(--line);
  padding: var(--sp-8) var(--sp-6);
}
@media (max-width: 860px) { .anm-summe { border-left: none; border-top: 1px solid var(--line); } }
.anm-summe h4 {
  margin: 0 0 var(--sp-5); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 700;
}
.anm-z {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  font-size: 0.9rem; color: var(--text-muted); padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.anm-z span:last-child { font-weight: 600; color: var(--navy); text-align: right; }
.anm-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: var(--sp-5); font-weight: 700; color: var(--navy);
}
.anm-total .betrag { font-size: 1.6rem; letter-spacing: -0.02em; }
.anm-sicher {
  margin-top: var(--sp-6); font-size: 0.8rem; color: var(--text-faint);
  line-height: 1.6; display: flex; gap: 8px;
}
.anm-sicher svg { flex: none; margin-top: 2px; }

/* ---------- Fertig ---------- */

.anm-fertig { text-align: center; padding: var(--sp-6) 0; }
.anm-haken-gross {
  width: 74px; height: 74px; margin: 0 auto var(--sp-5); display: block;
  fill: none; stroke: #2E9E5B; stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
}
.anm-code {
  display: inline-block; margin: var(--sp-4) 0 var(--sp-2);
  font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; color: var(--navy);
  background: var(--cream); border: 1px dashed var(--line);
  border-radius: 12px; padding: 12px 20px;
}

/* ---------- Zahlungsmarken ---------- */
/* Dieselbe Reihe wie in der Kasse: TWINT zuerst, dann Apple Pay,
   dann die Karten. Erkannt wird das Bildzeichen, nicht der Name. */
.anm-marken {
  display: flex; gap: 7px; margin: 0 0 var(--sp-5); flex-wrap: wrap; align-items: center;
}
.anm-marken img {
  height: 32px; width: auto; max-width: 62px; object-fit: contain;
  border-radius: 5px; display: block;
}
.anm-marke {
  display: inline-flex; align-items: center; height: 32px;
  box-sizing: border-box; padding: 0 11px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: .07em;
  border-radius: 5px; background: var(--cream); color: var(--text-muted);
  white-space: nowrap;
}
