/* Taskpot website – style C "Spielzeugkiste" (design/tokens/tokens.json): solid fills, 3px ink outlines, hard shadows.
   Self-hosted font only; no external requests (CSP default-src 'self'). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #F3EEFF; --surface: #FFFFFF; --text: #1A1A1A; --muted: #4F4866; --ink: #1A1A1A; --line: #1A1A1A;
  --accent: #1A1A1A; --on-accent: #FFFFFF; --link: #5A2FC9;
  --lilac: #C9B8FF; --pink: #FF8AD8; --lime: #C6F432; --orange: #FF9F1C; --butter: #FFF1A8; --on-fill: #1A1A1A;
  --shadow-s: 3px 3px 0 var(--ink); --shadow-m: 6px 6px 0 var(--ink); --shadow-l: 8px 8px 0 var(--ink);
  --r-m: 16px; --r-l: 24px; --r-xl: 30px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16112A; --surface: #261E3F; --text: #F6F2FF; --muted: #BDB3DA; --ink: #06040D; --line: #9389BA;
    --accent: #C6F432; --on-accent: #1A1A1A; --link: #CDBDFF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 17px/1.55 "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header and footer */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo img { width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-s); }
.nav { display: flex; gap: 18px; font-weight: 700; font-size: 16px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
@media (max-width: 560px) { .nav { display: none; } }

.site-footer { margin-top: 72px; padding: 32px 0 48px; border-top: 3px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; font-weight: 700; }
.site-footer nav a { color: var(--text); }

/* Buttons, pills, cards */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none;
  border: 3px solid var(--ink); border-radius: var(--r-m); box-shadow: var(--shadow-s); margin: 6px 10px 6px 0;
}
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.pill {
  display: inline-block; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--butter); color: var(--on-fill); font-weight: 800; font-size: 15px; box-shadow: var(--shadow-s);
}
.card {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-m);
  padding: 22px; margin: 20px 0;
}
.fill { color: var(--on-fill); border-color: var(--ink); }
.fill a { color: var(--on-fill); }
.fill-lilac { background: var(--lilac); } .fill-pink { background: var(--pink); } .fill-lime { background: var(--lime); }
.fill-orange { background: var(--orange); } .fill-butter { background: var(--butter); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 40px 0 56px; }
.hero .lead { font-size: 20px; max-width: 34em; }
.hero .pill { margin-bottom: 18px; }
.stage { position: relative; min-height: 380px; }
.stage .pot {
  width: min(340px, 80%); margin: 10px auto 0; border: 3px solid var(--ink); border-radius: 64px;
  box-shadow: var(--shadow-l); transform: rotate(-4deg); height: auto; aspect-ratio: 1;
}
.chip {
  position: absolute; border: 3px solid var(--ink); border-radius: var(--r-m); box-shadow: var(--shadow-s);
  padding: 10px 14px; font-weight: 800; color: var(--on-fill); line-height: 1.2;
}
.chip small { display: block; font-weight: 600; font-size: 13px; }
.chip.points { top: 6%; right: 2%; background: var(--lime); font-size: 24px; transform: rotate(6deg); }
.chip.task { bottom: 16%; left: 0; background: #FFFFFF; transform: rotate(-5deg); }
.chip.fair { bottom: 0; right: 4%; background: var(--pink); transform: rotate(3deg); min-width: 180px; }
.bar { display: flex; height: 14px; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; }
.bar .a { width: 52%; background: var(--orange); border-right: 3px solid var(--ink); }
.bar .b { width: 48%; background: var(--lilac); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .stage { min-height: 340px; }
  .chip.task { top: 0; bottom: auto; left: 0; }
}

/* Sections */
section { padding: 36px 0; }
.section-intro { max-width: 40em; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps .card { margin: 0; }
.steps .card::before {
  counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 12px; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--lime); color: var(--on-fill); font-weight: 800; font-size: 20px;
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.features .card { margin: 0; }
.features .card:nth-child(odd) { transform: rotate(-0.8deg); }
.features .card:nth-child(even) { transform: rotate(0.8deg); }
@media (max-width: 900px) { .features, .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features, .steps { grid-template-columns: 1fr; } }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.prices .card { margin: 0; display: flex; flex-direction: column; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 2px; }
.prices ul { padding-left: 20px; margin: 12px 0 0; }
.prices li { margin-bottom: 6px; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }

.join { margin: 36px 0; padding: 28px; }
.join p { max-width: 46em; }

.faq details { background: var(--surface); border: 3px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-s); padding: 14px 18px; margin: 14px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* Text pages (Impressum, Datenschutz, …) */
.page { padding: 24px 0 8px; }
.page h1 { font-size: clamp(34px, 6vw, 48px); margin-bottom: 20px; }
.page h2 { font-size: 24px; margin-top: 32px; }
.page dl { margin: 0; }
.page dt { font-weight: 800; margin-top: 12px; }
.page dd { margin: 0; }
.small { font-size: 15px; }

/* Invitation page */
.code { font: 800 30px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 4px; margin: 0; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:active { transform: none; } }

/* Store buttons and screenshot strip (WP-111) */
/* Official badges, unchanged artwork; Apple's must be at least 40px high. The Google PNG carries its own transparent
   padding above and below, the negative margin lines its visible part up with the Apple badge. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 10px 0 14px; }
.badge { display: block; line-height: 0; }
.badge img { height: 48px; width: auto; }
.badge.play img { height: 62px; margin: -7px 0; }
.soon { font-weight: 700; font-size: 15px; color: var(--muted); }
.join .soon { color: var(--on-fill); }
.shots {
  list-style: none; margin: 0 -16px; padding: 8px 16px 28px; display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 16px; overscroll-behavior-x: contain;
}
.shots li { flex: 0 0 clamp(200px, 27vw, 260px); scroll-snap-align: start; }
.shots img {
  width: 100%; height: auto; border: 3px solid var(--ink); border-radius: var(--r-l); box-shadow: var(--shadow-m);
}
.shots li:nth-child(odd) img { transform: rotate(-1deg); }
.shots li:nth-child(even) img { transform: rotate(1deg); }
.shots:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: var(--r-m); }

/* Apple TV sign-in page (WP-203) */
.tv-code { font-size: 40px; font-weight: 800; letter-spacing: 0.08em; margin: 8px 0 16px; }

/* Apple TV (WP-131) */
.tv-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin: 56px 0; }
.tv-feature ul { padding-left: 1.2em; }
.tv-feature li { margin: 6px 0; }
.tv-frame { margin: 0; position: relative; transform: rotate(0.8deg); }
.tv-frame img {
  display: block; width: 100%; height: auto; border: 10px solid var(--ink); border-radius: var(--r-l);
  box-shadow: var(--shadow-l); background: #1E1638;
}
.tv-stand { display: block; width: 28%; height: 14px; margin: 0 auto; background: var(--ink); border-radius: 0 0 10px 10px; }
@media (max-width: 900px) { .tv-feature { grid-template-columns: 1fr; gap: 24px; } }

/* WP-134: report form and legal pages */
.report { display: grid; gap: 10px; }
.report label { font-weight: 700; }
.report textarea, .report input:not([type="checkbox"]) { font: inherit; padding: 10px 12px; border: 2px solid var(--ink, #1A1A1A); border-radius: 12px; width: 100%; box-sizing: border-box; background: #fff; }
.report .check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.legal .table { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
.legal th, .legal td { border-bottom: 1px solid rgba(0,0,0,0.15); padding: 8px 6px; text-align: left; vertical-align: top; }
