/* NurPrivat — shared design system.
 *
 * Values are taken from the design handoff (design_handoff_nurprivat/README.md),
 * which is authoritative. Two deliberate deviations, both recorded here so nobody
 * "fixes" them back:
 *
 *   1. Contact address is kontakt@nurprivat.com, not the hallo@ in the handoff.
 *      kontakt@ is what Cloudflare Email Routing actually delivers, and it is the
 *      address named in the Impressum — a legally required field must not point
 *      at a mailbox that does not exist.
 *   2. No Google Fonts. Loading them from Google's CDN transmits the visitor's IP
 *      (LG München I, 20.01.2022) and is a documented GDPR violation with an
 *      Abmahnung wave behind it. System stacks only.
 */

:root {
  /* accent */
  --accent: #2F6BFF;
  --accent-hover: #1D4FCC;
  --accent-tint: #EDF1FE;
  --accent-border: #C4D0F8;
  --accent-on-dark: #7FA3FF;

  /* ink */
  --ink: #14161A;
  --ink-2: #3F444B;
  --ink-3: #4A4E55;
  --muted: #5C6068;

  /* eyebrow — #4F5C75 is the lightest grey permitted for small text on --page
     (6.3:1). Anything lighter fails WCAG AA below 18.66px. */
  --eyebrow: #4F5C75;
  --eyebrow-dark: #9FB0CC;

  /* surfaces */
  --page: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #ECEFF5;
  --surface-3: #F5F7FA;

  /* lines */
  --line: #E0E4EC;
  --line-2: #E2E6EE;
  --fill: #E4E8F0;

  /* dark sections */
  --dark-card: #1D2126;
  --dark-line: #2C3239;
  --dark-text: #A6AEB6;
  --dark-muted: #8A929B;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --col: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Must sit on html as well as body — body alone still leaves the root element
   * scrollable. `clip` rather than `hidden` because hidden here kills
   * position:sticky on the header. Guards against transforms and shadows
   * (the rotated FAQ "+") creating sideways scroll on narrow screens. */
  overflow-x: clip;
}

body {
  margin: 0;
  /* clip, not hidden: hidden on body/html breaks position:sticky in the header.
   * Guards against a transform or shadow creating sideways scroll on mobile. */
  overflow-x: clip;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.col { max-width: var(--col); margin: 0 auto; padding: 0 28px; }

/* The serif carries the weight — headings are never bold. */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------ header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--accent); }

.site-nav { display: flex; gap: 18px; font-size: 13.5px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 17px;
  font-size: 13.5px;
  transition: background .18s ease;
}
.cta:hover { background: var(--accent-hover); color: #fff; }
.cta--header { margin-left: auto; }

/* --------------------------------------------------------------- documents --- */

.doc { padding: 62px 0 24px; }

.doc__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 18px;
}

.doc h1 { font-size: 46px; line-height: 1.12; margin: 0 0 14px; }

.doc__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 62ch;
  margin: 0 0 8px;
}

.doc__body { max-width: 70ch; }

.doc__body h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 40px 0 10px;
}

.doc__body h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 6px;
  letter-spacing: 0;
}

.doc__body p { margin: 0 0 14px; }
.doc__body ul { margin: 0 0 16px; padding-left: 20px; }
.doc__body li { margin-bottom: 9px; }

.doc__body address {
  font-style: normal;
  line-height: 1.75;
}

/* Callout used for the plain-language summary at the top of the privacy policy. */
.note {
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  padding: 20px 24px;
  margin: 0 0 34px;
  max-width: 70ch;
}
.note p { margin: 0; color: var(--ink-2); }
.note strong { color: var(--ink); }

.doc__updated {
  font-size: 14px;
  color: var(--muted);
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 70ch;
}

/* ------------------------------------------------------------------ footer --- */

.site-footer {
  background: var(--ink);
  color: var(--dark-muted);
  margin-top: 76px;
}

.site-footer__inner { max-width: var(--col); margin: 0 auto; padding: 48px 28px 40px; }

.site-footer__top {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: baseline;
}

.site-footer .wordmark { font-size: 20px; color: var(--page); }

.site-footer__links { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.site-footer__links a { color: var(--dark-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent-on-dark); }

.site-footer__legal {
  font-size: 13px;
  line-height: 1.7;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
  max-width: 82ch;
}

/* ------------------------------------------------------------- responsive --- */

@media (max-width: 900px) {
  .doc h1 { font-size: 38px; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .col, .site-header__inner, .site-footer__inner { padding-left: 20px; padding-right: 20px; }
  .doc { padding: 40px 0 20px; }
  .doc h1 { font-size: 32px; }
  .doc__body h2 { font-size: 20px; }
  .site-footer__links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
