/* =============================================================================
   aMaze. – amazedot.com
   Umsetzung des Claude-Design-Handoffs (assets-src/design-handoff/).
   Tokens, Typo, Spacing und Radien stammen 1:1 aus dessen README.
   Die Seite kommt ohne JavaScript aus: Sprachwechsel und Navigation sind
   echte Links, alles Interaktive steckt hier (Hover, Focus, Animation, Media).
   ========================================================================== */

/* ---- Schriften (selbst gehostet, keine Google-Fonts-Requests) -------------
   Montserrat ist eine Variable Font – EINE Datei je Subset deckt 500–800 ab.
   IBM Plex Mono liegt als statische Schnitte 400/500 vor.
   Lizenzen: fonts/OFL-Montserrat.txt, fonts/OFL-IBMPlexMono.txt            */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500 800;font-display:swap;src:url('../fonts/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500 800;font-display:swap;src:url('../fonts/montserrat-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibmplexmono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibmplexmono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibmplexmono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibmplexmono-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---- Tokens --------------------------------------------------------------- */
:root{
  --bg:#F7F4EC;            /* Creme: Seitengrund, Text auf Dunkelflächen */
  --ink:#3D3D3D;           /* Text, Rahmen, Dunkelsektionen, Primary-Button */
  --ink-hover:#2C2C2C;
  --link-hover:#6E6A62;
  --bg-hover:#FFFDF7;      /* invertierter Button auf Dunkel */

  /* Die fünf Punktfarben – ausschließlich Akzente (kleine Kreise),
     niemals Flächen oder Textfarben. */
  --dot-blue:#7CC7E4;
  --dot-green:#B4D25E;
  --dot-yellow:#FADD6C;
  --dot-orange:#F9B871;
  --dot-pink:#F7808E;

  --sans:'Montserrat','Trebuchet MS',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;

  --pad:32px;              /* Container-Innenabstand, schrumpft unter 640px */
  --sec:104px;             /* Sektions-Rhythmus */
}

/* ---- Basis ---------------------------------------------------------------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:500;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;height:auto}
a{color:var(--ink);text-decoration:none;transition:background-color 150ms ease,color 150ms ease,border-color 150ms ease}
a:hover{color:var(--link-hover)}
::selection{background:var(--dot-blue);color:var(--ink)}

/* Tastaturnavigation: sichtbarer Ring, auf Dunkelflächen invertiert. */
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.dark :focus-visible,.dark a:focus-visible{outline-color:var(--bg)}

/* Der Sticky-Header verdeckt sonst den Anfang der angesprungenen Sektion. */
[id]{scroll-margin-top:88px}

/* ---- Layout-Bausteine ----------------------------------------------------- */
.wrap{max-width:1180px;margin:0 auto;padding-inline:var(--pad)}
.eyebrow{
  font-family:var(--mono);font-size:13px;font-weight:400;
  letter-spacing:.14em;text-transform:uppercase;
  color:rgba(61,61,61,.5);
}
.mono{font-family:var(--mono);font-size:13px;font-weight:400}
h1,h2,h3{font-weight:800;margin:0}
h1{font-size:64px;line-height:1.05;letter-spacing:-.03em;text-wrap:balance}
h2{font-size:42px;line-height:1.1;letter-spacing:-.03em}
h3{font-size:22px;line-height:1.25;letter-spacing:-.015em}
p{margin:0;font-size:17px;line-height:1.5;text-wrap:pretty}
.lead{font-size:19px;line-height:1.5;color:rgba(61,61,61,.75)}
/* Eyebrow → H2 = 16px, H2 → Grid = 56px */
.eyebrow + h2{margin-top:16px}
.h2-gap{margin-bottom:56px}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  border-radius:999px;font-size:17px;font-weight:800;
  border:0;cursor:pointer;font-family:var(--sans);
}
.btn-primary{background:var(--ink);color:var(--bg);padding:17px 30px}
.btn-primary:hover{background:var(--ink-hover);color:var(--bg)}
.btn-secondary{border:2.5px solid rgba(61,61,61,.85);padding:15px 28px;background:transparent}
.btn-secondary:hover{background:var(--ink);color:var(--bg)}
.btn-invert{background:var(--bg);color:var(--ink);padding:17px 30px}
.btn-invert:hover{background:var(--bg-hover);color:var(--ink)}

