/* =========================================================
 cardfunnels – gemeinsame Styles für alle Seiten
 (Schriften, Farben, Buttons, Header, Footer)
 ========================================================= */

/* ---------- Headline-Font: Polarity ----------
   Dateien liegen in /fonts (woff2 + otf) */
@font-face {
  font-family: "Polarity";
  src: local("Polarity Bold"), local("Polarity-Bold"),
       url("/fonts/Polarity-Bold.woff2") format("woff2"),
       url("/fonts/Polarity-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Polarity";
  src: local("Polarity Bold Italic"), local("Polarity-BoldItalic"),
       url("/fonts/Polarity-BoldItalic.woff2") format("woff2"),
       url("/fonts/Polarity-BoldItalic.otf") format("opentype");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --ink: #111112;
  --ink-2: #3c3c43;
  --muted: #8a8a8f;
  --line: rgba(0,0,0,.08);
  --surface: #f4f4f5;
  --surface-2: #ebebed;
  --radius-lg: 32px;
  --radius: 24px;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: #fff;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 12px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  transition: transform .2s var(--ease), background .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2a2d; }
.btn-secondary { background: rgba(255,255,255,.75); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-secondary:hover { background: #fff; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow span { transition: transform .2s var(--ease); }

/* ---------- NAV ---------- */
.nav-bar { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 16px; }
.nav {
  max-width: 1100px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 22px; border-radius: 18px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 0 0 1px var(--line), 0 8px 30px rgba(0,0,0,.05);
}
.logo { width: 140px; height: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-login { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 14px; }
.nav-cta .btn { padding: 11px 20px; font-size: 15px; border-radius: 11px; }

/* Footer */
footer { padding: 24px 0 40px; }
.foot {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end;
  padding-top: 56px;
}
.foot-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot-main a {
  font-family: "Polarity", "Inter", sans-serif; font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.04em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 14px;
  transition: color .2s ease;
}
.foot-main svg {
  width: .62em; height: .62em; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted);
  transition: color .2s ease, transform .25s var(--ease);
}
.foot-main a:hover { color: var(--muted); }
.foot-main a:hover svg { color: var(--ink); transform: rotate(-8deg) scale(1.08); }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(0,0,0,.08); color: var(--ink);
  transition: background .2s ease, color .2s ease, transform .25s var(--ease);
}
.foot-social a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.foot-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-bottom {
  margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.foot-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-legal a { color: var(--muted); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .nav-login { display: none; }
  .nav { padding-left: 18px; }
  .logo { width: 120px; }
  .foot { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .foot-bottom { margin-top: 40px; }
}

/* ---------- Burger-Menü (mobil) ---------- */
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 11px; background: var(--ink); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-bar.open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-bar.open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  display: none; max-width: 1100px; margin: 8px auto 0; padding: 12px; border-radius: 18px;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .3s var(--ease);
}
.mobile-menu > a {
  display: block; padding: 14px 14px; border-radius: 12px; text-decoration: none;
  font-family: "Polarity", "Inter", sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.03em; color: var(--ink);
}
.mobile-menu > a:hover { background: var(--surface); }
.mobile-menu-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mobile-menu-cta .btn { justify-content: center; border-radius: 12px; padding: 14px 12px; font-size: 15px; }
.nav-bar.open .mobile-menu { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .mobile-menu { display: block; pointer-events: none; visibility: hidden; }
  .nav-bar.open .mobile-menu { pointer-events: auto; visibility: visible; }
}
@media (max-width: 600px) {
  .nav { padding: 0 8px 0 16px; height: 60px; }
  .nav .logo { width: 108px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .nav .logo { width: 92px; }
  .nav-cta .btn { padding: 9px 11px; font-size: 13px; }
}

/* ---------- Typografie & Section-Aufbau ---------- */
.section { padding: 160px 0; }
.pill-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.pill-label i {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600;
}
.h2 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: .98; font-weight: 700; letter-spacing: -0.05em;
}
.h2 .muted { color: var(--muted); }
.headline, .h2 { font-family: "Polarity", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.headline em, .h2 em { font-style: italic; letter-spacing: -0.03em; padding-right: .04em; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 520px; }

/* Section-Header im Split-Layout (Headline links, Text rechts) */
.s-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.s-head .side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.s-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.s-head.center .lead { margin: 24px auto 0; }

/* ---------- Mini-Card ---------- */
.card {
  flex: none; width: 200px; aspect-ratio: 9 / 16;
  border-radius: 22px; background: #fff; padding: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 9px; text-align: left;
}
.card .tag { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card .t { font-size: 17px; font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
.card .bar { height: 8px; border-radius: 4px; background: var(--surface-2); }
.card .w90 { width: 90%; } .card .w70 { width: 70%; } .card .w50 { width: 50%; }
.card .img { flex: 1; min-height: 60px; border-radius: 14px; background: linear-gradient(135deg, #f1f1f3, #e2e2e6); display: grid; place-items: center; }
.card .cta { margin-top: auto; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.card .opt { height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #e4e4e7; display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 500; gap: 8px; }
.card .opt.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.card .opt i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #c9c9ce; flex: none; }
.card .opt.on i { border: 4px solid var(--ink); }
.card .stars { font-size: 14px; letter-spacing: 2px; }
.card .play { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); position: relative; }
.card .play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.card .timer { display: flex; gap: 6px; }
.card .timer span { flex: 1; height: 44px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.card .big { font-size: 36px; font-weight: 700; letter-spacing: -0.05em; }
.card.dark { background: #111112; color: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.card.dark .bar { background: #2a2a2d; }
.card.dark .cta { background: #fff; color: var(--ink); }
.card.dark .opt { box-shadow: inset 0 0 0 1.5px #333; }
.card.dark .opt.on { box-shadow: inset 0 0 0 1.5px #fff; }
.card.dark .opt.on i { border-color: #fff; }

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
.reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 1024px) {
.s-head { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
.section { padding: 110px 0; }
}

/* ---------- Unterseiten: Kopfbereich ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 180px 0 96px;
}
/* Hintergrundbild, das nach unten weich ins Weiß ausläuft */
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 50% 0%, #eef3df 0%, #ffffff 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .h2 { font-size: clamp(44px, 7vw, 96px); }
.page-hero .lead { margin-top: 24px; max-width: 600px; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.check {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-size: 11px; font-style: normal;
  background: var(--ink); color: #fff;
}
.cta-box {
  margin: 0 16px 16px; border-radius: 40px; background: #0c0c0d; color: #fff;
  padding: 110px 24px; text-align: center;
}
.cta-box .h2 .muted { color: #6e6e73; }
.cta-box .lead { color: #a1a1a6; margin: 24px auto 0; }
.cta-box .actions { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta-box .btn-primary { background: #fff; color: #0c0c0d; }
.cta-box .btn-primary:hover { background: #e9e9ec; }
@media (max-width: 600px) {
  .page-hero { padding: 140px 0 64px; }
  .cta-box { margin: 0 8px 8px; border-radius: 28px; padding: 80px 20px; }
}
