/* Stellenbeschreibung im Layout der Vorlage (Bildschirm-Ansicht und Druckseite). */
.sb-doc { --sb-red: #c8102e; font-family: Arial, Helvetica, sans-serif; color: #1a1a1a; font-size: 14px; line-height: 1.45; background: #fff; }
.sb-doc * { box-sizing: border-box; }
.sb-doc h1, .sb-doc h2, .sb-doc h3, .sb-doc p, .sb-doc li, .sb-doc th, .sb-doc td { font-family: Arial, Helvetica, sans-serif; letter-spacing: normal; text-transform: none; }
.sb-doc-kopf { border-bottom: 2px solid var(--sb-red); padding-bottom: 10px; margin-bottom: 18px; }
.sb-doc-org { color: var(--sb-red); font-weight: 700; letter-spacing: .28em; font-size: 13px; }
.sb-doc h1 { font-size: 30px; line-height: 1.15; margin: 2px 0 4px; color: #1a1a1a; font-weight: 700; }
.sb-doc-funktion { font-size: 20px; color: #555; }
.sb-doc-stempel { display: inline-block; margin-top: 8px; padding: 3px 10px; border: 2px solid #e8590c; color: #e8590c; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-radius: 3px; }
.sb-doc-stempel-alt { border-color: #777; color: #777; }
.sb-doc h2 { color: var(--sb-red); font-size: 19px; line-height: 1.25; margin: 22px 0 8px; font-weight: 700; break-after: avoid; page-break-after: avoid; }
.sb-doc h3 { font-size: 14px; margin: 10px 0 4px; color: #1a1a1a; font-weight: 700; }
.sb-doc p { margin: 0 0 8px; color: #1a1a1a; }
.sb-doc ul { margin: 0 0 8px; padding-left: 22px; }
.sb-doc li { margin: 2px 0; color: #1a1a1a; }
.sb-doc-tab { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 13.5px; background: #fff; }
.sb-doc-tab th, .sb-doc-tab td { border: 1px solid #d0d0d0; padding: 6px 9px; text-align: left; vertical-align: top; color: #1a1a1a; background: #fff; }
.sb-doc-tab thead th { background: var(--sb-red); color: #fff; font-weight: 700; border-color: var(--sb-red); }
.sb-doc-tab tbody th { background: #f1f1f1; font-weight: 700; }
.sb-doc-tab tr { break-inside: avoid; page-break-inside: avoid; }
.sb-doc-eck tbody th { width: 33%; }
.sb-doc-total th, .sb-doc-total td { font-weight: 700; }
.sb-doc-freigabe td { height: 40px; }
.sb-doc-dash, .sb-doc-leer { color: #999; }
.sb-doc-neue-seite { break-before: page; page-break-before: always; }
.sb-prio { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sb-doc-check { width: 28px; text-align: center !important; padding-left: 4px !important; padding-right: 4px !important; }
.sb-kaestchen { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #333; border-radius: 2px; vertical-align: middle; background: #fff; }

/* Druckseite */
body.sb-print { margin: 0; background: #e9ecef; }
body.sb-print .sb-doc { max-width: 210mm; margin: 0 auto 30px; padding: 18mm 18mm 20mm; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.sb-print-bar { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; font-family: Arial, Helvetica, sans-serif; }
.sb-print-bar button { height: 38px; padding: 0 18px; background: #2271b1; color: #fff; border: 0; border-radius: 4px; font-size: 15px; cursor: pointer; }
.sb-print-bar a { color: #2271b1; font-size: 15px; }
@page { size: A4; margin: 16mm 16mm 18mm; @bottom-right { content: "Seite " counter(page) " von " counter(pages); font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #555; } @bottom-left { font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #555; } }
@media print {
    body.sb-print { background: #fff; }
    body.sb-print .sb-doc { max-width: none; margin: 0; padding: 0; box-shadow: none; }
    .sb-print-bar { display: none; }
    .sb-doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 640px) {
    body.sb-print .sb-doc { padding: 16px 12px; }
    .sb-doc h1 { font-size: 24px; }
    .sb-doc-tab { font-size: 12.5px; }
    .sb-doc-tab th, .sb-doc-tab td { padding: 5px 6px; overflow-wrap: anywhere; hyphens: auto; }
    .sb-doc-tab thead th { font-size: 11.5px; }
}
