/* Jempire Holding UG (haftungsbeschränkt) — jempi.re
   Design note: the page is a register entry, not a marketing page. Its job is
   to corroborate that a named legal entity exists, so the verifiable registry
   data IS the primary content and gets the typographic weight.
   No web fonts by design — remote Google Fonts embedding is a live GDPR/
   Abmahnung risk in Germany, and a compliance page must not create a breach. */

:root {
  --paper:      #f4f6f5;
  --ink:        #14181b;
  --muted:      #666f6b;
  --rule:       #dce1de;
  --seal:       #1d4a3a;
  --seal-soft:  rgba(29, 74, 58, 0.09);

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 34rem;
  --rail:    10.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #0f1211;
    --ink:       #e6eae7;
    --muted:     #8e9894;
    --rule:      #262c29;
    --seal:      #5fa98b;
    --seal-soft: rgba(95, 169, 139, 0.13);
  }
}

*, *::before, *::after { 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: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 3rem) 4rem;
}

/* ---- Masthead ---------------------------------------------------------- */

.masthead { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.masthead__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 6.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

/* The legal-form suffix is part of the registered name but subordinate in
   reading — set it smaller rather than dropping it. */
.masthead__form {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.4em;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ---- Marginal-label rows (document marginalia) -------------------------- */

.row {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 2.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--rule);
}

.row__label {
  margin: 0;
  padding-top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.row__body > :first-child { margin-top: 0; }
.row__body > :last-child  { margin-bottom: 0; }

.row__body p { margin: 0 0 0.9rem; max-width: var(--measure); }

/* ---- Register data ----------------------------------------------------- */

.record { margin: 0; }

.record__row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--rule);
}

.record__row:first-child { padding-top: 0; }

/* The section rule below already closes the block — a trailing border here
   would read as a doubled line. */
.record__row:last-child { border-bottom: 0; padding-bottom: 0; }

.record__key {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.record__val {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* Identifiers are transcribed character by character — monospace is
   semantic here, not decorative. Prose values are not. */
.record__val--prose {
  font-family: var(--sans);
  font-size: 1rem;
}

/* ---- Holdings ---------------------------------------------------------- */

.holding { margin-bottom: 1.75rem; max-width: var(--measure); }
.holding:last-child { margin-bottom: 0; }

.holding__name {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
}

.holding__desc { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* ---- Prose (Impressum / Datenschutz) ----------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
}
.prose h3 {
  margin: 1.75rem 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
}
.prose > :first-child { margin-top: 0; }
.prose p  { margin: 0 0 0.9rem; }
.prose ul { margin: 0 0 0.9rem; padding-left: 1.1rem; }
.prose li { margin-bottom: 0.3rem; }
.prose address {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---- Links ------------------------------------------------------------- */

a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover { color: var(--seal); text-decoration-color: currentColor; }

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

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Footer ------------------------------------------------------------ */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

.foot__spacer { margin-left: auto; }

/* ---- Unfilled placeholders --------------------------------------------- */

.tbd {
  color: var(--seal);
  background: var(--seal-soft);
  padding: 0 0.25em;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.85em;
}

/* ---- Motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }
  .reveal:nth-child(1) { animation-delay: 0.02s; }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.14s; }
  .reveal:nth-child(4) { animation-delay: 0.20s; }
  .reveal:nth-child(5) { animation-delay: 0.26s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---- Narrow ------------------------------------------------------------ */

@media (max-width: 46rem) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }
  .record__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
  .record__key { font-size: 0.8125rem; }
}

@media print {
  body { background: #fff; color: #000; }
  .back { display: none; }
}
