/* The site's only stylesheet, and its only asset of any kind.
 *
 * Values are restated from app/lib/core/theme/lisano_colors.dart so the site
 * and the app stay recognisably one product. LisanoColors itself is a Flutter
 * concern and does not govern here; this file is the web restatement, and the
 * layout it carries is visuals/variant-b-companion.html, which is binding.
 *
 * No @import, no web font, no image, no url() of any kind. That is not an
 * aesthetic preference: embedding a font by URL transmits visitor IP addresses
 * to its host, which LG München I (3 O 17493/20) held unlawful. FR-4.1-S2
 * makes it mechanically impossible rather than a thing to remember, and this
 * file is the first thing that check reads. */

:root {
  --paper0: #faf7f1;
  --paper1: #f3eee4;
  --card: #ffffff;
  --ink: #1a1916;
  --ink-soft: #56524a;
  --ink-muted: #757168;
  --rule: #d9d2c4;
  --rule-strong: #8e8980;
  --primary: #9a4522;
  --primary-soft: #f7e4d5;
  --focus: #2b5f9e;
  --r-card: 16px;
  --r-control: 12px;
}

/* Derived from the same semantics as the light palette — same warmth, same
   roles — rather than inverted from it. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper0: #17150f;
    --paper1: #201d15;
    --card: #26221a;
    --ink: #f2ede3;
    --ink-soft: #c2bbad;
    --ink-muted: #9c9585;
    --rule: #3a352a;
    --rule-strong: #726c60;
    --primary: #e08a5a;
    --primary-soft: #3b2418;
    --focus: #7fb0e8;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper0);
  color: var(--ink);
  font-family:
    ui-rounded, 'SF Pro Rounded', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    sans-serif;
  font-size: 16px;
  /* Generous throughout. This is reading, not scanning: show less rather than
     tighten. */
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 24px;
}

header.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 0;
}

.wordmark {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

/* The only piece of brand colour on the page: a small quiet mark. Terracotta
   at scale reads as alarm, so it stays an accent. */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.lang {
  display: flex;
  gap: 4px;
}

.lang a {
  padding: 6px 12px;
  border-radius: var(--r-control);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}

.lang a[aria-current] {
  background: var(--primary-soft);
  color: var(--ink);
}

/* German legal vocabulary produces compounds longer than a narrow viewport:
   "Datenschutzerklärung" alone overflows a 320px phone at h1 size, and
   "Verbraucherstreitbeilegung" is longer still. Every page carries a lang
   attribute, so the browser can hyphenate rather than merely break. */
h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  margin: 48px 0 12px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  font-weight: 600;
}

h3 {
  margin: 32px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

main ul,
main ol {
  padding-left: 24px;
}

main ul.docs {
  padding-left: 0;
}

.effective {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--ink-muted);
}

a {
  color: var(--ink);
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}

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

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

/* The legal index as cards — each document is a distinct object. */
ul.docs {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
}

ul.docs a {
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 16px;
  text-decoration: none;
}

ul.docs a:hover {
  border-color: var(--rule-strong);
}

ul.docs .t {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

ul.docs .d {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}

.facts {
  margin: 0 0 16px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 0;
}

.facts div + div {
  border-top: 1px solid var(--rule);
}

.facts dt {
  flex: 0 0 7.5rem;
  font-size: 14px;
  color: var(--ink-muted);
}

/* The row wraps rather than overflowing when the value does not fit beside its
   label — the addresses here are long and the measure is narrow. */
.facts dd {
  margin: 0;
  min-width: 0;
}

dl {
  margin: 0;
}

blockquote {
  margin: 0 0 16px;
  padding: 16px;
  background: var(--paper1);
  border-radius: var(--r-card);
  color: var(--ink-soft);
  font-size: 15px;
}

blockquote p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 56px;
  padding: 24px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer a {
  color: var(--ink-muted);
}
