/*
 * Design system of the Makronaut site. The tokens match src/ui/theme.ts, so the
 * site and the app read as one product.
 *
 * The draft this came from set every rule inline per page. Here it is one
 * stylesheet, because four pages that drift apart is exactly how a privacy
 * page ends up looking like a different company than the landing page.
 *
 * Two deliberate departures from the draft:
 *  - Body text is 15px, not 13.5px. The legal pages are long and have to be
 *    read, not glanced at.
 *  - Long-form copy uses --ink rather than --sec. Grey-on-grey is fine for a
 *    marketing sentence and wrong for sixteen sections of data protection.
 */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  /* Self-hosted on purpose: the privacy page states that this site embeds no
     external fonts or scripts. Loading it from Google would make that false
     and hand every visitor's IP address to a third party. */
  src: url('/fonts/archivo-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;
}

/*
 * White ground, and only white. The draft shipped #f2f3f3 plus a dark-mode
 * block, which meant the page turned black on any machine set to dark - the
 * site is meant to read as one bright thing regardless of system setting.
 *
 * To bring the dark variant back, restore the @media (prefers-color-scheme:
 * dark) block with the draft's tokens (--bg #15181a, --hint #1e2225,
 * --ink #eef1f2, --sec #9aa2a8, --acc #42b378) and drop color-scheme below.
 * Nothing else in this file assumes a light ground.
 */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --hint: #f2f3f3;
  --ink: #2b2f33;
  /* Fliesstext auf der Startseite. Zwischen --ink und --sec, weil --sec bei
     15px Werbetext auf Weiss zwar die Kontrastschwelle schafft, aber leise
     klingt - und ein Verkaufstext, den man ueberliest, ist keiner. Labels und
     Fusszeilen bleiben --sec. */
  --body: #4a4f54;
  --sec: #6b7075;
  --ter: #9aa0a5;
  --acc: #2f8f5b;
  --accd: #26744a;
  --rule: color-mix(in srgb, #2b2f33 40%, transparent);
  --line: color-mix(in srgb, #2b2f33 18%, transparent);
  --warn-bg: #fdf3d6;
  --warn-edge: #b8901f;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--acc) 25%, transparent); }

/* Keyboard users need a way past the header on every page. */
.skip {
  position: absolute;
  left: -9999px;
  padding: 10px 14px;
  background: var(--acc);
  color: #fff;
  font-weight: 800;
}
.skip:focus { left: 12px; top: 12px; color: #fff; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 20px; }

/* --- Header and footer ------------------------------------------------- */

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 2px solid var(--rule);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { color: var(--acc); display: block; flex: none; }
.wordmark {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0 40px;
}
.site-foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot a, .meta { font-size: 12px; font-weight: 600; color: var(--sec); }

/* --- Type scale --------------------------------------------------------- */

.label, .kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sec);
}
.kicker { margin: 0 0 16px; color: var(--acc); }

.title {
  margin: 0;
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: pretty;
}
.hero .title { max-width: 20ch; }

.lead {
  margin: 18px 0 0;
  color: var(--body);
  max-width: 58ch;
  text-wrap: pretty;
}

h2.section {
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--acc);
}
h2.section.muted { color: var(--sec); }

h3.head {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: pretty;
}

/* --- Sections ----------------------------------------------------------- */

.hero { padding: 52px 0 48px; border-bottom: 2px solid var(--rule); }
.page-head { padding: 52px 0 40px; border-bottom: 2px solid var(--rule); }

/* Text links, Geraet rechts. Erst ab 860px: darunter steht die Aufnahme unter
   dem Text, wo sie auf einem Telefon fast die volle Breite bekommt und damit
   lesbar ist - zwei Spalten waeren dort zwei unlesbare Haelften. */
@media (min-width: 860px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 56px;
    align-items: center;
  }
}

.hero-shot { margin: 32px 0 0; }
.hero-shot img {
  display: block;
  width: 100%;
  max-width: 290px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--hint);
}
@media (min-width: 860px) {
  .hero-shot { margin: 0; }
}

/*
 * Die Warteliste. Bis zum 14.08.2026 stand hier nur "Bald im App Store" - eine
 * Seite ohne Handlung laesst jeden Besucher vor dem Start ungenutzt
 * verstreichen.
 *
 * Feld und Knopf liegen in einer Zeile, aber erst ab 520px. Darunter stehen sie
 * uebereinander: nebeneinander bliebe fuer die Adresse eine Spalte, in der man
 * das Ende der eigenen Eingabe nicht mehr sieht.
 */
.signup { margin: 30px 0 0; max-width: 30rem; }

.signup-label {
  display: block;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sec);
}

.signup-row { display: grid; gap: 10px; }
@media (min-width: 520px) {
  .signup-row { grid-template-columns: 1fr auto; }
}

