/* Stellenbeschreibungen – Verwaltungsseite.
   Look wie Volunteer/Fahrzeug Management: blauer Verlauf, weisse Schrift,
   weisse Tabellen. Alle Eingabefelder, Auswahllisten und Knöpfe gleich hoch. */

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

.sb-wrap {
    --sb-h: 40px;
    --sb-line: var(--zp-line, rgba(255, 255, 255, 0.25));
    --sb-soft: var(--zp-soft, rgba(255, 255, 255, 0.07));
    --sb-acc: #2271b1;
    max-width: 100%;
    background: var(--zp-bg, linear-gradient(135deg, rgb(34, 80, 227) 0%, rgb(0, 25, 61) 100%));
    color: var(--zp-text, #fff);
    padding: 28px 32px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    font-size: 15px;
    line-height: 1.45;
}
.sb-wrap h2, .sb-wrap h3, .sb-wrap h4, .sb-wrap p, .sb-wrap label { color: var(--zp-text, #fff); }
.sb-wrap h2 { margin: 0; }
.sb-wrap h3 { margin: 0 0 14px; font-size: 1.2rem; }
.sb-wrap a { color: var(--zp-link, #e7ecff); }

/* ---------- Eingabefelder: einheitliche Höhe ---------- */
.sb-wrap input[type=text], .sb-wrap input[type=number], .sb-wrap input[type=date],
.sb-wrap input[type=search], .sb-wrap input[type=email], .sb-wrap input[type=url],
.sb-wrap select {
    height: var(--sb-h) !important;
    min-height: var(--sb-h);
    padding: 0 10px !important;
    margin: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #222 !important;
    font-size: 15px !important;
    line-height: normal !important;
    box-shadow: none !important;
    max-width: 100%;
}
.sb-wrap select { padding-right: 28px !important; }
.sb-wrap textarea {
    width: 100%; min-height: calc(var(--sb-h) * 2); padding: 8px 10px; margin: 0;
    border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #222; font-size: 15px; font-family: inherit;
}
.sb-wrap input[type=file] { color: var(--zp-text, #fff); font-size: 14px; height: var(--sb-h); padding: 8px 0; }
.sb-wrap input[type=checkbox], .sb-wrap .sb-field input[type=checkbox] { width: 18px !important; height: 18px !important; min-width: 18px; margin: 0 !important; padding: 0 !important; flex: none; accent-color: #2271b1; }
.sb-wrap .sb-field input[type=file] { width: 100% !important; }

/* ---------- Knöpfe ---------- */
.sb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: var(--sb-h, 40px); padding: 0 18px; margin: 0;
    background: #2271b1; color: #fff !important; border: 1px solid #2271b1; border-radius: 4px;
    font-size: 15px; line-height: 1; text-decoration: none !important; cursor: pointer; white-space: nowrap;
}
.sb-btn:hover { background: #135e96; border-color: #135e96; }
.sb-btn-light { background: var(--zp-soft, rgba(255,255,255,0.1)); border-color: var(--zp-line, rgba(255,255,255,0.45)); }
.sb-btn-light:hover { background: var(--zp-soft, rgba(255,255,255,0.2)); border-color: #fff; }
.sb-btn-small { height: 32px; padding: 0 12px; font-size: 14px; }
.sb-btn-danger { background: #c62828; border-color: #c62828; }
.sb-btn-danger:hover { background: #a31f1f; }
.sb-link-danger { background: none; border: 0; padding: 0; color: #ff8a8a; cursor: pointer; text-decoration: underline; font-size: 0.88em; }
.sb-table .sb-link-danger { color: #b32d2e; }

/* ---------- Kopf, Tabs, Meldungen ---------- */
.sb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sb-head .zbv-account-links a { color: var(--zp-link, #e7ecff); }
.sb-applink { font-size: 0.9rem; padding: 8px 12px; background: var(--sb-soft); border: 1px solid var(--sb-line); border-radius: 6px; }
.sb-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #ddd; margin: 16px 0 20px; }
.sb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; color: var(--zp-link, #e7ecff) !important; text-decoration: none !important; border: 1px solid transparent; border-bottom: none; border-radius: 4px 4px 0 0; }
.sb-tab:hover { background: var(--zp-soft, rgba(255,255,255,0.15)); }
.sb-tab-active { background: #fff; color: #17335c !important; border-color: #ddd; font-weight: 600; position: relative; top: 2px; }
.sb-msg { padding: 10px 14px; border-radius: 4px; margin: 0 0 16px; }
.sb-msg-ok { background: #d4edda; color: #155724; }
.sb-msg-error { background: #f8d7da; color: #721c24; }

/* ---------- Badges ---------- */
.sb-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.78em; font-weight: 600; background: #e3e8f0; color: #17335c; vertical-align: middle; white-space: nowrap; }
.sb-badge-warn { background: #f59f00; color: #111; }
.sb-badge-ok { background: #2f9e44; color: #fff; }
.sb-badge-err { background: #c62828; color: #fff; }
.sb-badge-anlass { background: #7048e8; color: #fff; }
.sb-badge-frei { background: #0b7285; color: #fff; }
.sb-tab-active .sb-badge { background: #17335c; color: #fff; }

/* ---------- Werkzeugleiste / Filter ---------- */
.sb-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sb-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.sb-filter input[type=search], .sb-filter input[type=text] { width: 240px !important; }
.sb-filter select { width: auto !important; min-width: 160px; }
.sb-inline { display: inline-flex; align-items: center; gap: 6px; height: var(--sb-h); white-space: nowrap; }
.sb-inline input[type=date], .sb-inline input[type=number] { width: auto !important; }

/* ---------- Boxen ---------- */
.sb-box { background: var(--sb-soft); border: 1px solid var(--sb-line); border-radius: 8px; padding: 18px 22px; margin: 0 0 18px; }
.sb-box-wide { width: 100%; }
.sb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }
.sb-cols > .sb-box { margin: 0; }
.sb-cols + .sb-box, .sb-cols + .sb-cols { margin-top: 18px; }

/* ---------- Formular-Raster ---------- */
.sb-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 16px 18px;
    align-items: end;          /* Felder unten bündig, auch wenn eine Beschriftung umbricht */
    margin-bottom: 16px;
}
.sb-form-grid-tight { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px 14px; margin-bottom: 12px; }
.sb-span-2 { grid-column: span 2; }
@media (max-width: 560px) { .sb-span-2 { grid-column: auto; } }
.sb-form-sub { margin: 6px 0 12px !important; padding-top: 14px; border-top: 1px solid var(--sb-line); font-size: 1rem; }
.sb-wrap .sb-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; min-width: 0; }
.sb-form-grid > .sb-field { margin: 0; }
.sb-wrap .sb-field > label { font-weight: 600; font-size: 0.9rem; margin: 0; }
.sb-field input, .sb-field select, .sb-field textarea { width: 100% !important; }
.sb-field-small input { width: 100% !important; }
.sb-field-check { justify-content: flex-end; }
.sb-field-check > label { display: flex; align-items: center; gap: 8px; min-height: var(--sb-h); font-weight: 600; }
.sb-field-check .sb-hint { margin-top: -6px; }
.sb-static { display: flex; align-items: center; height: var(--sb-h); font-weight: 600; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sb-hint, .sb-small { font-size: 0.85em; color: var(--zp-link, #d7e0ff); }
.sb-muted { opacity: 0.6; font-weight: 400; }

/* Buchungsformulare in den Boxen */

/* Stammdaten */

/* ---------- Tabellen (weiss, wie in den anderen Plugins) ---------- */
.sb-table-wrap { overflow-x: auto; }
.sb-table { width: 100%; border-collapse: collapse; background: #fff; color: #222; font-size: 0.92rem; margin: 0 0 6px; }
.sb-table th, .sb-table td { border: 1px solid #ddd; padding: 7px 9px; text-align: left; vertical-align: top; color: #222; }
.sb-table th { background: #f5f5f5; font-weight: 600; white-space: nowrap; }
.sb-table tr:nth-child(even) td { background: #fafafa; }
.sb-table a { color: #2271b1; }
.sb-table .sb-small, .sb-table .sb-hint { color: #666; }
.sb-table .sb-field > label, .sb-table label { color: #222; }
.sb-table details summary { color: #2271b1; cursor: pointer; }
.sb-table details form { margin-top: 8px; }
.sb-table details .sb-field { margin-bottom: 8px; }
.sb-table details .sb-field input, .sb-table details .sb-field select { min-width: 160px; }
.sb-num { text-align: right !important; white-space: nowrap; }
.sb-inaktiv td { opacity: 0.55; }
.sb-row-warn td { background: #fff4e0 !important; }

@media (max-width: 640px) {
    .sb-wrap { padding: 18px 14px; }
    .sb-filter input[type=search], .sb-filter input[type=text], .sb-filter select { width: 100% !important; }
    }


/* ================================================================
   Stellenbeschreibungen
   ================================================================ */
.sb-wrap { --sb-red: #c8102e; }
.sb-head h2 a { color: var(--zp-text, #fff) !important; text-decoration: none; }
.sb-msg-warn { background: #fff3cd; color: #664d03; }
.sb-msg-info { background: var(--zp-soft, rgba(255,255,255,0.12)); color: var(--zp-text, #fff); border: 1px solid var(--sb-line); }
.sb-crumbs { font-size: 0.9rem; margin: 4px 0 14px; color: var(--zp-link, #d7e0ff); }
.sb-strong { font-weight: 700; }
.sb-nowrap { white-space: nowrap; }
.sb-mt { margin-top: 14px; }
.sb-sep { opacity: .7; margin: 0 4px; }

/* Übersicht */
.sb-gruppe { margin: 0 0 22px; }
.sb-gruppe-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--sb-line); margin-bottom: 8px; }
.sb-gruppe-kopf h3 { margin: 0 0 6px; }
.sb-gruppe .sb-hint { margin: 4px 0 0; }

/* Funktion */
.sb-fkopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sb-ftitel { font-size: 1.5rem !important; margin: 0 0 2px !important; }
.sb-fmeta { margin: 0; color: var(--zp-link, #d7e0ff) !important; }
.sb-box-entwurf { border-color: #f59f00; background: rgba(245,159,0,0.12); }
.sb-entwurf-zeile { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.sb-freigabe-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--sb-line); }
.sb-freigabe-form label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sb-freigabe-form input[type=text] { width: 80px !important; }
.sb-inline-form { display: inline; margin: 8px 0 0; }
.sb-box-entwurf .sb-inline-form { display: block; }
.sb-btn-ok { background: #2f9e44; border-color: #2f9e44; }
.sb-btn-ok:hover { background: #237a35; border-color: #237a35; }
.sb-toolbar-doc { margin: 0 0 10px; }
.sb-paper { overflow-x: auto; background: #fff; border-radius: 6px; padding: 32px 36px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.sb-paper .sb-doc h2, .sb-paper .sb-doc h3, .sb-paper .sb-doc p, .sb-paper .sb-doc li { color: inherit; }
.sb-paper .sb-doc h2 { color: var(--sb-red); }
.sb-paper .sb-doc-tab th, .sb-paper .sb-doc-tab td { color: #1a1a1a; }
.sb-paper .sb-doc-tab thead th { color: var(--zp-text, #fff); }

/* Bearbeiten */
.sb-edit .sb-box h3 { color: var(--zp-text, #fff); }
.sb-edit h4 { margin: 0 0 6px; color: var(--zp-text, #fff); }
.sb-field-wide { grid-column: 1 / -1; }
.sb-field-inline { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 10px !important; margin-top: 12px !important; }
.sb-field-inline input { width: auto !important; min-width: 180px; }
.sb-field-inline .sb-hint { flex-basis: 100%; }
.sb-anf > div + div { margin-top: 14px; }
.sb-edit-tab thead[hidden] { display: none; }
.sb-rows { margin: 0; }
.sb-edit-tab { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.sb-edit-tab th { text-align: left; font-size: 0.85rem; font-weight: 600; padding: 0 6px 4px 0; color: var(--zp-text, #fff); }
.sb-edit-tab td { padding: 0 6px 6px 0; vertical-align: top; }
.sb-wrap .sb-edit-tab input[type=text], .sb-wrap .sb-edit-tab input[type=date], .sb-wrap .sb-edit-tab select { width: 100% !important; }
.sb-wrap .sb-edit-tab textarea { min-height: var(--sb-h); height: var(--sb-h); padding: 9px 10px; resize: vertical; line-height: 1.3; }
.sb-wrap textarea::placeholder, .sb-wrap input::placeholder { color: #8a8f98; font-style: italic; opacity: 1; }
.sb-row-tools { width: 1%; white-space: nowrap; }
.sb-icon { width: 30px; height: var(--sb-h); border: 1px solid var(--zp-line, rgba(255,255,255,0.35)); background: transparent; color: var(--zp-text, #fff); border-radius: 4px; cursor: pointer; font-size: 15px; padding: 0; margin-left: 2px; }
.sb-icon:hover { background: var(--zp-soft, rgba(255,255,255,0.15)); }
.sb-icon-del:hover { background: #c62828; border-color: #c62828; }
.sb-savebar { position: sticky; bottom: 0; z-index: 5; background: rgb(14, 41, 110); }
.sb-savebar .sb-inline input[type=text] { width: 80px !important; }
.sb-danger-zone { border-color: rgba(255,120,120,.5); }

@media (max-width: 760px) {
    .sb-paper { padding: 16px 12px; }
    .sb-edit-tab thead { display: none; }
    .sb-edit-tab, .sb-edit-tab tbody, .sb-edit-tab tr, .sb-edit-tab td { display: block; width: 100%; }
    .sb-edit-tab tr { border: 1px solid var(--sb-line); border-radius: 6px; padding: 8px 8px 2px; margin-bottom: 10px; }
    .sb-edit-tab td { padding: 0 0 6px; }
    .sb-wrap .sb-edit-tab textarea { height: auto; min-height: 64px; }
    .sb-edit-tab td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; margin-bottom: 2px; }
    .sb-edit-liste td[data-label]::before { display: none; }
    .sb-row-tools { width: 100%; text-align: right; }
    .sb-savebar { position: static; }
}
/* Übersicht: gleiche Spaltenbreiten in allen Bereichen */
.sb-gruppe .sb-table { table-layout: fixed; min-width: 760px; }
.sb-gruppe .sb-table th:nth-child(1) { width: 28%; }
.sb-gruppe .sb-table th:nth-child(2) { width: 16%; }
.sb-gruppe .sb-table th:nth-child(3) { width: 11%; }
.sb-gruppe .sb-table th:nth-child(4) { width: 14%; }
.sb-gruppe .sb-table th:nth-child(5) { width: 12%; }
.sb-gruppe .sb-table th:nth-child(6) { width: 19%; }
.sb-gruppe .sb-table th { white-space: normal; }

/* 1.1.0: Formularzeilen – Beschriftung links, Feld rechts, sauber ausgerichtet */
.sb-rowform { display: block; }
.sb-row { display: grid; grid-template-columns: 220px minmax(0, 560px); gap: 4px 20px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--sb-line); }
.sb-row:last-child { border-bottom: 0; }
.sb-wrap .sb-row > label, .sb-row > .sb-row-label { display: block; margin: 0; padding: 0; min-height: var(--sb-h); line-height: var(--sb-h); font-weight: 600; font-size: 0.95rem; color: var(--zp-text, #fff); }
.sb-row-ctl { min-width: 0; }
.sb-wrap .sb-row-ctl input[type=text], .sb-wrap .sb-row-ctl input[type=email], .sb-wrap .sb-row-ctl select { width: 100% !important; display: block; }
.sb-row-ctl .sb-static { height: auto; min-height: var(--sb-h); line-height: 1.3; padding: 10px 0; font-weight: 600; }
.sb-row-ctl .sb-hint { display: block; margin-top: 5px; line-height: 1.35; }
.sb-fmeta { font-size: .95rem; text-transform: none; }
@media (max-width: 640px) {
    .sb-row { grid-template-columns: 1fr; }
    .sb-wrap .sb-row > label, .sb-row > .sb-row-label { min-height: 0; line-height: 1.3; }
}

/* 1.2.0 */
.sb-td-hidden { display: none !important; }
.sb-oben { margin: 0 0 14px; padding: 8px 12px; border: 1px dashed var(--sb-line); border-radius: 6px; font-size: .95rem; }
.sb-gruppe-info { margin: -2px 0 8px !important; font-size: .88rem; color: var(--zp-link, #d7e0ff) !important; }
.sb-gruppe-ohne { border: 1px solid #f59f00; border-radius: 8px; padding: 10px 12px; }
.sb-badge-rolle { background: #fff3bf; color: #5c3c00; }
.sb-row-leitung td { font-weight: 600; }
.sb-check { display: inline-flex !important; align-items: center; gap: 8px; min-height: var(--sb-h); font-weight: 400 !important; color: var(--zp-text, #fff); }
.sb-form-sub { margin: 18px 0 4px !important; padding-top: 10px; border-top: 1px solid var(--sb-line); color: var(--zp-text, #fff); }
.sb-table-bereiche input[type=text], .sb-table-bereiche input[type=email], .sb-table-bereiche select { width: 100% !important; min-width: 120px; }
.sb-wrap input[type=color] { width: 56px; height: var(--sb-h); padding: 2px; border: 1px solid #ccc; border-radius: 4px; background: #fff; }
.sb-org-canvas { background: #fff; border-radius: 6px; overflow: auto; padding: 0; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.sb-org-canvas svg { display: block; max-width: none; }
.sb-org-link rect { transition: fill .15s; }
.sb-org-link:hover rect { fill: #fff8e1; }
.sb-bkarte { border: 1px solid var(--sb-line); border-radius: 8px; padding: 12px 14px; margin: 0 0 10px; background: var(--zp-soft, rgba(255,255,255,.04)); }
.sb-bkarte-inaktiv { opacity: .65; }
.sb-bgrid { display: grid; grid-template-columns: 2fr 2fr 1.4fr 2fr 100px auto; gap: 8px 12px; align-items: end; margin-bottom: 8px; }
.sb-bgrid label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; margin: 0; color: var(--zp-text, #fff); }
.sb-bgrid label.sb-check { flex-direction: row; min-height: var(--sb-h); }
.sb-bgrid input[type=text], .sb-bgrid input[type=email], .sb-bgrid input[type=number], .sb-bgrid select { width: 100% !important; }
.sb-bkarte .sb-actions form { display: inline; margin: 0; }
.sb-table details summary { color: #2271b1; cursor: pointer; }
@media (max-width: 900px) { .sb-bgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sb-bgrid { grid-template-columns: 1fr; } }

/* 1.3.0: Gruppen */
.sb-gruppenblock { border: 1px solid var(--sb-line); border-left: 4px solid #fff; border-radius: 8px; padding: 10px 14px 4px; margin: 0 0 20px; background: var(--zp-soft, rgba(255,255,255,.03)); }
.sb-gruppenkopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.sb-gruppenkopf h3 { margin: 0 !important; font-size: 1.7rem !important; }
.sb-gruppenkopf .sb-gruppe-info { margin: 0 !important; }
.sb-bereich-unter { margin-left: 6px; }
.sb-bereich-unter .sb-gruppe-kopf h4 { margin: 0 0 6px; font-size: 1.08rem; color: var(--zp-text, #fff); }
.sb-bgruppe { margin: 16px 0 6px !important; color: var(--zp-text, #fff); font-size: 1rem; border-bottom: 1px solid var(--sb-line); padding-bottom: 4px; }
.sb-bgrid { grid-template-columns: 2fr 1.6fr 2fr 2fr 1.4fr 90px auto; }
.sb-ggrid { grid-template-columns: 2fr 2fr 1.5fr 100px auto; }
.sb-bgrid .sb-static { min-height: var(--sb-h); display: flex; align-items: center; font-weight: 400; }
.sb-check-zelle { min-height: var(--sb-h); color: var(--zp-text, #fff); font-size: .9rem; }
@media (max-width: 900px) { .sb-bgrid, .sb-ggrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sb-bgrid, .sb-ggrid { grid-template-columns: 1fr; } }

/* 1.4.0: Bereichsleitung beim Bereich, Verschieben */
.sb-bgrid-1 { grid-template-columns: 2fr 1.6fr 1.6fr 100px auto; }
.sb-bgrid-2 { grid-template-columns: 2fr 2fr 1.3fr 2fr; padding-top: 8px; border-top: 1px dashed var(--sb-line); }
.sb-bgrid-titel { grid-column: 1 / -1; font-weight: 700; font-size: .9rem; color: var(--zp-text, #fff); margin-bottom: -4px; }
.sb-bgrid-info { grid-column: 1 / -1; margin-top: -6px; }
.sb-bkarte-neu { border-style: dashed; }
.sb-move { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.sb-table .sb-move { display: flex; margin-top: 6px; }
.sb-wrap .sb-table .sb-move select { height: 28px !important; min-height: 28px; font-size: 12px !important; padding: 0 20px 0 6px !important; width: 100% !important; max-width: 100%; color: #555 !important; border-color: #ddd !important; background-color: #fafafa !important; }
.sb-kopf-aktionen { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.sb-kopf-aktionen .sb-move label { display: inline-flex; align-items: center; gap: 6px; color: var(--zp-link, #d7e0ff); }
.sb-wrap .sb-kopf-aktionen .sb-move select { height: 30px !important; min-height: 30px; font-size: 13px !important; padding: 0 24px 0 8px !important; width: auto !important; }
.sb-movebar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 12px; margin: 0 0 14px; border: 1px solid var(--sb-line); border-radius: 6px; }
.sb-movebar select { width: auto !important; min-width: 200px; }
@media (max-width: 900px) { .sb-bgrid-1, .sb-bgrid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sb-bgrid-1, .sb-bgrid-2 { grid-template-columns: 1fr; } }

/* 1.5.0: Geheimer Link */
.sb-linkzeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.sb-wrap .sb-linkzeile input[type=text] { flex: 1 1 360px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px !important; }
.sb-link-aus input { opacity: .55; }
.sb-oeffentlich .sb-head h2 { font-size: 1.6rem; }
#sb-org svg a, #sb-org svg a text { text-decoration: none !important; }
#sb-org .sb-org-offen rect { stroke-dasharray: 5 3; }
#sb-org .sb-org-offen text { opacity: .75; }
/* Sortieren innerhalb des Bereichs */
.sb-sort-zelle { display: inline-block; width: 60px; vertical-align: middle; }
.sb-sort { display: inline-flex; gap: 2px; margin: 0; vertical-align: middle; }
.sb-wrap .sb-sort .sb-sort-btn { width: 26px; height: 24px; min-height: 24px; padding: 0 !important; font-size: 11px !important; line-height: 1; border: 1px solid #ccc !important; border-radius: 4px; background: #fff !important; color: #333 !important; cursor: pointer; }
.sb-wrap .sb-sort .sb-sort-btn:hover:not([disabled]) { background: #f1f3f5 !important; }
.sb-wrap .sb-sort .sb-sort-btn[disabled] { opacity: .3; cursor: default; }
.sb-fzeile { display: flex; gap: 8px; align-items: flex-start; }
.sb-fzeile .sb-sort-zelle { flex: 0 0 56px; width: 56px; }

/* ---- Abhängige Funktionen, Ziehen und Ablegen, Markierung (ab 2.0.0) ---- */
.sb-ast-wrap { display: flex; gap: 6px; align-items: flex-start; padding-left: calc((var(--t, 1) - 1) * 22px); }
.sb-ast { color: #868e96; font-weight: 700; }
.sb-griff { flex: 0 0 14px; width: 14px; color: #adb5bd; cursor: grab; user-select: none; line-height: 1.6; }
.sb-griff-leer { cursor: default; }
.sb-dnd tr[draggable="true"]:hover .sb-griff { color: #495057; }
.sb-dnd tr.sb-zieht { opacity: .45; }
.sb-dnd tr.sb-dz-vor td { box-shadow: inset 0 3px 0 #1971c2; }
.sb-dnd tr.sb-dz-nach td { box-shadow: inset 0 -3px 0 #1971c2; }
.sb-dnd tr.sb-dz-in td { background: #e7f1fb; }
.sb-dnd tr.sb-dz-in td:first-child { box-shadow: inset 4px 0 0 #1971c2; }
.sb-dnd tr.sb-dz-links td:first-child { box-shadow: inset -4px 0 0 #e67700; }
.sb-dnd.sb-laedt { opacity: .6; pointer-events: none; }
@keyframes sb-hl { 0%, 60% { background: #fff3bf; } 100% { background: transparent; } }
tr.sb-hl td { animation: sb-hl 4s ease-out; }
tr.sb-hl td:first-child { box-shadow: inset 4px 0 0 #f59f00; }
