:root {
  --bg: #0d1117;
  --bg-alt: #11161f;
  --panel: #161c27;
  --border: #232c3a;
  --text: #e7edf5;
  --muted: #9aa7b8;
  --brand: #2ecc71;
  --brand-2: #27ae60;
  --red: #e74c3c;
  --yellow: #f1c40f;
  --green: #2ecc71;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
section { scroll-margin-top: 80px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem clamp(1rem, 4vw, 2rem);
  background: rgba(13,17,23,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.brand-mark { color: var(--brand); display: inline-flex; }
.brand-name { font-size: 1.15rem; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; gap: .25rem; }
.lang-btn {
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: .2rem .3rem; cursor: pointer; line-height: 0; opacity: .55;
}
.lang-btn svg { border-radius: 2px; display: block; }
.lang-btn:hover { opacity: 1; }
.lang-btn.active { opacity: 1; border-color: var(--border); background: var(--panel); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; }
.btn-primary { background: var(--brand); color: #06210f; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--brand); }

/* HERO */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
}
.pill {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(46,204,113,.12); color: var(--brand);
  border: 1px solid rgba(46,204,113,.3); font-size: .82rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }

/* HERO MAP CARD */
.map-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.map-card-head { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); margin-bottom: .9rem; }
.map-card-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(46,204,113,.18); }
.hexmap {
  --hex-w: clamp(30px, 8.5vw, 46px);
  --hex-h: calc(var(--hex-w) * 1.1547);   /* reguläres, spitz-oben Hexagon */
  --hex-gap: 0px;
  display: flex; justify-content: center; align-items: center;
  background: var(--bg); border-radius: 12px; padding: 14px 10px;
  overflow: hidden;
}
/* Ganze Waben, als Block zentriert (leichter Zickzack-Rand, aber nichts abgeschnitten). */
.hexgrid { display: flex; flex-direction: column; align-items: flex-start; }
.hex-row { display: flex; }
/* Reihen vertikal um 1/4 Höhe verzahnen (echte Wabentessellation). */
.hex-row + .hex-row { margin-top: calc(var(--hex-h) * -0.25 + var(--hex-gap)); }
/* Ungerade Reihen um eine halbe Wabe versetzen. */
.hex-row:nth-child(even) { margin-left: calc((var(--hex-w) + var(--hex-gap)) / 2); }
.hex {
  flex: 0 0 auto;
  width: var(--hex-w); height: var(--hex-h);
  margin: 0 calc(var(--hex-gap) / 2);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #1c2532; transition: background .5s ease;
}
.hex.r { background: var(--red); }
.hex.y { background: var(--yellow); }
.hex.g { background: var(--green); }
.legend { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-red { background: var(--red); } .sw-yellow { background: var(--yellow); } .sw-green { background: var(--green); }

/* SECTIONS */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem); }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .6rem; }

/* FEATURE GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--brand); transform: translateY(-3px); }
.ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(46,204,113,.12); color: var(--brand); font-size: 1.3rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* STEPS */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { position: relative; padding-top: .5rem; }
.step-n {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #06210f; font-weight: 700; margin-bottom: .8rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* SPLIT / CODE */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.split h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
.checks { list-style: none; margin: 1.2rem 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.8rem; color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.code {
  background: #0a0e14; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem; overflow-x: auto; font-size: .9rem; color: #aeebc4;
}
.code code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; color: #b7e8c8; white-space: pre; }

/* CTA */
.cta { text-align: center; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem); }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .7rem; }
.stores { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.8rem; }
.store {
  display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.4rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--panel); font-weight: 600;
}
.store:hover { border-color: var(--brand); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); text-align: center; padding: 2.5rem 1rem; display: grid; gap: .4rem; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; color: var(--brand); font-weight: 700; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
