*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0f11;
  --bg-soft: #16181c;
  --line: #26292f;
  --fg: #f4f5f7;
  --fg-dim: #9aa0aa;
  --accent: #ff6b35;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  /* Expo.out — dieselbe Kurve für alle Übergänge */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-dur: 240ms;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Auf der Klick-Demo markiert ein Doppelklick sonst Text statt einen Treffer zu setzen.
   Nur hier, nicht auf der Datenschutzseite: die muss kopierbar bleiben. */
body.demo { -webkit-user-select: none; user-select: none; }
/* Die Mailadresse will man kopieren koennen, ohne das Mailprogramm zu oeffnen. */
body.demo a[href^='mailto:'] { -webkit-user-select: text; user-select: text; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 50% -10rem, #2a2e36 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, #ffffff06 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #ffffff06 39px 40px);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* Marker-Layer über allem, fängt aber keine Klicks ab */
#markers { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.marker { position: absolute; width: 120px; height: 120px; overflow: visible; }
.marker path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

/* --- Header --- */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.25rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
header nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; font-size: 0.9rem; }
header nav a { color: var(--fg-dim); text-decoration: none; }
header nav a:hover { color: var(--fg); }

/* --- Hero --- */
.hero { text-align: center; padding: 4.5rem 0 3rem; }
/* Block statt inline — sonst rutscht das Icon neben die Badge, sobald Platz ist */
.hero img.appicon {
  display: block;
  margin: 0 auto;
  width: 128px; height: 128px;
  border-radius: 28px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }

.badge {
  display: inline-block;
  margin: 1.5rem 0 1rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--fg-dim);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.badge b { color: var(--accent); font-weight: 600; }

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero p.sub {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  color: var(--fg-dim);
  font-size: 1.15rem;
}
.hint {
  margin-top: 2.5rem;
  color: var(--fg-dim);
  font-size: 0.95rem;
}
.hint kbd {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--fg);
}
.counter { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }

/* --- Playground --- */
.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.controls { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.control > label { display: block; font-size: 0.8rem; color: var(--fg-dim); margin-bottom: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; }
.teaser {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 0.9rem;
  text-align: center;
}

input[type='range'] { width: 100%; accent-color: var(--accent); }
.control .value { float: right; color: var(--fg); font-variant-numeric: tabular-nums; text-transform: none; }

/* --- Sections --- */
section { padding: 4rem 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
h2 + p.lead { color: var(--fg-dim); max-width: 38rem; margin-bottom: 2rem; }

/* Feature-Liste statt Kästen: Haarlinien-Raster mit Trefferkreuz als Aufzählungszeichen */
.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); column-gap: 3.5rem; border-top: 1px solid var(--line); }
.features li { display: flex; align-items: flex-start; gap: 1.15rem; padding: 1.75rem 0.25rem; border-bottom: 1px solid var(--line); }
.features h3 { font-size: 1.05rem; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.features p { color: var(--fg-dim); font-size: 0.95rem; }

.glyph {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 0.2rem;
  fill: none;
  stroke: #5b6068;
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke var(--ease-dur) var(--ease), transform var(--ease-dur) var(--ease);
}
.features li:hover .glyph { stroke: var(--accent); transform: rotate(90deg) scale(1.12); }

/* Erst per JS aktiv, damit die Inhalte ohne JS sichtbar bleiben */
.features.reveal li { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease-out, transform 0.4s var(--ease); }
.features.reveal li.in { opacity: 1; transform: none; }

.cta { text-align: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--fg-dim);
  font-size: 0.95rem;
}
.store b { color: var(--fg); }
.store .glyph { width: 20px; height: 20px; margin: 0; stroke: var(--accent); }

/* Querverweis auf die eigene Seite — bewusst ein normaler, folgbarer Link */
.maker { padding-top: 1rem; }
.maker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* align-items: flex-start haelt den Button schmal, der Textblock muss sich trotzdem strecken */
.maker-card > div { align-self: stretch; }
.maker .kicker { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }
.maker h3 { font-size: 1.15rem; margin: 0.15rem 0 0.35rem; letter-spacing: -0.01em; }
.maker p { color: var(--fg-dim); font-size: 0.95rem; }
.maker-more { margin-top: 0.5rem; color: #7a808a; }
.maker-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  margin-top: 1.5rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid #3a3f47;
  border-radius: 999px;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease-dur) var(--ease), border-color var(--ease-dur) var(--ease), transform var(--ease-dur) var(--ease);
}
.maker-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ease-dur) var(--ease); }
.maker-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.maker-link:hover svg { transform: translateX(3px); }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--fg-dim);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
footer a { color: var(--fg-dim); }
footer a:hover { color: var(--fg); }

/* --- Legal-Seiten --- */
.legal { max-width: 44rem; padding: 3rem 0 4rem; }
.legal h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 0.5rem; }
.legal p, .legal li { color: var(--fg-dim); margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.25rem; }
.legal strong { color: var(--fg); }
.legal .stand { color: var(--fg-dim); font-size: 0.9rem; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 4rem 0; }
.legal a { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero img.appicon { animation: none; }
  html { scroll-behavior: auto; }
}
