/* yetano.app -- app index, registry and install page of the Yetano
   family. No external fonts or CDNs (a font CDN would see every
   visitor); light and dark follow the system setting, overridable by
   the header toggle (data-theme on <html>, see theme-init.js).

   Look: the masthead/card/footer structure of yanks.directory in the
   yetano.app palette -- blue-grey paper, sky blue #0b82b8 (dark:
   #4fc3f7) for links and highlights, deep navy #10212e for the
   terminal and the brand. */
:root {
  color-scheme: light dark;
  --paper: #e8edf0;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --ink: #14171e;
  --muted: #5b6b76;
  --border: #ccd6dd;
  --rule: #b4c2cc;
  --accent: #0b82b8;
  --accent-strong: #086690;
  --on-accent: #ffffff;
  --accent-soft: #dcedf6;
  --brand: #10212e;
  --on-brand: #e8edf0;
  --brand-soft: #d7e6ef;
  --term-bg: #10212e;
  --term-text: #e8edf0;
  --danger: #a33;
  --warn-bg: #fff3c4;
  --warn-ink: #5a4500;
  --shadow: 0 1px 2px rgb(16 33 46 / 0.06), 0 4px 14px rgb(16 33 46 / 0.06);

  --radius: 12px;
  --wrap: 74rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14171e;
    --surface: #1c2029;
    --surface-2: #232834;
    --ink: #e3e7ee;
    --muted: #8a9bb0;
    --border: #2c3442;
    --rule: #3c4658;
    --accent: #4fc3f7;
    --accent-strong: #7ad4fa;
    --on-accent: #0b2130;
    --accent-soft: #15303f;
    --brand: #0b1219;
    --on-brand: #d4d8e0;
    --brand-soft: #182532;
    --term-bg: #0b1219;
    --term-text: #d4d8e0;
    --danger: #e08090;
    --warn-bg: #3a3112;
    --warn-ink: #f2dc8c;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --paper: #14171e;
  --surface: #1c2029;
  --surface-2: #232834;
  --ink: #e3e7ee;
  --muted: #8a9bb0;
  --border: #2c3442;
  --rule: #3c4658;
  --accent: #4fc3f7;
  --accent-strong: #7ad4fa;
  --on-accent: #0b2130;
  --accent-soft: #15303f;
  --brand: #0b1219;
  --on-brand: #d4d8e0;
  --brand-soft: #182532;
  --term-bg: #0b1219;
  --term-text: #d4d8e0;
  --danger: #e08090;
  --warn-bg: #3a3112;
  --warn-ink: #f2dc8c;
  --shadow: none;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; width: 100%; padding-top: 1.6rem; padding-bottom: 4rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 0.5rem; letter-spacing: -0.025em; }
h2 { font-size: 1.4rem; margin: 2.4rem 0 1rem; }
h3 { font-size: 1.08rem; margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
p code, li code, td code { background: var(--surface-2); padding: 0.05rem 0.35rem; border-radius: 5px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.count { color: var(--muted); font-weight: 400; font-size: 0.85em; font-variant-numeric: tabular-nums; }
.kicker {
  display: inline-block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--muted); max-width: 44rem; margin: 0.3rem 0 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-top: 2px solid var(--ink); margin: 3rem 0 1.1rem; padding-top: 0.6rem;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.92rem; white-space: nowrap; }
.section-head p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 16px; }

