/* mYnerva signature: navy surface, star gold, cream text — the app's default theme.
   Fonts are served from this site, not from Google: loading Google Fonts from
   Google's servers transfers the visitor's IP address to Google without a legal
   basis (LG München I, 20.01.2022) — the same reasoning applies across the EU.
   One shared file instead of inline styles, so the CSP needs no 'unsafe-inline'. */
@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #1e3a5f;      /* screen in the app — cream 9.92 : 1, gold 5.02 : 1 */
  --night: #132a47;     /* the constellation map's sky — cream 12.49 : 1, gold 6.32 : 1 */
  --gold: #c2a878;
  --cream: #f0eee9;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-inline: max(16px, env(safe-area-inset-left));
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.55;
  /* The star map's sky (sky.svg): nebulas, stars that glow, two small
     constellations of fading arcs — only towards the edges, the text stays calm. */
  background: var(--night) url('sky.svg') center / cover no-repeat;
  background-attachment: fixed;
}

a {
  color: var(--gold);
  text-underline-offset: 0.2em;
}

a:hover { color: var(--cream); }

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Landing page ---- */

.landing main {
  align-self: center;
  justify-self: center;
  max-width: 34rem;
  padding-block: 3rem 2rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.logo {
  color: var(--gold);
  width: auto;
  height: clamp(9rem, 30vh, 15rem);
  max-width: 100%;
}

.landing h1 {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.status {
  margin: 0;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status::before,
.status::after {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-inline: 0.75rem;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}

.lede {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
  text-wrap: balance;
}

.follow {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

/* ---- Not-found page (404.html, both languages) ---- */

.notfound .logo { height: clamp(6rem, 20vh, 9rem); }

.notfound h1 { font-size: clamp(2rem, 6vw, 2.75rem); }

/* The German line under each English one, a step quieter. */
.translation {
  display: block;
  margin-top: 0.35em;
  color: rgba(240, 238, 233, 0.8); /* 6.97 : 1 on navy */
}

.notfound h1 .translation { font-size: 0.55em; }

.home {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

/* ---- Text pages (legal notice, privacy policy) ---- */

.page main {
  justify-self: center;
  width: 100%;
  max-width: 42rem;
  padding-block: 2rem 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
}

.brand svg {
  color: var(--gold);
  width: auto;
  height: 2.5rem;
}

.page h1 {
  margin: 2.5rem 0 0.5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.15;
}

.page h2 {
  margin: 2.5rem 0 0.5rem;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
}

.page h3 {
  margin: 1.75rem 0 0.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}

.page p,
.page ul,
.page dl { margin: 0.75rem 0; }

.page ul { padding-left: 1.25rem; }

.page li + li { margin-top: 0.4rem; }

.page dt {
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page dd { margin: 0.15rem 0 0; }

.meta {
  color: rgba(240, 238, 233, 0.8); /* 6.97 : 1 on navy */
  font-size: 0.95rem;
}

/* The short version sits on its own surface: it is what most people read. */
.summary {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(19, 42, 71, 0.6); /* cream 11.48 : 1, gold 5.81 : 1 */
  border-radius: 0 6px 6px 0;
}

.summary ul { margin: 0.5rem 0 0; }

/* Long URLs must not push the page sideways on phones. German compounds
   ("Datenschutzerklärung" at 320 px) break at syllables; English words wrap whole,
   hyphens there split short words ("cur-rently") at 390 px. */
.page main { overflow-wrap: anywhere; }
.page main:lang(de) { hyphens: auto; }

/* An address split as "kon-takt@…" would be copied with the hyphen. */
.page a[href^="mailto:"] { hyphens: none; white-space: nowrap; }

/* ---- Channels (follow.html, de/folgen.html) ---- */

/* One card per channel, on the surface of the summary box: cream 11.48 : 1, gold 5.81 : 1. */
.page .channels {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.page .channels li + li { margin-top: 0; }

.channels a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(194, 168, 120, 0.35);
  border-radius: 8px;
  background: rgba(19, 42, 71, 0.6);
  color: var(--cream);
  text-decoration: none;
}

.channels a:hover { border-color: var(--gold); }

.channels svg {
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--gold);
}

.channel-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}

.channel-handle {
  color: var(--gold);
  font-size: 0.95rem;
}

/* ---- Language link, top right of every page ---- */

.lang {
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Text pages: on the brand's line, at the right edge of the text column. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Landing page: in the corner; out of the grid, so the centred content stays put. */
.landing .lang {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}

/* ---- Footer, all pages ---- */

footer {
  padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.85rem;
  color: rgba(240, 238, 233, 0.7); /* 5.74 : 1 on navy */
}

/* The OFL asks for the licence to travel with the font files — linked, not shouted. */
footer a { color: inherit; }

footer a:hover { color: var(--cream); }

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

/* Phones: shorter rules, so the line never wraps (360 px wrapped the right rule). */
@media (max-width: 26rem) {
  .status::before,
  .status::after { width: 1rem; margin-inline: 0.5rem; }
}
