/* Gemeinsames Stylesheet für developer, betterlocale und atomiumgames.
   Quelle: sites-src/assets/site.css, wird von build.py in jede Site kopiert.

   Grundsätze (Apple HIG und "Designing Fluid Interfaces", aufs Web übertragen):
   - Fließtext 17 px, kleinste Schrift 13 px, Tippflächen ab 44 px, Textkontrast ab 4,5:1.
   - Laufweite hängt von der Größe ab: große Überschriften enger, Fließtext neutral.
   - Bewegung nur über transform und opacity. Alles ist abschaltbar: bei "Bewegung reduzieren"
     bleiben nur kurze Überblendungen, bei "Transparenz reduzieren" wird die Kopfzeile deckend.
   - Jede Site hat eigene Farben und eine eigene Auszeichnungsschrift, selbst gehostet. */

/* ------------------------------------------------------------ Schriften */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "JB Mono"; src: url("../fonts/jbmono-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JB Mono"; src: url("../fonts/jbmono-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Lilita"; src: url("../fonts/lilita-latin.woff2") format("woff2"); font-weight: 400; font-display: swap;
  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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lilita"; src: url("../fonts/lilita-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------ Farben und Maße */
:root {
  color-scheme: light dark;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font: var(--system);
  --display: var(--system);
  --mono: "JB Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display-weight: 700;
  --display-track: -.025em;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1160px;
  /* Bewegungskurven: kritisch gedämpft als Standard, Federn nur für geworfene Dinge */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
}

/* developer: Papier und Tinte, Königsblau als einziger Akzent */
.site-developer {
  --bg: #f7f6f2; --bg-alt: #eeece5; --surface: #ffffff; --text: #15171c; --muted: #565a63; /* 6,6:1 auf --bg */
  --border: #dcd9cf; --accent: #2444d4; --accent-ink: #2444d4; /* 6,9:1 */ --on-accent: #ffffff; --accent-soft: #e4e8fb;
  --display: "Bricolage", var(--system); --display-weight: 700; --display-track: -.035em;
  --shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 12px 32px rgba(21, 23, 28, .08);
}
/* betterlocale: das Dunkelblau der App-Icons, Kobalt für Aktionen */
.site-betterlocale {
  /* zwei Hellblau-Töne im Wechsel; Karten und Fenster bleiben weiß und heben sich davon ab */
  --bg: #f4f8ff; --bg-alt: #e2ecfc; --surface: #ffffff; --text: #0d1830; --muted: #47526d; /* 6,5:1 auf --bg-alt */
  --border: #cbd8ef; --accent: #1f55e0; --accent-ink: #1b4bc8; /* 5,9:1 auf --bg-alt */ --on-accent: #ffffff; --accent-soft: #d5e2fb;
  --shadow: 0 1px 2px rgba(13, 24, 48, .06), 0 14px 36px rgba(13, 24, 48, .10);
  --ok: #1a7f45; --warn: #a86400; --warn-ink: #8a5200; /* Strich 5,7:1 auf getönter Zelle */
}
@media (prefers-color-scheme: dark) {
  .site-developer {
    --bg: #121316; --bg-alt: #1a1b20; --surface: #212329; --text: #f1f0ec; --muted: #a9acb5; /* 8,0:1 */
    --border: #33353d; --accent: #8a9cff; --accent-ink: #a5b3ff; --on-accent: #0c1030; --accent-soft: #1d2242;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
  .site-betterlocale {
    --bg: #0a1124; --bg-alt: #0f1830; --surface: #16203d; --text: #eef2fb; --muted: #a4afc8; /* 8,3:1 */
    --ok: #3fc878; --warn: #f5a524; --warn-ink: #ffc266;
    --border: #27345a; --accent: #6f95ff; --accent-ink: #9db6ff; --on-accent: #06102b; --accent-soft: #18264d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .4);
  }
}
/* atomiumgames: immer dunkel, Violett der Samurai-Grafik, Grün des Logos, Gelb für Ranglisten */
.site-atomiumgames {
  color-scheme: dark;
  --bg: #130d2b; --bg-alt: #1a1240; --surface: #221850; --text: #f4f0ff; --muted: #bdb2e6; /* 9,4:1 */
  --border: #382a75; --accent: #8be3a9; --accent-ink: #8be3a9; /* 11:1 */ --on-accent: #0c2415; --accent-soft: #2a1f63;
  --gold: #ffd34d;
  --display: "Lilita", var(--system); --display-weight: 400; --display-track: 0em;
  --shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 44px rgba(5, 2, 20, .55);
}

/* ------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; font: 1.0625rem/1.55 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; text-underline-offset: 3px; }
p a:not([class]), .prose a, .lead a { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.4rem); line-height: 1.02; letter-spacing: var(--display-track); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.08; letter-spacing: calc(var(--display-track) * .8); }
h3 { font-size: 1.22rem; line-height: 1.2; letter-spacing: calc(var(--display-track) * .35); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 48px); }
.narrow { max-width: 800px; }
.center { text-align: center; justify-content: center; }
.center .lead { margin-inline: auto; }
/* :where hält die Rücksetzung bei Spezifität 0, damit Abstände einzelner Bausteine (.chips, .mini-apps) gelten */
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }

/* ------------------------------------------------------------ Kopfzeile: schwebende Materialschicht */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 70%, transparent);
}
html:not(.js) .site-header { background: var(--bg); }
.bar { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1.02rem; min-height: 44px; min-width: 0; flex: 0 1 auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-developer .brand img { border-radius: 50%; }
.site-atomiumgames .brand img { object-fit: contain; }
.primary { margin-inline-start: auto; }
.primary ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary a, .menu a { display: flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 999px; color: var(--text); font-size: .95rem; font-weight: 500; transition: background-color .2s; }
.primary a[aria-current="page"] { background: color-mix(in srgb, var(--text) 8%, transparent); font-weight: 650; }
.primary a:hover, .menu a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.lang { position: relative; display: flex; align-items: center; color: var(--muted); flex: none; }
.lang svg { position: absolute; inset-inline-start: 11px; pointer-events: none; }
.language-select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: .94rem; color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent); border: 0; border-radius: 999px;
  min-height: 40px; padding-block: 0; padding-inline: 36px 14px; max-width: 12.5rem; cursor: pointer;
}
.language-select option { color: #111; background: #fff; }
.menu-nav { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease-out); }
.menu[open] summary span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu ul {
  position: absolute; inset-inline-end: 0; top: 54px; min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  transform-origin: top right; animation: menu-in .28s var(--ease-out);
}
[dir="rtl"] .menu ul { transform-origin: top left; }
@keyframes menu-in { from { opacity: 0; transform: scale(.94); } }
@media (max-width: 880px) {
  .primary { display: none; }
  .bar > .lang { margin-inline-start: auto; }
  .menu-nav { display: block; }
}
@media (max-width: 480px) {
  .bar { gap: 8px; }
  .language-select { max-width: 7.6rem; padding-inline-end: 8px; }
}
@media (pointer: coarse) { .language-select { font-size: 16px; min-height: 44px; } }

