/* Erzeugt von tool/rechtstext_web.py -- nicht von Hand aendern.
   Die Farben stehen in lib/design/tokens.dart. */

@font-face {
  font-family: 'PlayfairDisplay';
  src: url('/schrift/PlayfairDisplay-Variable.ttf') format('truetype-variations');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --canvas: #FAF9FC;
  --flaeche: #FFFFFF;
  --vertieft: #F1EEF7;
  --text: #1C1B22;
  --text-zweit: #605C6B;
  --text-dritt: #6E6879;
  --verweis: #C22E68;
  --gold: #D9A93C;
  --linie-gold: #EADCBE;
  --linie: #E4E1EA;
  --mass: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1B1628;
    --flaeche: #2B2440;
    --vertieft: #221C33;
    --text: #F9F4EE;
    --text-zweit: #C6BED2;
    --text-dritt: #A9A1B8;
    --verweis: #F58BAE;
    --gold: #E8BE63;
    --linie-gold: #6B5933;
    --linie: #3A3252;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

header, main, footer {
  max-width: var(--mass);
  margin-inline: auto;
  padding-inline: 1rem;
}

header {
  padding-block: 2rem 0;
}

.wortmarke {
  font-family: 'PlayfairDisplay', Georgia, serif;
  font-size: 1.25rem;
  font-variation-settings: 'wght' 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

main {
  padding-block: 1.5rem 3rem;
}

h1, h2 {
  font-family: 'PlayfairDisplay', Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  font-variation-settings: 'wght' 500;
  margin: 1rem 0 2rem;
}

h2 {
  font-size: 1.375rem;
  font-variation-settings: 'wght' 500;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--linie);
}

h1 + h2 { border-top: 0; padding-top: 0; margin-top: 0; }

/* Unterueberschrift in Inter halbfett, wie in der App: sie soll sich vom
   Fliesstext abheben und unter der H2 bleiben. Eine zweite Playfair-Stufe
   dazwischen gibt es im Typenkanon nicht. */
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
  margin: 1.75rem 0 0.5rem;
}

p { margin: 0 0 1.1rem; }

.vorspann {
  font-size: 1.1875rem;
  color: var(--text-zweit);
}

a {
  color: var(--verweis);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

strong { font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375em;
  background: var(--vertieft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

li { margin-bottom: 0.45rem; }

address {
  font-style: normal;
  background: var(--flaeche);
  border: 1px solid var(--linie-gold);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.tabelle {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--linie);
}

th {
  font-weight: 600;
  color: var(--text-zweit);
  white-space: nowrap;
}

td:last-child { color: var(--text-zweit); }

footer {
  border-top: 1px solid var(--linie);
  padding-block: 1.5rem 3rem;
  font-size: 0.9375rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 30rem) {
  h1 { font-size: 1.75rem; }
  th { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