/* Gerätrahmen – reines CSS, kein Bild-Asset */
.phone{border:11px solid var(--ink);border-radius:48px;overflow:hidden;background:var(--bg);width:308px}
.phone img{display:block;width:100%;height:auto}
.phone-hero{box-shadow:0 30px 60px -30px rgba(61,61,61,.45)}  /* der EINZIGE Schatten der Seite */
/* Hero-Animation (js/hero.js). Der Screenshot liegt darunter und bleibt
   stehen, solange der Canvas nicht zeichnet – ohne JS, ohne Canvas-Support
   oder bei prefers-reduced-motion. */
.hero-canvas{display:none;width:100%;aspect-ratio:1206/2622;background:var(--bg)}
.phone.is-live > picture{display:none}
.phone.is-live .hero-canvas{display:block}
.phone-sm{border-width:10px;border-radius:44px;width:100%;max-width:280px}

/* ---- Header (sticky) ------------------------------------------------------ */
.site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(247,244,236,.92);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(61,61,61,.09);
}
.site-header .wrap{padding-block:18px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.wordmark{font-size:24px;font-weight:800;letter-spacing:-.02em}
.nav{display:flex;align-items:center;gap:12px}
.nav a{font-size:16px;font-weight:700;padding:8px 4px}
.lang{
  margin-left:8px;display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;flex:none;border-radius:999px;
  border:2.5px solid var(--ink);background:transparent;
  font-size:14px;font-weight:700;
}
.lang:hover{background:var(--ink);color:var(--bg)}

/* ---- Hero ----------------------------------------------------------------- */
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding-block:76px 40px}
.hero-status{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.hero-status .dot{width:11px;height:11px;border-radius:999px;background:var(--dot-blue);flex:none}
.hero-status .mono{letter-spacing:.14em;text-transform:uppercase;color:rgba(61,61,61,.6)}
.hero-lead{margin-top:26px;font-size:20px;line-height:1.5;max-width:30em;color:rgba(61,61,61,.8)}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:38px}
.hero-meta{margin-top:20px;color:rgba(61,61,61,.5)}
.hero-art{display:flex;justify-content:center}

/* ---- Korridor-Band -------------------------------------------------------- */
/* Zurzeit nicht im Markup – der Hero animiert das Spiel inzwischen selbst.
   Bleibt hier, weil SHOW_BAND in js/main.js die Sektion zurueckholt. */
/* Ink-Panel mit dem Korridor als skalierendes SVG. Der Handoff empfiehlt genau
   das gegenüber den px-Translates des Prototyps: eine feste viewBox, die
   mitskaliert, statt Werte, die nur bei einer Breite passen. */
.band-sec{padding-block:24px 96px}
.band{background:var(--ink);border-radius:28px;padding-block:56px;overflow:hidden}
/* Das SVG ist absichtlich breiter als das Panel – der Korridor läuft über die
   Kante hinaus (im Prototyp: margin:0 -40px). */
