/* ABO Games — main.css
   Konzept: «Engine-Viewport» (см. DESIGN.md). Statisch, keine externen Requests. */

/* ---------- Fonts (lokal, kein CDN) ---------- */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/chakra-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/chakra-500-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakra-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakra-600-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chakra-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chakra-700-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/plexsans-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/plexsans-var-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jbmono-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jbmono-var-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

/* ---------- Tokens ---------- */
:root {
  --ink-950: #0c0d12;
  --ink-900: #13151c;
  --ink-850: #181b24;
  --line: #262a37;
  --text: #e9e9ee;
  --muted: #a2a6b4;
  --accent: #e8467c;
  --accent-soft: #ff87ac;
  --accent-ink: #16060c;
  --font-display: "Chakra Petch", "Avenir Next Condensed", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --wrap: 1120px;
  --gutter: 24px;
  --radius: 2px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
section[id], [id^="hero"] { scroll-margin-top: 80px; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: var(--radius); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 1rem; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.55rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 1.95rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
address { font-style: normal; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; z-index: 100; font-weight: 550;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Mono utility ---------- */
.eyebrow, .tag, .mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--accent-soft); margin: 0 0 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink-950) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.wordmark .tick { color: var(--accent); }
.wordmark .suffix { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.1em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 450;
  padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { color: var(--text); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 6px;
}
.lang-switch strong { color: var(--text); padding: 8px 6px; font-weight: 600; }
.lang-switch a { color: var(--muted); padding: 8px 6px; min-height: 0; }
.lang-switch a:hover { color: var(--accent-soft); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-size: 1.2rem; line-height: 1;
  width: 44px; height: 44px; cursor: pointer;
}

/* ---------- Viewport frame (signature) ---------- */
.viewport { position: relative; }
.viewport > .corner {
  position: absolute; width: 22px; height: 22px;
  border-color: var(--accent); border-style: solid; border-width: 0;
  transition: transform 0.25s ease;
}
.viewport > .corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.viewport > .corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.viewport > .corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.viewport > .corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 62% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 62% 40%, #000 0%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 70% 30%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 64px; }
.hero-frame { padding: 40px 32px 32px; }
.hero h1 { max-width: 17ch; margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { max-width: 56ch; font-size: 1.14rem; color: var(--muted); margin-bottom: 2.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 3rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.03em;
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.statusline {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 20px;
}
.statusline .dot { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 3rem; max-width: 62ch; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service {
  position: relative;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
}
.service:hover > .corner { transform: scale(1.28); }
.service .tag { color: var(--accent-soft); display: block; margin-bottom: 12px; }
.service h3 { margin-bottom: 0.6rem; }
.service p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Arbeitsweise ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { border-top: 2px solid var(--line); padding-top: 20px; position: relative; }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 44px; height: 2px; background: var(--accent);
}
.step .num {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--accent-soft); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; }
.studio-text p { color: var(--muted); }
.studio-text p:first-of-type { color: var(--text); font-size: 1.08rem; }
.factlist {
  background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; margin: 0; position: relative;
}
.factlist dt {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-soft);
}
.factlist dd { margin: 2px 0 18px; color: var(--text); font-size: 0.97rem; }
.factlist dd:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact-frame { padding: 48px 36px; background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-frame h2 { margin-bottom: 0.6rem; }
.contact-frame > p { color: var(--muted); max-width: 52ch; }
.contact-mail {
  display: inline-block; margin: 1rem 0 1.6rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  color: var(--accent-soft); text-decoration-thickness: 2px; text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--text); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Legal pages ---------- */
.legal-main { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 104px; }
.legal-main h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.legal-main h2 { font-size: 1.25rem; margin-top: 2.4rem; }
.legal-main p, .legal-main li, .legal-main address { color: var(--muted); }
.legal-main address, .legal-main strong { color: var(--text); }
.legal-meta { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--ink-900); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer .wordmark { font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--text); }
.footer-legal { color: var(--muted); font-size: 0.85rem; margin: 0; flex-basis: 100%; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero .cta-row, .hero .statusline {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .hero h1 { animation-delay: 0.08s; }
  .hero .lede { animation-delay: 0.16s; }
  .hero .cta-row { animation-delay: 0.24s; }
  .hero .statusline { animation-delay: 0.34s; }
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viewport > .corner, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .studio-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .section { padding: 72px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 48px; }
  .hero-frame { padding: 28px 18px 22px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-frame { padding: 32px 22px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; }
  .lang-switch { margin-top: 8px; align-self: flex-start; }
}
