/* Online-Anmeldung — nutzt die Design-Tokens aus aufbauseminar.MoFsv2.css
   (--brand-blue #2563eb, --bg-secondary #f8f9fb, --radius-card 20px, Inter …) */

.anm-body {
  background: var(--bg-secondary, #f8f9fb);
  color: var(--text-primary, #111827);
  font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.anm-hidden { display: none !important; }

/* ── Header ─────────────────────────────────────────────────── */
.anm-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light, #e5e7eb);
}
.anm-header-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.anm-logo { height: 40px; width: auto; display: block; }
.anm-header-right { display: flex; align-items: center; gap: 20px; }
.anm-header-phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  color: var(--brand-blue, #2563eb); text-decoration: none;
}
.anm-header-phone:hover { color: #1d4ed8; }
.anm-back-link {
  font-size: 14px; font-weight: 500; color: var(--text-secondary, #4b5563);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.anm-back-link:hover { color: var(--text-primary, #111827); }
@media (max-width: 560px) {
  .anm-back-link { display: none; }
  .anm-header-phone span { display: none; }
  .anm-header-phone { padding: 10px; background: #eff6ff; border-radius: 9999px; }
}

/* ── Layout ─────────────────────────────────────────────────── */
.anm-main {
  flex: 1; width: 100%; max-width: 1080px;
  margin: 0 auto; padding: 40px 20px 96px;
}
.anm-intro { text-align: center; margin-bottom: 32px; }
.anm-title {
  font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em;
  margin: 0 0 10px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #1d4ed8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.anm-subtitle { font-size: 17px; color: var(--text-secondary, #4b5563); margin: 0; }

.anm-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 1024px) {
  .anm-layout { grid-template-columns: 1fr 320px; }
}

/* ── Fortschritt ────────────────────────────────────────────── */
.anm-progress { max-width: 560px; margin: 0 auto 36px; }
.anm-progress-label {
  display: flex; justify-content: space-between; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary, #4b5563);
}
#anm-step-name { color: var(--brand-blue, #2563eb); }
.anm-progress-track {
  height: 6px; border-radius: 9999px; background: var(--bg-tertiary, #f1f3f7);
  overflow: hidden;
}
.anm-progress-fill {
  height: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  transition: width .45s cubic-bezier(.16, 1, .3, 1);
}

/* ── Karten & Schritte ──────────────────────────────────────── */
.anm-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: var(--radius-card, 20px);
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04));
}
.anm-step { animation: anm-fade .4s cubic-bezier(.16, 1, .3, 1); }
@keyframes anm-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.anm-step-title {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px;
}
.anm-field-title {
  font-size: 15px; font-weight: 700; margin: 26px 0 10px;
}
.anm-step > div:first-of-type .anm-field-title { margin-top: 0; }

/* Klassen-Auswahl */
.anm-klassen-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px;
}
.anm-klasse-card, .anm-option-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--bg-card, #fff);
  border: 2px solid var(--border-light, #e5e7eb);
  border-radius: 16px; padding: 18px;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  font: inherit; color: inherit; width: 100%;
}
.anm-klasse-card:hover, .anm-option-card:hover {
  border-color: var(--border-hover, #93c5fd);
  box-shadow: 0 8px 24px rgba(37, 99, 235, .08);
  transform: translateY(-2px);
}
.anm-klasse-card.anm-selected, .anm-option-card.anm-selected {
  border-color: var(--brand-blue, #2563eb);
  background: #eff6ff;
}
.anm-klasse-card.anm-selected::after, .anm-option-card.anm-selected::after {
  content: ""; position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 9999px;
  background: var(--brand-blue, #2563eb);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.anm-klasse-icon { color: var(--brand-blue, #2563eb); margin-bottom: 10px; }
.anm-klasse-code { font-size: 17px; font-weight: 800; letter-spacing: -.01em; display: block; }
.anm-klasse-desc { font-size: 13px; color: var(--text-secondary, #4b5563); display: block; margin-top: 3px; }
.anm-klasse-price {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700;
  color: var(--brand-blue, #2563eb); background: #eff6ff;
  border-radius: 9999px; padding: 4px 12px;
}
.anm-klasse-card.anm-selected .anm-klasse-price { background: #dbeafe; }

/* Options-Reihen (Erwerbsart, Filiale, Zahlung) */
.anm-option-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) {
  .anm-option-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.anm-option-card { padding: 16px 18px; padding-right: 44px; }
.anm-option-title { font-size: 15px; font-weight: 700; display: block; }
.anm-option-desc { font-size: 13px; color: var(--text-secondary, #4b5563); display: block; margin-top: 3px; }

/* Info-Banner */
.anm-info-banner {
  margin-top: 18px; padding: 14px 18px; border-radius: 14px;
  background: #fff7ed; border: 1px solid #fed7aa;
  font-size: 14px; line-height: 1.55; color: #7c2d12;
}

/* Intensivkurs-Toggle */
.anm-toggle-card {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  background: var(--bg-card, #fff);
  border: 2px solid var(--border-light, #e5e7eb);
  border-radius: 16px; padding: 18px;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
}
.anm-toggle-card:hover { border-color: var(--border-hover, #93c5fd); }
.anm-toggle-card.anm-selected { border-color: var(--brand-blue, #2563eb); background: #eff6ff; }
.anm-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.anm-toggle-box {
  flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px;
  border: 2px solid var(--border-medium, #d1d5db); border-radius: 8px;
  transition: all .2s;
}
.anm-toggle-card.anm-selected .anm-toggle-box {
  border-color: var(--brand-blue, #2563eb); background: var(--brand-blue, #2563eb);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.anm-toggle-title { font-size: 15px; font-weight: 700; display: block; }
.anm-toggle-desc { font-size: 13px; color: var(--text-secondary, #4b5563); display: block; margin-top: 3px; }
.anm-badge {
  display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700;
  color: #ea580c; background: #fff7ed; border-radius: 9999px; padding: 2px 10px;
  vertical-align: middle;
}

/* ── Formular ───────────────────────────────────────────────── */
.anm-form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) {
  .anm-form-grid { grid-template-columns: 1fr 1fr; }
  .anm-field-wide { grid-column: span 2; }
}
.anm-field label {
  display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px;
  color: var(--text-primary, #111827);
}
.anm-field input, .anm-field textarea {
  width: 100%; padding: 12px 16px; font: inherit; font-size: 15px;
  color: var(--text-primary, #111827);
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 12px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.anm-field input:focus, .anm-field textarea:focus {
  border-color: #60a5fa; box-shadow: 0 0 0 3px #dbeafe;
}
.anm-field input.anm-invalid, .anm-field textarea.anm-invalid { border-color: #ef4444; }
.anm-field-error { color: #dc2626; font-size: 13px; margin: 6px 0 0; min-height: 0; display: none; }
.anm-field-error:not(:empty) { display: block; }
.anm-field-hint { color: #b45309; font-size: 13px; margin: 6px 0 0; }
.anm-submit-error { font-size: 14px; margin-top: 16px; }

/* Honeypot unsichtbar (nicht display:none — manche Bots erkennen das) */
.anm-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ── Buttons ────────────────────────────────────────────────── */
.anm-nav-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; margin-top: 30px;
}
.anm-btn-primary {
  cursor: pointer; border: none; font: inherit;
  border-radius: 9999px; padding: 13px 32px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #fff;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #1d4ed8);
  background-size: 200% 100%; background-position: left;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .3);
  transition: all .5s cubic-bezier(.16, 1, .3, 1);
}
.anm-btn-primary:hover {
  background-position: right;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .5);
  transform: translateY(-1px);
}
.anm-btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.anm-btn-secondary {
  cursor: pointer; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--text-secondary, #4b5563);
  background: transparent; border: 1px solid var(--border-medium, #d1d5db);
  border-radius: 9999px; padding: 12px 26px;
  transition: all .25s;
}
.anm-btn-secondary:hover { border-color: var(--text-secondary, #4b5563); color: var(--text-primary, #111827); }
.anm-btn-submit { flex: 1; max-width: 420px; }

/* ── Übersicht & Einwilligungen ─────────────────────────────── */
.anm-summary-card { padding: 22px 26px; margin-bottom: 8px; }
.anm-review-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--bg-tertiary, #f1f3f7);
  font-size: 14.5px;
}
.anm-review-row:last-child { border-bottom: none; }
.anm-review-key { color: var(--text-secondary, #4b5563); flex: 0 0 auto; }
.anm-review-value { font-weight: 600; text-align: right; }
.anm-review-edit {
  font-size: 12.5px; font-weight: 600; color: var(--brand-blue, #2563eb);
  text-decoration: none; margin-left: 10px; white-space: nowrap; cursor: pointer;
  background: none; border: none; font-family: inherit; padding: 0;
}
.anm-review-edit:hover { text-decoration: underline; }

.anm-consents { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.anm-check-row {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  font-size: 13.5px; line-height: 1.55; color: var(--text-secondary, #4b5563);
}
.anm-check-row input {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--brand-blue, #2563eb);
}
.anm-check-row a { color: var(--brand-blue, #2563eb); }
.anm-legal-note {
  margin-top: 18px; font-size: 12.5px; color: var(--text-tertiary, #9ca3af);
}
.anm-legal-note a { color: inherit; }

/* ── Preis-Sidebar ──────────────────────────────────────────── */
.anm-sidebar { position: sticky; top: 84px; display: none; }
@media (min-width: 1024px) { .anm-sidebar { display: block; } }
.anm-price-card { padding: 24px 26px; }
.anm-price-title { font-size: 16px; font-weight: 800; margin: 0 0 14px; }
.anm-price-empty { font-size: 14px; color: var(--text-tertiary, #9ca3af); margin: 0; }
.anm-price-line {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; padding: 7px 0; color: var(--text-secondary, #4b5563);
}
.anm-price-line strong { color: var(--text-primary, #111827); font-weight: 600; }
.anm-price-note { font-size: 13px; color: #b45309; padding: 7px 0; }
.anm-price-total {
  display: flex; justify-content: space-between; margin-top: 12px; padding-top: 14px;
  border-top: 2px solid var(--bg-tertiary, #f1f3f7);
  font-size: 16px; font-weight: 800;
}

/* ── Mobile Bottom-Bar ──────────────────────────────────────── */
.anm-bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light, #e5e7eb);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 1024px) { .anm-bottombar { display: none !important; } }
.anm-bottombar-price { display: flex; flex-direction: column; }
.anm-bottombar-label { font-size: 12px; color: var(--text-secondary, #4b5563); }
.anm-bottombar-price strong { font-size: 17px; font-weight: 800; }

/* ── Footer ─────────────────────────────────────────────────── */
.anm-footer {
  border-top: 1px solid var(--border-light, #e5e7eb);
  background: var(--bg-card, #fff);
}
.anm-footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13px; color: var(--text-tertiary, #9ca3af);
}
.anm-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.anm-footer-links a { color: var(--text-secondary, #4b5563); text-decoration: none; }
.anm-footer-links a:hover { color: var(--text-primary, #111827); }

.anm-noscript { padding: 24px; font-size: 15px; line-height: 1.6; }
.anm-noscript a { color: var(--brand-blue, #2563eb); }

/* Erfolgs-/Infoseiten (danke, abbruch, Rechtstexte) */
.anm-static { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
.anm-static .anm-card { padding: 36px; }
.anm-static h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.anm-static h2 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.anm-static p, .anm-static li { font-size: 15px; line-height: 1.7; color: var(--text-secondary, #4b5563); }
.anm-static a { color: var(--brand-blue, #2563eb); }
.anm-static .anm-ref-box {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px;
  padding: 16px 20px; margin: 20px 0; font-size: 15px;
}
.anm-static .anm-ref-box strong { font-size: 18px; letter-spacing: .04em; }
.anm-success-icon {
  width: 64px; height: 64px; border-radius: 9999px; margin-bottom: 20px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
}