.band svg{display:block;width:calc(100% + 80px);margin-inline:-40px;height:auto}
.band-run{animation:amazeRun 7s cubic-bezier(.55,.05,.45,.95) infinite}
.band-pulse{transform-box:fill-box;transform-origin:center;animation:amazePulse 2.4s ease-in-out infinite}
.band-pulse.d1{animation-delay:.6s}
.band-pulse.d2{animation-delay:1.2s}
@keyframes amazeRun{
  0%  {transform:translate(0,0)}
  26% {transform:translate(408px,0)}
  36% {transform:translate(408px,58px)}
  60% {transform:translate(688px,58px)}
  70% {transform:translate(688px,-4px)}
  100%{transform:translate(1188px,-4px)}
}
@keyframes amazePulse{
  0%,100%{transform:scale(1);opacity:1}
  50%    {transform:scale(.78);opacity:.65}
}
/* Bewegung aussetzen: Dot bleibt statisch am Korridoranfang stehen. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .band-run,.band-pulse{animation:none}
}

/* ---- So funktioniert's ---------------------------------------------------- */
.how-sec{padding-block:0 110px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.step{display:flex;flex-direction:column;gap:14px}
.step .num{color:rgba(61,61,61,.45)}
.step h3{margin-top:6px}
.step p{color:rgba(61,61,61,.75)}
.step-icon{
  width:60px;height:60px;border-radius:999px;border:3px solid var(--ink);
  display:flex;align-items:center;justify-content:center;gap:5px;
}
.step-icon i{display:block;border-radius:999px}
.step-icon .drag{width:22px;height:22px;background:var(--dot-blue)}
.step-icon .curve{width:26px;height:26px;border-radius:4px 0 0 0;border-top:3px solid var(--ink);border-left:3px solid var(--ink)}
.step-icon .pair{width:13px;height:13px}
.step-icon .pair.a{background:var(--dot-green)}
.step-icon .pair.b{background:var(--dot-yellow)}
.step-icon .grow{width:38px;height:38px;background:var(--dot-orange)}

/* ---- Features (Dunkelsektion) --------------------------------------------- */
.dark{background:var(--ink);color:var(--bg)}
.feat-sec{padding-block:var(--sec)}
.feat-sec .eyebrow{color:rgba(247,244,236,.55)}
.feats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.feat{
  border:2px solid rgba(247,244,236,.22);border-radius:22px;padding:32px 28px;
  display:flex;flex-direction:column;gap:12px;
  transition:border-color 150ms ease;
}
.feat:hover{border-color:rgba(247,244,236,.55)}
.feat .dot{width:14px;height:14px;border-radius:999px;flex:none}
.feat h3{margin-top:8px}
.feat p{color:rgba(247,244,236,.75)}

/* ---- Teaser --------------------------------------------------------------- */
.teaser-sec{padding-block:var(--sec) 0}
.teaser-sec h2{margin-bottom:40px}
.teaser{aspect-ratio:16/9;border-radius:24px;overflow:hidden;background:var(--ink)}
.teaser video{display:block;width:100%;height:100%;object-fit:cover}

/* ---- Screenshots ---------------------------------------------------------- */
.shots-sec{padding-block:var(--sec) 0}
.shots-sec h2{margin-bottom:12px}
.shots-sec .lead{max-width:34em;margin-bottom:56px}
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;justify-items:center}
.shot{display:flex;flex-direction:column;align-items:center;gap:16px}
.shot figcaption{color:rgba(61,61,61,.55)}

