/* ===================================================================
   CopNet – Design: Rot / Schwarz / Grau / Weiß
   =================================================================== */
:root {
    --bg:        #0c0c0e;
    --bg-2:      #111114;
    --panel:     #17171b;
    --panel-2:   #1d1d22;
    --border:    #2a2a31;
    --border-2:  #34343c;
    --text:      #f4f4f6;
    --muted:     #9a9aa4;
    --muted-2:   #6c6c76;
    --red:       #e11d2a;
    --red-dark:  #b4141f;
    --red-glow:  rgba(225, 29, 42, .35);
    --green:     #21b573;
    --amber:     #e0a021;
    --blue:      #3b82f6;
    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 8px 30px rgba(0,0,0,.45);
    --sidebar-w: 250px;
}

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

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

/* ---- Layout ---- */
.layout { display: flex; min-height: 100vh; }

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 400px at 100% -10%, rgba(225,29,42,.06), transparent 60%),
        var(--bg);
}

/* ---- Sidebar ---- */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f0f12, #0a0a0c);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--border);
}
.brand-badge {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff; font-weight: 800; font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 0 18px var(--red-glow);
    letter-spacing: .5px;
}
.brand-logo {
    width: 44px; height: 44px; border-radius: 10px;
    object-fit: contain; background: #0a0a0c;
    border: 1px solid var(--border);
    box-shadow: 0 0 18px var(--red-glow);
    padding: 3px;
}
.login-logo {
    width: 76px; height: 76px; border-radius: 16px;
    object-fit: contain; background: #0a0a0c;
    border: 1px solid var(--border);
    box-shadow: 0 0 26px var(--red-glow);
    padding: 6px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; letter-spacing: .5px; }
.brand-tag  { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-section {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.6px;
    color: var(--muted-2); padding: 16px 12px 8px;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin: 2px 0;
    border-radius: var(--radius-sm);
    color: var(--muted); font-weight: 500;
    transition: background .15s, color .15s;
    border: 1px solid transparent;
}
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active {
    background: linear-gradient(90deg, rgba(225,29,42,.16), rgba(225,29,42,.02));
    color: #fff;
    border-color: rgba(225,29,42,.35);
}
.nav-item.active .nav-icon { color: var(--red); }
.nav-icon {
    width: 22px; text-align: center; font-size: 15px; color: var(--muted-2);
}

.sidebar-foot {
    padding: 14px 18px; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--muted);
    display: flex; align-items: center; gap: 8px;
}
.dot-online {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 8px var(--green);
}

