/* Vispoca – Visual Sports Cards · Designsystem Prism */

:root,
:root[data-theme="dark"] {
  --bg: #0A0B0D;
  --surface: #121418;
  --surface-2: #1A1D22;
  --border: #23272E;
  --text: #F5F7FA;
  --muted: #A4AAB4;
  --signet-right: #F5F7FA;
  --btn-bg: #F5F7FA;
  --btn-text: #0A0B0D;
  --stage: radial-gradient(circle at 50% 40%, #1C2028 0%, #0E1014 70%);
  --shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #ECEEF2;
  --border: #D9DDE3;
  --text: #0A0B0D;
  --muted: #50565F;
  --signet-right: #0A0B0D;
  --btn-bg: #0A0B0D;
  --btn-text: #F5F7FA;
  --stage: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #E6E9EE 75%);
  --shadow: 0 40px 80px rgba(10, 11, 13, 0.25);
  color-scheme: light;
}

:root {
  --holo: linear-gradient(135deg, #7CF7E4 0%, #8A7CFF 35%, #FF7CC8 65%, #FFD27C 100%);
  --golf: #3DDC97;
  --darts: #FF5C7A;
  --tennis: #E6F35A;
  --radius: 20px;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 20px 0 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid #8A7CFF;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.3s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand .signet { width: 32px; height: 32px; }
.brand .wordmark { height: 18px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { gap: 0; }

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--muted); }

.lang-switch {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--muted); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Signet ---------- */

.signet .sig-right { fill: var(--signet-right); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 28px;
  background: var(--stage);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
}

/* ---------- Sammelkarte ---------- */

.card {
  --rx: 0deg;
  --ry: -8deg;
  --mx: 30%;
  width: min(330px, 74%);
  padding: 4px;
  border-radius: 20px;
  background: var(--holo);
  box-shadow: var(--shadow);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.card.is-tilting { transition: transform 0.08s linear; }

.card-inner {
  position: relative;
  aspect-ratio: 330 / 462;
  border-radius: 16px;
  background: #101318;
  color: #F5F7FA;
  padding: 6% 6% 5.5%;
  display: flex;
  flex-direction: column;
  gap: 3%;
  overflow: hidden;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.card-top strong { font-family: var(--display); font-weight: 600; font-size: 12px; }
.card-top span { color: #A4AAB4; }

.card-art {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0D2A1F;
  aspect-ratio: 300 / 230;
  flex: none;
}
.card-art svg { width: 100%; height: 100%; }

.card-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1;
}

.card-meta { font-size: 12px; color: #B4BAC3; line-height: 1.5; margin: 0; }

.card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rarity-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--holo);
  color: #0A0B0D;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.card-brand { font-size: 10px; letter-spacing: 0.2em; color: #8E949E; }

.card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) calc(var(--mx) - 18%),
    rgba(124,247,228,0.20) calc(var(--mx) - 4%),
    rgba(255,124,200,0.20) calc(var(--mx) + 4%),
    rgba(255,255,255,0) calc(var(--mx) + 18%));
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: no-preference) {
  .card.is-idle .card-sheen { animation: sheen 6s ease-in-out infinite; }
}
@keyframes sheen {
  0%, 100% { background-position: 0 0; opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---------- Abschnitte ---------- */

.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Sportlinien */
.sport { display: flex; flex-direction: column; gap: 18px; }
.sport-head { display: flex; align-items: center; gap: 12px; }
.sport-bar {
  width: 10px;
  height: 30px;
  border-radius: 3px;
  transform: skewX(-18deg);
}
.sport-name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; }
.sport-by { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.sport p { margin: 0; color: var(--muted); }
.status {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.status-live { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }
.sport .btn { align-self: flex-start; margin-top: auto; }

/* Ablauf */
.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

/* Seltenheitsstufen */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.tier { display: flex; flex-direction: column; gap: 14px; }
.tier-card {
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  padding: 4px;
}
.tier-card > div {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #101318;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #F5F7FA;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.tier-legendaer { background: var(--holo); }
.tier-episch { background: linear-gradient(135deg, #8A7CFF, #C9CED6 55%, #8A7CFF); }
.tier-selten { background: linear-gradient(135deg, #E9ECF1, #8E949E 50%, #E9ECF1); }
.tier-klassik { background: #2A2E35; }
.tier strong { font-size: 16px; }
.tier span { color: var(--muted); font-size: 15px; }

/* Druckkarten */
.print {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.print-visual {
  border-radius: 28px;
  background: var(--stage);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.print-stack { position: relative; width: 40%; aspect-ratio: 5 / 7; }
.print-stack div {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 4px;
  background: var(--holo);
  box-shadow: var(--shadow);
}
.print-stack div::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  background: #101318;
}
.print-stack div:nth-child(1) { transform: rotate(-12deg) translateX(-30%); background: #2A2E35; }
.print-stack div:nth-child(2) { transform: rotate(-4deg) translateX(-10%); background: #8E949E; }
.print-stack div:nth-child(3) { transform: rotate(6deg) translateX(14%); }
.print ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.print li { display: flex; gap: 12px; color: var(--muted); }
.print li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--holo);
  transform: rotate(45deg);
}

/* Warteliste */
.waitlist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input[type="email"] {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field input[type="email"]:focus { border-color: #8A7CFF; outline: none; box-shadow: 0 0 0 3px rgba(138,124,255,0.3); }
fieldset { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
}
.check input { width: 18px; height: 18px; accent-color: #8A7CFF; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { min-height: 24px; font-weight: 600; margin: 0; }
.form-status.ok { color: #1FA971; }
:root[data-theme="dark"] .form-status.ok { color: #3DDC97; }
.form-status.err { color: #D6334F; }
:root[data-theme="dark"] .form-status.err { color: #FF7C93; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 14px; margin: 0; }

/* Rechtsseiten */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 32px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid, .print, .waitlist { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stage { aspect-ratio: 4 / 5; }
  .card { width: min(280px, 70%); }
  .card-art { aspect-ratio: 300 / 205; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .nav { gap: 10px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 0 14px; }
  .nav-actions .btn .long { display: none; }
  .brand { gap: 8px; }
  .brand .signet { width: 28px; height: 28px; }
  .brand .wordmark { height: 13px; }
}