/* ---- Abschluss-CTA -------------------------------------------------------- */
.cta-sec{padding-block:var(--sec)}
.cta{border-radius:28px;padding:80px 56px;display:grid;grid-template-columns:1.2fr .8fr;gap:48px;align-items:center}
.cta h2{font-size:48px;line-height:1.06}
.cta .lead{margin-top:22px;max-width:28em;color:rgba(247,244,236,.78)}
.cta-side{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.cta-side .mono{color:rgba(247,244,236,.5)}

/* ---- Presse & Kontakt ----------------------------------------------------- */
.press-sec{padding-block:0 96px}
.press{border-top:1px solid rgba(61,61,61,.14);padding-top:48px;display:grid;grid-template-columns:1fr 1fr;gap:48px}
.press h3{margin-bottom:12px}
.press p{color:rgba(61,61,61,.75);max-width:30em}
.press .mail{
  display:inline-block;margin-top:14px;
  font-family:var(--mono);font-size:14px;font-weight:400;
  border-bottom:2px solid rgba(61,61,61,.3);padding-bottom:2px;
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer{border-top:1px solid rgba(61,61,61,.14)}
.site-footer .wrap{padding-block:36px 56px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.footer-brand{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.footer-brand .wordmark{font-size:21px}
.footer-brand .mono{color:rgba(61,61,61,.5)}
.footer-links{display:flex;flex-wrap:wrap;gap:22px;font-size:16px;font-weight:700}

/* ---- Rechtsseiten --------------------------------------------------------- */
/* Nicht Teil des Design-Handoffs; hier auf dieselben Tokens gesetzt, damit
   Impressum und Datenschutz nicht wie eine andere Website aussehen. */
.legal{max-width:900px;margin:0 auto;padding:56px var(--pad) 96px}
.legal-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}
.legal-tabs a{
  padding:9px 18px;border-radius:999px;border:2.5px solid rgba(61,61,61,.85);
  font-size:15px;font-weight:800;
}
.legal-tabs a:hover{background:var(--ink);color:var(--bg)}
.legal-tabs a[aria-current]{background:var(--ink);color:var(--bg)}
.legal-variant{display:inline-flex;gap:10px;margin-bottom:28px;align-items:center}
.legal-variant .eyebrow{color:rgba(61,61,61,.45)}
.legal-variant a{font-family:var(--mono);font-size:13px;font-weight:500;border-bottom:2px solid rgba(61,61,61,.3);padding-bottom:2px}
.legal-variant a[aria-current]{border-bottom-color:var(--ink)}
.legal h1{font-size:44px}
.legal > .lead{margin-top:16px;max-width:34em}
.legal-body{margin-top:44px;display:flex;flex-direction:column;gap:34px}
.legal-body h2{font-size:22px;line-height:1.25;letter-spacing:-.015em;margin-bottom:12px}
.legal-body .txt{font-size:17px;line-height:1.6;color:rgba(61,61,61,.75)}
.legal-body .txt p{margin:0 0 12px;font-size:inherit;line-height:inherit}
.legal-body .txt p:last-child{margin-bottom:0}
.legal-body .txt ul,.legal-body .txt ol{margin:8px 0 12px;padding-left:22px}
.legal-body .txt li{margin:0 0 6px}
.legal-body .txt a{border-bottom:2px solid rgba(61,61,61,.3);padding-bottom:1px}
.legal-updated{margin-top:52px;color:rgba(61,61,61,.5)}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width:1023px){
  .hero{grid-template-columns:1fr;gap:44px;text-align:left;justify-items:start}
  .hero h1{font-size:44px}
  .hero-art{justify-self:center}
  .steps{grid-template-columns:repeat(2,1fr);gap:36px 28px}
  .feats{grid-template-columns:repeat(2,1fr)}
  .shots{grid-template-columns:repeat(2,1fr)}
  .cta{grid-template-columns:1fr;padding:64px 40px}
  .cta h2{font-size:40px}
  .press{grid-template-columns:1fr;gap:36px}
}
@media (max-width:639px){
  :root{--pad:20px;--sec:64px}
  h1,.hero h1{font-size:34px}
  h2{font-size:28px}
  .cta h2{font-size:28px}
  .legal h1{font-size:30px}
  .hero{padding-block:48px 24px}
  .hero-lead{font-size:18px}
  .how-sec{padding-block:0 var(--sec)}
  .band-sec{padding-block:16px var(--sec)}
  /* Das Band skaliert mit der Breite mit und wird dabei flach – die Polsterung
     mitziehen, sonst steht der Korridor in einer fast leeren Dunkelfläche. */
  .band{padding-block:28px}
  .steps{grid-template-columns:1fr}
  .feats,.shots{grid-template-columns:1fr}
  .shots{gap:44px}
  .cta{padding:44px 24px}
  .hero-actions .btn{width:100%;justify-content:center}
  /* Das Hochformat-Mockup würde bei 308px fast die ganze Breite fressen. */
  .hero-art .phone{width:min(308px,70vw)}
  /* Kompakter Header: nur Wortmarke + Sprachumschalter (der bleibt sichtbar). */
  .nav a:not(.lang){display:none}
  .lang{margin-left:0}
  .h2-gap{margin-bottom:36px}
  .shots-sec .lead{margin-bottom:36px}
}
