/* Sovereign Apps — Gestaltung "Datenblatt".
   Ein technisches Spezifikationsdokument, kein Marketing-Layout:
   sichtbares Konstruktionsraster, Monospace für Kennwerte, ein Signalton.
   Bewusst KEINE externen Schriften oder Skripte — eine Seite über
   Datensouveränität darf ihre Besucher nicht an Dritte weiterreichen. */

:root {
  --ink: #14171a;
  --ink-soft: #4a5157;
  --ink-faint: #878f96;
  --rule: #d6d9dc;
  --rule-soft: #e8eaec;
  --paper: #fbfbfa;
  --paper-alt: #f4f4f2;
  --signal: #0f5c5c;
  --signal-soft: #e3efee;
  --warn: #8a4b12;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eaec;
    --ink-soft: #a8b0b6;
    --ink-faint: #767e85;
    --rule: #2e3438;
    --rule-soft: #22282b;
    --paper: #101315;
    --paper-alt: #171b1e;
    --signal: #4db6ac;
    --signal-soft: #16302f;
    --warn: #d9a066;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Konstruktionsraster ---------- */
/* Die Seite sitzt in einem sichtbaren Rahmen wie eine technische Zeichnung. */

.sheet {
  max-width: 1180px;
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  min-height: 100vh;
}

.band {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.band--tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.band--alt { background: var(--paper-alt); }

/* ---------- Kopfzeile ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.masthead strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .12em;
}
.masthead nav { display: flex; gap: 1.5rem; }
.masthead a { color: var(--ink-soft); text-decoration: none; }
.masthead a:hover { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Typografie ---------- */

h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 22ch; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 58ch; }

a { color: var(--signal); text-underline-offset: 2px; }

/* Kennwert-Zeile: das Erkennungsmerkmal des Datenblatts */
.spec-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: .9rem;
}

/* ---------- Datenblatt-Tabelle ---------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin: 1.5rem 0 0;
}
.spec th, .spec td {
  text-align: left;
  padding: .7rem .9rem .7rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.spec th {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  white-space: nowrap;
  width: 15rem;
}
.spec td code, .spec td .mono { font-family: var(--mono); font-size: .88em; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.yes { color: var(--signal); font-weight: 600; }
.no  { color: var(--warn); }

/* ---------- Vergleich ---------- */

.compare { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 1.5rem; }
.compare th, .compare td { padding: .75rem .9rem; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.compare thead th {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; border-bottom: 2px solid var(--rule);
}
.compare tbody th { font-weight: 500; color: var(--ink); width: 16rem; }
.compare .col-ours { background: var(--signal-soft); }

/* ---------- Modulliste ---------- */

.modules { display: grid; gap: 0; margin-top: 1rem; border-top: 1px solid var(--rule); }
.module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem 2rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.module:hover { background: var(--paper-alt); }
.module h3 { margin-bottom: .3rem; }
.module p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.module .meta {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  white-space: nowrap;
}
.module .meta .state { color: var(--signal); display: block; }

/* ---------- Hinweiskasten ---------- */

.note {
  border-left: 3px solid var(--signal);
  background: var(--paper-alt);
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
  font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

/* ---------- Fusszeile ---------- */

.colophon {
  padding: 2rem var(--gutter) 3rem;
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.8;
  color: var(--ink-faint);
  letter-spacing: .03em;
}
.colophon a { color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--signal); text-decoration: underline; }
.colophon .row { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }

/* ---------- Hilfsklassen ---------- */

.stack > * + * { margin-top: 1.4rem; }
.mono { font-family: var(--mono); }
.wide { max-width: none; }

@media (max-width: 640px) {
  .spec th { width: auto; display: block; padding-bottom: .1rem; border-bottom: 0; }
  .spec td { display: block; padding-top: 0; }
  .compare tbody th { width: auto; }
  .module { grid-template-columns: 1fr; }
  .module .meta { text-align: left; }
}