/* ---- Topbar ---- */
.topbar {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 24px;
    background: rgba(12,12,14,.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 40;
}
.page-title { font-size: 19px; font-weight: 700; flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 14px; }
.tu-info { display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.tu-name { font-weight: 600; font-size: 14px; }
.tu-rank { font-size: 11.5px; }
.profile-link {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; margin: -6px -8px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    transition: background .15s, border-color .15s;
}
.profile-link:hover { background: var(--panel); border-color: var(--border); }
.profile-avatar {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(225,29,42,.45);
    background: linear-gradient(135deg, rgba(225,29,42,.28), var(--panel-2));
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px;
}

.hamburger {
    display: none;
    flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { width: 22px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .2s; }

.overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 45;
}
.overlay.show { display: block; }

/* ---- Content ---- */
.content { padding: 24px; flex: 1; }
.pagefoot {
    padding: 16px 24px; border-top: 1px solid var(--border);
    color: var(--muted-2); font-size: 12px; text-align: center;
}

/* ---- Flash ---- */
.flash {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-weight: 500;
    border: 1px solid var(--border);
}
.flash-success { background: rgba(33,181,115,.12); border-color: rgba(33,181,115,.4); color: #7de3b4; }
.flash-error   { background: rgba(225,29,42,.12);  border-color: rgba(225,29,42,.4);  color: #ff8b93; }
.flash-info    { background: rgba(59,130,246,.12);  border-color: rgba(59,130,246,.4);  color: #a9c8ff; }

/* ---- Cards / Panels ---- */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; gap: 12px;
}
.card-head h2 { font-size: 16px; font-weight: 700; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* Stat cards */
.stat {
    display: flex; flex-direction: column; gap: 6px;
    border-left: 3px solid var(--red);
}
.stat-value { font-size: 30px; font-weight: 800; line-height: 1; }
.stat-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.stat-icon { font-size: 18px; color: var(--red); }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; }
table.data thead th {
    background: var(--bg-2); color: var(--muted);
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px;
    border-bottom: 1px solid var(--border); position: sticky; top: 0;
}
table.data tbody tr { border-bottom: 1px solid var(--border); }
table.data tbody tr:hover { background: rgba(255,255,255,.02); }
table.data tbody tr:last-child { border-bottom: none; }
.mono { font-family: "Consolas", monospace; color: var(--muted); }

/* ---- Badges / status ---- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600;
    border: 1px solid var(--border-2); background: var(--panel-2); color: var(--muted);
}
.badge.red    { background: rgba(225,29,42,.15); border-color: rgba(225,29,42,.4); color: #ff8b93; }
.badge.green  { background: rgba(33,181,115,.14); border-color: rgba(33,181,115,.4); color: #7de3b4; }
.badge.amber  { background: rgba(224,160,33,.14); border-color: rgba(224,160,33,.4); color: #f2ce85; }
.badge.blue   { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.4); color: #a9c8ff; }
.badge.gray   { background: var(--panel-2); }

/* status → color mapping */
.st-offen, .st-aktiv, .st-eingelagert, .st-bestanden { }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 4px 14px var(--red-glow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--panel-2); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--panel); border-color: var(--red); }
.btn-danger { background: transparent; color: #ff8b93; border-color: rgba(225,29,42,.4); }
.btn-danger:hover { background: rgba(225,29,42,.12); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 14px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.field .hint { font-size: 12px; color: var(--muted-2); text-transform: none; letter-spacing: 0; }

input, select, textarea {
    background: var(--bg-2); border: 1px solid var(--border-2);
    color: var(--text); border-radius: var(--radius-sm);
    padding: 10px 12px; font-size: 14px; font-family: inherit; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}
input.input-locked, input[readonly] {
    color: var(--muted); cursor: not-allowed;
    background: repeating-linear-gradient(-45deg, var(--bg-2), var(--bg-2) 8px, rgba(255,255,255,.018) 8px, rgba(255,255,255,.018) 16px);
}
textarea { resize: vertical; min-height: 90px; }
select option { background: var(--bg-2); }

.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }

/* ---- Section header ---- */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-head .lead { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---- Login ---- */
.login-wrap {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(700px 400px at 50% -10%, rgba(225,29,42,.12), transparent 60%),
        var(--bg);
}
.login-card {
    width: 100%; max-width: 400px;
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--border); border-radius: 16px;
    padding: 34px; box-shadow: var(--shadow);
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; }
.login-brand .brand-badge { width: 56px; height: 56px; font-size: 20px; }
.login-brand h1 { font-size: 22px; letter-spacing: 1px; }
.login-brand p { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; }

/* ---- Profil / Modals ---- */
.profile-summary { display: flex; align-items: center; gap: 16px; }
.profile-summary .profile-avatar { width: 54px; height: 54px; font-size: 16px; flex-shrink: 0; }
.profile-summary h2 { font-size: 18px; }
.profile-summary p { color: var(--muted); font-size: 13px; }
.account-details { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; }
.account-details dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.account-details dd { font-weight: 600; }

.modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center; padding: 20px;
    background: rgba(0,0,0,.82); backdrop-filter: blur(8px);
}
.modal-backdrop[hidden] { display: none; }
.modal-open { overflow: hidden; }
.confirm-dialog { max-width: 430px; }
.confirm-dialog .modal-icon { font-weight: 900; }
.confirm-actions { justify-content: flex-end; margin-top: 22px; }
.confirm-actions .btn { min-width: 110px; justify-content: center; }

.share-panel {
    margin-bottom: 20px; padding: 16px 18px;
    background: linear-gradient(135deg, rgba(33,181,115,.09), var(--panel));
    border: 1px solid rgba(33,181,115,.35); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.share-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.share-panel-head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-panel-head .hint { width: 100%; }
.share-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.share-link-row input { font-family: "Consolas", monospace; font-size: 12px; }
.modal-dialog {
    width: min(100%, 500px); max-height: calc(100vh - 40px); overflow-y: auto;
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid rgba(225,29,42,.5); border-radius: 16px;
    padding: 28px; box-shadow: 0 20px 70px rgba(0,0,0,.7), 0 0 40px rgba(225,29,42,.12);
}
.modal-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    margin-bottom: 16px; border-radius: 12px;
    background: rgba(225,29,42,.15); border: 1px solid rgba(225,29,42,.4);
    color: #ff8b93; font-size: 22px;
}
.modal-dialog h2 { font-size: 21px; margin-bottom: 8px; }
.modal-dialog > p { color: var(--muted); margin-bottom: 20px; }

/* ---- Calculator ---- */
.calc-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.law-pick { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.law-item {
    display: flex; align-items: center; gap: 12px; justify-content: space-between;
    padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-2); cursor: pointer; transition: .12s;
}
.law-item:hover { border-color: var(--red); }
.law-item .li-main { min-width: 0; }
.law-item .li-title { font-weight: 600; }
.law-item .li-meta { font-size: 12px; color: var(--muted); }
.law-item .li-add { color: var(--red); font-weight: 800; font-size: 18px; }

.cart { position: sticky; top: 90px; }
.cart-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.cart-item .ci-title { font-size: 13.5px; }
.cart-item .ci-meta { font-size: 11.5px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 700; }
.qty span { min-width: 20px; text-align: center; }
.ci-remove { color: var(--muted); cursor: pointer; font-size: 16px; }
.ci-remove:hover { color: var(--red); }

.totals { margin-top: 16px; }
.total-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.total-row.grand { border-bottom: none; font-size: 18px; font-weight: 800; padding-top: 14px; }
.total-row.grand .val { color: var(--red); }

.modifiers { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }

/* ---- Detail lists ---- */
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { font-size: 14px; }

.empty {
    text-align: center; padding: 48px 20px; color: var(--muted);
    border: 1px dashed var(--border-2); border-radius: var(--radius);
}
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: .5; }

.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-size: 13px; }
.pill-tabs a.active { background: rgba(225,29,42,.16); border-color: rgba(225,29,42,.4); color: #fff; }

/* ---- Streife (Drag & Drop) ---- */
.streife-layout { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.pool { position: sticky; top: 88px; }
.pool-drop { min-height: 40px; }
.pool-drop.drop-hover { outline: 2px dashed var(--red); outline-offset: 4px; border-radius: 8px; }
.pool-count { color: var(--muted); font-size: 12px; }

.officer-chip {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px; margin-bottom: 8px;
    background: var(--bg-2); border: 1px solid var(--border-2);
    border-radius: 9px; cursor: grab; user-select: none;
    transition: border-color .12s, transform .05s;
}
.officer-chip:hover { border-color: var(--red); }
.officer-chip:active { cursor: grabbing; }
.officer-chip.dragging { opacity: .45; }
.chip-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}
.chip-body { min-width: 0; line-height: 1.15; }
.chip-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-meta { font-size: 11px; color: var(--muted); }
.chip-remove { margin-left: auto; color: var(--muted-2); cursor: pointer; font-size: 15px; padding: 0 2px; }
.chip-remove:hover { color: var(--red); }

.group-head {
    margin: 20px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px;
    color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.group-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.group-head:first-child { margin-top: 0; }

.patrol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 14px; }
.patrol-card {
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 13px; transition: border-color .12s, background .12s;
}
.patrol-card.drop-hover { border-color: var(--red); background: rgba(225,29,42,.07); box-shadow: 0 0 0 3px var(--red-glow); }
.patrol-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.patrol-name { font-weight: 700; font-size: 14px; }
.patrol-members { display: flex; flex-direction: column; gap: 6px; min-height: 24px; }
.patrol-empty { font-size: 12px; color: var(--muted-2); font-style: italic; padding: 8px 0; text-align: center; border: 1px dashed var(--border); border-radius: 8px; }
.patrol-card .officer-chip { margin-bottom: 0; }

/* ---- Personen-Picker (Autocomplete) ---- */
.person-picker { position: relative; }
.pp-box { position: relative; display: flex; align-items: center; }
.pp-box .pp-search { padding-right: 34px; }
.pp-clear {
    position: absolute; right: 10px; color: var(--muted-2); cursor: pointer;
    font-size: 14px; display: none;
}
.person-picker.has-value .pp-clear { display: block; }
.person-picker.has-value .pp-search { border-color: var(--green); }
.pp-results {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
    background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); max-height: 260px; overflow-y: auto;
}
.pp-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.pp-item:last-child { border-bottom: none; }
.pp-item:hover, .pp-item.active { background: rgba(225,29,42,.12); }
.pp-item.is-selected { opacity: .6; cursor: default; }
.pp-item .pp-nm { font-weight: 600; font-size: 14px; }
.pp-item .pp-mt { font-size: 12px; color: var(--muted); }
.pp-empty { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }

