:root {
  --green: #3e8a19;
  --green-dark: #2c6a10;
  --yellow: #ffc83d;
  --purple: #7b2fa8;
  --bg: #fcfdf9;
  --bg-alt: #f1f4ee;
  --panel: #ffffff;
  --line: #dce3d8;
  --text: #1d2a20;
  --muted: #5d6c62;
  --shadow: 0 18px 50px rgba(30, 60, 20, .14);
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121914;
    --bg-alt: #182019;
    --panel: #1c251f;
    --line: #2c3830;
    --text: #e8efe9;
    --muted: #9aaa9f;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; }
.top nav a:hover { color: var(--text); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 720px) { .top nav a:not(.lang) { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap > *, .split > * { min-width: 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
h1 { font-size: clamp(38px, 5.5vw, 62px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px;
  background: var(--yellow); border-radius: 8px; z-index: -1; opacity: .85;
}
.lead { font-size: 21px; color: var(--muted); margin: 0 0 30px; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 24px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(62, 138, 25, .35);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: none; border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; }

.device {
  background: #1d1f1c; padding: 14px; border-radius: 34px; box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.device img { border-radius: 22px; }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .device { transform: none; }
}

/* Abschnitte */
section { padding: 80px 0; }
.alt { background: var(--bg-alt); }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--green); margin: 0 0 8px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
.intro { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin: 14px 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 12px;
}
.chip b { background: #fff; color: #1d2a20; border-radius: 999px; padding: 0 9px; font-size: 14px; }
.c-move { background: #3d8a17; }
.c-space { background: #0e7c86; }
.c-pen { background: #b23c7a; }
.c-control { background: #2f6db0; }
.c-decide { background: #c0392b; }
.c-vars { background: #c05a00; }
.c-words { background: #7b2fa8; }

/* Zwei Spalten mit Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d2a20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
}

/* Galerie */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 28px; margin: 0 -16px;
  scrollbar-width: thin;
}
.gallery figure { flex: 0 0 auto; width: min(460px, 84vw); margin: 0; scroll-snap-align: center; }
.gallery img { border-radius: 22px; box-shadow: var(--shadow); border: 10px solid #1d1f1c; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 12px; }

/* Code your Life */
.cyl { background: var(--green); color: #fff; }
.cyl .eyebrow { color: var(--yellow); }
.cyl p { color: rgba(255, 255, 255, .9); max-width: 44em; font-size: 19px; }
.cyl a { color: #fff; }
.cyl .btn { background: var(--yellow); color: #1d2a20; box-shadow: none; }
.cyl .btn:hover { background: #ffd666; }

.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts span {
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: 16px;
}

/* Fuß */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a { color: var(--muted); }

/* Textseiten */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); }
.page h2 { font-size: 24px; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
.btn-soon, .btn-soon:hover { cursor: default; transform: none; background: transparent; color: var(--muted); }
