/* CodeWithArCa – Landingpage. Bewusst ohne externe Schriften/Skripte (Datenschutz). */

:root {
  --bg: #000;
  --surface: #111114;
  --surface-2: #18181c;
  --border: #26262c;
  --text: #fff;
  --muted: #a6a6ae;
  --faint: #6e6e78;
  --pink: #ff1493;
  --pink-soft: rgba(255, 20, 147, 0.14);
  --orange: #ff9f2e;
  --yellow: #ffc83d;
  --green: #2bc27a;
  --blue: #82aaff;
  --radius: 20px;
  --max: 1120px;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  text-decoration: none;
  line-height: 1.15;
  border: 0;
  font: inherit;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.2px; }
.store-badge strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.store-badge.soon { cursor: default; }
.store-badge.small { padding: 8px 16px 8px 13px; border-radius: 11px; gap: 9px; }
.store-badge.small svg { width: 19px; height: 19px; }
.store-badge.small small { font-size: 9px; }
.store-badge.small strong { font-size: 14px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover { border-color: #3a3a42; background: var(--surface); }
.btn-ghost svg { width: 18px; height: 18px; }

.store-badge.play { background: #111114; color: #fff; border: 1px solid #3a3a42; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.lang-switch a, .lang-switch span { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.4px; text-decoration: none; }
.nav-links .lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch span { background: var(--pink); color: #fff; }

.inline-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.inline-link:hover { color: var(--text); }
.inline-link svg { width: 15px; height: 15px; }

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

.hero { position: relative; padding: 72px 0 40px; }
.hero::before {
  content: '';
  position: absolute;
  inset: -120px 0 auto;
  height: 720px;
  background:
    radial-gradient(600px 360px at 78% 30%, rgba(255, 20, 147, 0.22), transparent 70%),
    radial-gradient(500px 300px at 15% 10%, rgba(130, 170, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 20, 147, 0.4);
  background: var(--pink-soft);
  color: #ff6dbc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -2.2px;
  font-weight: 850;
}
h1 .accent, h2 .accent {
  background: linear-gradient(92deg, #ff1493 0%, #ff6a3d 55%, #ffc83d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin: 0 0 30px; max-width: 520px; font-size: 19px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin: 16px 0 0; font-size: 14px; color: var(--faint); }
.cta-note b { color: var(--muted); }

.hero-visual { position: relative; height: 640px; }
.hero-visual .phone { position: absolute; }
.hero-visual .phone.back { width: 270px; right: 230px; top: 70px; transform: rotate(-7deg); opacity: 0.9; }
.hero-visual .phone.front { width: 300px; right: 0; top: 0; transform: rotate(4deg); }

.code-chip {
  position: absolute;
  left: 0;
  bottom: 70px;
  z-index: 3;
  padding: 14px 18px;
  border-radius: 14px;
  background: #121218;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}
.code-chip .fn { color: var(--blue); }
.code-chip .str { color: #c3e88d; }
.code-chip .out { color: var(--muted); border-top: 1px solid #ffffff1a; margin-top: 8px; padding-top: 8px; }

.xp-chip {
  position: absolute;
  right: 250px;
  top: 6px;
  z-index: 3;
  display: flex;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #121218;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-weight: 800;
  font-size: 15px;
}
.xp-chip .streak { color: var(--orange); }
.xp-chip .xp { color: var(--yellow); }

/* ---------- Telefon-Rahmen ---------- */

.phone {
  aspect-ratio: 1320 / 2868;
  border-radius: 48px;
  padding: 9px;
  background: linear-gradient(160deg, #3a3a42, #121216 40%, #2a2a30);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px #ffffff14 inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; background: #000; }

/* ---------- Zahlen ---------- */

.stats { padding: 28px 0 8px; }
.stats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stats li { padding: 22px 16px; text-align: center; }
.stats li + li { border-left: 1px solid var(--border); }
.stats strong { display: block; font-size: 30px; font-weight: 850; letter-spacing: -0.8px; }
.stats span { font-size: 14px; color: var(--muted); }

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

section { scroll-margin-top: 80px; }
.section { padding: 110px 0 40px; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pink); }
h2 { margin: 10px 0 14px; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -1.4px; font-weight: 850; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 1px solid #ffffff0d; }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow, rgba(255, 20, 147, 0.18)), transparent 65%);
}
.feature-media .phone { width: 290px; position: relative; }
.feature h3 { margin: 12px 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.8px; font-weight: 850; }
.feature p { margin: 0 0 18px; color: var(--muted); }
.feature .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 850;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 6px;
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Kurse ---------- */

.courses { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.course-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.course-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.course-list li.live { border-color: rgba(255, 20, 147, 0.6); background: linear-gradient(90deg, rgba(255, 20, 147, 0.12), var(--surface) 70%); }
.course-emoji { font-size: 30px; line-height: 1; width: 40px; text-align: center; flex: none; }
.course-text { flex: 1; display: grid; gap: 2px; }
.course-text strong { font-size: 18px; font-weight: 850; }
.course-text span { font-size: 14px; color: var(--muted); }
.course-list .tag { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.course-list .live .tag { background: var(--pink); color: #fff; border-color: transparent; }

/* ---------- Lernpfad ---------- */

.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.levels li {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 150px;
  display: flex;
  flex-direction: column;
}
.levels .lv { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.levels .title { margin-top: 8px; font-size: 18px; line-height: 1.3; font-weight: 800; }
.levels .tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.levels .free .tag { background: rgba(43, 194, 122, 0.14); color: var(--green); }
.levels .pro .tag { background: var(--pink-soft); color: #ff6dbc; }
.levels .free { border-color: rgba(43, 194, 122, 0.35); }

.topics { margin: 32px auto 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.topics li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 600; font-family: var(--mono); }

/* ---------- Galerie ---------- */

.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 24px 36px;
  margin: 0 auto;
  max-width: 1400px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; width: 250px; scroll-snap-align: center; }
.gallery figcaption { margin-top: 16px; text-align: center; font-weight: 700; font-size: 15px; color: var(--muted); }

/* ---------- Preise ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.plan.pro {
  border-color: rgba(255, 20, 147, 0.55);
  background: linear-gradient(180deg, rgba(255, 20, 147, 0.12), var(--surface) 55%);
}
.plan h3 { margin: 0; font-size: 22px; font-weight: 850; }
.plan .price { margin: 10px 0 22px; font-size: 15px; color: var(--muted); }
.plan .price b { font-size: 34px; color: var(--text); letter-spacing: -1px; margin-right: 4px; }
.plan .ticks { gap: 12px; }
.plan.free .ticks li::before { background-color: #2a2a30; }
.fine { max-width: 880px; margin: 18px auto 0; text-align: center; font-size: 13px; color: var(--faint); }

/* ---------- Abschluss ---------- */

.final {
  margin: 120px auto 0;
  padding: 72px 32px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(255, 20, 147, 0.28), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.final h2 { margin-top: 0; }
.final p { margin: 0 auto 30px; max-width: 520px; color: var(--muted); font-size: 18px; }
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */

footer { margin-top: 90px; padding: 40px 0 48px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer img { height: 28px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
footer nav a:hover { color: var(--text); }
footer .copy { width: 100%; margin: 0; font-size: 13px; color: var(--faint); }

/* ---------- Unterseiten (Rechtstexte, Bestätigung) ---------- */

.page { padding: 64px 0 20px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -1.4px; margin: 0 0 12px; }
.page .intro { color: var(--muted); margin: 0 0 36px; }
.legal section { padding: 22px 0; border-top: 1px solid var(--border); }
.legal h2 { font-size: 20px; letter-spacing: -0.3px; margin: 0 0 10px; }
.legal p { margin: 0 0 10px; color: #d0d0d6; font-size: 16px; }
.legal a { color: var(--pink); }

.notice { min-height: calc(100vh - 68px - 170px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notice .icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.notice h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 14px; letter-spacing: -1.2px; }
.notice p { margin: 0 auto 28px; max-width: 460px; color: var(--muted); font-size: 18px; }
.notice p.secondary { margin-top: -14px; font-size: 15px; color: var(--faint); }
.notice .cta-row { justify-content: center; }

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-visual { height: 560px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-visual .phone.front { width: 260px; right: 8px; }
  .hero-visual .phone.back { width: 230px; right: auto; left: 8px; top: 60px; }
  .xp-chip { right: auto; left: 50%; transform: translateX(-50%); top: -8px; }
  .code-chip { left: 50%; transform: translateX(-50%); bottom: 10px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .feature.flip .feature-media { order: 0; }
  .levels { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .courses { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links > a { display: none; }
  .cta-row .store-badge { flex: 1 1 200px; justify-content: center; }
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .hero-visual { height: 470px; }
  .hero-visual .phone.front { width: 210px; }
  .hero-visual .phone.back { width: 185px; }
  .code-chip { font-size: 12px; }
  .section { padding-top: 80px; }
  .feature-media .phone { width: 240px; }
  .feature-media::before { width: 320px; height: 320px; }
  .levels { grid-template-columns: 1fr; }
  .levels li { min-height: 0; }
  .levels .tag { margin-top: 14px; }
  .plan { padding: 26px 22px; }
  .final { padding: 56px 20px; border-radius: 24px; margin-top: 90px; }
  .gallery figure { width: 210px; }
  .courses .feature-media { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
