/* 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;
  /* A few faint stars and the night sky gathering at the edges —
     the owl in the logo is drawn as a constellation. */
  background:
    radial-gradient(circle at 12% 18%, rgba(240, 238, 233, 0.55) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 27% 72%, rgba(240, 238, 233, 0.35) 0 1px, transparent 1.6px),
    radial-gradient(circle at 41% 9%, rgba(194, 168, 120, 0.6) 0 1.4px, transparent 2px),
    radial-gradient(circle at 63% 86%, rgba(240, 238, 233, 0.4) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 24%, rgba(240, 238, 233, 0.5) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 90% 61%, rgba(194, 168, 120, 0.5) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 8% 88%, rgba(240, 238, 233, 0.3) 0 1px, transparent 1.6px),
    radial-gradient(circle at 54% 40%, rgba(240, 238, 233, 0.2) 0 0.9px, transparent 1.5px),
    radial-gradient(ellipse at 50% 40%, var(--navy) 0%, var(--navy) 45%, var(--night) 100%);
  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;
}

/* ---- Text pages (Impressum, Datenschutz) ---- */

.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 addresses and URLs must not push the page sideways on phones; German compounds
   ("Datenschutzerklärung" at 320 px) break at syllables instead (lang="de"). */
.page main { overflow-wrap: anywhere; hyphens: auto; }

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

/* ---- 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; }
}
