/* Rechner: Logo-Leiste unter dem Ergebnis und Druckvorlage für „Als PDF speichern“ (2026-10-10) */
.rp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line, #DCE4E9); }
.rp-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--stone, #5A6A72); font-size: 12.5px; line-height: 1.3; }
.rp-brand img { height: 28px; width: auto; opacity: .85; transition: opacity .2s; }
.rp-brand:hover img { opacity: 1; }
.rp-pdf { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink, #0B4D62); background: #fff; border: 1px solid #C9D5DC; border-radius: 3px; padding: 9px 14px; cursor: pointer; transition: border-color .2s; }
.rp-pdf:hover { border-color: var(--ink, #0B4D62); }
.rp-pdf svg { width: 17px; height: 17px; }
.rp-print-head, .rp-print-foot, .rp-angaben { display: none; }
@media (max-width: 640px) { .rp-brand span { display: none; } }

@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; animation: none !important; transition: none !important; }
  body { font-size: 10.5pt; }
  main#inhalt { zoom: .8; }
  /* Seitenteile ausblenden */
  nav#main-nav, .skip, footer.site-foot, .cta-band, .crumbs, .page-head .lead, .rp-bar, .af-more, .af-tab-switch,
  .result-actions, .restart-btn, .quiz-card, #af-empty, #ga-empty, .ga-empty, #result-empty, .bg-mist, .ga-law summary { display: none !important; }
  .ga-law[open] p, .ga-law p { display: none !important; }
  /* Nur die gewählte Antwort zeigen */
  .ga-toggle button[aria-pressed="false"], .toggle-btn:not(.active) { display: none !important; }
  .ga-toggle { display: block !important; }
  .ga-toggle button, .toggle-btn { border: 0 !important; background: none !important; padding: 0 !important; font-weight: 600 !important; color: #0B4D62 !important; text-align: left; }
  /* Kopf und Fuß des PDF */
  .rp-print-head { display: flex !important; align-items: center; gap: 16px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1.5px solid #0B4D62; }
  .rp-print-head img { height: 40px; width: auto; }
  .rp-print-head strong { display: block; font-size: 14pt; font-weight: 600; color: #0B4D62; }
  .rp-print-head span { font-size: 9pt; color: #5A6A72; }
  .rp-print-foot { display: block !important; margin-top: 18px; padding-top: 8px; border-top: 1px solid #DCE4E9; font-size: 8pt; color: #5A6A72; }
  .rp-print-foot p { margin: 0 0 3px; }
  .rp-print-foot { break-inside: avoid; page-break-inside: avoid; }
  .result-card, #result-card { padding: 14px 18px !important; border: 1px solid #DCE4E9 !important; }
  .result-check { display: none !important; }
  .rp-angaben { display: block !important; margin: 0 0 14px; }
  .rp-angaben h3 { font-size: 11pt; margin: 0 0 6px; color: #1A2930; }
  .rp-angaben ul { list-style: none; margin: 0; padding: 0; }
  .rp-angaben li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid #DCE4E9; font-size: 9.5pt; }
  .rp-angaben li strong { color: #0B4D62; text-align: right; }
  /* Seitenkopf der Rechnerseite klein */
  .page-head { padding: 0 0 8px !important; border: 0 !important; }
  .page-head h1, .page-head .display { font-size: 18pt !important; margin: 0 !important; display: none !important; }
  /* Layout einspaltig, Abstände kleiner */
  .wrap { max-width: none !important; padding: 0 !important; }
  .ga, .calc-section, .sec { padding: 0 !important; }
  .ga-grid, .calc-grid { display: block !important; }
  .ga-card, .input-card { padding: 12px 14px !important; margin-bottom: 14px !important; border: 1px solid #DCE4E9 !important; }
  .ga-field, .field { display: flex !important; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 !important; padding: 5px 0 !important; border-bottom: 1px solid #DCE4E9; }
  .ga-field > *:not(.ga-label):not(label), .field > *:not(label) { flex: 0 0 auto; }
  .ga-label, .field > label { margin: 0 !important; font-weight: 500 !important; flex: 1 1 auto !important; }
  .ga-input input, .zve-wrap input { text-align: right; width: 150px !important; }
  .af-two { display: flex !important; gap: 6px; }
  .af-two .ga-input input, .af-two select { width: auto !important; }
  .af-select select { background-image: none !important; padding: 0 !important; border: 0 !important; font-size: 11pt !important; }
  .ga-step, .card-title { margin: 10px 0 2px !important; }
  .input-card > div[style] { display: none !important; }
  .toggle-group { display: block !important; }
  .currency { position: static !important; margin-left: 4px; }
  .ga-hint, .field .hint, .hint { display: none !important; }
  .ga-sep { margin: 10px 0 !important; }
  .ga-input input, .ga-input select, .zve-wrap input, .input-wrap input, .kist-select-wrap select { border: 0 !important; padding: 0 !important; font-size: 11pt !important; background: none !important; }
  .ga-input span { position: static !important; transform: none !important; margin-left: 4px; }
  .ga-input { display: flex; align-items: baseline; }
  .ga-var, .af-basis, .ga-verdict, tr, .kennzahl, .chart-box, .chart-wrap, canvas, .result-section, .disclaimer, .rp-angaben li { break-inside: avoid; page-break-inside: avoid; }
  .af-tab-head, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .af-table-wrap { overflow: visible !important; }
  .af-table { font-size: 9pt !important; }
  .af-table td, .af-table th { padding: 3px 6px !important; }
  .fade-in, .reveal, .js .fade-in { opacity: 1 !important; transform: none !important; }
  a { color: inherit !important; text-decoration: none !important; }
}