/* ------------------------------------------------------------ Bausteine */
.section { padding-block: clamp(64px, 9vw, 128px); }
.band { background: var(--bg-alt); }
/* Jede Site hat genau zwei Hintergründe, die sich abwechseln: --bg und --bg-alt.
   .band und .ink setzen beide den zweiten Ton; .ink gibt ihn zusätzlich als --bg an den Inhalt weiter. */
.ink { --bg: var(--bg-alt); background: var(--bg-alt); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin: .5em 0 0; }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: var(--muted); line-height: 1.5; max-width: 40em; }
.eyebrow { font-size: .86rem; font-weight: 600; color: var(--accent-ink); margin-bottom: 1.1em; }
.eyebrow.mono { font-size: .82rem; font-weight: 500; }
.tag { color: var(--muted); font-size: .95rem; margin: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 1.5em 0 0; }
.row:first-child { margin-top: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .98rem;
  transition: transform .2s var(--ease-out), filter .2s;
}
.button.sm { min-height: 36px; padding: 0 16px; font-size: .9rem; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.button:hover { filter: brightness(1.08); }
/* Rückmeldung sofort beim Drücken, nicht erst beim Loslassen */
.button:active, .badge:active, .strip-nav button:active { transform: scale(.96); transition-duration: .08s; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.text-link::after { content: "→" / ""; margin-inline-start: 6px; transition: transform .25s var(--ease-out); }
[dir="rtl"] .text-link::after { content: "←" / ""; }
.text-link:hover::after { transform: translateX(4px); }
[dir="rtl"] .text-link:hover::after { transform: translateX(-4px); }
.badge { display: inline-block; border-radius: 9px; line-height: 0; transition: transform .2s var(--ease-out); }
.badge img { width: 150px; height: auto; }
.site-atomiumgames .badge img, .site-betterlocale .badge img, .site-developer .badge img { outline: 1px solid rgba(255, 255, 255, .28); outline-offset: -1px; border-radius: 8px; }
.soon { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .92rem; }
.more { margin-top: 36px; }
.aside { margin-top: 36px; color: var(--muted); }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; flex: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); background: #fff; }
.app-icon.sm { width: 48px; height: 48px; }
.app-icon.lg { width: 84px; height: 84px; }
.app-icon.xl { width: 108px; height: 108px; margin-inline: auto; box-shadow: 0 2px 6px rgba(0, 0, 0, .18), 0 18px 40px rgba(13, 24, 48, .22); }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.app-head h3 { margin: 0 0 2px; }
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow); }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: .94rem; font-weight: 500; }
.chips.links { margin-top: 0; }
.chips.links li { padding: 0; }
.chips.links a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; color: var(--text); border-radius: 999px; transition: background-color .2s, color .2s; }
.chips.links a:hover { background: var(--text); color: var(--bg); }

