/* The App Studio — styles.css
   Reines statisches Stylesheet, keine externen Requests, System-Fonts. */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #14161a;
  --muted: #56606b;
  --faint: #838d98;
  --line: #e8e5df;
  --accent: #3b4cca;
  --accent-ink: #2c3aa8;
  --accent-soft: #eef0fb;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --surface: #16181e;
    --ink: #f2f3f5;
    --muted: #a7b0bb;
    --faint: #7d8793;
    --line: #262a32;
    --accent: #8f9bff;
    --accent-ink: #aab4ff;
    --accent-soft: #191d2e;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.measure { max-width: 68ch; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: block;
  flex: none;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); font-size: 0.98rem; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #fff !important;
  padding: 9px 17px; border-radius: 10px; font-weight: 550;
}
.nav-cta:hover { background: var(--accent-ink); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 9px; width: 42px; height: 40px;
  cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px;
  font-weight: 550; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--faint); color: var(--ink); text-decoration: none; }

/* Sections */
main { display: block; }
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.76rem; font-weight: 650; color: var(--accent);
  margin: 0 0 14px;
}

/* Hero */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero-inner { max-width: 760px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.28rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-glyph {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 360px; height: 360px; opacity: 0.5; pointer-events: none;
}
@media (max-width: 860px) { .hero-glyph { display: none; } }

/* Product card */
.cards { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 34px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
}
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.card-logo {
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
}
.card h3 { margin: 0; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px; margin-left: auto;
}
.card p { color: var(--muted); margin: 12px 0 18px; }

/* Contact / definition list */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  margin-top: 22px; max-width: 520px;
}
address.company {
  font-style: normal; color: var(--ink); line-height: 1.9;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; max-width: 520px;
}
address.company .name { font-weight: 650; }
address.company .row { color: var(--muted); }
address.company a { font-weight: 500; }

/* Legal pages */
.legal { padding: 60px 0 90px; }
.legal .container { max-width: 780px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 0.92rem; margin-bottom: 40px; }
.legal h2 { margin: 44px 0 12px; font-size: 1.35rem; }
.legal h3 { margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.8; }

.backlink { display: inline-block; margin-bottom: 28px; font-weight: 500; color: var(--muted); }
.backlink:hover { color: var(--ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--faint);
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); text-decoration: none; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.notfound .container { max-width: 520px; }
.notfound h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
.notfound .lead { margin-left: auto; margin-right: auto; }

/* Mobile nav */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; }
  .nav-cta { justify-content: center; margin-top: 6px; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
