:root {
  --bg: #F5F8F4;
  --surface: #FFFFFF;
  --primary: #A8C5AE;
  --primary-dark: #5E8468;
  --text: #29352D;
  --text-secondary: #5B6960;
  --border: #E2EAE2;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow: 0 16px 40px -20px rgba(41, 53, 45, 0.28);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.1rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; color: var(--text); }

/* Header */

.site-header {
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.main-nav a:not(.nav-github) {
  color: var(--text-secondary);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 600;
}
.nav-github:hover { text-decoration: none; color: var(--primary-dark); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-coffee {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-coffee:hover { border-color: var(--primary-dark); color: var(--primary-dark); }

.btn-large {
  padding: 15px 30px;
  font-size: 1.02rem;
}

/* Hero */

.hero { padding: 56px 0 96px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy, .hero-shots { min-width: 0; width: 100%; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.hero-footnote {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 40ch;
}

.hero-shots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.hero-shots::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  max-width: 360px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 72%);
  opacity: 0.55;
  z-index: 0;
}

.hero-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-lg);
  border: 7px solid var(--surface);
  box-shadow: var(--shadow);
}

/* Features */

.features {
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features h2 {
  max-width: 24ch;
  margin-bottom: 56px;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 72px;
}

.feature-row-reverse .feature-shot { order: 2; }
.feature-row-reverse .feature-copy { order: 1; }

.feature-shot {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-icon {
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.feature-copy h3 { color: var(--text); }
.feature-copy p { color: var(--text-secondary); font-size: 0.98rem; max-width: 40ch; margin-bottom: 0; }

/* Hardware */

.hardware { padding: 64px 0; }

.hardware-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.hardware-card p { color: var(--text-secondary); font-size: 0.96rem; margin-bottom: 10px; }
.hardware-card p:last-child { margin-bottom: 0; }

/* About */

.about { padding: 88px 0; }

.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.about-copy p { color: var(--text-secondary); max-width: 52ch; }
.about-license { font-size: 0.9rem; }

.about-shot {
  border-radius: var(--radius-lg);
  border: 7px solid var(--surface);
  box-shadow: var(--shadow);
  justify-self: center;
  width: 100%;
  max-width: 280px;
}

/* Support */

.support {
  background: var(--text);
  color: #fff;
  padding: 72px 0;
}

.support-inner {
  text-align: center;
  max-width: 560px;
}

.support h2 { color: #fff; }
.support p { color: #C7D2C9; }

.support .btn-coffee {
  background: #fff;
  border-color: transparent;
  margin-top: 8px;
}
.support .btn-coffee:hover { background: var(--primary); color: var(--text); }

/* Footer */

.site-footer {
  padding: 32px 0 48px;
}

.footer-inner {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links a { color: var(--text-secondary); }
.footer-links span { margin: 0 8px; color: var(--border); }

/* Legal pages (Impressum, Datenschutz) */

.legal { padding: 56px 0 96px; }

.legal-intro {
  max-width: 60ch;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.legal-section + .legal-section { margin-top: 40px; }

.legal-section h2 { font-size: 1.2rem; }

.legal-section p, .legal-section li, .legal-section address {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 68ch;
}

.legal-section address { font-style: normal; }

.legal-section ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-section li { margin-bottom: 0.4em; }

/* Responsive */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shots { margin-top: 8px; order: -1; padding: 24px 0; }
  .hero-shot { max-width: 220px; }

  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature-row .feature-shot, .feature-row-reverse .feature-shot { order: -1; }
  .feature-row .feature-copy, .feature-row-reverse .feature-copy { order: 2; }
  .feature-row + .feature-row { margin-top: 48px; }

  .hardware-inner { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; }
  .about-shot { order: -1; }
}

@media (max-width: 560px) {
  .main-nav { gap: 16px; }
  .main-nav a:not(.nav-github) { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
