body{font-size:16px}.sub,.meta,label,nav button,.stat span,.reportKpi span,.hint{font-size:14px}.badge{font-size:13px}.prog{font-size:13px}.head{padding:14px 12px}.brand{font-size:21px}.loading header,.loading main,.loading>.modal{display:none}#loginPanel{display:none;min-height:100dvh;align-items:center;justify-content:center;padding:24px;background:linear-gradient(145deg,#edf3ee,#e4f0f7)}.loading #loginPanel{display:flex}.loginCard{background:white;max-width:480px;width:100%;padding:32px;border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 60px #26432e14}.loginCard h1{font-size:26px;color:var(--g);margin:28px 0 10px}.loginCard p{color:var(--muted)}.loginCard input{margin:0 0 16px}.loginCard button{width:100%;margin-top:8px}.loginCard a{color:var(--g)}#loginError{color:var(--r)}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:min(90vw,600px);padding:13px 20px;color:white;background:#264e33;border-radius:12px;z-index:500;display:none}#notice.error{background:#922e32}#syncState{margin-bottom:14px}.userbox{flex-wrap:wrap}.userbox select[hidden]{display:none}button:disabled{opacity:.55;cursor:wait}.leaflet-container{font:16px system-ui;z-index:1}.leaflet-popup-content button{font-size:14px}.leaflet-control-attribution{font-size:11px}.leaflet-control a{color:#243129}.photoPreview{display:block;max-width:100%;max-height:190px;border-radius:10px;margin:8px 0}.utility{z-index:250;align-items:center;padding:20px}.utility .sheet{border-radius:20px;max-width:620px;padding:22px}.utility label{margin-top:15px}.utility input{margin-bottom:10px}.utility h2{font-size:22px}.utility .sheetHead{position:static}.qrcode{display:block;width:220px;height:220px;margin:20px auto}.coordinateGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mapNote{background:#fff3cf;padding:12px;border-radius:12px}.fileLinks{display:flex;gap:12px;flex-wrap:wrap}.fileLinks a{color:#356345}.card h3{font-size:19px}nav button:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #3e7194;outline-offset:3px}.admin .adminOnly{display:block!important}.dangerText{color:#96383b}.loginCard #setupArea{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}.loginCard #setupArea[hidden]{display:none}@media(max-width:680px){.brand{font-size:19px}.head{gap:12px}.userbox{font-size:14px}.userbox button{padding:7px;font-size:13px}.sheet{padding:12px}.utility{padding:12px}.loginCard{padding:24px}.map{height:440px}.coordinateGrid{grid-template-columns:1fr}.choices{grid-template-columns:1fr}.startActions button{min-height:75px}.sub{font-size:13px}}@media print{#notice,#loginPanel,#syncState,.utility{display:none!important}}

.loading>.modal.utility.open{display:flex}
.reportCheck{display:flex;align-items:center;gap:8px;font-weight:500;margin:8px 0}.reportCheck input{width:auto;flex-shrink:0}.reportChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 16px}#customReportOptions details{padding:12px 0;border-bottom:1px solid var(--line)}#customReportOptions summary{cursor:pointer;font-weight:700}#customReportOptions h3{margin:14px 0 4px}.reportScroll{overflow-x:auto;margin-bottom:24px}.reportDocument th,.reportDocument td{font-size:14px}.reportDocument tbody tr:nth-child(even){background:#f3f5f2}.reportDocument h3{margin-top:24px}.reportDocument td{vertical-align:top;white-space:pre-wrap;min-width:75px}.reportDocument th:first-child{min-width:160px}

.casePhoto{display:block;max-width:100%;max-height:520px;object-fit:contain;border-radius:12px;margin:auto}.deviceChoice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px}.deviceChoice input{width:auto;flex-shrink:0}.actionLink{display:inline-block;border:1px solid var(--g);border-radius:10px;padding:10px 12px;color:var(--g);font-weight:700;text-decoration:none}

