/* weDance website – same design language as the app. No framework, no external fonts. */

@layer reset, tokens, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
  body { min-height: 100dvh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  img, svg { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  [hidden] { display: none !important; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
}

@layer tokens {
  :root {
    color-scheme: light dark;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bg: #ffffff;
    --bg-soft: #f7f6fb;
    --surface: #ffffff;
    --surface-2: #f3f1f8;
    --border: #e6e2ef;
    --border-strong: #d3cde2;
    --text: #1d1a26;
    --text-2: #5b566b;
    --text-3: #8a8599;
    --accent: #6d28d9;
    --accent-hover: #5b21b6;
    --accent-soft: #f1ebff;
    --accent-ink: #5b21b6;
    --pink: #db2777;
    --success: #15803d;
    --success-soft: #e7f6ec;
    --focus: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent);
    --shadow: 0 1px 2px rgb(29 26 38 / .05), 0 8px 24px rgb(29 26 38 / .07);
    --shadow-lg: 0 24px 60px rgb(46 16 101 / .18);
    --radius: 12px;
    --radius-lg: 18px;
    --gutter: clamp(16px, 4vw, 40px);
    --max: 1160px;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #121018;
      --bg-soft: #17141f;
      --surface: #1a1722;
      --surface-2: #221e2c;
      --border: #2d2838;
      --border-strong: #3b3549;
      --text: #ece9f3;
      --text-2: #b4adc4;
      --text-3: #8a8399;
      --accent: #a78bfa;
      --accent-hover: #c4b5fd;
      --accent-soft: #2a2140;
      --accent-ink: #c4b5fd;
      --success: #4ade80;
      --success-soft: #16301f;
      --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
      --shadow-lg: 0 24px 60px rgb(0 0 0 / .5);
    }
  }
}

@layer base {
  body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 1.0625rem; }
  h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
  h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.03em; }
  h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
  h3 { font-size: 1.15rem; letter-spacing: -.01em; }
  a { color: var(--accent-ink); text-underline-offset: 3px; }
  a:hover { color: var(--accent); }
  :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
  ul, ol { padding-left: 1.2em; }
  code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
  .icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

@layer layout {
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
  .section { padding: clamp(56px, 9vw, 110px) 0; }
  .section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
  .section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
  .section-head p { color: var(--text-2); font-size: 1.1rem; margin-top: 12px; }
  .eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
  .grid { display: grid; gap: 22px; }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
  .split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .split.reverse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split.reverse > :first-child { order: 2; }
  @media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
  .prose { max-width: 760px; }
  .prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
  .prose h3 { margin: 28px 0 8px; }
  .prose p, .prose ul, .prose ol { margin-bottom: 14px; color: var(--text-2); }
  .prose li { margin-bottom: 6px; }
}

