/* Shared look for the static website pages (Impressum, Widerrufsbelehrung,
   licences, account deletion, privacy, terms). Same Minze tokens and
   self-hosted fonts as the app (src/index.css, src/fonts.css); no external
   requests. Linked after each page's own <style>, so these rules win. */

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/noto-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/noto-sans-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;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/source-serif-4-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;
}

:root {
  color-scheme: light dark;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --ink: #121212;
  --ink-2: #4a4a4a;
  --rule: #dcdcdc;
  --link: #095a46;
  --header: #0b6e55;
  --on-header: #ffffff;
  --brand: #796cbf;
  --tint: #d2efe4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1d1d1d;
    --ink: #f5f5f5;
    --ink-2: #bdbdbd;
    --rule: #2f2f2f;
    --link: #8fcdb6;
    --header: #222a27;
    --tint: #262e2b;
  }
}

html {
  background: var(--bg);
}
body {
  font-family: 'Noto Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 48px;
  line-height: 1.6;
  font-size: 16px;
}

.site-header {
  margin: 0 -20px 32px;
  padding: 16px 20px 20px;
  background: var(--header);
  border-radius: 0 0 24px 24px;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--on-header);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.site-header .brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
}

/* Page title: the first bold line (or h1) under the header. */
body > strong:first-of-type,
h1 {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75em;
}
body > strong,
h2,
h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
body > strong {
  font-size: 1.2rem;
}
h2 {
  font-size: 1.3rem;
  margin-top: 2em;
  border-bottom: 0;
}
h3 {
  font-size: 1.1rem;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

table {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}
th {
  background: var(--tint) !important;
}
th,
td {
  border-bottom: 1px solid var(--rule) !important;
}
.note,
.translation-note {
  background: var(--surface) !important;
  color: var(--ink-2) !important;
  border-left: 3px solid var(--header) !important;
  border-radius: 12px;
}
footer {
  color: var(--ink-2) !important;
}
/* Inline "Stand: …" dates use a fixed grey; keep them readable in both themes. */
[style*='color: #666'] {
  color: var(--ink-2) !important;
}

/* Long German compounds ("Verbraucherstreitbeilegung/Universalschlichtungsstelle")
   must wrap on a 360px phone instead of pushing the page sideways. */
body {
  overflow-wrap: break-word;
}
body > strong,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}
/* The privacy policy is an embedded third-party document; keep it inside the column. */
body > div,
.iubenda-embed,
#iubenda_policy {
  max-width: 100% !important;
  box-sizing: border-box;
}
