/* ───── Tokens ───── */
:root {
  --bg: #0F172A;
  --bg-alt: #1E293B;
  --bg-card: #1E293B;
  --surface: #0B1220;
  --cyan: #3CAAC8;
  --orange: #F39200;
  --orange-light: #FFB13D;
  --white: #FFFFFF;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --border: #334155;
  --radius: 16px;
  --container: 1100px;
  --fs-h1: clamp(36px, 5vw + 12px, 72px);
  --fs-h2: clamp(26px, 2.5vw + 14px, 44px);
  --fs-h4: clamp(16px, .3vw + 14px, 19px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(15px, .2vw + 14px, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--cyan); text-decoration: none; transition: color .15s; }
a:hover { color: var(--orange-light); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ───── PIN Gate ───── */
.pin-gate {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, rgba(60,170,200,.18), var(--bg) 70%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.pin-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.pin-brand {
  display: inline-flex; flex-direction: column;
  align-items: center; margin-bottom: 28px;
  background: white; padding: 10px 18px; border-radius: 8px;
}
.pin-tag { font-size: 9px; font-weight: 700; color: var(--cyan); letter-spacing: 2px; }
.pin-name { font-size: 18px; font-weight: 700; color: #555; }
.pin-name b { color: var(--cyan); font-weight: 900; }
.pin-box h1 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.pin-box p { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
#pin-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  margin-bottom: 14px;
  transition: border-color .15s;
}
#pin-input:focus { outline: 0; border-color: var(--cyan); }
#pin-btn {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
#pin-btn:hover { background: var(--orange-light); }
.pin-err {
  margin-top: 14px;
  color: #FCA5A5;
  font-size: 14px;
  font-weight: 600;
}

/* ───── Top Nav ───── */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; flex-direction: column; line-height: 1; color: var(--white);
  background: white; padding: 6px 12px; border-radius: 6px;
}
.brand-tag { font-size: 8px; font-weight: 700; color: var(--cyan); letter-spacing: 1.5px; }
.brand-name { font-size: 15px; font-weight: 700; color: #555; }
.brand-name b { color: var(--cyan); font-weight: 900; }
.nav-links { display: none; flex: 1; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--white); }
@media (min-width: 720px) { .nav-links { display: flex; } }

/* ───── Hero ───── */
.hero {
  padding: clamp(60px, 8vw, 120px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(ellipse at top left, rgba(60,170,200,.15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(243,146,0,.08), transparent 50%);
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--cyan); letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: var(--fs-h1); font-weight: 900;
  line-height: 1.05; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 20px;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(15px, .4vw + 14px, 18px);
  color: var(--muted); max-width: 540px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  border: 0; cursor: pointer;
  font-family: inherit;
  transition: transform .12s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: var(--white) !important; }
.btn-primary:hover { background: var(--orange-light); }
.btn-ghost { background: transparent; color: var(--white) !important; border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: var(--cyan); }

/* ───── Sections ───── */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-cta {
  background: linear-gradient(135deg, rgba(60,170,200,.12), rgba(243,146,0,.08));
  border-top: 1px solid rgba(60,170,200,.2);
  border-bottom: 1px solid rgba(243,146,0,.2);
}
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800;
  color: var(--cyan); letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--orange); }
.section h2 {
  font-size: var(--fs-h2); font-weight: 900;
  line-height: 1.1; letter-spacing: -.01em;
  color: var(--white); margin-bottom: 14px;
}
.section .lead {
  font-size: clamp(14px, .25vw + 13px, 16px);
  color: var(--muted); line-height: 1.6;
}
.subhead {
  font-size: 16px; font-weight: 800;
  color: var(--muted); margin: 48px 0 18px;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ───── Cards3 ───── */
.cards3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.card-icon { font-size: 32px; margin-bottom: 14px; }
.card h3 {
  font-size: var(--fs-h4); font-weight: 800;
  color: var(--white); margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ───── Filter Bar ───── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 32px;
}
.filter-btn {
  background: var(--bg-card); color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.filter-btn:hover { color: var(--white); border-color: var(--cyan); }
.filter-btn.active { background: var(--cyan); color: var(--white); border-color: var(--cyan); }

/* ───── Creatives Grid ───── */
.creative-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.feed-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.story-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.creative-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.creative-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}
.creative-card a { display: block; }
.creative-card img {
  width: 100%; background: var(--surface); display: block;
}
.feed-grid .creative-card img { aspect-ratio: 1; object-fit: cover; }
.story-grid .creative-card img { aspect-ratio: 9/16; object-fit: cover; }
.creative-meta { padding: 14px 16px; }
.creative-meta h4 {
  font-size: 14px; font-weight: 700;
  color: var(--white); line-height: 1.3;
}

/* ───── LP Preview als Mobile-Mockup ───── */
.lp-preview {
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
}
@media (min-width: 880px) {
  .lp-preview { grid-template-columns: minmax(0, 340px) 1fr; justify-content: center; }
}
.phone-mockup {
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  background: #1A1F2E;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 2px rgba(60,170,200,.15);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #0B1220;
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: white;
  height: 680px;
  position: relative;
}
.phone-screen iframe {
  width: 100%; height: 100%; border: 0; background: white;
}

/* ───── Portal Preview Browser-Frame ───── */
.portal-preview {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start;
}
@media (min-width: 880px) {
  .portal-preview { grid-template-columns: 1fr 340px; }
}
.portal-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.lp-bar {
  background: var(--surface);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.lp-dot.red { background: #EF4444; }
.lp-dot.yellow { background: #F59E0B; }
.lp-dot.green { background: #10B981; }
.lp-url { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.portal-frame iframe { width: 100%; height: 580px; border: 0; background: var(--surface); }
.lp-info h3, .portal-info h3 {
  font-size: var(--fs-h4); font-weight: 800;
  color: var(--white); margin-bottom: 16px;
}

/* ───── Checklist ───── */
.checklist { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.checklist li {
  padding-left: 28px; position: relative;
  font-size: 14px; color: var(--muted); line-height: 1.5;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--cyan); font-weight: 900; font-size: 13px;
  background: rgba(60,170,200,.15);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ───── Quiz Steps ───── */
.steps4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.step.step-final {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(243,146,0,.12), rgba(60,170,200,.06));
}
.step-icon {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  background: var(--cyan); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
}
.step-final .step-icon { background: var(--orange); }
.step h4 {
  font-size: 15px; font-weight: 800;
  color: var(--white); margin-bottom: 6px;
}
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ───── Ablauf Phasen ───── */
.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.phase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.phase-num {
  width: 44px; height: 44px;
  background: var(--orange); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
  margin-bottom: 16px;
}
.phase h3 {
  font-size: var(--fs-h4); font-weight: 800;
  color: var(--white); margin-bottom: 10px;
}
.phase p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.hint-box {
  background: rgba(60,170,200,.08);
  border: 1px solid rgba(60,170,200,.25);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.hint-box b { color: var(--cyan); }

/* ───── CTA Section ───── */
.cta-list {
  display: grid; gap: 16px; max-width: 680px;
  margin: 0 auto;
}
.cta-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex; gap: 20px; align-items: flex-start;
}
.cta-num {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  background: var(--orange); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
}
.cta-body h3 {
  font-size: var(--fs-h4); font-weight: 800;
  color: var(--white); margin-bottom: 6px;
}
.cta-body p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ───── Footer ───── */
.footer {
  background: var(--surface);
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.footer strong {
  display: block;
  color: var(--white); font-size: 14px; margin-bottom: 4px;
}
.footer p { font-size: 13px; color: var(--muted); }
.footer a { color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
