/* Layout: one narrow reading column, topic map as a wrapping grid, contact as a form card.
   Colors: Cologne red on a cool Rhine-grey ground, deep slate ink. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/literata.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/literata-italic.woff2") format("woff2"); }

:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #17242e;
  --muted: #55636d;
  --line: #d9e0e4;
  --red: #c4122f;
  --red-ink: #ffffff;
  --band: #17242e;
  --band-ink: #eef2f4;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 68rem;
  --read: 38rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10171c; --surface: #172129; --ink: #e7ecef; --muted: #9aa8b1; --line: #2a3843;
    --red: #ef4a5f; --red-ink: #10171c; --band: #1c2933; --band-ink: #e7ecef; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10171c; --surface: #172129; --ink: #e7ecef; --muted: #9aa8b1; --line: #2a3843;
  --red: #ef4a5f; --red-ink: #10171c; --band: #1c2933; --band-ink: #e7ecef; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--red); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

/* Header */
.site-head { padding-block: 1.25rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.crowns { width: 2.1rem; height: auto; color: var(--red); flex: none; }
.head-link { font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* Hero */
.hero { padding-block: 3.5rem 4.5rem; }
.eyebrow { font-family: var(--display); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); font-weight: 700; margin-top: .9rem; max-width: 14ch; }
.hero .lede { margin-top: 1.75rem; max-width: var(--read); display: grid; gap: 1rem; }
.hero .no-script { font-family: var(--display); font-weight: 500; font-size: 1.2rem; }
.hero .lede p:last-child { color: var(--muted); }
.btn {
  display: inline-block; margin-top: 2rem; padding: .85rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--red); color: var(--red-ink); font-family: var(--display); font-weight: 700;
  font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }

/* Sections */
section { padding-block: 4rem; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 700; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem 2rem; margin-top: 2.5rem; }
.topic h3 { font-size: 1.15rem; font-weight: 700; padding-bottom: .6rem; border-bottom: 2px solid var(--red); }
.topic ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; }
.topic li { padding-left: 1rem; position: relative; }
.topic li::before { content: ""; position: absolute; left: 0; top: .72em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--red); }
.topic li.open { font-style: italic; color: var(--muted); }
.mix {
  margin-top: 3rem; font-style: italic; font-size: 1.3rem; max-width: var(--read);
  padding-left: 1.1rem; border-left: 3px solid var(--red);
}

/* About */
.about { display: grid; gap: 1rem; max-width: var(--read); }
.about .section-title { margin-bottom: .5rem; }
.about p:last-child { font-family: var(--display); font-weight: 500; font-size: 1.2rem; margin-top: .5rem; }

/* German note */
.deutsch { background: var(--band); color: var(--band-ink); border-top: 0; padding-block: 2.5rem; }
.deutsch .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.25rem; }
.deutsch strong { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.deutsch .flag { display: inline-block; width: 1.4rem; height: .95rem; vertical-align: -.1rem; margin-right: .5rem; border-radius: 2px;
  background: linear-gradient(#000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem; align-items: start; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-intro { display: grid; gap: 1rem; }
.contact-intro .tagline { font-family: var(--display); font-weight: 700; color: var(--red); font-size: 1.05rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 32rem) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-family: var(--display); font-weight: 500; font-size: .9rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.form .btn { margin-top: .25rem; justify-self: start; }
.form .small { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.site-foot nav { display: flex; gap: 1.25rem; }
.site-foot a { color: var(--muted); }

/* Legal pages */
.legal { max-width: var(--read); padding-block: 2rem 4rem; display: grid; gap: 1rem; }
.legal h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.25rem; }
.legal .todo { background: color-mix(in srgb, var(--red) 14%, transparent); padding: 0 .25rem; border-radius: 3px; }

/* About with portrait */
.about-grid { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 44rem) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } .portrait { max-width: 16rem; } }
.portrait { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; max-width: 100%; }
