:root {
  --bg: #0b0b0f;
  --surface: #15151c;
  --border: #26262f;
  --text: #ececf1;
  --muted: #9a9aa8;
  --accent: #b14cf0;
  --accent-2: #ff3d6e;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Sprachumschaltung: nur die Spans der aktiven Sprache zeigen */
html[lang="de"] [lang="en"],
html[lang="en"] [lang="de"] { display: none; }

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

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 .35em;
  font-size: .9em;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1160px) / 2));
  background: rgba(11, 11, 15, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav a { color: var(--muted); font-size: .95rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.lang-toggle {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer;
}

main section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 16px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 30%; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, rgba(177, 76, 240, .28), transparent),
              radial-gradient(closest-side at 70% 60%, rgba(255, 61, 110, .18), transparent);
  filter: blur(20px);
}
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.15rem; }
.fine { color: var(--muted); font-size: .88rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.1); }

/* App-Fenster-Optik für Screenshots */
.window {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03);
  background: #000;
}
.window img { display: block; width: 100%; height: auto; }

/* Funktionen */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.grid article p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Screenshots */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.gallery figure { margin: 0; }
.shot { padding: 0; cursor: zoom-in; width: 100%; transition: transform .2s; }
.shot:hover { transform: translateY(-3px); }
figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; text-align: center; }

.lightbox {
  padding: 0; border: 0; background: transparent;
  max-width: 96vw; max-height: 94vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { display: block; max-width: 96vw; max-height: 94vh; border-radius: 10px; cursor: zoom-out; }

/* Download */
.download { text-align: center; }
.steps {
  list-style: none; counter-reset: s;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  padding: 0; margin: 28px 0; text-align: left;
}
.steps li {
  counter-increment: s;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; color: var(--muted);
}
.steps li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700;
}
.download .fine { max-width: 680px; margin: 0 auto 24px; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}
footer p { margin: 6px 0; }
footer .links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .nav nav a { display: none; }
  main section { padding: 48px 16px; }
}
