/* Document styling for impressum.html and datenschutz.html, on top of
   site.css (fonts, colour tokens, nav, footer, glass). The text sits on one
   glass sheet over the faceted ground, the way the app lays out its own
   long-form screens. */

main { max-width: 820px; margin: 0 auto; padding: 28px 16px 0; }
.doc {
  padding: 40px 44px 44px; border-radius: 32px;
  /* Long prose reads better on a firmer pane than the 42 % app glass */
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.doc-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  text-decoration: none; margin-bottom: 1.5rem;
}
.doc-back:hover { text-decoration: underline; }

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.6rem;
}
.doc-updated { font-size: 14px; color: var(--hint); margin-bottom: 2rem; font-weight: 500; }
.doc-intro {
  font-size: 1.02rem; color: var(--text-2);
  background: var(--glass-row); box-shadow: var(--card-shadow);
  border-left: 4px solid var(--primary);
  border-radius: 18px; padding: 1.1rem 1.25rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.35rem; letter-spacing: -0.02em;
  margin: 2.5rem 0 0.85rem; padding-top: 0.4rem;
}
h2:first-of-type { margin-top: 0; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; color: var(--text-2); }
p { margin-bottom: 0.9rem; color: var(--text-2); }
p strong, li strong { color: var(--text); font-weight: 700; }

ul, ol { margin: 0 0 1rem 1.25rem; color: var(--text-2); }
li { margin-bottom: 0.45rem; }

a:hover { text-decoration: none; }
code { font-size: .92em; background: var(--surface-alt); padding: 1px 6px; border-radius: 6px; }

.card {
  background: var(--glass-row); box-shadow: var(--card-shadow);
  border-radius: 18px; padding: 1.1rem 1.25rem; margin-bottom: 1.1rem;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.addr { font-style: normal; line-height: 1.75; color: var(--text-2); }

/* Fields the operator still has to fill in. Deliberately loud: an unfilled
   placeholder that reaches production is a legal defect, not a typo. */
.todo {
  display: inline-block;
  background: #FFF3D6; border: 1px dashed var(--warning);
  border-radius: 6px; padding: 1px 8px;
  font-size: 0.92em; font-weight: 700; color: #8A5A00;
}

table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.2rem;
  font-size: 14px; display: block; overflow-x: auto;
}
th, td {
  text-align: left; padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--divider); vertical-align: top;
}
th { font-weight: 700; color: var(--text); white-space: nowrap; }
td { color: var(--text-2); }

[data-lang-block] { display: none; }
[data-lang-block].active { display: block; }

@media (max-width: 640px) {
  main { padding: 16px 10px 0; }
  .doc { padding: 26px 18px 30px; border-radius: 24px; }
}
