@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0d1f;
  --card: #14152e;
  --card-border: #2a2c55;
  --field: #1b1c3a;
  --field-border: #343659;
  --text: #ffffff;
  --text-soft: #d5d7f2;
  --text-muted: #9a9dc4;
  --link: #b8b8ff;
  --accent: #5b5bf0;
  --danger: #ff8a9b;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: #ffffff; text-decoration: underline; }

.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
}

/* ---------- Animation: kreisende Ringe ---------- */
.orbits { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.orb { transform-box: view-box; transform-origin: 50% 50%; }
.s1 { animation: spin 40s linear infinite; }
.s2 { animation: spin 70s linear infinite reverse; }
.s3 { animation: spin 110s linear infinite; }
.s4 { animation: spin 160s linear infinite reverse; }
.s5 { animation: spin 220s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 4.5s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(6); opacity: 0; } }

/* ---------- Karte ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

h1 { margin: 0 0 24px; font-size: 28px; font-weight: 800; letter-spacing: -.3px; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
}
.tabs button {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: transparent;
  color: #b7b9dc;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: #ffffff; }
.tabs button:focus-visible, .go:focus-visible, .eye:focus-visible, .link:focus-visible {
  outline: 3px solid #b8b8ff;
  outline-offset: 2px;
}

.message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #2b1a2e;
  border: 1px solid #5c2f45;
  color: #ffd3da;
  font-size: 14px;
  line-height: 1.45;
}

.panel { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.panel[hidden], .done[hidden], .message[hidden] { display: none; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 14px; font-weight: 600; color: var(--text-soft); }

.field {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 14px;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus-within { border-color: #8e8ef7; box-shadow: 0 0 0 4px rgba(142, 142, 247, .25); }
.field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.field input::placeholder { color: var(--text-muted); }

.eye {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: #b7b9dc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hint { font-size: 13px; color: var(--text-muted); }
.optional { font-weight: 500; color: var(--text-muted); }
.field-error { font-size: 13px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}
.info svg { flex: none; margin-top: 1px; }

/* Honeypot: aus dem Bild, nicht per display:none (Bots erkennen das) */
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border: none;
  border-radius: 26px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.go:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(91, 91, 240, .45); }
.go .arr { transition: transform .2s ease; }
.go:hover .arr { transform: translateX(4px); }
.go[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.done { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--text-soft); animation: rise .5s ease both; }
.done p { margin: 0; line-height: 1.5; }
.link { background: none; border: none; padding: 8px; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .s1, .s2, .s3, .s4, .s5, .ping, .card, .panel, .done { animation: none; }
  .go, .go .arr, .tabs button, .field { transition: none; }
}

@media (max-width: 440px) {
  .card { padding: 28px 22px; }
  .grid2 { grid-template-columns: 1fr; }
}
