/* Dropnik website (Block W). Layout after docs/website/vorlagen/C1plus.dc.html,
   mobile first. PICO-8 colours, two fonts from our own server, no JS. */

@font-face {
  font-family: "Dropnik Pixel";
  src: url("/assets/fonts/DropnikPixel-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("/assets/fonts/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #0b0b1a;
  --navy: #1d2b53;
  --grey: #c2c3c7;
  --white: #fff1e8;
  --yellow: #ffec27;
  --orange: #ffa300;
  --rust: #ab5236;
  --red: #ff004d;
  --green: #00e436;
  --blue: #29adff;
  --lilac: #83769c;
  --stone: #5f574f;
  --brown: #3b3530;
  --black: #000000;
  --pixel: "Dropnik Pixel", monospace;
  --body: "VT323", monospace;
  color-scheme: dark;
}

/* Sprach-Update 7 (Andi E10, 22.11.2026): VT323 hat weder Kyrillisch noch
   Japanisch. Fließtext ru/uk/ja in der Systemschrift des Browsers (keine neue
   Datei, CSP bleibt); Überschriften ru/uk in Dropnik Pixel (Kyrillisch in
   voller Höhe), japanische Überschriften ebenfalls Systemschrift. */
html:lang(ru), html:lang(uk), html:lang(ja) {
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
html:lang(ja) {
  --pixel: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
/* Sprach-Update Teil 3 (E10, 23.11.2026): Traditionelles Chinesisch in der
   Systemschrift mit traditionellen Formen (lang="zh-Hant"), Überschriften auch. */
html:lang(zh-Hant) {
  --body: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --pixel: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
}
html:lang(ru) body, html:lang(uk) body, html:lang(ja) body, html:lang(zh-Hant) body { font-size: 17px; line-height: 1.6; }

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--grey);
  font-family: var(--body);
  font-size: 22px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

a { color: var(--yellow); }
a:hover, a:focus-visible { color: var(--orange); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

img, svg, video { max-width: 100%; }
.pixel, .pixel img { image-rendering: pixelated; image-rendering: crisp-edges; }

h1, h2, h3 { margin: 0; font-weight: normal; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap-narrow { max-width: 900px; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--night); padding: 8px 12px;
  font-family: var(--pixel); font-size: 11px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Buttons: the yellow pixel text button of the template. */
.btn {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.5;
  color: var(--night);
  background: var(--yellow);
  padding: 16px 16px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--rust);
}
a.btn:hover, a.btn:focus-visible { color: var(--night); background: var(--orange); }
.btn-small { font-size: 10px; padding: 12px 12px; box-shadow: 3px 3px 0 var(--rust); }
.btn-soon { cursor: default; }

/* Header: whole rows only, never half wrapped (Andi 21.11.2026, test
   tests/test_website_header.gd in all languages and widths).
   Phone: logo + store button / language switch / menu.
   From 720px: logo + language switch + store button / menu.
   From 1100px: everything in one row. */
.site-header { border-bottom: 4px solid var(--navy); }
.header-row {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  justify-content: space-between; align-items: center;
}
.logo { display: block; line-height: 0; }
.logo img { height: 32px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 21px; order: 3; width: 100%; }
.main-nav a { color: var(--grey); text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--yellow); }
.header-end { display: contents; }
.header-end > .btn { order: 1; }
.lang-switch { display: flex; gap: 6px; justify-content: space-between; font-family: var(--pixel); font-size: 10px; order: 2; width: 100%; }   /* 12 Sprachen (Sprach-Update 7): Abstand 6 px auf dem Handy */
.lang-switch a { color: var(--grey); text-decoration: none; }
.lang-switch [aria-current] { color: var(--yellow); }

/* Hero */
.hero {
  padding-top: 40px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; gap: 36px; align-items: center;
}
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.kicker { font-family: var(--pixel); font-size: 11px; letter-spacing: 1px; line-height: 1.6; }
.kicker-orange { color: var(--orange); }
.kicker-green { color: var(--green); }
h1 {
  font-family: var(--pixel);
  font-size: clamp(20px, 3.4vw, 42px);
  line-height: 1.4;
  color: var(--white);
  text-shadow: 4px 4px 0 var(--navy);
}
.lead { max-width: 540px; font-size: 24px; }
.get { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.get-note { font-size: 21px; color: var(--lilac); }
/* App Store badge (since 29.11.2026): Apple's black artwork, unchanged (no
   shadow, gray border kept), first in the row. Same height as the Play button
   (.btn: 1.5 x font size + vertical padding = 50 px, from 720 px 55.5 px);
   the 16 px gap of .get keeps Apple's clear space of 1/4 the badge height. */
.store-badge { display: block; line-height: 0; }
.store-badge img { display: block; height: 50px; width: auto; }

.hero-figure {
  flex: 1 1 460px; min-width: 0; margin: 0; padding: 10px;
  background: var(--navy); box-shadow: 8px 8px 0 var(--black);
}
.hero-frame { border: 4px solid var(--night); line-height: 0; background: var(--night); }
.hero-frame video, .hero-frame img, .hero-frame svg {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  image-rendering: pixelated; image-rendering: crisp-edges;
  background: var(--night);
}
.hero-frame img.hero-poster { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-frame video { display: none; }
  .hero-frame img.hero-poster { display: block; }
}

/* One thumb (under the hero) */
.section-onehand { padding-top: 8px; padding-bottom: 16px; }
.onehand {
  background: var(--navy); padding: 20px; box-shadow: 8px 8px 0 var(--black);
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center;
}
.onehand-art { flex: 0 0 auto; width: 100px; height: 120px; }
.onehand-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* Sections */
.section { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
h2 {
  font-family: var(--pixel);
  font-size: clamp(17px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--white);
}

.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 280px; min-width: 0; background: var(--navy); padding: 22px;
  box-shadow: 6px 6px 0 var(--black);
  display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-family: var(--pixel); font-size: 13px; line-height: 1.5; color: var(--white); }

/* Manny on the radio */
.section-radio { padding-top: 16px; padding-bottom: 56px; }
.radio { background: var(--navy); padding: 12px; box-shadow: 8px 8px 0 var(--black); }
.radio-inner {
  border: 4px solid var(--stone); background: var(--night); padding: 18px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.radio-face { flex: 0 0 auto; width: 120px; height: 120px; border: 3px solid var(--lilac); line-height: 0; }
.radio-face img { width: 114px; height: 114px; image-rendering: pixelated; image-rendering: crisp-edges; }
.radio-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.radio-channel {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--pixel); font-size: 10px; color: var(--green);
}
.bars { display: flex; gap: 3px; align-items: flex-end; }
.bar { display: block; width: 4px; background: var(--green); }
.bar1 { height: 6px; } .bar2 { height: 10px; } .bar3 { height: 14px; }
.bar4 { height: 18px; background: var(--stone); }
.radio-quote { font-family: var(--pixel); font-size: clamp(11px, 1.3vw, 14px); line-height: 1.8; color: var(--white); }

/* Worlds */
.section-worlds { background: var(--navy); }
.worlds-head { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; }
.worlds { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.world {
  flex: 1 1 200px; min-width: 0; background: var(--night); padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  border: 2px solid var(--night);
}
.world img { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.world-name { font-family: var(--pixel); font-size: 10px; line-height: 1.6; color: var(--white); }
.swatch { display: flex; flex-direction: column; height: 70px; }
.swatch-sky { flex: 3; }
.swatch-ground { flex: 1; }
/* Colour blocks of the template, only shown while a world picture is missing. */
.sw01-sky { background: #0b0b1a; border: 2px solid var(--navy); } .sw01-ground { background: #5f574f; }
.sw02-sky { background: #29adff; } .sw02-ground { background: #fff1e8; }
.sw03-sky { background: #ffa300; } .sw03-ground { background: #ab5236; }
.sw04-sky { background: #1d2b53; } .sw04-ground { background: #00e436; }
.sw05-sky { background: #83769c; } .sw05-ground { background: #c2c3c7; }
.sw06-sky { background: #3b3530; } .sw06-ground { background: #ab5236; }
.sw07-sky { background: #1d2b53; } .sw07-ground { background: #ff004d; }
.sw08-sky { background: #ab5236; } .sw08-ground { background: #ff004d; }
.sw09-sky { background: #1d2b53; } .sw09-ground { background: #29adff; }
.sw10-sky { background: #c2c3c7; } .sw10-ground { background: #ff004d; }

/* Phone frames (squat program, screenshots) */
.phone {
  flex: 0 1 240px; min-width: 0; border: 10px solid var(--navy); border-radius: 26px;
  overflow: hidden; line-height: 0; background: var(--night);
}
.phone img { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.phone-empty {
  aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; line-height: 1.3; font-size: 20px; color: var(--lilac);
}

.squats { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 36px; }
.phone-squats { flex: 0 1 260px; }
.squats-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.shots { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }

/* FAQ */
.faq { gap: 20px; padding-bottom: 72px; }
.faq h2 { font-size: clamp(16px, 2vw, 22px); }
.faq-item { border-top: 3px solid var(--navy); padding-top: 16px; }
.faq-item h3 { margin-bottom: 4px; font-size: 26px; color: var(--white); }

/* Footer */
.site-footer { border-top: 4px solid var(--navy); }
.footer-row {
  padding-top: 28px; padding-bottom: 44px;
  display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between;
  font-size: 20px; color: var(--lilac);
}
.footer-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Legal pages */
.legal { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(18px, 3vw, 28px); margin-bottom: 8px; }
.legal h2 { font-size: clamp(13px, 1.6vw, 16px); margin-top: 20px; color: var(--yellow); }
.legal h3 { font-size: 24px; color: var(--white); margin-top: 8px; }
.legal ul { margin: 0; padding-left: 24px; }
.legal li { margin: 4px 0; }
.legal strong { color: var(--white); font-weight: normal; }
.draft {
  font-family: var(--pixel); font-size: 10px; line-height: 1.7;
  color: var(--night); background: var(--orange); padding: 10px 12px;
}
.todo { background: var(--red); color: var(--white); padding: 0 4px; }

/* Wider screens */
@media (min-width: 720px) {
  body { font-size: 24px; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .header-row { gap: 12px 24px; }
  .logo img { height: 36px; }
  .header-end { display: flex; gap: 10px 16px; align-items: center; order: 1; }
  .header-end > .btn { order: 0; }
  /* 12 Sprachen (Sprach-Update 7): 8 px (Entwurfsgröße der Pixelschrift) und
     6 px Abstand, so breit wie früher 9 Sprachen in 10 px; die Stufen bleiben. */
  .lang-switch { order: 0; width: auto; gap: 6px; justify-content: flex-start; font-size: 8px; }
  .main-nav { gap: 8px 24px; font-size: 22px; }
  .hero { padding-top: 64px; padding-bottom: 72px; gap: 48px; }
  .lead { font-size: 26px; }
  .btn { font-size: 13px; padding: 18px 20px; }
  .btn-small { font-size: 11px; padding: 13px 14px; }
  .store-badge img { height: 55.5px; }
  .section { padding-top: 88px; padding-bottom: 56px; gap: 36px; }
  .card { padding: 26px; }
  .radio-inner { padding: 20px; gap: 20px; }
}
@media (min-width: 1100px) {
  .main-nav { order: 0; width: auto; }
}
