/* Eltern-Leitfaden — intentionally boring, paper-first.
   Inherits no tokens; the parent view should feel official, calm, A4. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.pg-body {
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  background: #F6F5F1;  /* warm off-white — paper feel */
  color: #1A1A1A;
  font-size: 15px;
  line-height: 1.6;
}

/* Top bar — hidden on print */
.pg-head {
  background: #fff;
  border-bottom: 1px solid #E1DEDA;
  position: sticky;
  top: 0;
  z-index: 5;
}
.pg-head__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: .6rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pg-back {
  color: #64625C;
  font-size: .85rem;
  text-decoration: none;
}
.pg-back:hover { color: #1A1A1A; text-decoration: underline; }
.pg-head__brand {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
}
.pg-print {
  background: #1A1A1A;
  color: #fff;
  border: 0;
  padding: .45rem .95rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
}

/* Article container */
.pg {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.6rem 4rem;
}
.pg-article {
  background: #fff;
  padding: 3rem 3rem;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

.pg-kicker {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8A8780;
  margin: 0 0 .6rem;
  font-weight: 600;
}
.pg-title {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
.pg-sub {
  font-size: 1.02rem;
  color: #4A4842;
  margin: 0 0 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #E1DEDA;
}
.pg-sub strong { color: #1A1A1A; }

.pg-tldr {
  background: #FBFAF7;
  border: 1px solid #E1DEDA;
  border-left: 3px solid #1A1A1A;
  padding: 1.1rem 1.4rem;
  margin: 0 0 2rem;
}
.pg-tldr h2 {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .7rem;
}
.pg-tldr ul {
  margin: 0;
  padding-left: 1.2rem;
}
.pg-tldr li { margin-bottom: .4rem; }

.pg-section {
  margin: 2rem 0;
}
.pg-section h2 {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .7rem;
  color: #1A1A1A;
}
.pg-section p { margin: 0 0 .8rem; }
.pg-section ul, .pg-section ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.pg-section li { margin-bottom: .35rem; }

.pg-note {
  font-size: .85rem;
  color: #64625C;
  padding: .7rem .9rem;
  background: #FBFAF7;
  border-radius: 4px;
  margin: .8rem 0 0;
}
.pg-fact {
  background: #F3F1EB;
  padding: .7rem .9rem;
  border-radius: 4px;
  margin: .6rem 0 0;
  font-size: .92rem;
}
.pg-fact strong { font-weight: 700; }

.pg-table {
  width: 100%;
  border-collapse: collapse;
  margin: .8rem 0;
  font-size: .95rem;
}
.pg-table th, .pg-table td {
  text-align: left;
  padding: .55rem .85rem;
  border-bottom: 1px solid #E1DEDA;
}
.pg-table thead th {
  background: #F3F1EB;
  font-weight: 700;
  border-bottom: 1px solid #1A1A1A;
}
.pg-table td:first-child { font-weight: 600; }
.pg-table td:not(:first-child) { font-variant-numeric: tabular-nums; }

.pg-path {
  counter-reset: pg-step;
  list-style: none;
  padding-left: 0;
}
.pg-path li {
  counter-increment: pg-step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: .7rem;
}
.pg-path li::before {
  content: counter(pg-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #1A1A1A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}
.pg-list {
  list-style-position: outside;
}

.pg-cta {
  background: #FBFAF7;
  border: 1px solid #E1DEDA;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
  border-radius: 2px;
}
.pg-cta h2 { margin-top: 0; }

.pg-link {
  color: #1A1A1A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.pg-link:hover { text-decoration-thickness: 2px; }

.pg-foot {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid #E1DEDA;
  font-size: .82rem;
  color: #64625C;
}
.pg-foot p { margin: 0 0 .5rem; }
.pg-foot__meta {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .75rem;
  color: #8A8780;
}

/* Mobile */
@media (max-width: 640px) {
  .pg { padding: 1rem; }
  .pg-article { padding: 1.6rem 1.4rem; }
  .pg-title { font-size: 1.5rem; }
  .pg-sub { font-size: .95rem; }
}

/* Print — clean A4, no UI chrome */
@media print {
  @page { size: A4; margin: 16mm 18mm; }
  .pg-head, .pg-print, .pg-back { display: none !important; }
  .pg-body { background: #fff; color: #000; font-size: 10.5pt; }
  .pg { padding: 0; max-width: none; }
  .pg-article {
    box-shadow: none; padding: 0; background: #fff;
  }
  .pg-title { font-size: 18pt; }
  .pg-sub { font-size: 11pt; border-bottom: 1pt solid #000; padding-bottom: 8pt; }
  .pg-section h2 { font-size: 13pt; page-break-after: avoid; }
  .pg-section { page-break-inside: avoid; }
  .pg-tldr, .pg-cta, .pg-note, .pg-fact {
    background: transparent !important;
    border-color: #000 !important;
  }
  .pg-table th { background: transparent !important; border-bottom: 1pt solid #000; }
  .pg-path li::before {
    background: transparent !important;
    color: #000 !important;
    border: 1pt solid #000;
  }
  .pg-link { color: #000; }
  a[href]:not(.pg-link)::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
