/* Superkraft KI-Typ — Stylesheet */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --paper: #f8fafc;
  --paper-2: #ffffff;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --accent: #fbbf24;
  --ok: #10b981;
  --err: #dc2626;
  --shadow: 0 2px 10px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .08);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

header.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}
header.brand .logo {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
header.brand .logo span { color: var(--primary); }

h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 19px;
  color: var(--ink-2);
  margin: 0 0 24px;
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 20px; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease, transform .08s ease;
  -webkit-appearance: none;
}
.btn:hover { background: var(--primary-d); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Quiz */

.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.progress-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar > div {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width .25s ease;
}

.question {
  margin-top: 8px;
}
.question h2 { margin-bottom: 18px; }

.options { display: grid; gap: 12px; }

.opt {
  display: block;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.opt:hover { border-color: var(--primary); }
.opt:active { transform: translateY(1px); }
.opt.selected {
  border-color: var(--primary);
  background: #eff6ff;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* Result */

.mascot {
  width: 100%;
  max-width: 540px;
  display: block;
  margin: 0 auto 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}

.type-name {
  text-align: center;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.type-kurz {
  text-align: center;
  color: var(--ink-2);
  margin: 6px 0 22px;
  font-size: 18px;
}

.facts { display: grid; gap: 14px; margin: 18px 0 6px; }
.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.fact .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.fact .text { color: var(--ink); }

/* Share */

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}
.share-row a, .share-row button {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .12s ease;
}
.share-row a:hover, .share-row button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Bridge */

.bridge {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #dbeafe;
}
.bridge p { font-size: 19px; margin: 0 0 18px; color: var(--ink); }

/* Form */

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input[type=text],
.field input[type=email],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .12s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.field textarea { min-height: 100px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 14px 0;
  line-height: 1.45;
}
.consent input[type=checkbox] {
  margin-top: 3px;
  transform: scale(1.15);
  cursor: pointer;
}

.err-msg {
  color: var(--err);
  font-size: 14px;
  margin-top: 10px;
  min-height: 18px;
}

.checkmail {
  text-align: center;
  padding: 28px 0;
}
.checkmail .ico {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}

footer.foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
footer.foot a { color: var(--muted); }

/* Fade-Transitions */
.fade-enter { opacity: 0; transform: translateY(8px); }
.fade-active { opacity: 1; transform: translateY(0); transition: opacity .25s ease, transform .25s ease; }

@media (max-width: 480px) {
  .wrap { padding: 18px 14px 50px; }
  .card { padding: 20px; border-radius: var(--radius); }
  body { font-size: 16px; }
}
