/* upay.academy – Landingpage.
   Farben und Radien stammen aus dem Prototyp (versionen/v11-kursleitung/styles.css),
   damit Landingpage und Space wie ein Produkt wirken.
   Keine externen Schriften oder Skripte: Die Seite lädt nichts von fremden Servern. */

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --surface-2: #F1F1ED;
  --text: #16161A;
  --muted: #5F5F69;
  --border: #E5E5DF;
  --accent: #5B4CF0;
  --accent-hover: #4A3BE0;
  --accent-soft: #EEEBFF;
  --accent-ink: #FFFFFF;
  --success: #15803D;
  --shadow: 0 1px 2px rgba(16,16,24,.04), 0 10px 30px rgba(16,16,24,.06);
  --shadow-lg: 0 24px 60px rgba(91,76,240,.14);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E11; --surface: #17171B; --surface-2: #212127; --text: #EDEDF1; --muted: #A3A3AE;
    --border: #2B2B32; --accent: #8E83FF; --accent-hover: #A39AFF; --accent-soft: #24204A; --accent-ink: #0E0E11;
    --success: #4ADE80;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border);
}
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; line-height: 1;
}
.brand-tld { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s var(--ease), background .15s var(--ease); }
.nav-link:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--border)); }
.btn-quiet { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; border-color: var(--border); background: var(--surface); margin-left: 8px; }
.btn-quiet:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--border)); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-top: 22px; }
.accent { color: var(--accent); }
.lead { margin-top: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* Hero-Grafik: zwei Adressen und eine Kurskarte, rein mit CSS gebaut */
.hero-visual { position: relative; display: grid; gap: 20px; justify-items: stretch; max-width: 440px; margin-left: auto; width: 100%; }
.hero-visual::before {
  content: ""; position: absolute; inset: -40px -60px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%);
}
.pair { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.addr { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.addr-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.addr-url { font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--muted); overflow-wrap: anywhere; }
.addr-url b { font-weight: 700; color: var(--text); }
.addr-accent { background: var(--accent-soft); }
.addr-accent .addr-label, .addr-accent .addr-url { color: var(--accent); }
.addr-accent .addr-url b { color: var(--text); }
.pair-arrow { width: 20px; height: 20px; color: var(--muted); justify-self: center; }

.course { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 96px 1fr; overflow: hidden; margin-left: 28px; }
.course-cover { background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #F59E0B)); display: grid; place-items: center; color: #fff; }
.course-cover svg { width: 34px; height: 34px; opacity: .95; }
.course-body { padding: 16px 18px; display: grid; gap: 6px; min-width: 0; }
.course-kicker { font-size: 12px; font-weight: 600; color: var(--muted); }
.course-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 16%; border-radius: inherit; background: var(--accent); }
.course-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.course-cta { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); font-weight: 700; }
.section-lead { margin-top: 14px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-no {
  width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 16px; margin-bottom: 20px;
}
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.step p, .card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.nowrap { white-space: nowrap; }
.card-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }

.closing {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--accent-soft); border-radius: 28px; padding: 44px 48px;
}
.closing p { margin-top: 12px; color: var(--muted); max-width: 36em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { margin: 0 auto; }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .closing { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-link { display: none; }
  .steps, .cards { grid-template-columns: 1fr; }
  .cards { gap: 28px; }
  .course { margin-left: 0; grid-template-columns: 80px 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .addr-url { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
