/* CricketThemes Notion Widgets – Startseite */

:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --text: #2B2A27;
  --muted: #6F6D68;
  --line: #EAE7E1;
  --accent: #0F9B8E;
  --button: #0B7A70;
  --button-hover: #0F9B8E;
  --button-text: #FFFFFF;
  --peach: #FAEBDD;
  --peach-text: #8A4B1C;
  --shadow: 0 1px 2px rgba(43, 42, 39, .04), 0 8px 24px rgba(43, 42, 39, .06);

  --heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Arimo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616;
    --surface: #202020;
    --text: rgba(255, 255, 255, .9);
    --muted: rgba(255, 255, 255, .58);
    --line: #2E2E2E;
    --accent: #2BC4B4;
    --button: #0B7A70;
    --button-hover: #0F9B8E;
    --peach: #3A2A1F;
    --peach-text: #F3B98A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Kopf ---------- */

.top { padding: 28px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img { display: block; width: auto; height: 72px; margin-left: -10px; }

.brand small {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.hero { padding: 48px 0 40px; text-align: center; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  margin: 0 auto;
  max-width: 760px;
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.lead { margin: 20px auto 0; max-width: 600px; color: var(--muted); font-size: 18px; }

.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.button:hover { background: var(--button-hover); }

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--peach-text);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Vorschau-Karten (statisch, keine Links zu Widgets) ---------- */

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0 56px;
}

.demo {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo--light { background: #FFFFFF; color: #37352F; border: 1px solid #ECEAE5; }
.demo--peach { background: #FAEBDD; color: #5C3B23; }
.demo--neon { background: #0A0A0F; color: #00F5D4; }

.demo__clock { font-family: var(--heading); font-size: 56px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.demo__clock span { color: #0F9B8E; }
.demo__sub { margin-top: 8px; font-size: 14px; opacity: .6; }

.demo__ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#D9730D 0 68%, rgba(92, 59, 35, .14) 68% 100%);
  margin: 0 auto;
}

.demo__ring > div {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #FAEBDD;
  display: grid;
  place-items: center;
  font-family: var(--heading);
  font-weight: 500;
  font-size: 28px;
}

.demo__pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(92, 59, 35, .3);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo__flip { display: flex; gap: 8px; justify-content: center; font-family: ui-monospace, Consolas, monospace; }

.demo__flip b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 74px;
  border: 1.5px solid #00F5D4;
  border-radius: 8px;
  font-size: 44px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 245, 212, .7);
  box-shadow: 0 0 14px rgba(0, 245, 212, .25), inset 0 0 10px rgba(0, 245, 212, .12);
  background: linear-gradient(transparent 49%, rgba(0, 245, 212, .35) 49% 51%, transparent 51%);
}

.demo__flip i { align-self: center; font-style: normal; font-size: 36px; }

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

.section { padding: 56px 0; border-top: 1px solid var(--line); }

.section h2 {
  margin: 0 0 8px;
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section > .wrap > p { margin: 0 0 32px; color: var(--muted); max-width: 620px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.feature {
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature svg { width: 26px; height: 26px; color: var(--accent); }

.feature h3 { margin: 12px 0 6px; font-family: var(--heading); font-weight: 600; font-size: 16px; }

.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }

.steps li {
  counter-increment: step;
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
}

.steps h3 { margin: 0 0 6px; font-family: var(--heading); font-weight: 600; font-size: 16px; }

.steps p { margin: 0; color: var(--muted); font-size: 15px; }

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--peach);
  color: var(--peach-text);
  font-size: .9em;
}

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

.cta { padding: 64px 0; text-align: center; border-top: 1px solid var(--line); }

.cta h2 { margin: 0 0 10px; font-family: var(--heading); font-weight: 500; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.01em; }

.cta p { margin: 0 auto 28px; max-width: 560px; color: var(--muted); }

.cta .note { margin-top: 18px; font-size: 14px; }

/* ---------- Fuß ---------- */

.foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.foot a { text-decoration: none; }

.foot a:hover { color: var(--text); }

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
  .showcase, .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .demo { aspect-ratio: 16 / 9; }
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
}