/* ── masthead ─────────────────────────────────────────────────────── */
.masthead { background: var(--surface); border-bottom: 1px solid var(--border); }
.masthead-row { display: flex; align-items: center; gap: 1.4rem; min-height: 4.4rem; padding-top: 0.5rem; padding-bottom: 0.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
/* The wordmark has a fixed dark outline (not themable): a white plate
   keeps it readable in both themes. */
.brand-logo-wrap { display: inline-block; background: #fff; border-radius: 9px; padding: 4px 9px; line-height: 0; box-shadow: inset 0 0 0 1px var(--border); }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mainnav { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0.75rem; border-radius: 8px;
}
.mainnav a:hover { background: var(--surface-2); }
.mainnav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.masthead-tools { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.btn-login {
  display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0.35rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }
.btn-theme-toggle {
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  width: 2.4rem; height: 2.4rem; border-radius: 999px; cursor: pointer;
  display: inline-grid; place-items: center; padding: 0;
}
.btn-theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.btn-theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.btn-theme-toggle .icon-dark { display: none; }
:root[data-theme-effective="dark"] .btn-theme-toggle .icon-light { display: none; }
:root[data-theme-effective="dark"] .btn-theme-toggle .icon-dark { display: block; }

/* ── buttons, search ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.6rem 1.25rem;
  border-radius: 10px; border: 0; background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.search { display: flex; gap: 0.5rem; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 0.6rem 0.9rem; min-height: 2.75rem;
  border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search.big input { padding: 0.85rem 1.1rem; font-size: 1.08rem; box-shadow: var(--shadow); }
.search.big .btn { padding: 0.85rem 1.5rem; }
.search-hint { color: var(--muted); font-size: 0.9rem; margin: 0.6rem 0 0; }

/* ── front page ───────────────────────────────────────────────────── */
.front { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; padding: 1.4rem 0 0.4rem; }
.front h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin-top: 0.4rem; }
.front .search { margin-top: 1.6rem; max-width: 40rem; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 0; }
.numbers div { padding: 0.9rem 0.4rem 1rem; }
.numbers div + div { border-left: 1px solid var(--rule); padding-left: 1rem; }
.numbers dt { color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.numbers dd { margin: 0.1rem 0 0; font: 700 2.1rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.numbers dd a { color: inherit; text-decoration: none; }
.numbers dd a:hover { color: var(--accent); }

/* "Was ist Yetano?" */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.pillars li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.pillars h3 { margin-bottom: 0.35rem; }
.pillars p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pillar-mark {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px; margin-bottom: 0.7rem;
  background: var(--brand-soft); color: var(--accent);
}
.pillar-mark svg { width: 1.15rem; height: 1.15rem; }
.platforms { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.pillars li { display: flex; flex-direction: column; }
.pillars p + p { margin-top: 0.6rem; }
.pillars .pillar-more { margin-top: auto; padding-top: 0.8rem; font-size: 0.92rem; font-weight: 600; }

/* Running text on the front page ("Was ist Yetano?", "Das Yetano Verse"). */
.about { max-width: 46rem; margin-bottom: 1.6rem; }
.about p { margin: 0 0 0.9rem; line-height: 1.6; }
.about .lede { margin-bottom: 1rem; }
.about h3 { margin: 1.4rem 0 0.4rem; }
/* The Yetano standard's core statement: same accent line as .examples. */
.about .standard { border-left: 3px solid var(--accent); padding: 0.1rem 0 0.1rem 1rem; font-weight: 600; }
.section-intro { color: var(--muted); margin: 0 0 1rem; max-width: 46rem; }

/* "Gemeinsame Grundlagen": examples from the projects. */
.examples { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.examples li { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; }
.examples h3 { margin-bottom: 0.35rem; }
.examples p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* Verse terms. */
.terms { margin: 0; display: grid; gap: 0.9rem 2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.terms div { border-top: 1px solid var(--rule); padding-top: 0.6rem; }
.terms dt { font-weight: 700; font-family: var(--display); }
.terms dd { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.tag-planned {
  display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.45rem; border-radius: 999px; vertical-align: 0.1em;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; background: var(--warn-bg); color: var(--warn-ink);
}

/* install panel */
.install {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.install h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; font-family: var(--sans); }
.install ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.install ol li { margin: 0 0 0.6rem; }
.install ol li strong { color: var(--ink); }
.os-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 0.8rem; }
.os-tabs button {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  min-height: 2.3rem; padding: 0.3rem 0.95rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.os-tabs button:hover { border-color: var(--accent); }
.os-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.install-hint { font-size: 0.86rem; color: var(--muted); margin: 0.6rem 0 0; min-height: 1.4em; }

.term {
  display: flex; align-items: center; gap: 12px;
  background: var(--term-bg); color: var(--term-text);
  border-radius: 10px; padding: 0.75rem 0.75rem 0.75rem 1rem; max-width: 100%;
}
.term + .term { margin-top: 0.5rem; }
.term-scroll { flex: 1; overflow-x: auto; min-width: 0; }
.term code { font-family: var(--mono); font-size: 0.88rem; white-space: pre; background: none; padding: 0; }
.term code::before { content: "$ "; opacity: 0.5; user-select: none; -webkit-user-select: none; }
.term button {
  flex-shrink: 0; border: none; border-radius: 7px;
  background: rgb(255 255 255 / 0.1); color: var(--term-text);
  padding: 0.4rem 0.8rem; font: inherit; font-weight: 600; font-size: 0.8rem; cursor: pointer;
}
.term button:hover { background: rgb(255 255 255 / 0.2); }

/* microsites + package cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--rule); transform: translateY(-1px); }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card is the link */
.card h3 a:focus-visible { outline: none; }
.card-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); overflow-wrap: anywhere; }
.card-desc { color: var(--muted); font-size: 0.92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Microsite cards carry hand-written text: show all of it. */
.site-card .card-desc { display: block; -webkit-line-clamp: none; overflow: visible; }
.card-path { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-top: auto; padding-top: 0.3rem; }
.card-meta { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.site-card .site-letter {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 9px; margin-bottom: 0.35rem;
  background: var(--brand); color: var(--on-brand); font: 700 1.15rem/1 var(--display); text-transform: uppercase;
}
.card[hidden] { display: none; }

/* categories */
.category-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.category-grid a {
  display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
.category-grid a:hover { border-color: var(--accent); }
.category-grid strong { display: flex; justify-content: space-between; gap: 0.6rem; font: 700 1.12rem/1.25 var(--display); }
.category-grid span { color: var(--muted); font-size: 0.9rem; }

.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.services li { border-bottom: 1px solid var(--border); }
.services a { display: block; padding: 0.75rem 0; color: var(--ink); text-decoration: none; }
.services a strong { display: block; }
.services a span { color: var(--muted); font-size: 0.9rem; }
.services a:hover strong { color: var(--accent); }

/* ── package index (/packages/) ─────────────────────────────────────── */
.page-head { padding: 1rem 0 0.4rem; }
.page-head h1 { margin-top: 0.25rem; }
.index-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.2rem; margin-top: 1.6rem; align-items: start; }
.filters { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1.4rem; }
.filters h2 { font: 700 0.74rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
.facet { list-style: none; padding: 0; margin: 0; }
.facet button {
  width: 100%; display: flex; justify-content: space-between; gap: 0.6rem; text-align: left;
  border: 0; background: none; color: var(--ink); font: inherit; font-size: 0.93rem; padding: 0.35rem 0.6rem; border-radius: 7px; cursor: pointer;
}
.facet button:hover { background: var(--surface-2); }
.facet button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.facet .count { font-size: 0.82rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 1rem; }
.results-bar .search { flex: 1 1 18rem; }
.results-bar select {
  font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 10px; padding: 0.55rem 0.7rem; min-height: 2.75rem;
}
.result-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; }
.active-filters { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.active-filters button {
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-size: 0.78rem; font-weight: 600;
  padding: 0.2rem 0.65rem; cursor: pointer;
}
.active-filters button::after { content: " ×"; opacity: 0.7; }
.link-button { border: 0; background: none; color: var(--accent); font: inherit; font-size: 0.88rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.pkg-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.pkg {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0;
}
.pkg > button {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1rem; align-items: start; text-align: left;
  border: 0; background: none; color: inherit; font: inherit; padding: 0.95rem 1.15rem; cursor: pointer; border-radius: var(--radius);
}
.pkg > button:hover .pkg-name { color: var(--accent); }
.pkg-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; min-width: 0; }
.pkg-name { font: 700 1.06rem/1.3 var(--display); overflow-wrap: anywhere; }
.pkg-ns { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.pkg-desc { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.pkg-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.pkg-version { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); white-space: nowrap; }
.pkg-date { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.pkg-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.pkg-detail { border-top: 1px solid var(--border); padding: 1rem 1.15rem 1.15rem; display: grid; gap: 1rem; }
.pkg-detail dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.8rem 1.4rem; }
.pkg-detail dt { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pkg-detail dd { margin: 0.15rem 0 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.pkg-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pkg-links a {
  display: inline-flex; align-items: center; min-height: 2.2rem; padding: 0.3rem 0.9rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.88rem;
}
.pkg-links a:hover { text-decoration: underline; }

.chip {
  display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.02em;
  padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  border: 1px solid transparent; font-family: var(--sans);
}
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.chip.cat { background: var(--accent-soft); color: var(--accent); }
.chip.type { background: transparent; border-color: var(--rule); }
.status { color: var(--muted); padding: 1.2rem 0; }
.status.error { color: var(--danger); }

/* ── prose pages (Impressum, Datenschutz, Kontakt) ────────────────── */
.prose { max-width: 46rem; }
.prose h1 { margin-top: 0.3rem; }
.prose h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.prose h3 { font-size: 1.02rem; margin: 1.4rem 0 0.4rem; }
.prose p, .prose li { font-size: 1rem; }
.prose ul { padding-left: 1.3rem; }
.prose address { font-style: normal; }
.prose .stand { color: var(--muted); font-size: 0.9rem; margin-top: 2.4rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1.4rem 0; }
.contact-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.contact-grid h2 { font-size: 1.02rem; margin: 0 0 0.35rem; }
.contact-grid p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.contact-grid p + p { margin-top: 0.5rem; }
/* An operator detail the owner has not filled in yet (site/betreiber.conf). */
.placeholder { background: var(--warn-bg); color: var(--warn-ink); border-radius: 4px; padding: 0 0.3rem; font-style: normal; }

/* ── footer ───────────────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2.2rem; padding-bottom: 1.6rem; }
.footer h2 { font: 700 0.74rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 0.15rem 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }
.footer p { margin: 0.6rem 0 0; max-width: 30rem; }
.footer .brand-logo { height: 28px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1rem; padding-bottom: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }

@media (max-width: 960px) {
  .front, .install, .index-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .filters { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .masthead-row { gap: 0.5rem 0.8rem; }
  .mainnav { order: 3; flex-basis: 100%; margin: 0 -0.6rem; }
  .mainnav a { padding: 0.45rem 0.6rem; }
  .brand-sub { display: none; }
  .numbers dd { font-size: 1.6rem; }
  .search.big { flex-direction: column; }
  .install { padding: 1.1rem; }
  .pkg > button { grid-template-columns: minmax(0, 1fr); }
  .pkg-side { flex-direction: row; align-items: baseline; gap: 0.6rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

.install-notes { margin-top: 1rem !important; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