.deviceSelection{margin-bottom:12px}.deviceInfo{background:#f5f8f5;border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:8px}.deviceInfo dl{margin:8px 0 0;display:grid;grid-template-columns:minmax(90px,1fr) 2fr;gap:6px 12px;font-size:14px}.deviceInfo dt{font-weight:700}.deviceInfo dd{margin:0;overflow-wrap:anywhere}

.chipInputRow{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:8px;align-items:stretch}.chipInputRow input{min-width:0;width:100%;margin:0}.chipInputRow button{min-width:0;margin:0;padding:8px 6px;font-size:14px;line-height:1.3}.chipInputRow button:disabled{opacity:.5;cursor:not-allowed}

.chipField{min-width:0}.chipSearch{border:1px solid #a8bfb0;border-radius:12px;background:#fff;margin-top:10px;overflow:hidden;color:#263b30}.chipSearch summary{cursor:pointer;padding:12px;font-weight:700;font-size:1rem}.chipSearchBody{padding:0 12px 12px}.chipSearchBody>button{width:100%;margin:4px 0;white-space:normal;min-height:44px}.chipSearch .meta{font-size:.875rem;line-height:1.45;margin:6px 0 10px}.chipAlternatives{border-top:1px solid #d7e2da;margin-top:10px}.chipAlternatives summary{padding:12px 0;font-size:.9rem}.chipSearchActions{display:grid;gap:8px}.chipSearchActions button{width:100%;margin:0;white-space:normal;min-height:44px}.chipSearchCalls{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chipSearchCalls .actionLink{flex:1 1 130px;text-align:center;white-space:normal;font-size:.875rem;min-height:44px;display:flex;align-items:center;justify-content:center}.chipSearchSlot:empty,.tattooHelpSlot:empty{display:none}

#draftStatus{padding:8px 12px;margin:0 0 8px;background:#f0f5f1;border-radius:8px;font-size:.875rem}.draftChoices{display:flex;flex-wrap:wrap;gap:10px}.draftChoices button{flex:1 1 160px;min-height:48px}
/* Focused map symbols and an accessible, device-local introduction. */
:root{--muted:#56625b}button,input,select{min-height:44px}button:hover{filter:brightness(.97)}nav button[aria-current=page]{background:#e4efe7;border-color:#356345;box-shadow:inset 0 -3px #356345}.card{box-shadow:0 4px 16px #24312908}.stats{margin-bottom:16px}.caseStatus{display:inline-flex;gap:6px;align-items:center;color:var(--status-color);background:#fff;border:1px solid currentColor;font-size:14px}.caseStatus svg{width:16px;height:16px;flex-shrink:0}.mapHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.mapHeading h2{margin:0}.mapTools{margin-bottom:14px}.mapTools input{flex:1 1 220px;min-width:0}.mapTools select{flex:1 1 200px;max-width:320px}.caseMapMarker{background:none;border:0}.casePin{position:relative;display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:12px;background:var(--pin);color:#fff;border:2px solid #fff;box-shadow:0 2px 6px #182e3b55;flex-shrink:0}.casePin>svg{width:22px;height:22px}.casePin.currentPin{width:46px;height:46px;border:3px solid white;border-radius:16px;box-shadow:0 0 0 2px var(--pin),0 3px 9px #182e3b66}.currentPin>svg{width:28px;height:28px}.pinBadge{position:absolute;right:-6px;bottom:-5px;display:flex;justify-content:center;align-items:center;width:19px;height:19px;border-radius:50%;background:#fff;color:var(--pin);font:bold 15px/1 system-ui;border:1px solid var(--pin)}.pinBadge svg{width:13px;height:13px}.pinChip{position:absolute;left:-6px;bottom:-5px;width:18px;height:18px;border-radius:5px;background:white;color:var(--pin);border:1px solid var(--pin)}.pinChip svg{width:15px;height:15px}.pinCount{position:absolute;top:-10px;right:-10px;background:#253b30;color:white;border:2px solid white;border-radius:20px;min-width:24px;text-align:center;font:bold 13px/21px system-ui;padding:0 3px}.mapCasePopup{padding:8px 0;border-bottom:1px solid #ddd}.mapCasePopup:last-child{border:0}.mapCasePopup p{margin:8px 0}.mapLegend{border-top:1px solid var(--line);margin:12px 0}.mapLegend summary{cursor:pointer;font-weight:750;padding:14px 0}.mapLegendGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:16px 22px;padding:12px 6px}.mapLegendItem{display:flex;align-items:center;gap:16px;font-size:14px;min-height:50px}.mapLegendItem .casePin{margin:0 6px}.helpWelcome{padding:20px;background:#e9f2ec;border:1px solid #bad3c0;border-left:4px solid #356345;border-radius:16px;margin-bottom:16px}.helpWelcome[hidden]{display:none}.helpWelcome p{margin:6px 0 14px}.helpDialog{padding:0;border:1px solid #cfdbd3;border-radius:22px;width:min(720px,calc(100vw - 24px));max-height:90dvh;color:var(--ink);box-shadow:0 24px 80px #102e3044}.helpDialog::backdrop{background:#142c28a6}.helpHeader{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px;background:#edf5ef}.helpHeader h2{margin:6px 0 0}.helpEyebrow{font-size:12px;letter-spacing:.07em;font-weight:750;color:#356345}.helpBody{padding:6px 22px 20px;font-size:16px;line-height:1.65}.helpBody details{border-bottom:1px solid var(--line)}.helpBody summary{cursor:pointer;padding:16px 0;font-weight:750;color:#264e33}.helpBody details>div{padding:0 0 12px}.helpBody p{margin:8px 0 14px}.helpFooter{padding:14px 22px;border-top:1px solid var(--line)}.inlineHelp{min-height:32px;padding:3px 8px;font-size:14px}.leaflet-marker-icon:focus-visible{outline:3px solid #111;outline-offset:8px}.mapTools select{font-size:16px}@media(max-width:680px){.userbox{gap:8px}.userbox button{min-height:44px;padding:8px 10px;font-size:14px}#helpButton{margin-left:auto}.mapTools select{max-width:none;width:100%}.helpHeader,.helpBody,.helpFooter{padding-left:16px;padding-right:16px}.mapLegendGrid{grid-template-columns:1fr}.map{height:440px}.caseStatus{max-width:100%;white-space:normal}nav{gap:8px}nav button{min-height:44px}}@media print{.helpDialog,.helpWelcome{display:none!important}}

/* The form alone scrolls; saving stays within reach. */
#modal>.sheet{display:flex;flex-direction:column;max-height:96vh;max-height:96dvh;overflow:hidden;padding-bottom:0}#modal .sheetHead{position:static;flex-shrink:0}#modal .editorBody{overflow-y:auto;min-height:0;overscroll-behavior:contain;scroll-padding:16px;flex:1}#modal .footerActions{position:static;flex-shrink:0;margin-top:0;padding:12px 0 max(12px,env(safe-area-inset-bottom));z-index:5;gap:8px}#modal .footerActions button{min-height:44px}#modal .footerActions .primary{flex:1}#wizard [aria-invalid="true"]{border:2px solid #9b2c32;outline:2px solid #f6dadd;outline-offset:2px}.fieldError{color:#8b2228;font-size:14px;font-weight:650;margin:6px 0 10px}@media(max-width:420px){#modal .footerActions button{font-size:14px;padding:10px 8px}#modal .footerActions button{flex:1;min-width:0}}

@media(max-width:680px){#modal .sheetHead>div{min-width:0}#modal .sheetHead .badge{display:block;white-space:normal;overflow-wrap:anywhere;margin-top:4px}#modal .sheetHead>button{min-width:44px;min-height:44px;flex-shrink:0}#modal input,#modal select,#modal textarea{font-size:16px}#modal .question{padding:12px}#modal .choices button{min-height:48px}.flowCase .row>button{min-height:44px}.flowCase>img{width:60px;height:60px}.flowCase .row>b{overflow-wrap:anywhere;min-width:0}#modal .footerActions{flex-wrap:nowrap}#modal .footerActions button{flex:1;white-space:normal}}

/* Quick field entry precedes the overview; account actions stay available on demand. */
header .sub{display:none}.head{gap:8px;padding:10px 12px}.userbox{gap:8px}.accountMenu{position:relative}.accountMenu>summary{cursor:pointer;font-size:14px;padding:10px 8px;min-height:44px}.accountActions{position:absolute;right:0;top:100%;z-index:20;display:flex;flex-direction:column;gap:10px;min-width:190px;background:white;border:1px solid var(--line);padding:14px;border-radius:12px;box-shadow:0 8px 24px #203b3320}.accountMenu:not([open])>.accountActions{display:none}nav{display:flex;flex-wrap:wrap}nav>button{flex:1;min-height:44px}#syncState{font-size:14px;padding:6px 10px;margin-bottom:10px}#syncState button{font-size:14px;min-height:36px;padding:5px 8px}#captureActions h2{font-size:20px}#captureActions .startActions{grid-template-columns:1fr}#captureActions .startActions button{min-height:66px;display:flex;align-items:center;justify-content:flex-start;gap:12px;text-align:left;padding:12px 16px;font-size:16px}#captureActions .bigIcon{font-size:24px}.homeLookup>button{flex:1;min-height:44px}@media(max-width:680px){header .head{flex-direction:row;flex-wrap:wrap;align-items:center}header .brand{font-size:18px}.userbox{width:auto;margin-left:auto}#helpButton{margin-left:0}.accountMenu>summary{max-width:150px;overflow-wrap:anywhere}nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.admin nav{grid-template-columns:repeat(3,minmax(0,1fr))}nav>button{min-width:0;padding:8px 3px;font-size:14px}main{padding-top:8px}#captureActions{padding:12px}}

.connectionDetails{margin:20px 0 0;border-top:1px solid var(--line);color:var(--muted);font-size:14px}.connectionDetails>summary{cursor:pointer;min-height:44px;padding:12px 0}.connectionDetails #syncState{margin-bottom:0}.transferAttention{display:block;font-size:14px;min-height:44px;margin-bottom:10px;background:#fff4d6;border:1px solid #d4b772;color:#664610}.transferAttention[hidden]{display:none}.transferAttention.needsReview{background:#f9e4e4;border-color:#c28585;color:#822d32}#helpButton{white-space:normal;font-size:14px}

.placeSuggestions{margin-top:6px;max-height:240px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 4px 14px #203b3312}.placeSuggestions[hidden]{display:none}.placeSuggestions>button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;min-height:56px;margin:0;padding:10px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;font-size:16px}.placeSuggestions>button:last-child{border-bottom:0}.placeSuggestions>button span{font-size:14px;color:var(--muted)}.placeSuggestions>button:hover,.placeSuggestions>button[aria-selected="true"]{background:#eaf3ee}

/* Shared dimensions for equivalent controls, including subsequently added flows. */
:root{--ui-text:1rem;--ui-small:.875rem;--ui-control:48px;--ui-gap:12px;--ui-radius:12px}
body{font-size:var(--ui-text);line-height:1.45}
button:not(.marker),.actionLink{font-size:var(--ui-text);line-height:1.4;font-weight:750;border-radius:var(--ui-radius);min-height:var(--ui-control);padding:10px 12px;overflow-wrap:anywhere}
nav>button,.userbox button,#helpButton,.chipInputRow button,.inlineHelp,#syncState button{font-size:var(--ui-small)}
nav>button{padding:8px 4px;min-width:0}
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:var(--ui-text);line-height:1.4;border-radius:10px;padding:10px;min-height:var(--ui-control)}
input[type=checkbox],input[type=radio]{min-height:0;width:auto;flex-shrink:0}
textarea{min-height:96px}
label,.meta,.hint,.sub,.stat span,.reportKpi span,.lock,.fieldError{font-size:var(--ui-small);line-height:1.45}
label{font-weight:750;margin-bottom:6px}
.card h2,.sheet h2,#captureActions h2{font-size:1.375rem;line-height:1.3}
.card h3,.sheet h3{font-size:1.1875rem;line-height:1.35}
.card{padding:16px;margin-bottom:16px}.grid,.coordinateGrid,.choices{gap:var(--ui-gap)}.row{gap:var(--ui-gap)}
.badge,.badge.caseStatus{display:inline-flex;align-items:center;gap:6px;min-height:30px;max-width:100%;padding:4px 8px;border:1px solid transparent;border-radius:999px;font-size:var(--ui-small);line-height:1.4;font-weight:750;white-space:normal;overflow-wrap:anywhere}
.badge.caseStatus{border-color:currentColor}.badge.caseStatus svg{width:16px;height:16px;flex-shrink:0}
.flowCase .caseHeading{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:4px}
.flowCase .caseHeading>b,.flowCase strong{font-size:var(--ui-text);line-height:1.4;font-weight:750}
.flowCase .caseActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-gap);margin-top:12px;max-width:420px}
.flowCase .caseActions>button{width:100%;min-width:0;height:100%;margin:0}
.flowCase>img{flex-shrink:0}
.row:has(>button):not(:has(>:not(button))){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));align-items:stretch}
.row:has(>button):not(:has(>:not(button)))>button{width:100%;min-width:0;margin:0}
.draftChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:var(--ui-gap);align-items:stretch}
.draftChoices>button,.choices>button{height:100%;width:100%;min-height:var(--ui-control)}
#modal .footerActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-gap)}
#modal .footerActions>button{font-size:var(--ui-text);min-width:0;white-space:normal}
.sheetHead>button{min-width:var(--ui-control);flex-shrink:0}
.chipInputRow{align-items:stretch}.chipInputRow button{height:100%}
@media(max-width:680px){.card{padding:14px}.flowCase .caseActions{grid-template-columns:1fr}#home .flowCase>img{width:60px;height:60px}#home .flowCase{gap:12px}.utility .sheet{padding:16px}#modal .footerActions>button{font-size:var(--ui-small)}}

/* Lange deutsche Wörter in Schaltflächen sauber trennen statt mitten im Wort umzubrechen. */
button:not(.marker),.actionLink{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
.yearNo{display:inline-block;margin:0 6px;padding:1px 8px;border-radius:999px;background:#eef3ef;color:#2f5d46;font-size:var(--ui-small,.85rem);font-weight:750;white-space:nowrap;vertical-align:middle}
/* Pflichtfelder */
.reqLabel{color:#a32620}
.reqLabel::after,.reqDot{content:" *";color:#a32620;font-weight:800}
.reqDot{content:none}
#wizard .requiredField.isEmpty{border-color:#c0392b;background:#fff6f5;box-shadow:inset 0 0 0 1px #c0392b}
.caseFacts{margin:2px 0;font-weight:600}
/* Hinweise nicht über den Speichern-Knöpfen: auf Handys und bei offenen Fenstern oben anzeigen. */
@media (max-width:760px){#notice{top:calc(env(safe-area-inset-top,0px) + 12px);bottom:auto}}
body:has(.modal.open) #notice{top:calc(env(safe-area-inset-top,0px) + 12px);bottom:auto;z-index:2000}

/* Consistent native disclosures keep long overview sections compact. */
details.overviewFold>summary{display:list-item;cursor:pointer;min-height:48px;padding:10px 2px;font-size:1rem;font-weight:700;line-height:1.5;overflow-wrap:anywhere;color:var(--ink)}
details.overviewFold>summary h2,details.overviewFold>summary h3{display:inline;margin:0;font-size:1.05rem;line-height:1.5}
details.overviewFold>summary::marker{color:#356345}
details.overviewFold>summary:focus-visible{outline:3px solid #356345;outline-offset:4px;border-radius:4px}
details.overviewFold[open]>summary{margin-bottom:14px;border-bottom:1px solid var(--line);padding-bottom:14px}
.foldCount{display:inline-block;min-width:28px;padding:1px 8px;margin-left:6px;border-radius:20px;background:#e4efe7;color:#264e33;text-align:center;font-size:.875rem;vertical-align:middle}
.archiveFold{border-top:1px solid var(--line);margin-top:14px;padding-top:4px}

.adminToolbar{margin:12px 0;gap:10px}.adminToolbar input{flex:1 1 220px;min-width:0}.adminToolbar select{flex:0 1 220px;width:auto}.compactAdminItem{display:flex;align-items:center;gap:14px;border-top:1px solid var(--line);padding:14px 0}.compactAdminItem>div{flex:1;min-width:0;overflow-wrap:anywhere}.compactAdminItem>button{flex-shrink:0}.compactAdminItem p{margin:5px 0 0}.personActions{display:grid;gap:10px}.deviceActions{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}.deviceActions .row{margin-top:12px}.listFold{border-top:1px solid var(--line);padding:8px 0}.newPerson{margin:8px 0 16px}.newPerson>summary{cursor:pointer;padding:12px;border:1px solid var(--line);border-radius:10px;font-weight:700;min-height:44px}.newPerson[open]>summary{margin-bottom:14px}
@media(max-width:520px){.adminToolbar select{flex:1 1 100%;width:100%}.compactAdminItem{gap:8px}.compactAdminItem>button{padding:8px 10px}}

/* ===== Version 41: Handy-Leiste unten, kompakte Fallkarten, Fallliste als Tabelle, Hinweise ===== */
.backupWarning{background:var(--rl);border:1px solid #dfafb2;color:#833236;padding:12px 14px;border-radius:14px;margin-bottom:13px;font-weight:650}
.backupWarning[hidden]{display:none}
.backupWarning button{margin-left:6px}
button.linkButton{border:0;background:none;padding:4px 6px;min-height:0;color:var(--muted);text-decoration:underline;font-weight:500;font-size:var(--ui-small,14px)}
.legalLinks{text-align:center;margin:18px 0 0;color:var(--muted)}
.navIcon{display:inline-block;vertical-align:-4px;margin-right:6px}
.caseFilters{margin-top:10px;gap:10px}
.caseFilters select{width:auto;max-width:230px}
.inlineCheck,.inlineDate{display:inline-flex;align-items:center;gap:6px;margin:0;font-weight:600}
.inlineCheck input{width:auto;min-height:0}
.inlineDate input{width:auto}
#caseCount{margin:10px 0 0}
.caseFilterFold{margin-top:10px}
.caseFilterFold>summary{cursor:pointer;min-height:36px;padding:6px 0;font-weight:650;color:var(--muted)}
.caseFilterFold .caseFilters{margin-top:4px}
.caseTableHead{display:none}
.caseRow{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.caseRow .caseCellPlace{flex:1 1 100%;order:-1;overflow-wrap:anywhere}
.caseRow .caseCellNo,.caseRow .caseCellDate,.caseRow .caseCellArea,.caseRow .caseCellCreator{font-size:var(--ui-small,14px);color:var(--muted)}
.caseRow .caseCellNo b{font-weight:650}
.caseRow .caseCellCreator::before{content:'von '}
.caseRow .caseCellArea:empty{display:none}
.caseRow .caseCellStatus{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 100%}
.caseRow .caseCellActions{flex:1 1 100%;margin-top:4px;display:flex;gap:8px}
.caseRow .caseCellActions button{min-height:40px;padding:8px 14px}
.compactCase{padding:12px 0!important}
.compactCase strong{display:block;overflow-wrap:anywhere}
.flowCase.compactCase .caseHeading{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0}
.compactCase .caseNo{font-size:var(--ui-small,14px);color:var(--muted);font-weight:650}
.compactCase .yearNo{margin:0}
.flowCase.compactCase p{margin:4px 0}
.flowCase.compactCase .caseActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;max-width:none}
.flowCase.compactCase .caseActions>button{width:auto;height:auto;min-height:40px;padding:8px 14px}
@media(min-width:900px){
 .caseTableHead,.caseRow{display:grid;grid-template-columns:140px 84px minmax(160px,1.5fr) 108px minmax(150px,1.1fr) 116px 186px;align-items:center;gap:10px}
 .caseTableHead{border-bottom:2px solid var(--line);margin-top:12px;position:sticky;top:0;background:#fff}
 button.caseSort{border:0;background:none;text-align:left;padding:8px 0;min-height:0;font-size:var(--ui-small,14px);color:var(--muted);border-radius:4px}
 .caseRow{padding:8px 0}
 .caseRow .caseCellPlace{order:0}
 .caseRow .caseCellNo{color:var(--ink);display:flex;flex-direction:column;align-items:flex-start;gap:2px}
 .caseRow .caseCellNo .yearNo{margin:0}
 .caseRow .caseCellCreator::before{content:''}
 .caseRow .caseCellArea:empty{display:block}
 .caseRow .caseCellActions{margin:0;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:6px}
 .caseRow .caseCellActions button{padding:8px 10px;width:auto;flex:none;font-size:var(--ui-small,14px)}
 .caseRow:hover{background:#f7f9f6}
}
@media(max-width:680px){
 nav{position:fixed;left:0;right:0;bottom:0;z-index:40;margin:0;max-width:none;display:flex;gap:0;padding:6px 3px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px #2431290f}
 nav>button:not(.marker){flex:1 1 0;min-width:0;border:0;border-radius:10px;padding:6px 0;font-size:10.5px;font-weight:650;letter-spacing:-.02em;white-space:nowrap;overflow-wrap:normal;word-break:normal;min-height:52px;background:none;line-height:1.2}
 #cases .row>#search{flex:1 1 100%}
 #cases .row>#filter{max-width:none;flex:1 1 100%}
 nav>button:not(.marker)[aria-current=page]{background:#e4efe7;box-shadow:none;color:#234d33}
 .navIcon{display:block;margin:0 auto 2px}
 main{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
 .head{flex-direction:row;align-items:center;padding:8px 12px}
 .head>div:first-child{min-width:0;flex:1}
 .brand{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .userbox{width:auto;flex:none}
 .accountMenu>summary{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #helpButton{font-size:0;padding:8px 12px}
 #helpButton::before{content:'Hilfe';font-size:14px}
 .caseFilters select{max-width:none;flex:1 1 100%}
}

.extraFiles{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:10px}
.extraFile{display:flex;align-items:center;gap:8px;margin:6px 0}
.extraFile span{flex:1;font-size:var(--ui-small,14px)}
.extraFile button{width:auto;min-height:40px;padding:8px 12px}
.photoGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.photoGrid a{display:block;border-radius:12px;overflow:hidden;background:#f3f5f2}
.photoGrid a.noPreview{padding:14px;font-size:var(--ui-small,14px)}
.photoGrid .casePhoto{display:block;width:100%;aspect-ratio:1;object-fit:cover;max-height:none;margin:0;border-radius:0}
.photoGrid a:only-child{grid-column:1/-1}
.photoGrid a:only-child .casePhoto{aspect-ratio:auto;max-height:420px;object-fit:contain}

.personalGreeting{margin:0 0 12px;padding:0 2px;font-size:1.125rem;font-weight:600;color:var(--green,#315e46);overflow-wrap:anywhere}
.personalGreeting[hidden]{display:none}

/* Fallbearbeitung in Abschnitten, Fallkarten der Übersicht (früher per Skript eingefügt) */
.startActions{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.startActions{grid-template-columns:1fr}}.flowSection>summary{font-weight:700;font-size:1rem;cursor:pointer;padding:6px 0;min-height:36px}.flowSection[open]>summary{margin-bottom:14px}.flowDevices{margin-top:14px}.flowDevices>summary{cursor:pointer;min-height:44px;padding:10px 0}.flowCase{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line,#dce4df)}.flowCase:last-child{border-bottom:0}.flowCase>img{width:76px;height:76px;border-radius:10px;object-fit:cover}.flowCase>div{min-width:0;flex:1}.flowCase p{margin:7px 0}.flowCase strong{overflow-wrap:anywhere}#home>details>summary{cursor:pointer;font-weight:650;min-height:36px}#currentCases h3{margin-right:auto}
/* Berechtigungen: ausgeblendete Elemente bleiben ausgeblendet */
[hidden]{display:none!important}#rightsForm .inlineCheck{align-items:flex-start;margin:14px 0}#individualRights:disabled{opacity:.55}.caseCellActions{flex-wrap:wrap}
/* Abschnittsweises Nachladen langer Listen */
.caseMore{padding:14px 0;text-align:center}.caseMore button{min-height:44px}

.brandWithLogo{display:flex;align-items:center;gap:10px}.brandLogo{position:relative;display:inline-block;flex:0 0 64px;width:64px;height:54px;overflow:hidden;background:white}.brandLogo img{position:absolute;width:86px;max-width:none;height:auto;left:-10px;top:-6px}.loginCard .brandLogo{flex-basis:80px;width:80px;height:68px}.loginCard .brandLogo img{width:108px;left:-13px;top:-8px}#sessionLoading{display:none}.restoring #sessionLoading{display:block;text-align:center;margin:25vh auto;padding:24px;max-width:520px}.restoring header,.restoring main,.restoring #loginPanel,.restoring>.modal{display:none!important}.reportPhotoChoices{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.reportPhotoChoices label{padding:8px;border:1px solid var(--line);border-radius:10px}.reportPhotoChoices input{width:auto;margin-right:8px}.reportPhotoChoices img{display:block;width:100%;height:140px;object-fit:contain;background:#f3f5f2}.reportPhotoGallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.reportPhotoGallery img{width:100%;height:220px;object-fit:contain;background:#f3f5f2}.reportPhotoGallery figure{margin:0}.reportLogo{width:72px;height:60px;float:right}.reportLogo img{width:96px;left:-12px;top:-7px}

/* Eigene Abschnittsfarbe für Tierdaten. */
.qViolet{background:#eee7f7;border-color:#cdb9e4}
/* Fangaktion */
.badge.actionB{background:#efe7f6;color:#5a3f78;border:1px solid #d9c9ea}
.actionCard h3{color:#5a3f78}
.actionTabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.actionTabs .actionTab{min-width:48px;min-height:44px;padding:6px 12px;font-weight:700;border-radius:10px}
.actionTabs .actionTab.on{background:#5a3f78;color:#fff;border-color:#5a3f78}
details.actionGroup{border:1px solid #d9c9ea;border-radius:12px;margin:8px 0;padding:6px 10px;background:#faf7fd}
details.actionGroup>summary{cursor:pointer;padding:8px 2px;list-style-position:inside}
details.actionHome>summary{display:flex;gap:16px;align-items:flex-start;cursor:pointer;list-style:none}
details.actionHome>summary::-webkit-details-marker{display:none}
details.actionHome>summary>img{width:72px;height:72px;object-fit:cover;border-radius:12px;flex-shrink:0}
.actionMembers{border-left:3px solid #d9c9ea;margin:10px 0 0 6px;padding-left:12px}
.actionMember{padding:8px 0;border-bottom:1px solid var(--line)}
.actionMember .caseActions{margin-top:8px}
/* Statistik auf der Übersicht */
#stats.stats{display:block}
#stats .statHead{margin:16px 0 8px;font-size:14px;color:var(--muted);font-weight:600}
#stats .statGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#stats .statTile{background:#f3f6f3;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column}
#stats .statTile span{font-size:13px;color:var(--muted)}
#stats .statTile strong{font-size:24px}
#stats .statWide{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:baseline}
#stats .statGreen{background:#e3efe6}#stats .statGreen span,#stats .statGreen strong{color:#2f6b3f}
#stats .statLine{display:flex;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:14px}
#stats .statBox{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:grid;gap:10px}
#stats .statDevice>div:first-child{display:flex;justify-content:space-between;font-size:14px}
#stats .statBar{height:6px;background:#eef1ee;border-radius:3px;margin-top:4px}#stats .statBar i{display:block;height:6px;background:#356345;border-radius:3px}
#stats .statWarn{margin:0;color:#8a5a00;font-size:14px}
#stats details.statYear{margin-top:16px;border-top:1px solid var(--line);padding-top:10px;box-shadow:none;border-radius:0}
#stats details.statYear>summary{font-weight:600;cursor:pointer;margin-bottom:8px}
#stats details.statYear .statLine{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:6px 0}
#stats .statMine{background:#e3efe6;color:#2f6b3f;border-radius:10px;padding:10px 12px;margin:14px 0 0}
#stats .statBoard{margin-top:14px;border:1px dashed #d9a441;border-radius:10px;padding:10px 12px;display:grid;gap:8px}
#stats .statBoard h4{margin:0;color:#8a5a00}#stats .statBoard .meta{margin:0}
#stats .boardTile{display:flex;justify-content:space-between;width:100%;background:#fff3cf;border-color:#f0d58a;color:#6b4700;text-align:left}
