@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #f6f4ef;
  --bg-tint: #eef0e6;
  --card: #ffffff;
  --ink: #262420;
  --ink-soft: #6e6a61;
  --border: #e4e0d5;
  --primary: #1f5d42;
  --primary-ink: #f6f4ef;
  --accent: #c77d2e;
  --stamp: #1f5d42;
  --ring: rgba(31, 93, 66, 0.22);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -20px rgba(38, 36, 32, 0.4);
}

.site-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 7px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: var(--primary);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  overflow: hidden;
}

/* Einspaltig, seit das Wochen-Motiv rechts entfallen ist. Die Textbreite bleibt
   begrenzt, damit die Zeilen nicht über die volle Containerbreite laufen. */
.hero-grid {
  display: block;
}

.hero-copy {
  max-width: 42ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
}

.hero-sub {
  margin: 24px 0 32px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: 7px;
  padding: 15px 26px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -10px color-mix(in srgb, var(--primary) 55%, transparent);
}

.hero-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}

section.tint {
  background: var(--bg-tint);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head.left {
  text-align: left;
  margin: 0 0 44px;
  max-width: none;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.feature-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.feature-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 20px;
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.bento-card h3 {
  font-size: 1.3rem;
}

.bento-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.bento-large {
  grid-row: 1 / 4;
  padding: 36px;
}

.bento-large h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  max-width: 20ch;
}

.bento-large p {
  max-width: 42ch;
  font-size: 1.03rem;
}

/* KI-Feature-Karte: vollbreit unter dem Grid, dezenter Primär-Akzent */
.bento-ai {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
}

.bento-ai p {
  max-width: 62ch;
}

/* Aufzählung statt Fließtext: die KI-Funktionen sind fünf getrennte Dinge und
   lesen sich hintereinandergeschrieben wie eine Aufzählung von Versprechen. */
.plain-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.bento-ai-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.bento-shot {
  margin-top: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20, 22, 28, 0.3);
}

.bento-thumb {
  margin-top: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 100%;
  object-fit: cover;
  object-position: top;
  height: 230px;
  flex: 1;
}

/* ---------- Installieren (PWA-Anleitung) ---------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.install-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.install-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.install-os {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Browser als Badge: die Anleitung gilt pro Browser, nicht pro Gerät. */
.install-browser {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.96rem;
}

.install-steps li {
  counter-increment: install-step;
  position: relative;
  padding-left: 34px;
  min-height: 24px;
  color: var(--ink-soft);
}

.install-steps li strong {
  color: var(--ink);
  font-weight: 700;
}

.install-steps li::before {
  content: counter(install-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-steps a {
  font-weight: 700;
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Icon inline im Fließtext -- zeigt genau den Knopf, an dem man sonst hängenbleibt. */
.install-icon {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  margin-left: 2px;
  color: var(--ink);
}

.install-hint {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.install-foot {
  margin: 26px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Stat strip (value section, invertiert) ---------- */
.stat-section {
  background: var(--ink);
  color: #f3f1ea;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: rgba(243, 241, 234, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.price-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 22px 46px -22px color-mix(in srgb, var(--primary) 40%, transparent);
}

.price-card.unavailable {
  opacity: 0.65;
}

.price-unavailable {
  margin-top: auto;
  display: block;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-tint);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 11px 16px;
}

.price-tier {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.price-amount {
  margin: 6px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.price-desc {
  margin: 10px 0 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.price-limits {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.price-limits li {
  padding-left: 22px;
  position: relative;
}

.price-limits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--stamp);
  font-weight: 700;
}

.price-card .price-cta {
  margin-top: auto;
  padding: 12px 20px;
  font-size: 0.95rem;
}

.price-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.price-cta-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.price-cta-link:hover {
  text-decoration: underline;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--ink);
  color: #f3f4f8;
  border-radius: 14px;
  padding: 72px 32px;
  margin: 40px auto 0;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
}

.final-cta p {
  margin: 18px auto 32px;
  max-width: 42ch;
  color: #b9bdca;
  font-size: 1.05rem;
}

.final-cta .btn-primary {
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  margin-top: 40px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 60px 0 80px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 36px 0 12px;
}

.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal ul {
  padding-left: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 28px;
  font-size: 0.92rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero-copy {
    max-width: none;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-large {
    grid-row: auto;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .stat:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  section {
    padding: 64px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 52px 22px;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-left: none !important;
    padding-left: 0 !important;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .stat:first-child {
    border-top: none;
    padding-top: 0;
  }

  footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary, .header-cta {
    transition: none;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