.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; grid-template-columns: 1fr 1fr; }
.hero-text .lead { margin-bottom: 1.6em; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.principles { display: grid; gap: 36px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }
.principles li { padding-top: 20px; border-top: 1px solid var(--border); }
/* Merkmale als Liste wie in einem Datenblatt: links der Begriff, rechts die Erklärung */
.split-sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-sec > .section-head { position: sticky; top: 96px; margin-bottom: 0; }
@media (max-width: 900px) { .split-sec { grid-template-columns: 1fr; } .split-sec > .section-head { position: static; } }
.features { display: grid; }
/* in der schmaleren rechten Spalte steht der Begriff über der Erklärung, das liest sich ruhiger */
.split-sec .features li { grid-template-columns: 1fr; gap: 6px; }
.split-sec .features h3 { font-size: 1.16rem; }
.features li:first-child, .split-sec .faq details:first-child { border-top: 0; padding-top: 0; }
.split-sec .faq details:first-child summary { padding-top: 6px; }
.split-sec .faq details:first-child summary::before, .split-sec .faq details:first-child summary::after { top: 17px; }
.features li { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); gap: 8px 32px; padding-block: 24px; border-top: 1px solid var(--border); }
.features li:last-child { border-bottom: 1px solid var(--border); }
.features h3 { margin: 0; }
@media (max-width: 640px) { .features li { grid-template-columns: 1fr; } }
.principles p, .features p, .ways p { color: var(--muted); margin: 0; }
.ways { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ways li { background: var(--accent-soft); border-radius: var(--radius); padding: 26px; }

.mini-apps { display: grid; gap: 6px; }
.mini-apps.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.mini-apps a { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 14px; border-radius: 16px; color: var(--text); transition: background-color .2s, transform .3s var(--ease-out); }
.mini-apps.wide a { background: var(--surface); box-shadow: var(--shadow); }
.mini-apps.pairs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); }
.mini-apps a:hover { background: var(--accent-soft); }
.mini-apps span { display: flex; flex-direction: column; min-width: 0; }
.mini-apps small { color: var(--muted); font-size: .9rem; }