.signup input[type="email"] {
  width: 100%;
  padding: 14px 15px;
  font: inherit;
  color: var(--ink);
  background: var(--hint);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.signup input[type="email"]:focus {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
  border-color: transparent;
}

/* Der globale Knopf bringt margin-top: 26px mit, was ihn hier aus der Zeile
   schieben wuerde. */
.signup button { margin-top: 0; white-space: nowrap; }

.signup-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--sec);
  max-width: 46ch;
}
.signup-note a { color: var(--acc); font-weight: 700; }

/* Leer nimmt sie keinen Platz, sonst springt der Text darunter beim Absenden. */
.signup-status:empty { display: none; }
.signup-status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--acc);
}

section.block { padding: 44px 0; border-bottom: 2px solid var(--rule); }
.sect h2.section { margin-bottom: 16px; }
.sect p { margin: 14px 0 0; color: var(--body); max-width: 58ch; text-wrap: pretty; }

@media (min-width: 760px) {
  .sect { display: grid; grid-template-columns: 200px 1fr; gap: 44px; }
  .sect h2.section { margin-bottom: 0; }
}

/* Announcement that the app is not out yet. A button would imply it does
   something; this is a statement, so it is not one. Es steht jetzt neben dem
   echten Knopf statt allein - daneben liest es sich als Status, allein las es
   sich als abgeblendeter Knopf, auf den Leute getippt haben. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--sec);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* minmax(0, …) again: a long value like "Alle 2 Wochen" next to a long label
   pushes a plain 1fr column past the viewport, and the third figure gets cut
   off at the right edge on a phone. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 2px solid var(--rule);
}
.stats > div { padding: 22px 16px; }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { padding-right: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.num {
  font-size: clamp(16px, 3.6vw, 24px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.stats .label { margin-top: 6px; display: block; }

/* Below this the three columns are narrower than the words in them. Stacking
   keeps every figure on one line instead of breaking each into two. */
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 16px 0; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* --- Screenshots -------------------------------------------------------- */

/*
 * Zwei Aufnahmen, nicht vier. Vier Kacheln nebeneinander ergaben auf einem
 * 1280er Fenster rund 130px je Bild - eine Groesse, in der man gruene Flecken
 * sieht und keine App. Die dritte Aufnahme steht jetzt im Kopfbereich, die
 * Textkachel ist entfallen: sie hat einen von vier Plaetzen belegt, ohne die
 * App zu zeigen.
 *
 * minmax(0, 1fr), nicht 1fr: ein blankes 1fr nimmt als Untergrenze die
 * Mindestbreite des Inhalts, womit eine lange Bildunterschrift ihre eigene
 * Spalte verbreitert und die andere quetscht.
 */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--hint);
}
.shots figcaption {
  padding-top: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sec);
}

@media (min-width: 760px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

/* --- Lists and rows ----------------------------------------------------- */

ul.rows { margin: 0; padding: 0; list-style: none; }
ul.rows li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}
ul.rows li:last-child { border-bottom: 0; }

.srcrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.srcrow:last-child { border-bottom: 0; }
.srcname { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }

/* Preise als Zeilen, nicht als Tarifkarten. Zwei Kaesten nebeneinander wuerden
   nach einer Kaufentscheidung aussehen, die es hier nicht zu treffen gibt -
   was kostenlos ist und was nicht, ist eine Auskunft, kein Angebot. */
.prices { margin-top: 26px; border-top: 1px solid var(--line); }
.prices .srcrow:last-child { border-bottom: 0; }
.prices .meta { color: var(--sec); font-size: 13px; font-weight: 700; }

/* --- Long-form copy: privacy, support, imprint -------------------------- */

.prose { max-width: 68ch; }
.prose h2 {
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-wrap: pretty;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  margin: 26px 0 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.prose p { margin: 0 0 14px; text-wrap: pretty; }
.prose ul { margin: 0 0 14px; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--acc); font-weight: 700; }
.prose strong { font-weight: 800; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

/* Unfilled legal details have to be impossible to miss. They are also the one
   thing that must never reach production. */
.placeholder {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-edge);
  padding: 14px 16px;
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}

/* --- Password form (only used by passwort-neu.html) --------------------- */

label {
  display: block;
  margin: 22px 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sec);
}

input[type="password"] {
  width: 100%;
  max-width: 26rem;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--hint);
  border: 1px solid var(--line);
  border-radius: 10px;
}
input[type="password"]:focus {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
  border-color: transparent;
}

button {
  margin-top: 26px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  background: var(--acc);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--accd); }
button:disabled { opacity: .5; cursor: default; }

/* The one live region on the site: it carries both errors and progress. */
#status:not(:empty) {
  margin-top: 22px;
  padding: 14px 16px;
  max-width: 26rem;
  background: var(--hint);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
