/* ── Reset & Basis ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #1A1A1A;
  --brand-dark:   #000000;
  --brand-rgb:    26, 26, 26;

  --text:         #000000;
  --text-muted:   #555555;
  --surface:      #FFFFFF;
  --bg:           #F5F4F0;
  --border:       #000000;
  --success:      #000000;
  --success-bg:   #F0EDE6;
  --radius-lg:    14px;
  --radius-xl:    18px;
  --shadow-card:  4px 4px 0px #000000;
  --shadow-btn:   3px 3px 0px #000000;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  width: 100%;
  background: #000000;
  padding: 48px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 28px, rgba(255,255,255,.04) 28px, rgba(255,255,255,.04) 29px
  );
  pointer-events: none;
}

.hero-logo {
  width: 72px;
  height: 72px;
  background: #fff;
  border: 2.5px solid #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  font-size: 34px;
  color: #000;
}

.hero-badge {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0;
  border: 1.5px solid rgba(255,255,255,.35);
  margin-bottom: 16px;
  position: relative;
}

.hero h1 {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
  margin-bottom: 12px;
}

.hero h1 span {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}

/* ── Lade-Skeleton ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e0ddd6 25%, #ede9e0 50%, #e0ddd6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  color: transparent !important;
  user-select: none;
}
.skeleton * { visibility: hidden; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Hauptkarte ──────────────────────────────────────────── */
.main-card {
  width: calc(100% - 32px);
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 2px solid #000;
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  margin-top: -36px;
  position: relative;
  z-index: 10;
}

/* ── Stempel-Vorschau ────────────────────────────────────── */
.stamp-preview {
  border-radius: var(--radius-lg);
  border: 1.5px solid #000;
  padding: 20px;
  margin-bottom: 28px;
  text-align: center;
  background: var(--bg);
}

.stamp-preview-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 240px;
  margin: 0 auto 8px;
}

.stamp-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stamp-dot.filled {
  background: #000;
  border-color: #000;
  transform: scale(1.05);
}

/* ── Formular ────────────────────────────────────────────── */
.form-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.form-section p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.input-group {
  position: relative;
  margin-bottom: 14px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid #000;
  border-radius: var(--radius-lg);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: box-shadow 0.15s;
  -webkit-appearance: none;
}

.input-group input:focus {
  background: #fff;
  box-shadow: 3px 3px 0 #000;
}

.input-group input::placeholder { color: #999; }

.input-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.input-group-row .input-group { margin-bottom: 14px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid #000;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.1s, box-shadow 0.1s;
  -webkit-appearance: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary .btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.btn-primary.loading .btn-text { display: none; }
.btn-primary.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fehler-Meldung ─────────────────────────────────────── */
.error-msg {
  display: none;
  background: #fff;
  border: 2px solid #000;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  margin-top: 12px;
  box-shadow: 2px 2px 0 #000;
}
.error-msg.visible { display: block; }

/* ── Erfolgs-Karte ───────────────────────────────────────── */
.success-card {
  display: none;
  animation: fadeSlideIn 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
.success-card.visible { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  box-shadow: 2px 2px 0 #000;
}

.success-card h3 {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.success-card .success-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Wallet-Karte ────────────────────────────────────────── */
.wallet-card {
  background: #000000;
  border-radius: var(--radius-lg);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 20px;
  margin-bottom: 4px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.wallet-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}

.wallet-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.wallet-card-logo {
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #000;
  font-weight: 900;
}

.wallet-card-name { font-size: 15px; font-weight: 700; }
.wallet-card-type { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; letter-spacing: .04em; }

.wallet-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.wallet-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.wallet-dot.filled {
  background: #ffffff;
  border-color: #ffffff;
}

.wallet-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.wallet-card-footer .label { font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }
.wallet-card-footer .value { font-size: 14px; font-weight: 700; margin-top: 2px; }

/* ── Wallet-Buttons ──────────────────────────────────────── */
.wallet-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-wallet-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #000;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-wallet-apple:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.btn-wallet-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: var(--bg);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #000;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-wallet-google:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}
.btn-wallet-google .google-g { width: 20px; height: 20px; flex-shrink: 0; }

.btn-new {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #ccc;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-new:hover { border-color: #000; color: #000; }

/* ── Features ────────────────────────────────────────────── */
.features {
  width: calc(100% - 32px);
  max-width: 440px;
  padding: 24px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  text-align: center;
}
.feature-item { padding: 4px 0; }
.feature-icon { font-size: 22px; margin-bottom: 6px; }
.feature-label { font-size: 11px; color: var(--text-muted); font-weight: 600; line-height: 1.4; }

/* ── Belohnungs-Badge ────────────────────────────────────── */
.reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 0;
  margin-bottom: 20px;
  letter-spacing: .04em;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  padding: 24px 24px 40px;
  text-align: center;
  font-size: 12px;
  color: #999;
  letter-spacing: .04em;
}

