:root {
  --bg: #0b0c0e;
  --card: #131417;
  --card-2: #1a1c20;
  --line: #292b30;
  --text: #f2f3f5;
  --muted: #8b909a;
  --brand: #f2f3f5;      /* heller Akzent (Primary-Button) */
  --brand-2: #d5d7db;    /* dezenter Sekundär-Akzent */
  --accent: #6b7280;     /* Fokus / Auswahl */
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 50% -10%, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--text);
}
.brand-name { font-weight: 700; letter-spacing: 0.5px; font-size: 14px; }

.progress { display: flex; gap: 5px; }
.progress span {
  width: 16px; height: 4px; border-radius: 4px;
  background: var(--line); transition: background .3s, width .3s;
}
.progress span.on { background: var(--text); width: 22px; }
.progress span.done { background: var(--muted); }

/* Steps */
.step { display: none; animation: fade .35s ease; }
.step.active { display: block; }
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.subtitle { color: var(--muted); font-size: 14px; margin-bottom: 22px; line-height: 1.5; }

/* Notice */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin-bottom: 16px;
}
.notice-soft {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}
.notice-icon {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-weight: 700;
  display: grid; place-items: center; font-size: 13px;
}
.notice-soft .notice-icon { background: var(--muted); }
.notice-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.notice-text { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Checkbox */
.check {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
  margin: 16px 0 20px; cursor: pointer; user-select: none;
}
.check input { width: 18px; height: 18px; accent-color: var(--text); cursor: pointer; }

/* Inputs */
.field-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--muted); margin: 14px 0 6px;
}
.input {
  width: 100%; background: var(--card-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #5b6079; }
.input:focus {
  outline: none; border-color: var(--muted);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}
.input-row { display: flex; gap: 10px; align-items: flex-end; }
.input-row .grow { flex: 1; }
.input-prefix {
  display: flex; align-items: center; background: var(--card-2);
  border: 1px solid var(--line); border-radius: 10px; padding-left: 14px;
}
.input-prefix span { color: var(--muted); font-size: 15px; }
.input-prefix .input { border: none; background: transparent; }
.input-prefix:focus-within {
  border-color: var(--muted); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

.hint { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 14px; }
.hint.error, .error { color: var(--danger); }

/* Price box */
.price-box {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin-top: 18px;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--muted); padding: 4px 0;
}
.price-you {
  color: var(--text); font-weight: 700; font-size: 20px;
  border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px;
}
.price-you span:last-child { color: var(--text); }

/* Buttons */
.btn {
  width: 100%; border: none; border-radius: 10px; padding: 13px 18px;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: transform .12s, opacity .2s, background .2s; margin-top: 10px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #0b0c0e; }
.btn-primary:hover { background: #ffffff; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn-sm { width: auto; white-space: nowrap; margin-top: 0; padding: 12px 16px; }
.btn-group { display: flex; gap: 10px; margin-top: 24px; }
.btn-group .btn { margin-top: 0; }
.btn-group .btn-ghost { flex: 0 0 40%; }

/* Choices */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid-3 { grid-template-columns: 1fr 1fr 1fr; margin-top: 12px; }
.choice {
  background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 18px 10px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .18s; line-height: 1.3;
}
.choice small { color: var(--muted); font-weight: 400; font-size: 11px; }
.choice:hover { border-color: var(--muted); }
.choice.sel {
  border-color: var(--text); background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.coin {
  display: block; font-size: 22px; margin-bottom: 4px; color: var(--text);
}

/* Summary */
.summary {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 16px;
}
.summary-item {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.summary-item:last-child { border-bottom: none; }
.summary-item .k { color: var(--muted); flex: 0 0 auto; }
.summary-item .v { color: var(--text); text-align: right; font-weight: 500; word-break: break-word; }
.summary-item .v.accent { color: var(--text); font-weight: 700; }

/* Done */
.done-wrap { text-align: center; padding: 20px 0; }
.done-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--text); color: var(--bg);
  display: grid; place-items: center; font-size: 32px; font-weight: 800;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
}

/* Footer */
.page-foot { position: relative; z-index: 1; margin-top: 18px; }
.link {
  background: none; border: none; color: var(--muted); font-size: 13px;
  cursor: pointer; font-family: inherit; text-decoration: underline;
}
.link:hover { color: var(--text); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 10; padding: 24px;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px);
  display: grid; place-items: center; animation: fade .25s ease;
}
.modal[hidden] { display: none; }
.modal-box {
  width: 100%; max-width: 480px; max-height: 82vh; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 17px; }
.modal-close {
  background: none; border: none; color: var(--muted); font-size: 26px;
  line-height: 1; cursor: pointer;
}
.modal-body { padding: 20px; overflow-y: auto; color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-body ol { padding-left: 20px; }
.modal-body li { margin-bottom: 8px; }
.modal-body code { background: var(--card-2); padding: 1px 6px; border-radius: 5px; color: var(--text); }
.modal-foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.modal-foot .btn { margin-top: 0; }

@media (max-width: 480px) {
  .card { padding: 22px; }
  .title { font-size: 21px; }
}