/* Galerie: nativer Scroll mit Einrasten, die Finger bewegen den Inhalt 1:1 */
.gallery { position: relative; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 680px); gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 6px 4px 22px; overscroll-behavior-x: contain; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip li { scroll-snap-align: start; }
.shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); width: 100%; transition: transform .35s var(--ease-out); }
.shot:hover { transform: translateY(-3px); }
.shot:active { transform: scale(.985); transition-duration: .08s; }
.shot img { width: 100%; }
.strip-nav { display: flex; gap: 10px; justify-content: flex-end; }
.strip-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease-out), opacity .2s; }
.strip-nav button[aria-disabled="true"] { opacity: .4; cursor: default; }
html:not(.js) .strip-nav { display: none; }
html:not(.js) .shot { cursor: default; }
.strip-wrap { border-radius: var(--radius-sm); }
.strip-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .strip-nav svg { transform: scaleX(-1); }
.history .strip { grid-auto-columns: min(46%, 250px); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1440px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 8, 14, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .35s var(--ease-out); }
.lightbox[open]::backdrop { animation: fade .3s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox .lb-bar { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.lightbox :focus-visible { outline-color: #fff; }
.lb-count { color: #fff; text-align: center; font-size: .9rem; margin: 12px 0 0; }
.lightbox button { min-width: 46px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: #111; font: inherit; font-weight: 600; cursor: pointer; }

.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding-block: 20px; padding-inline: 0 44px; position: relative; font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 31px; width: 16px; height: 2px; background: var(--accent-ink); border-radius: 2px; transition: transform .35s var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq p { color: var(--muted); padding-block: 0 20px; padding-inline: 0 44px; margin: 0; }
.faq details[open] p { animation: faq-in .4s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.cta h2 { margin-top: .9em; }
.cta .row { margin-top: 1.8em; }
.cta-more { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--border); }
.cta-more h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 1em; }

.legal-hero { padding-block: clamp(40px, 6vw, 72px) 0; }
.legal-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; letter-spacing: -.01em; font-family: var(--system); font-weight: 700; }
.prose h3 { font-size: 1.08rem; margin-top: 1.5em; font-family: var(--system); font-weight: 650; }
.prose .note { font-size: .94rem; color: var(--muted); padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.legal .section { padding-top: 24px; }
.gc-toggle { font: inherit; font-weight: 600; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent); }
.gc-toggle[aria-pressed="true"] { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
html:not(.js) .gc-toggle { display: none; }
.lang-legal { margin-top: 32px; font-size: .94rem; color: var(--muted); }

/* Fußzeile: immer der zweite Ton; der Abschnitt davor ist deshalb immer der erste */
.site-footer { --bg: var(--bg-alt); }
/* developer-Startseite endet mit einem Abschnitt im zweiten Ton, deshalb hat die Fußzeile dort den ersten */
.site-developer.home .site-footer { --bg: #f7f6f2; }
@media (prefers-color-scheme: dark) { .site-developer.home .site-footer { --bg: #121316; } }
.profiles-sec { padding-block: clamp(48px, 6vw, 80px); }
.foot-top { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.foot-top h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .8em; }
.site-footer { background: var(--bg); padding-block: clamp(48px, 6vw, 72px) 40px; font-size: .94rem; color: var(--muted); }
.foot-grid { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 28px; }
.foot-brand { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.2rem; color: var(--text); margin-bottom: .4em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer address a { text-decoration: underline; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.foot-grid { padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.foot-note { font-size: .82rem; margin: .4em 0 0; }
.lang-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 24px; }
.lang-list a { display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 12px; background: var(--bg-alt); color: var(--text); }
.lang-list a:hover { background: var(--accent-soft); }

/* Fenster mit Ampelknöpfen: Terminal und Tabellen-Demo */
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar b { margin-inline: auto; font: 500 .8125rem var(--mono); opacity: .75; padding-inline-end: 48px; }

/* ============================================================ developer */
.hero-dev h1 { font-size: clamp(2.2rem, 1.2rem + 3.5vw, 3.75rem); }
.hero-dev .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.orbit { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.portrait { position: absolute; inset: 16%; margin: 0; border-radius: 999px; overflow: hidden; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.orb { position: absolute; width: 17%; height: auto; border-radius: 22.5%; box-shadow: 0 2px 5px rgba(0, 0, 0, .18), 0 14px 28px rgba(21, 23, 28, .18); background: #fff; will-change: translate; }
.orb-0 { left: 3%; top: 9%; } .orb-1 { left: 77%; top: 3%; width: 15%; } .orb-2 { left: 86%; top: 38%; }
.orb-3 { left: 75%; top: 76%; width: 19%; } .orb-4 { left: 38%; top: 88%; width: 14%; } .orb-5 { left: 2%; top: 68%; }
.orb-6 { left: -4%; top: 39%; width: 14%; } .orb-7 { left: 42%; top: -5%; width: 16%; }
@media (max-width: 900px) { .hero-dev .hero-grid { grid-template-columns: 1fr; } .orbit { width: min(86%, 380px); margin-top: 12px; } }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 5.2rem; width: 2px; background: var(--border); }
.timeline::after { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 5.2rem; width: 2px; background: var(--accent); transform-origin: top; }
.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 2.6rem; padding-block: 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: calc(5.2rem - 5px); top: 31px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--accent); z-index: 1; }
.tl-year { font: 500 1.05rem/1.9 var(--mono); color: var(--accent-ink); }
.timeline li.tl-same { padding-top: 6px; }
.timeline li.tl-same::before { top: 15px; width: 8px; height: 8px; inset-inline-start: calc(5.2rem - 3px); box-shadow: none; background: var(--accent); }
.timeline li.tl-same > div { grid-column: 2; }
.timeline h3 { font-size: 1.45rem; margin-bottom: .25em; }
.timeline p { color: var(--muted); margin: 0; max-width: 38em; }
@media (max-width: 560px) { .timeline::before, .timeline::after { inset-inline-start: 5px; } .timeline li { grid-template-columns: 1fr; gap: 0; padding-inline-start: 30px; } .timeline li::before { inset-inline-start: 0; top: 29px; } .timeline li.tl-same::before { inset-inline-start: 2px; top: 15px; } .timeline li.tl-same > div { grid-column: 1; } }

.doors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.door a { display: flex; flex-direction: column; height: 100%; padding: 26px; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: transform .45s var(--ease-out); }
.door a:hover { transform: translateY(-6px); }
.door a:active { transform: scale(.985); transition-duration: .08s; }
.door p { color: var(--muted); font-size: .98rem; }
.door-logo { height: 52px; width: auto; max-width: 130px; object-fit: contain; object-position: left; margin-bottom: 20px; border-radius: 12px; }
.door .go { margin-top: auto; font: 500 .82rem var(--mono); color: var(--accent-ink); }
.door .go::after { content: " ↗" / ""; }
[dir="rtl"] .door .go::after { content: " ↖" / ""; }
[dir="rtl"] .door-logo { object-position: right; }

.tool { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(20px, 3vw, 36px); }
.tool + .tool { border-top: 1px solid var(--border); margin-top: clamp(20px, 3vw, 36px); padding-top: clamp(40px, 6vw, 72px); }
.tool h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.tool-text p:not(.eyebrow) { color: var(--muted); }
.tool h3.with-icon { display: flex; align-items: center; gap: 14px; }
.tool-shot { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.tool-reviews .tool-text { order: 2; }
.tool-reviews { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .tool-reviews { grid-template-columns: 1fr; } .tool-reviews .tool-text { order: 0; } }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } }
.terminal { margin: 0; background: #14161b; color: #e8e9ee; border-radius: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 28px 60px rgba(21, 23, 28, .28); font: 500 .86rem/1.4 var(--mono); overflow: hidden; }
.term-body { display: grid; grid-template-columns: 44% 56%; min-height: 236px; border-block: 1px solid #2a2d36; }
.xc-cats { display: flex; flex-direction: column; padding: 10px; gap: 2px; border-inline-end: 1px solid #2a2d36; }
.xc-cat { display: block; cursor: default; padding: 7px 10px; border-radius: 6px; color: #b9bcc7; }
.xc-cat::before { content: "  "; white-space: pre; }
.xc-cat.is-on { background: #7ee08f; color: #0d1a10; }
.xc-cat.is-on::before { content: "▸ "; }
.xc-pane { padding: 10px; position: relative; }
.xc-acts { list-style: none; margin: 0; padding: 0; display: none; }
.xc-acts.is-on { display: block; }
.xc-acts li { padding: 7px 10px; border-radius: 6px; color: #b9bcc7; }
.xc-acts li.is-sel { color: #7ee08f; }
.xc-acts li.is-sel::before { content: "› "; }
.js .xc-acts.is-on li { animation: act-in .35s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes act-in { from { opacity: 0; transform: translateX(-8px); } }
.term-foot { display: flex; gap: 8px; padding: 10px 14px; }
.term-foot kbd { font: inherit; font-size: .8125rem; padding: 2px 8px; border-radius: 5px; background: #23262e; color: #9da1ae; }

/* Drei neue Apps als große Kacheln: Text oben, das iPhone ragt unten aus der Kachel */
.feats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: clamp(36px, 5vw, 64px); }
.feat { display: flex; flex-direction: column; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.feat-text { padding: clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 30px) 0; }
.feat-text > p:not(.row) { color: var(--muted); font-size: .98rem; }
.feat .row { margin-top: .6em; gap: 4px 20px; }
.feat-shot { margin-top: auto; padding: 22px clamp(28px, 4vw, 48px) 0; height: clamp(230px, 24vw, 300px); overflow: hidden; }
.phone { width: 100%; border-radius: 34px 34px 0 0; border: 7px solid #17181c; border-bottom: 0; box-shadow: 0 18px 40px rgba(21, 23, 28, .22); transition: transform .7s var(--ease-out); }
@media (hover: hover) { .feat:hover .phone { transform: translateY(-14px); } }
.app-rows { display: grid; }
.app-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding-block: 28px; border-top: 1px solid var(--border); }
.app-row:last-child { border-bottom: 1px solid var(--border); }
.app-row h3 { font-size: 1.4rem; margin-bottom: .1em; }
.app-row-text p:last-child { margin: .6em 0 0; color: var(--muted); max-width: 44em; }
.app-row-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
@media (max-width: 760px) { .app-row { grid-template-columns: auto 1fr; } .app-row-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; } }
.game-tiles { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); }
.game-tile h3 { margin: 16px 0 .3em; font-size: 1.25rem; }
.game-tile p { color: var(--muted); font-size: .98rem; }
.game-tile .app-icon { transition: transform .5s var(--spring); }
.game-tile:hover .app-icon { transform: rotate(-4deg) scale(1.06); }

.history { display: grid; gap: clamp(48px, 7vw, 88px); }
.history article > div > p, .retro-grid p { max-width: 44em; color: var(--muted); }
.history h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.retro-grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 32px; }
@media (max-width: 860px) { .retro-grid { grid-template-columns: 1fr; } }
/* Farben des C64-Startbildschirms; Schrift etwas heller als im Original, damit 4,5:1 erreicht wird */
.c64 { background: #7869c4; padding: clamp(14px, 3vw, 26px); border-radius: 18px; box-shadow: var(--shadow); }
.c64-screen { background: #40318d; color: #cfc8ff; font: 500 clamp(.78rem, .6rem + .9vw, 1rem)/1.5 var(--mono); text-transform: uppercase; padding: 18px 16px; min-height: 12.5em; border-radius: 4px; letter-spacing: .04em; }
.c64-screen span { display: block; white-space: pre-wrap; }
.c64-screen span[hidden] { display: none; }
.c64-cursor { width: .62em; height: 1.05em; background: #cfc8ff; margin-top: .2em; animation: blink 1.06s steps(1) 12; }
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================ betterlocale */
/* Stehende Produktleiste der Unterseiten: erscheint, sobald der Lade-Knopf im Kopf aus dem Bild ist */
.local-bar { position: fixed; top: 60px; inset-inline: 0; z-index: 40; visibility: hidden; opacity: 0; transform: translateY(-8px);
  background: color-mix(in srgb, var(--bg-alt) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--border); transition: opacity .3s, transform .4s var(--ease-out), visibility .3s; }
.local-bar.show { visibility: visible; opacity: 1; transform: none; }
.local-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.lb-name { display: flex; align-items: center; gap: 10px; font-weight: 650; }
@media (prefers-reduced-transparency: reduce) { .local-bar { background: var(--bg-alt); backdrop-filter: none; } }
@media (pointer: coarse) { .button.sm { min-height: 44px; } }
.hero-bl .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.hero-bl h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.7rem); }
@media (max-width: 900px) { .hero-bl .hero-grid { grid-template-columns: 1fr; } }
.loc-demo { margin: 0; }
.window { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--border), 0 2px 4px rgba(13, 24, 48, .08), 0 30px 70px rgba(13, 24, 48, .18); overflow: hidden; }
.window .term-bar { border-bottom: 1px solid var(--border); background: var(--bg-alt); color: var(--text); }
.loc-scroll { overflow-x: auto; }
.loc-demo table { width: 100%; border-collapse: collapse; font: 500 .8125rem/1.3 var(--mono); }
.loc-demo th, .loc-demo td { padding: 10px 7px; text-align: start; border-bottom: 1px solid var(--border); white-space: nowrap; }
.loc-demo tbody tr:last-child > * { border-bottom: 0; }
.loc-demo thead th { color: var(--muted); font-weight: 500; vertical-align: bottom; }
.loc-demo thead th span { display: block; color: var(--text); font-weight: 700; }
.loc-demo thead em { font-style: normal; font-size: .8125rem; }
.pct { display: block; height: 4px; border-radius: 2px; background: var(--border); margin: 6px 0 4px; overflow: hidden; min-width: 44px; }
.pct b { display: block; height: 100%; width: 100%; background: var(--ok); border-radius: 2px; transform-origin: left; transition: transform .5s var(--ease-out), background-color .3s; }
[dir="rtl"] .pct b { transform-origin: right; }
.loc-demo tbody th { color: var(--accent-ink); font-weight: 500; }
.loc-demo td { font-family: var(--system); font-size: .86rem; font-weight: 400; color: var(--text); min-width: 4.2em; transition: background-color .6s; }
.loc-demo td.is-empty { background: color-mix(in srgb, #f5a524 16%, transparent); color: transparent; }
.loc-demo td.is-empty::before { content: "–"; color: var(--warn-ink); }
.loc-demo td.is-new { background: color-mix(in srgb, #23a55a 16%, transparent); }
.loc-demo tr[hidden] { display: none; }
.js .loc-demo tr.row-in { animation: row-in .5s var(--ease-out); }
@keyframes row-in { from { opacity: 0; transform: translateY(-8px); } }
/* schmal: Japanisch und Spanisch weichen, Arabisch bleibt als Beleg für Rechts-nach-links */
@media (max-width: 1500px) { .loc-demo [data-col="3"] { display: none; } }
@media (max-width: 560px) { .loc-demo [data-col="2"] { display: none; } }

.showcases { display: grid; gap: clamp(56px, 9vw, 120px); }
.showcase { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.showcase.flip { grid-template-columns: 1.18fr .82fr; }
.showcase.flip .showcase-text { order: 2; }
.showcase h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); letter-spacing: -.02em; }
.showcase-text > p:not(.row) { color: var(--muted); margin-bottom: 1.4em; }
.showcase-shot { display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease-out); }
.showcase-shot:hover { transform: translateY(-6px); }
@media (max-width: 900px) { .showcase, .showcase.flip { grid-template-columns: 1fr; } .showcase.flip .showcase-text { order: 0; } }

.hero-product { --overlap: clamp(70px, 13vw, 230px); padding-bottom: 0;
  background: linear-gradient(var(--bg-alt) 0, var(--bg-alt) calc(100% - var(--overlap)), var(--bg) calc(100% - var(--overlap))); }
.hero-product .app-icon.xl { margin-bottom: 14px; }
.hero-product .eyebrow { margin-bottom: 1.3em; }
.hero-product .lead { margin-top: 1.1em; }
.hero-product + .section { padding-top: clamp(56px, 7vw, 96px); }
.hero-product h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); }
.hero-product .lead { margin-bottom: 1.4em; }
.stage { margin: clamp(40px, 6vw, 76px) 0 0; perspective: 1600px; }
.stage-shot { width: 100%; border-radius: clamp(10px, 1.6vw, 20px); box-shadow: 0 0 0 1px var(--border), 0 40px 90px rgba(13, 24, 48, .26); transform-origin: 50% 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 0; background: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.facts li { flex: 1 1 200px; background: var(--surface); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font: 700 1.5rem/1.2 var(--mono); letter-spacing: -.02em; color: var(--accent-ink); }
.facts span { color: var(--muted); font-size: .94rem; line-height: 1.4; }

/* ============================================================ atomiumgames */
.site-atomiumgames h1 { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.4rem); line-height: .98; text-shadow: 0 4px 0 rgba(19, 13, 43, .45); }
.site-atomiumgames h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
.site-atomiumgames .eyebrow { color: var(--gold); letter-spacing: .02em; }
/* Navigation liegt auf hellem Himmel: dunkler Verlauf darunter, sonst nur 2,7:1 */
.site-atomiumgames .site-header:not(.scrolled) { background: linear-gradient(rgba(19, 13, 43, .82), rgba(19, 13, 43, 0)); }
.site-atomiumgames .button { box-shadow: 0 4px 0 #3f9c63; }
.site-atomiumgames .button:active { transform: translateY(3px); box-shadow: 0 1px 0 #3f9c63; }
.hero-ag { position: relative; isolation: isolate; min-height: min(92vh, 820px); margin-top: -60px; display: grid; align-items: end; overflow: hidden; padding-block: 140px clamp(40px, 6vw, 72px); }
.hero-ag .hero-bg { position: absolute; inset: -6% 0 0; width: 100%; height: 112%; object-fit: cover; z-index: -2; }
.hero-ag::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 13, 43, .45) 0%, rgba(19, 13, 43, .62) 42%, #130d2b 100%); }
.hero-ag h1 { max-width: 11em; }
.hero-ag .lead { color: #ece6ff; max-width: 34em; } /* 13:1 auf dem dunklen Verlauf */
.ag-logo { width: 148px; height: auto; margin-bottom: 22px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.hero-icons { display: flex; gap: 14px; margin: 34px 0 0; flex-wrap: wrap; }
.hero-icons a { display: block; border-radius: 22.5%; transition: transform .5s var(--spring); }
.hero-icons a:hover { transform: translateY(-8px) rotate(-3deg); }
.hero-icons .app-icon { box-shadow: 0 6px 0 rgba(0, 0, 0, .28), 0 16px 30px rgba(0, 0, 0, .35); }
@media (max-width: 480px) { .hero-icons { gap: 10px; } .hero-icons .app-icon { width: 68px; height: 68px; } }
.promise-sec { padding-block: clamp(40px, 6vw, 72px); }
.principles.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.site-atomiumgames .principles h3 { font-size: 1.5rem; }

.stages { display: grid; gap: clamp(56px, 9vw, 120px); }
.stage-game { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; scroll-margin-top: 90px; }
.stage-game.flip { grid-template-columns: .85fr 1.15fr; }
.stage-game.flip .stage-art { order: 2; }
.stage-art { position: relative; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); perspective: 900px; }
.stage-bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.stage-logo { position: relative; width: min(70%, 380px); }
.stage-logo img { width: 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); will-change: transform; }
.stage-body h3 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); line-height: 1; margin-bottom: .45em; }
.stage-body > p:not(.eyebrow):not(.chart) { color: var(--muted); }
.chart { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; color: #2a1d00; background: var(--gold); padding: 8px 14px; border-radius: 999px; font-size: .92rem; margin-bottom: 1.4em; }
.chart::before { content: "★" / ""; }
@media (max-width: 900px) { .stage-game, .stage-game.flip { grid-template-columns: 1fr; } .stage-game.flip .stage-art { order: 0; } }
.samurai { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: linear-gradient(135deg, #2c1f66, #1f1650); border-radius: 32px; padding: clamp(26px, 4.5vw, 56px); margin-top: clamp(56px, 9vw, 120px); box-shadow: var(--shadow); }
.samurai h3 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); line-height: 1; margin: .5em 0 .2em; }
.samurai .tag { color: var(--gold); font-weight: 600; margin-bottom: 1em; }
.samurai p:not(.status):not(.tag) { color: #e9e3ff; }
.samurai-art { border-radius: 16px; }
.status { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .84rem; margin: 0; }
@media (max-width: 900px) { .samurai { grid-template-columns: 1fr; } }

/* ============================================================ Bewegung */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Auftritt des Seitenkopfs: läuft ohne JavaScript, gestaffelt */
  [data-enter] { animation: enter .95s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 85ms + 60ms); }
  @keyframes enter { from { opacity: 0; transform: translateY(22px); } }

  /* Einblenden beim Scrollen: site.js setzt .in, sobald das Element sichtbar wird */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); }
  .js [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s ease, transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }

  /* App-Icons um das Porträt: federnd, weil sie "hingeworfen" wirken sollen */
  .orb { animation: pop .9s var(--spring) both; animation-delay: calc(var(--i, 0) * 70ms + 350ms); }
  @keyframes pop { from { opacity: 0; scale: .3; } }
  .portrait { animation: portrait-in 1.1s var(--ease-out) both; animation-delay: .15s; }
  @keyframes portrait-in { from { opacity: 0; transform: scale(.9); } }

  /* Spiel-Logos springen herein, sobald ihre Bühne sichtbar wird */
  .js [data-pop] { opacity: 0; transform: scale(.4) rotate(-8deg); }
  .js [data-pop].in { opacity: 1; transform: none; transition: opacity .25s ease, transform .9s var(--spring); }
  .ag-logo[data-enter] { animation: logo-drop 1s var(--spring) both; animation-delay: .1s; }
  @keyframes logo-drop { from { opacity: 0; transform: translateY(-40px) scale(.7); } }

  /* An den Scroll gekoppelte Effekte, nur wo der Browser sie nativ kann */
  @supports (animation-timeline: view()) {
    .timeline::after { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 70%; }
    @keyframes draw { from { transform: scaleY(0); } }
    .zoom-in { animation: zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes zoom { from { transform: scale(1.14); } }
    .stage-bg { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
    .hero-ag .hero-bg { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
    @keyframes hero-drift { to { transform: translateY(9%) scale(1.06); } }
    .stage-shot { animation: flatten linear both; animation-timeline: scroll(root); animation-range: 0 520px; }
    @keyframes flatten { from { transform: rotateX(14deg) scale(.94); } }
  }
  @supports not (animation-timeline: view()) { .timeline::after { display: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01s !important; }
  .timeline::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .lightbox::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 8, 14, .95); }
}
@media (prefers-contrast: more) {
  .site-developer, .site-betterlocale, .site-atomiumgames { --muted: var(--text); --border: color-mix(in srgb, var(--text) 60%, transparent); }
  .site-header.scrolled, .site-atomiumgames .site-header:not(.scrolled) { background: var(--bg); }
  .hero-ag::after { background: linear-gradient(180deg, rgba(19, 13, 43, .78), #130d2b); }
  .term-bar b, .strip-nav button[aria-disabled="true"] { opacity: 1; }
}
/* Windows-Kontrastdesigns: Symbole aus Hintergrundfarbe würden sonst verschwinden */
@media (forced-colors: active) {
  .menu summary span, .faq summary::before, .faq summary::after { background: CanvasText; }
  .button, .button.ghost, .strip-nav button, .language-select, .chips li { border: 1px solid ButtonText; }
  .timeline li::before { border: 3px solid CanvasText; }
}
/* Seitenwechsel innerhalb einer Site: weiche Überblendung, das App-Icon wandert mit */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@media print { .site-header, .strip-nav, .skip { display: none; } [data-reveal], [data-enter], [data-pop] { opacity: 1 !important; transform: none !important; } }

/* Schriften ohne lateinische Buchstaben brauchen mehr Zeilenhöhe und keine enge Laufweite */
:is(:lang(ja), :lang(zh-Hans), :lang(zh-Hant), :lang(ko), :lang(th), :lang(hi), :lang(ar), :lang(he), :lang(ur), :lang(bn), :lang(ta), :lang(te), :lang(ml), :lang(kn), :lang(gu), :lang(mr), :lang(pa), :lang(or), :lang(fa)) :is(h1, h2, h3, .eyebrow) { letter-spacing: 0 !important; line-height: 1.3 !important; }
:is(:lang(de), :lang(nl), :lang(fi), :lang(hu), :lang(el), :lang(sv), :lang(nb), :lang(da)) :is(h1, h2) { hyphens: auto; hyphenate-limit-chars: 12 5 5; }
/* Silbentrennung in Überschriften nur dort, wo lange Wörter sonst nicht passen */
@media (min-width: 700px) { h1, h2 { hyphens: manual !important; } }
/* Unterseiten: Kopfzeile übernimmt den grauen Grund des Seitenkopfs, solange nicht gescrollt wurde */
.site-betterlocale.product .site-header:not(.scrolled) { background: var(--bg-alt); }
/* Japanisch bricht nur an Sinngrenzen um, Koreanisch nur zwischen Wörtern (sonst zerreißen Überschriften) */
:lang(ja) :is(h1, h2, h3, .lead) { word-break: auto-phrase; line-break: strict; }
:lang(ko) :is(h1, h2, h3, .lead, p, li) { word-break: keep-all; }
:lang(ja) h1 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.2rem) !important; }
