:root {
  --bg: #ffffff;
  --text: #1a202c;
  --muted: #4a5568;
  --accent: #0f8a80;
  --border: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a202c;
    --text: #edf2f7;
    --muted: #a0aec0;
    --accent: #4fd1c7;
    --border: #2d3748;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

main,
header,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
}

header img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

header a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}

h1 {
  margin-top: 32px;
  line-height: 1.25;
}

h2 {
  margin-top: 32px;
  font-size: 1.2rem;
}

a {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

footer a {
  margin-right: 16px;
}

/* ---------- Startseite ---------- */

.landing {
  overflow-x: hidden;
}

.landing header,
.landing footer {
  max-width: 1040px;
}

.hero {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 16px 24px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(79, 209, 199, 0.22), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 460px;
  color: var(--muted);
  font-size: 1.1rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.pills li::before {
  content: '✓ ';
  color: var(--accent);
}

.small {
  font-size: 0.9rem;
}

/* Handy-Rahmen um die Screenshots */

.hero-phones {
  position: relative;
  height: 600px;
}

.phone {
  position: absolute;
  top: 30px;
  width: 260px;
  padding: 9px;
  border-radius: 44px;
  background: #0b0f17;
  box-shadow:
    0 0 0 2px #3a4456,
    0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
}

.phone-center {
  left: 50%;
  top: 0;
  margin-left: -130px;
  z-index: 2;
}

.phone-left {
  left: 0;
  transform: rotate(-7deg) scale(0.85);
}

.phone-right {
  right: 0;
  transform: rotate(7deg) scale(0.85);
}

/* Funktionen */

.features {
  max-width: 1040px;
  margin: 40px auto 16px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 209, 199, 0.15);
}

.feature svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 12px 0 4px;
  font-size: 1.05rem;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead {
    margin: 0 auto;
  }

  .pills {
    justify-content: center;
  }

  .hero-phones {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-phones {
    height: 470px;
  }

  .phone {
    width: 220px;
    border-radius: 38px;
  }

  .phone img {
    border-radius: 30px;
  }

  .phone-center {
    margin-left: -110px;
  }

  .phone-left,
  .phone-right {
    display: none;
  }

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