@layer components {
  /* header */
  .skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
  .skip:focus { left: 8px; }
  .header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
  .header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
  .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; }
  .logo img { width: auto; height: 40px; border-radius: 10px; }
  @media (prefers-color-scheme: dark) { .logo img { background: #fff; padding: 2px 4px; box-sizing: content-box; } }
  .logo span b { color: var(--accent); }
  .nav { display: flex; align-items: center; gap: 4px; flex: 1; }
  .nav > ul { display: flex; gap: 4px; list-style: none; padding: 0; align-items: center; }
  .nav a:not(.btn), .nav .nav-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 560; font-size: .97rem; text-decoration: none; background: none; border: 0; cursor: pointer; }
  .nav a:not(.btn):hover, .nav .nav-trigger:hover, .nav a:not(.btn)[aria-current="page"] { color: var(--text); background: var(--surface-2); }
  .nav .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
  .has-menu { position: relative; }
  .submenu { position: absolute; top: calc(100% + 8px); left: -12px; min-width: 560px; list-style: none; padding: 12px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
  .submenu.narrow { min-width: 240px; grid-template-columns: 1fr; }
  .has-menu:hover > .submenu, .has-menu:focus-within > .submenu { display: grid; }
  .has-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
  .submenu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; width: 100%; }
  .submenu a .icon { color: var(--accent); margin-top: 3px; }
  .submenu a small { display: block; color: var(--text-3); font-weight: 450; font-size: .82rem; line-height: 1.4; }
  .header .menu-toggle { display: none; margin-left: auto; }
  @media (max-width: 1020px) {
    .header .menu-toggle { display: inline-flex; }
    .header .wrap { flex-wrap: wrap; }
    .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 18px; }
    .nav.is-open, .no-js .nav { display: flex; }
    .nav > ul { flex-direction: column; align-items: stretch; }
    .nav .actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
    .submenu { position: static; display: grid; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 0 10px; background: none; }
    .submenu small { display: none !important; }
    .has-menu::after { display: none; }
    .nav-trigger .icon { display: none; }
  }

  /* buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 11px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
  .btn:hover { border-color: var(--accent); color: var(--text); }
  .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in oklab, var(--accent) 30%, transparent); }
  .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
  .btn-lg { padding: 14px 26px; font-size: 1.06rem; border-radius: 13px; }
  .btn-sm { padding: 8px 14px; font-size: .92rem; }
  .btn-ghost { border-color: transparent; background: transparent; }
  @media (prefers-color-scheme: dark) { .btn-primary { color: #1d1a26; } .btn-primary:hover { color: #1d1a26; } }

  /* hero */
  .hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 0; background:
      radial-gradient(900px 480px at 8% -10%, color-mix(in oklab, #7c3aed 18%, transparent), transparent 62%),
      radial-gradient(800px 440px at 100% 0%, color-mix(in oklab, #db2777 14%, transparent), transparent 60%); }
  .hero-text { max-width: 820px; margin: 0 auto; text-align: center; }
  .hero h1 span { background: linear-gradient(90deg, #7c3aed, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero p.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--text-2); margin: 20px auto 0; max-width: 700px; }
  .hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
  .hero .ticks { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 18px; color: var(--text-2); font-size: .95rem; list-style: none; padding: 0; }
  .hero .ticks li { display: flex; gap: 6px; align-items: center; }
  .hero .ticks .icon { color: var(--success); width: 18px; height: 18px; }
  .hero-shot { position: relative; margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1080px; }
  .hero-shot .phone { position: absolute; right: -2%; bottom: -6%; width: 22%; min-width: 130px; }
  @media (max-width: 700px) { .hero-shot .phone { display: none; } }

  /* screenshots */
  .shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
  .shot::before { content: ""; display: block; height: 30px; background:
      radial-gradient(circle at 18px 15px, #ff5f57 5px, transparent 5.5px),
      radial-gradient(circle at 36px 15px, #febc2e 5px, transparent 5.5px),
      radial-gradient(circle at 54px 15px, #28c840 5px, transparent 5.5px), var(--surface-2); border-bottom: 1px solid var(--border); }
  .shot img { width: 100%; }
  .shot.phone { border-radius: 28px; border: 8px solid #1d1a26; }
  .shot.phone::before { display: none; }
  .shot-link { display: block; border-radius: var(--radius-lg); }
  figure.shot-figure figcaption { color: var(--text-3); font-size: .9rem; margin-top: 12px; text-align: center; }

  /* cards */
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
  .card h3 { margin-bottom: 8px; }
  .card p { color: var(--text-2); }
  .card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
  .card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
  .card .more { display: inline-flex; gap: 4px; align-items: center; margin-top: 12px; font-weight: 620; color: var(--accent-ink); }
  .icon-badge { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
  .icon-badge .icon { width: 24px; height: 24px; }

  /* lists */
  .checks { list-style: none; padding: 0; display: grid; gap: 10px; margin: 18px 0 0; align-content: start; }
  .checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
  .checks li .icon { color: var(--success); margin-top: 4px; width: 18px; height: 18px; }
  .checks b { color: var(--text); font-weight: 620; }
  .feature-text h2 { margin-bottom: 14px; }
  .feature-text h3 { font-size: 1.05rem; }
  .prose-block { max-width: 820px; }
  .card .card-title { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -.01em; }
  .hero-claim { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; color: var(--text-2); margin-bottom: 10px; }
  .hero-claim span { background: linear-gradient(90deg, #7c3aed, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .jump a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; font-weight: 560; font-size: .93rem; }
  .jump a:hover { border-color: var(--accent); color: var(--accent-ink); }
  .jump .icon { width: 16px; height: 16px; color: var(--accent); }
  .jump-start { justify-content: flex-start; margin-bottom: 8px; }
  .post h2 a { color: inherit; text-decoration: none; }
  .post h2 a:hover { color: var(--accent-ink); }
  .feature-text > p { color: var(--text-2); font-size: 1.08rem; }

  /* quote */
  .quote { max-width: 760px; margin: 0 auto; text-align: center; }
  .quote blockquote { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
  .quote figcaption { margin-top: 14px; color: var(--text-2); }

  /* pricing */
  .billing-switch { display: flex; justify-content: center; margin-bottom: 36px; }
  .billing-switch .seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
  #billing-month, #billing-year { position: absolute; opacity: 0; pointer-events: none; }
  .billing-switch label { padding: 8px 18px; border-radius: 9px; font-weight: 600; color: var(--text-2); cursor: pointer; }
  .billing-switch label small { color: var(--success); font-weight: 650; }
  #billing-month:checked ~ .billing-switch label[for="billing-month"], #billing-year:checked ~ .billing-switch label[for="billing-year"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
  #billing-month:focus-visible ~ .billing-switch label[for="billing-month"], #billing-year:focus-visible ~ .billing-switch label[for="billing-year"] { box-shadow: var(--focus); }
  #billing-month:checked ~ .plans .y, #billing-year:checked ~ .plans .m { display: none; }
  .plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
  .plan { position: relative; display: flex; flex-direction: column; padding: 30px; }
  .plan.is-highlight { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
  .plan .badge { position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
  .plan .price { font-size: 2.6rem; font-weight: 750; letter-spacing: -.03em; margin: 14px 0 0; }
  .plan .price small { font-size: 1rem; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
  .plan .tagline { color: var(--text-2); }
  .plan-name { font-size: 1.3rem; }
  .plan .limit { color: var(--text-2); font-size: .95rem; margin-top: 4px; }
  .plan .checks { margin-bottom: 26px; flex: 1; }
  .plan .btn { width: 100%; }
  .muted { color: var(--text-2); }
  .faint { color: var(--text-3); }
  .small { font-size: .9rem; }

  /* faq */
  .faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
  .faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; }
  .faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 640; display: flex; justify-content: space-between; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
  .faq details[open] summary::after { content: "–"; }
  .faq details > div { padding: 0 0 18px; color: var(--text-2); }

  /* cta band */
  .cta-band { text-align: center; padding: clamp(40px, 6vw, 64px); border-radius: 26px; color: #fff; background: linear-gradient(120deg, #6d28d9, #9333ea 55%, #db2777); box-shadow: var(--shadow-lg); }
  .cta-band h2 { color: #fff; }
  .cta-band p { color: rgb(255 255 255 / .85); margin: 12px auto 26px; max-width: 620px; font-size: 1.1rem; }
  .cta-band .btn { background: #fff; color: #4c1d95; border-color: #fff; }
  .cta-band .btn:hover { background: #f5f3ff; color: #4c1d95; }
  .cta-band .btn-outline { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
  .cta-band .btn-outline:hover { background: rgb(255 255 255 / .1); color: #fff; }

  /* page header */
  .page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(800px 380px at 10% -20%, color-mix(in oklab, #7c3aed 14%, transparent), transparent 62%); }
  .page-hero p { color: var(--text-2); font-size: 1.15rem; margin-top: 14px; max-width: 720px; }
  .crumbs { font-size: .9rem; color: var(--text-3); margin-bottom: 14px; }
  .crumbs a { color: var(--text-2); text-decoration: none; }

  /* model cards (Kursgebühr, Monatlich …) */
  .model { padding: 22px; }
  .model .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 10px; border-radius: 99px; margin-bottom: 12px; }

  /* news */
  .post { padding: 30px 0; border-bottom: 1px solid var(--border); }
  .post time { color: var(--text-3); font-size: .9rem; }
  .post h2 { font-size: 1.5rem; margin: 6px 0 12px; }

  /* contact */
  .contact-card { display: flex; gap: 16px; align-items: flex-start; }
  .contact-card .icon-badge { margin: 0; flex: none; }
  .hours { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; color: var(--text-2); margin-top: 8px; }

  /* footer */
  .footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 32px; color: var(--text-2); font-size: .95rem; }
  .footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
  @media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  .footer h4 { color: var(--text); font-size: .95rem; margin-bottom: 12px; }
  .footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
  .footer a { color: var(--text-2); text-decoration: none; }
  .footer a:hover { color: var(--accent-ink); }
  .footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .88rem; color: var(--text-3); }
}

@layer utilities {
  .center { text-align: center; }
  .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 48px; }
  .mb-2 { margin-bottom: 16px; }
  .flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .flex-center { justify-content: center; }
  .mx-auto { margin-inline: auto; }
  .pt-0 { padding-top: 0 !important; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