.person-multi-picker { position: relative; }
.pmp-selected { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pmp-selected:empty { margin-bottom: 0; }
.pmp-chip {
    display: inline-flex; align-items: center; gap: 8px;
    max-width: 100%; padding: 6px 8px;
    background: var(--bg-2); border: 1px solid var(--border-2);
    border-radius: 9px;
}
.pmp-chip .chip-avatar { width: 25px; height: 25px; font-size: 9px; }
.pmp-chip-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmp-remove { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.pmp-remove:hover { color: var(--red); }
.pmp-state { margin-top: 7px; color: var(--muted); font-size: 12px; }
.person-multi-picker.is-collective .pmp-state { color: #ff8b93; font-weight: 700; }

.case-person-list { display: flex; flex-direction: column; gap: 12px; }
.case-person-entry { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); }
.case-person-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.case-person-head .chip-avatar { cursor: default; }
.case-person-name { font-weight: 700; }
.case-person-meta { color: var(--muted); font-size: 12px; }
.case-person-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---- Externe, schreibgeschützte Aktenansicht ---- */
.public-case-body { min-height: 100%; background: radial-gradient(900px 420px at 50% -12%, rgba(225,29,42,.1), transparent 65%), var(--bg); }
.public-topbar {
    min-height: 72px; padding: 12px max(20px, calc((100% - 1180px) / 2));
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    background: rgba(12,12,14,.92); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
}
.public-brand { display: flex; align-items: center; gap: 12px; }
.public-brand > div { display: flex; flex-direction: column; }
.public-brand strong { letter-spacing: .5px; }
.public-brand span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.public-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0; }
.public-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 22px; }
.public-hero h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.15; margin: 5px 0 14px; }
.public-kicker { color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.7px; }
.public-readonly-note { max-width: 340px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: 12px; background: var(--panel); }
.public-description { color: #d2d2d7; line-height: 1.7; white-space: normal; }
.public-divider { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.public-record { padding: 18px 0; border-top: 1px solid var(--border); }
.public-record:first-of-type { border-top: 0; padding-top: 0; }
.public-record:last-child { padding-bottom: 0; }
.public-note { margin-top: 12px; padding: 10px 12px; color: var(--muted); background: var(--bg-2); border-radius: var(--radius-sm); }
.public-footer { padding: 26px 0 0; color: var(--muted-2); text-align: center; font-size: 11px; }

@media (max-width: 720px) {
    .public-topbar { position: static; }
    .public-brand span { display: none; }
    .public-shell { width: min(100% - 24px, 1180px); padding-top: 20px; }
    .public-hero { flex-direction: column; gap: 14px; }
    .public-readonly-note { max-width: none; }
}

/* ---- Lizenz-Checkboxen ---- */
.license-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 8px; }

/* ---- Fahndung ---- */
.wanted-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.wanted-card {
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--border); border-left: 4px solid var(--red);
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.wanted-card.bewaffnet { border-left-color: var(--red); box-shadow: 0 0 0 1px rgba(225,29,42,.25), var(--shadow); }
.wanted-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wanted-avatar {
    width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}
.wanted-name { font-size: 16px; font-weight: 700; }
.wanted-sub { font-size: 12px; color: var(--muted); }
.wanted-reason { color: var(--muted); font-size: 13.5px; margin: 10px 0; }
.wanted-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .calc-layout { grid-template-columns: 1fr; }
    .streife-layout { grid-template-columns: 1fr; }
    .pool { position: static; }
    .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .sidebar {
        position: fixed; left: 0; top: 0;
        transform: translateX(-100%); transition: transform .25s ease;
        box-shadow: 0 0 40px rgba(0,0,0,.6);
    }
    .sidebar.open { transform: translateX(0); }
    .hamburger { display: flex; }
    .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .dl { grid-template-columns: 1fr; gap: 2px 0; }
    .dl dt { margin-top: 8px; }
    .tu-info { display: none; }
    .profile-link { margin-left: auto; }
    .content { padding: 16px; }
    .license-grid { grid-template-columns: 1fr; }
    .account-details { grid-template-columns: 1fr; gap: 3px; }
    .account-details dd { margin-bottom: 10px; }
    .share-panel-head { align-items: flex-start; flex-direction: column; }
    .share-link-row { grid-template-columns: 1fr; }
}
