/* Druckbare Dokumente (Elterninformation + Einverständnis, /einverstaendnis).
   Auf dem Bildschirm ein ruhiges "Blatt Papier" im Stellio-Stil, beim Drucken
   eine saubere A4-Seite ohne Knöpfe, Sprachwahl und Helfer-Chat. */

/* ── Leiste oben (wird nicht gedruckt) ─────────────────────────────────────── */
.doc-bar {
  max-width: 720px; margin: 0 auto; padding: 28px 24px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
}
.doc-bar .doc-back { font-size: 13px; color: var(--text-muted); margin-right: auto; }
.doc-bar .doc-back:hover { color: var(--text); }
.doc-langs {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--bg-second); border-radius: var(--r-pill);
}
.doc-langs a {
  min-width: 38px; height: 30px; padding: 0 10px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.doc-langs a:hover { color: var(--text); text-decoration: none; }
.doc-langs a[aria-current="true"] { background: #FFFFFF; color: var(--gold-text); box-shadow: var(--shadow-soft); }
.doc-langs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.doc-print { gap: 8px; }
.doc-print svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Das Blatt ─────────────────────────────────────────────────────────────── */
.print-doc { max-width: 720px; margin: 0 auto; padding: 32px 24px 60px; }
.print-doc[hidden] { display: none; }
.doc-sheet {
  background: #FFFFFF; border: 1px solid var(--card-border); border-radius: var(--r-card);
  box-shadow: var(--shadow-lift); padding: 40px 44px 36px;
}
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.doc-brand { display: inline-flex; align-items: center; gap: 8px; }
.doc-brand img { width: 26px; height: 26px; }
.doc-brand span { font-family: var(--font-title); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: var(--text); }
.doc-url { font-size: 12px; color: var(--text-muted); }

/* Überschriften wie legal.css */
.print-doc h1 { font-family: var(--font-title); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 18px; }
.print-doc h2 { font-family: var(--font-title); font-weight: 700; font-size: 16px; margin: 22px 0 6px; color: var(--text); }
.print-doc p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 8px; }
.print-doc .doc-salute { color: var(--text); font-weight: 600; }
.print-doc strong { color: var(--text); }

/* Abtrennlinie */
.doc-cut {
  border-top: 2px dashed #A1A1AA; margin: 36px 0 20px; padding-top: 8px;
  font-size: 12px; color: #71717A;
  display: flex; align-items: center; gap: 6px;
}
.doc-cut svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Abschnitt zum Abtrennen: Formularzeilen mit Unterstrich-Linien */
.doc-consent { break-inside: avoid; page-break-inside: avoid; }
.doc-consent h2 { margin-top: 0; }
.doc-row { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 20px 0 0; }
.doc-field { flex: 1 1 220px; display: flex; align-items: flex-end; gap: 8px; font-size: 13px; color: var(--text); }
.doc-field.short { flex: 0 1 180px; }
.doc-field label, .doc-field > span:first-child { white-space: nowrap; }
.doc-line { flex: 1; min-width: 60px; border-bottom: 1.5px solid #52525B; height: 22px; }
.doc-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; font-size: 14px; color: var(--text); line-height: 1.5; }
.doc-box { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; border: 1.5px solid #52525B; border-radius: 4px; }

/* ── Handy ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .doc-bar { padding: 20px 16px 14px; }
  .doc-bar .doc-back { width: 100%; }
  .print-doc { padding: 8px 16px 48px; }
  .doc-sheet { padding: 26px 20px 24px; border-radius: 18px; }
  .print-doc h1 { font-size: 22px; }
  .doc-url { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .doc-langs a { transition: none; }
}

/* ── Druck: eine saubere A4-Seite ──────────────────────────────────────────── */
@media print {
  .no-print, .sh-fab, .sh-panel { display: none !important; }
  body { background: #fff; }
  .print-doc { padding: 0; max-width: none; }
  .doc-sheet { border: none; border-radius: 0; box-shadow: none; padding: 0; }
  .doc-head { margin-bottom: 20px; }
  .print-doc h1 { font-size: 22px; margin-bottom: 14px; }
  .print-doc h2 { font-size: 14.5px; margin: 18px 0 4px; }
  .print-doc p { font-size: 12.5px; line-height: 1.55; margin-bottom: 6px; color: #27272A; }
  .doc-cut { margin: 30px 0 18px; }
  .doc-check { font-size: 13px; margin-top: 22px; }
  .doc-row { margin-top: 26px; }
  .doc-field { font-size: 12.5px; }
  .doc-line { height: 26px; }
  a { color: inherit; }
  @page { size: A4; margin: 18mm; }
}
