/* Fanitullen – Start-, Support- und Datenschutzseiten. Keine externen Schriften, keine Skripte.
   Aufbau wie bei SlappAv. Hell ist das Morgenlicht aus dem Finale des Werks, dunkel die Nacht davor;
   die Farben stammen aus stage.js (MORNING, THEMES.gold). */

:root {
  color-scheme: light dark;
  --bg: #fbf4ea;
  --surface: #ffffff;
  --ink: #1d1424;
  --ink2: rgba(64, 46, 72, 0.74);
  --sep: rgba(64, 46, 72, 0.16);
  --accent: #7a3459;
  --sky-top: #eccdb0;
  --sky-bottom: #fce8cc;
  --hero-ink: #2a1830;
  --radius: 26px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080f;
    --surface: #13162b;
    --ink: #ffffff;
    --ink2: rgba(236, 232, 248, 0.68);
    --sep: rgba(150, 140, 190, 0.28);
    --accent: #f0c882;
    --sky-top: #050710;
    --sky-bottom: #161a36;
    --hero-ink: #ffffff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Himmel als Verlauf, unten der Notenbogen der ganzen Nacht (SVG je Farbschema, ohne eigenen Grund). */
.hero {
  position: relative;
  padding: 56px 16px 0;
  text-align: center;
  color: var(--hero-ink);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}

.lang {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 14px;
}

.lang a, .lang span { color: inherit; opacity: 0.8; margin-left: 10px; }
.lang span { font-weight: 600; opacity: 1; }

/* Rücklink zur Übersichtsseite adler-apps.info, Gegenstück zur Sprachnavigation. */
.home {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 14px;
  color: inherit;
  opacity: 0.8;
}

.hero h1 {
  margin: 18px 0 4px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero p {
  margin: 0 auto;
  max-width: 30em;
  font-size: 19px;
  opacity: 0.92;
}

/* Apples offizielles Badge, unverändert; mindestens 40 px hoch, ein Viertel der Höhe Freiraum. */
.hero .store { margin: 24px auto 0; opacity: 1; }
.store a { display: inline-block; border-radius: 9px; }
.store img { display: block; width: auto; height: 52px; }

/* Bricht nur am Mittelpunkt um, nie mitten in einer Angabe; am Desktop passt sie in eine Zeile. */
.hero .store-note {
  margin-top: 12px;
  max-width: 40em;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.85;
}

.store-note span { white-space: nowrap; }

/* Auf dem Handy stehen beide Angaben untereinander, ohne den Punkt am Zeilenende. */
@media (max-width: 560px) {
  .store-note span { display: block; }
  .store-note .sep { display: none; }
}

/* Die Bahn der ganzen Nacht als Notenzeile, über die volle Breite bis an die Unterkante des Himmels. */
.scene { display: block; margin: 28px -16px 0; }

.scene img {
  display: block;
  width: 100%;
  max-width: 1600px;
  height: auto;
  margin: 0 auto;
}

/* Fünf Augenblicke einer Nacht, hochkant nebeneinander wie auf dem iPhone. Bewusst nur eine Fassung für hell und
   dunkel: Das Werk spielt immer nachts, eine helle Variante des Bildes gibt es nicht. */
.preview { margin: 0 0 16px; }

.preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  outline: 1px solid var(--sep);
  outline-offset: -1px;
}

.preview figcaption {
  margin-top: 6px;
  color: var(--ink2);
  font-size: 14px;
  text-align: center;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 20px 8px;
  margin-bottom: 16px;
}

/* Unterseiten tragen ihre erste Überschrift als h1, sie sieht aus wie ein h2 im Kasten. */
h2, main h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

/* h3 auf den Startseiten, h2 als Zwischenüberschrift der Unterseiten (nach deren h1) sehen gleich aus. */
h3, main h1 ~ h2 {
  margin: 16px 0 4px;
  font-size: 17px;
}

section p, section ul { margin: 0 0 12px; }

.tools {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tools li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--sep);
  font-size: 15px;
}

.meta { color: var(--ink2); font-size: 15px; }

main > nav.meta { display: block; margin: 4px 4px 14px; }

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: var(--ink2);
  font-size: 14px;
  text-align: center;
}

footer a { color: inherit; }

/* App-Icon über dem Titel, aus AppIcon.icon gerendert (Squircle samt transparenter Ecken, hell/dunkel). */
.app-icon img {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
}

/* Neuigkeiten: Apples Clips (Asset Generator, je Sprache und Plattform, hell und dunkel; die Fassung wählt `media` an
   `source`) neben dem Hinweis, iPhone links, Mac rechts; jeder führt in den App Store. Auf schmalen Bildschirmen stehen die
   Clips nebeneinander über dem Text, bei reduzierter Bewegung nur die Standbilder. Der Hintergrund ist die Randfarbe der
   Clips, bis sie geladen sind. */
.news { display: flex; gap: 20px; align-items: flex-start; }
.news > div { flex: 1; min-width: 0; }
.news > .updates { flex: 0 0 auto; display: flex; gap: 12px; }
/* Feste Breite statt nur einer Flex-Basis: WebKit rechnet die Breite der Gruppe sonst aus der natürlichen Breite der
   Videos (720 px) und schiebt die Seite seitlich auf. */
.update {
  flex: none;
  width: 150px;
  display: block;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #8c7354;
}
@media (prefers-color-scheme: dark) {
  .update { background: #090c13; }
}
.update video, .update img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.update picture { display: none; }

@media (prefers-reduced-motion: reduce) {
  .update video { display: none; }
  .update picture { display: block; }
}

@media (max-width: 560px) {
  .news { flex-direction: column; align-items: stretch; gap: 4px; }
  .news > .updates { justify-content: center; }
  .update { width: min(160px, calc(50% - 6px)); }
}
