:root{
  --g:#1f4d3a;--g2:#2d6a4f;--g3:#e7f1ec;--accent:#e9a82b;
  --bg:#f4f5f2;--card:#fff;--line:#e3e6e0;--text:#1b2420;--muted:#6b7770;
  --danger:#c0392b;--r:14px;--r-s:10px;
  --sh:0 1px 2px rgba(20,40,30,.06),0 6px 20px rgba(20,40,30,.08);
  --sh-s:0 1px 2px rgba(20,40,30,.08),0 2px 8px rgba(20,40,30,.08);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;font:15px/1.45 Inter,"Segoe UI Variable","Segoe UI",system-ui,-apple-system,Roboto,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
body{display:flex;flex-direction:column}
.hidden{display:none!important}
.muted{color:var(--muted)}.small{font-size:12px}
h1{font-size:22px;margin:0 0 14px;text-align:center;letter-spacing:-.02em}
h2{font-size:18px;margin:2px 0 10px;letter-spacing:-.01em}
h3{font-size:14px;margin:16px 0 6px;color:var(--g)}
hr{border:0;border-top:1px solid var(--line);margin:14px 0}
code{background:var(--g3);padding:1px 5px;border-radius:5px;font-size:12px}

/* Eingaben */
input,select,textarea,button{font:inherit;color:inherit}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-s);background:#fff;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--g2);box-shadow:0 0 0 3px rgba(45,106,79,.18)}
input[type=checkbox]{width:18px;height:18px;padding:0;accent-color:var(--g2)}
label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:8px 0}
label input,label select,label textarea{margin-top:4px;font-weight:400;font-size:15px;color:var(--text)}
button{padding:9px 14px;border:1px solid var(--line);border-radius:var(--r-s);background:#fff;cursor:pointer;font-weight:500;box-shadow:var(--sh-s);transition:background .15s,transform .05s,box-shadow .15s}
button:hover{background:#f6f8f6}
button:active{transform:translateY(1px)}
button.primary{background:var(--g);border-color:var(--g);color:#fff;box-shadow:0 2px 8px rgba(31,77,58,.28)}
button.primary:hover{background:var(--g2)}
button.danger{background:#fff;color:var(--danger);border-color:#efc9c4}
button.danger:hover{background:#fdf1ef}
button.link{border:0;background:none;box-shadow:none;color:var(--g2);padding:0;text-decoration:underline}
button.x{border:0;background:none;box-shadow:none;font-size:18px;padding:4px 8px;color:var(--muted)}
button:disabled{opacity:.55;cursor:default}
.err{color:var(--danger);min-height:1em;font-size:13px;margin:4px 0}

/* Login */
.overlay{position:fixed;inset:0;background:radial-gradient(1200px 600px at 20% -10%,#2d6a4f 0%,transparent 60%),linear-gradient(160deg,#173a2c,#0f2a1f);z-index:3000;display:flex;align-items:center;justify-content:center;padding:16px}
.card{background:var(--card);border-radius:var(--r);padding:20px;box-shadow:var(--sh);width:min(360px,100%);border:1px solid var(--line)}
.card.wide{width:min(780px,100%);margin:12px auto}
#login .card{padding:26px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
#login h1{font-size:21px;line-height:1.25}
#login button.primary{width:100%;padding:12px;margin-top:8px}

/* Kopfzeile + Navigation */
#top{background:linear-gradient(135deg,#173a2c,#1f4d3a);color:#fff;display:flex;align-items:center;gap:14px;padding:8px 16px;position:relative;z-index:1600;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.brand{white-space:nowrap;font-weight:700;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}
.brand::before{content:"";width:26px;height:26px;border-radius:8px;background:var(--accent) url("/icons/icon.svg") center/cover}
#tabs{display:flex;gap:4px;flex:1;overflow-x:auto;scrollbar-width:none}
#tabs::-webkit-scrollbar{display:none}
#tabs button{background:none;color:#cfe3d8;border:0;border-radius:999px;padding:7px 14px;box-shadow:none;display:flex;align-items:center;gap:7px;white-space:nowrap;font-weight:500}
#tabs button:hover{background:rgba(255,255,255,.1)}
#tabs button.active{background:rgba(255,255,255,.18);color:#fff;font-weight:600}
#tabs svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
#who{font-size:12px;background:rgba(255,255,255,.12);padding:5px 12px;border-radius:999px;white-space:nowrap;max-width:44vw;overflow:hidden;text-overflow:ellipsis}

main{flex:1;position:relative;min-height:0}
.view{position:absolute;inset:0;display:none;flex-direction:column}
.view.active{display:flex}
.view.scroll{overflow:auto;padding:12px}

/* Karten */
#map,#omap{flex:1;min-height:0}
#emap{height:62vh;min-height:320px;margin-top:8px;border:1px solid var(--line);border-radius:var(--r-s);overflow:hidden}
.leaflet-container{font:inherit}
.leaflet-bar{border:0!important;box-shadow:var(--sh-s)!important;border-radius:12px!important;overflow:hidden}
.leaflet-bar a{border-bottom-color:var(--line)!important}
.leaflet-control-layers{border:0!important;box-shadow:var(--sh-s)!important;border-radius:12px!important}
.leaflet-popup-content-wrapper{border-radius:var(--r);box-shadow:var(--sh)}
.leaflet-popup-content{min-width:200px;margin:14px 16px;line-height:1.5}
#mapTools{position:absolute;top:12px;right:12px;z-index:900;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
#mapTools button{border-radius:999px;padding:9px 14px;background:rgba(255,255,255,.96);box-shadow:var(--sh-s)}
#fab{position:absolute;right:16px;bottom:22px;z-index:900;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--g2),var(--g));color:#fff;font-size:30px;line-height:1;border:0;padding:0;box-shadow:0 8px 22px rgba(31,77,58,.45)}
#fab:hover{background:var(--g2)}

/* Filterleiste */
.filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:10px 14px;background:var(--card);border-bottom:1px solid var(--line)}
.filters label{margin:0}.filters select{width:auto;min-width:130px;padding:8px 10px}
.filters h2{margin:0;flex:1;min-width:140px}
#legend{background:var(--card);padding:10px 14px;display:flex;flex-wrap:wrap;gap:6px;font-size:12px;border-top:1px solid var(--line);max-height:96px;overflow:auto}
#legend>span{background:#f1f4f1;border-radius:999px;padding:3px 10px}
.dot{display:inline-block;width:12px;height:12px;border-radius:50%;border:1.5px solid #1b2420;vertical-align:-2px;margin-right:6px}

/* Wetter */
#weather{position:absolute;left:8px;right:8px;bottom:8px;z-index:950;background:rgba(255,255,255,.97);backdrop-filter:blur(8px);padding:12px;border-radius:var(--r);box-shadow:var(--sh);max-height:48%;overflow:auto}
.wrow{display:flex;justify-content:space-between;align-items:center}
#wdays{display:flex;gap:6px}#wdays button{border-radius:999px;padding:6px 12px}
#wdays button.on{background:var(--g);color:#fff;border-color:var(--g)}
#wnow{font-weight:600;margin:8px 0}
#whours{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}
.hch{flex:0 0 50px;text-align:center;border:1px solid var(--line);border-radius:12px;padding:5px 0;font-size:11px;cursor:pointer;background:#fff}
.hch.on{border-color:var(--g2);background:var(--g3);box-shadow:0 0 0 2px rgba(45,106,79,.25)}
.hch svg{width:20px;height:20px;display:block;margin:3px auto}
.windicon{background:none;border:0}
.windicon div{display:flex;flex-direction:column;align-items:center;font-size:11px;font-weight:700;color:#fff;text-shadow:0 0 3px #000,0 0 3px #000}

/* Marker */
.pin{border-radius:50%;border:2px solid #fff;width:18px;height:18px;box-shadow:0 0 0 1.5px #1b2420,0 2px 5px rgba(0,0,0,.5)}
.kind{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:var(--c,#6d5a43);color:#fff;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.kind svg{width:17px;height:17px}
/* Positions-Markierung beim Erfassen: runder Knopf mit Spitze */
.bigpin{position:relative;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}
.bigpin::after{content:"";position:absolute;left:50%;bottom:-9px;margin-left:-6px;border:6px solid transparent;border-top:9px solid #fff}
.bigpin>div{width:32px;height:32px;border-radius:50%;background:var(--c);color:#fff;display:flex;align-items:center;justify-content:center}
.bigpin svg{width:20px;height:20px}.bigpin b{font-size:18px}
/* Auswahl-Leisten */
.tiles{display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.tiles:empty{display:none}
.tile{flex:1 0 auto;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:8px 12px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:#3c4741;font-weight:600;font-size:14px;box-shadow:none;cursor:pointer;white-space:nowrap}
.tile svg{width:22px;height:22px;flex:none}
.tiles.big{background:#eef1ee;border-radius:14px;padding:4px;gap:4px}
.tiles.big .tile{flex:1 1 0;min-width:0;border:0;border-radius:11px;background:transparent;min-height:50px;font-size:14.5px;color:#55605a;padding:8px 6px}
@media (max-width:520px){.tiles.big .tile{flex-direction:column;gap:3px;font-size:12.5px;min-height:60px}}
#ffKind{flex-wrap:wrap}#ffKind .tile{flex:0 0 auto}
.tiles.big .tile.on{background:#fff;color:var(--c);box-shadow:0 1px 4px rgba(0,0,0,.15),inset 0 -3px 0 var(--c)}
.tiles.small{flex-wrap:wrap}
.tiles.small .tile{flex:0 0 auto;min-height:36px;padding:6px 12px;font-size:13.5px;border-radius:10px}
.tile .dot{width:11px;height:11px;border-radius:50%;border:1.5px solid #333;display:inline-block}
.tile.on{border-color:var(--c);background:color-mix(in srgb,var(--c) 14%,#fff);color:color-mix(in srgb,var(--c) 80%,#000)}
#sheet .sheethead{border-left:5px solid #c9cfcb;padding:2px 0 2px 12px;margin:0 0 12px}
#sheet .sheethead.colored{border-left-color:var(--c)}
#sheet .sheethead>div{display:flex;flex-direction:column}
#sheet .sheethead small,#filterSheet .sheethead small{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--c,#6b756f)}
#sheet .sheethead strong,#filterSheet .sheethead strong{font-size:20px;color:var(--text)}
/* Kartenfilter (Blatt von unten) */
#filterSheet{position:fixed;left:0;right:0;bottom:0;z-index:2100;background:var(--card);border-radius:20px 20px 0 0;max-height:82vh;overflow:auto;padding:6px 16px 18px;box-shadow:0 -10px 40px rgba(0,0,0,.28);max-width:760px;margin:0 auto}
#filterSheet::before{content:"";display:block;width:44px;height:4px;background:var(--line);border-radius:4px;margin:4px auto 8px}
#filterSheet .sheethead{display:flex;justify-content:space-between;align-items:center;border-left:5px solid var(--c);padding:2px 0 2px 12px;margin:0 0 6px}
#filterSheet .sheethead>div{display:flex;flex-direction:column}
.fsec{padding:10px 0}
.fsec+.fsec{border-top:1px dashed var(--line)}
.fhead{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
#fzList{display:flex;flex-wrap:wrap;gap:6px}
.fzchip{display:flex;flex-direction:column;align-items:flex-start;padding:6px 12px;border-radius:10px;border:1.5px solid var(--line);background:#fff;box-shadow:none;cursor:pointer;line-height:1.2}
.fzchip b{font-size:14px}.fzchip small{font-size:11.5px;color:var(--muted)}
.fzchip.on{border-color:var(--g,#1f4d3a);background:color-mix(in srgb,var(--g,#1f4d3a) 10%,#fff)}
.fzrange{display:flex;gap:8px;align-items:flex-end;margin-top:8px}.fzrange label{flex:1;margin:0;min-width:0}.fzrange input{min-width:0;width:100%;padding-left:6px;padding-right:4px}
.radio{height:42px;padding:0 12px;border-radius:10px;border:1.5px solid var(--line);background:#fff;box-shadow:none;flex:none;font-size:13px;font-weight:600}
.radio::after{content:"anwenden"}
.radio.on{border-color:var(--g,#1f4d3a);background:var(--g,#1f4d3a);color:#fff}.radio.on::after{content:"✓ aktiv"}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:10px;background:#fff;color:#9aa3ab;border:1.5px dashed #c9cfcb;box-shadow:none;font-weight:600;font-size:13px;text-decoration:line-through}
.chip.on{border:1.5px solid #3c4741;color:#2b332f;text-decoration:none}
.chip svg{width:20px;height:20px}
.tile.mein{width:100%;justify-content:flex-start;margin-bottom:8px;border-radius:10px}
#filterBadge{color:#ffd400;margin-left:2px}
.rname{background:none;border:0;box-shadow:none;color:#ffd96a;font-weight:700;text-shadow:0 0 3px #000,0 0 3px #000;font-size:11px}
.thumbs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.thumbs img{width:68px;height:68px;object-fit:cover;border-radius:10px;cursor:pointer;box-shadow:var(--sh-s)}
.thumbs .ph{position:relative}.thumbs .ph button{position:absolute;top:2px;right:2px;padding:0 6px;border-radius:8px;background:rgba(192,57,43,.9);color:#fff;border:0;box-shadow:none}

/* Eingabe-Formular (Bottom Sheet) */
#sheet{position:fixed;left:0;right:0;bottom:0;z-index:2000;background:var(--card);border-radius:20px 20px 0 0;max-height:64vh;overflow:auto;padding:6px 16px 18px;box-shadow:0 -10px 40px rgba(0,0,0,.28);max-width:760px;margin:0 auto}
#sheet::before{content:"";display:block;width:44px;height:4px;background:var(--line);border-radius:4px;margin:4px auto 8px}
#sheet .sheethead{display:flex;justify-content:space-between;align-items:center;font-size:17px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0 12px}
.chk{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text);font-weight:500}
.row{display:flex;gap:8px;margin-top:10px}.row .primary{flex:1;padding:12px}
.inline{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}.inline input{flex:1;min-width:130px}
#lightbox{position:fixed;inset:0;background:rgba(0,0,0,.86);z-index:4000;display:flex;align-items:center;justify-content:center}
#lightbox img{max-width:96vw;max-height:96vh;border-radius:8px}

/* Tabellen */
.tablewrap{overflow:auto;background:var(--card);margin-top:8px;border-radius:var(--r);border:1px solid var(--line);box-shadow:var(--sh-s)}
table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}
th,td{border-bottom:1px solid var(--line);padding:8px 12px;text-align:left;white-space:nowrap}
th{background:#f1f4f1;position:sticky;top:0;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}
tbody tr:nth-child(even) td,tr:nth-child(even) td{background:#fafbfa}
tr:hover td{background:var(--g3)}
tr:last-child td{border-bottom:0}
tr.sum td{font-weight:700;background:#eef3ef!important}
#listTabs{display:flex;gap:6px;flex-wrap:wrap}
#listTabs button,#setNav button{border-radius:999px;padding:7px 14px;box-shadow:none}
#listTabs button.on,#setNav button.on{background:var(--g);color:#fff;border-color:var(--g)}
#planGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:4px 12px;margin:10px 0}
.urow{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:6px 0;flex-wrap:wrap}
.urow span{flex:1;min-width:120px}
#view-admin textarea{margin:8px 0}

/* Einstellungen */
#setNav{display:flex;gap:6px;flex-wrap:wrap;margin:4px auto 4px;width:min(780px,100%)}
.rolehelp{margin:4px 0 12px;padding-left:18px}
#userTable select,#userTable input{width:auto;padding:5px 8px;font-size:13px}
#userTable td{vertical-align:middle}
tr.inactive td{opacity:.5}
#toast{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);background:#1b2420;color:#fff;padding:10px 18px;border-radius:999px;z-index:5000;font-size:14px;box-shadow:var(--sh)}

/* Drucken */
@media print{
  body.printing #top,body.printing .filters,body.printing #sheet,body.printing #tabs{display:none!important}
  body.printing .view{position:static;display:block!important;overflow:visible}
  body.printing .view:not(#view-lists){display:none!important}
  body.printing .printtitle{display:block}
  body.printing .tablewrap{border:0;box-shadow:none}
  html,body{height:auto;background:#fff;padding:0!important}
}
.printtitle{display:none;font-size:18px;font-weight:700;margin:0 0 8px}

/* Mobil: Navigation unten */
@media(max-width:720px){
  body{padding-bottom:62px}
  #top{padding:8px 12px}
  #who{margin-left:auto}
  #tabs{position:fixed;left:0;right:0;bottom:0;z-index:1700;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));gap:2px;justify-content:space-around;box-shadow:0 -4px 20px rgba(0,0,0,.08)}
  #tabs button{flex:1;flex-direction:column;gap:2px;border-radius:12px;padding:6px 2px;color:var(--muted);font-size:11px}
  #tabs button:hover{background:none}
  #tabs button.active{background:var(--g3);color:var(--g)}
  #tabs svg{width:22px;height:22px}
  #toast{bottom:92px}
  #fab{bottom:16px}
  #sheet{max-height:70vh}
}
#userTable td{white-space:normal}
#userTable input:not([type=checkbox]){width:110px}
.inline select{flex:1;min-width:130px;width:auto}

.plantbl{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;margin:10px 0;table-layout:fixed}
.plantbl th{position:static;background:none;text-transform:none;letter-spacing:0;font-size:12px;font-weight:700;color:var(--muted);text-align:center;padding:6px 4px;white-space:normal;line-height:1.2;border-bottom:1.5px solid var(--line)}
.plantbl th small{display:block;font-weight:500}
.plantbl th.rvh{text-align:left;width:38%}
.plantbl td{padding:4px;text-align:center;border-bottom:1px solid var(--line);background:#fff!important;white-space:normal}
.plantbl td.rvn{text-align:left;font-weight:600;color:var(--text)}
.plantbl input{width:100%;max-width:72px;text-align:center;padding:8px 4px}
.plantbl .rs,.plantbl tfoot td{font-weight:700}
.plantbl tfoot td{border-top:1.5px solid var(--g);border-bottom:0;background:color-mix(in srgb,var(--g) 9%,#fff)!important;padding:10px 4px}
@media(max-width:720px){#setNav,#listTabs{flex:none;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}#setNav button,#listTabs button{white-space:nowrap;flex:none}#view-lists .filters{flex-direction:column;align-items:stretch}#view-lists .filters h2{font-size:17px}}

/* ================================================================
   Einheitlicher Stil (wie Erfassen/Anzeige): Farbstreifen, Umschalt-Leisten,
   kantige Knoepfe ohne Schatten, Abschnittsnamen in Grossbuchstaben
   ================================================================ */
:root{--r:12px;--r-s:10px;--seg:#eef1ee}
button{border:1.5px solid var(--line);border-radius:10px;box-shadow:none;font-weight:600}
button:hover{background:#f3f5f3}
button.primary{box-shadow:none;border-radius:10px}
button.danger{border-color:#e6b8b1}
input,select,textarea{border:1.5px solid var(--line);border-radius:10px}
label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
label input,label select,label textarea{text-transform:none;letter-spacing:0}
label.chk{text-transform:none;letter-spacing:0;font-size:14px}
/* Karten-Kaesten mit Farbstreifen-Ueberschrift */
.card{box-shadow:none;border:1.5px solid var(--line);border-radius:14px}
.card h2,#listTitle{border-left:5px solid var(--g);padding:1px 0 1px 12px;margin:0 0 12px;font-size:19px}
.card h3{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:18px 0 8px;padding-top:12px;border-top:1px dashed var(--line)}
.card hr{border-top-style:dashed}
#login .card{border:0}
#login h1{text-align:left;border-left:5px solid var(--g);padding-left:12px;font-size:20px}
#login h1::before{content:"Anmeldung";display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--g2);font-weight:700}
/* Umschalt-Leisten (Einstellungen, Listen, Wetter-Tage) */
#setNav,#listTabs,#wdays{background:var(--seg);border-radius:14px;padding:4px;gap:4px;flex-wrap:wrap}
#setNav{margin:6px auto 4px}
#setNav button,#listTabs button,#wdays button{border:0;background:transparent;border-radius:11px;padding:8px 14px;color:#55605a;box-shadow:none}
#setNav button.on,#listTabs button.on,#wdays button.on{background:#fff;color:var(--g);border-color:transparent;box-shadow:0 1px 4px rgba(0,0,0,.15),inset 0 -3px 0 var(--g)}
/* Kopfzeile: aktiver Reiter unterstrichen statt Pille */
#tabs button{border:0;border-radius:8px}
#tabs button.active{background:transparent;box-shadow:inset 0 -3px 0 var(--accent)}
#who{border-radius:8px}
/* Filterleisten (Uebersicht, Listen) */
.filters{gap:12px 16px;padding:10px 14px}
.filters select{border-radius:10px}
#legend>span{background:#fff;border:1.5px solid var(--line);border-radius:10px;padding:3px 10px}
/* Kartenknoepfe */
#mapTools button{border-radius:10px;border:1.5px solid var(--line);box-shadow:0 1px 4px rgba(0,0,0,.18)}
#fab{border-radius:18px;width:58px;height:58px;box-shadow:0 6px 16px rgba(31,77,58,.4)}
.leaflet-bar,.leaflet-control-layers{border-radius:10px!important}
.leaflet-popup-content-wrapper{border-radius:12px}
.leaflet-popup-content b:first-child{display:inline-block;border-left:4px solid var(--g);padding-left:8px}
/* Wetter */
#weather{border-radius:14px;border:1.5px solid var(--line)}
.hch{border-radius:10px;border-width:1.5px}
/* Tabellen */
.tablewrap{box-shadow:none;border:1.5px solid var(--line);border-radius:12px}
tr.sum td{background:color-mix(in srgb,var(--g) 9%,#fff)!important;border-top:1.5px solid var(--g)}
.plantbl input{border-radius:8px}
#toast{border-radius:10px}
/* Mobil: unten aktive Seite mit Strich oben */
@media(max-width:720px){
  #tabs button{border-radius:0}
  #tabs button.active{background:transparent;color:var(--g);box-shadow:inset 0 3px 0 var(--g)}
}
.filters label{display:flex;flex-direction:column;gap:2px}
@media(max-width:720px){
  #view-overview .filters{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;padding:8px 12px}
  #view-overview .filters select{width:100%;min-width:0;padding:7px 8px}
  #view-overview #fCount{align-self:end;padding-bottom:8px}
}
td.neg{color:var(--danger);font-weight:700}
@media(max-width:720px){
  #setNav,#listTabs{flex:none;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}
  #setNav::-webkit-scrollbar,#listTabs::-webkit-scrollbar{display:none}
  #setNav button,#listTabs button{white-space:nowrap;flex:none}
  #view-lists th,#view-lists td{padding:7px 8px}
  #view-lists .filters{flex-direction:row;flex-wrap:wrap}
  #view-lists .filters h2{flex:1 1 100%}
  #view-lists .filters button{flex:1}
}
@media(max-width:720px){
  #userTable,#userTable tbody,#userTable tr,#userTable td{display:block;width:100%}
  #userTable tr:first-child{display:none}
  #userTable tr{border:1.5px solid var(--line);border-radius:12px;padding:8px 10px;margin:0 0 10px;background:#fff}
  #userTable td{border:0;padding:4px 0;display:flex;align-items:center;gap:10px;background:none!important}
  #userTable td[data-l]::before{content:attr(data-l);flex:0 0 72px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
  #userTable td input:not([type=checkbox]),#userTable td select{flex:1;width:auto!important}
  #userTable td.uact{justify-content:flex-end;padding-top:8px}
  #view-admin .tablewrap:has(#userTable){border:0;background:none;overflow:visible}
}

.exifask{border-left:5px solid #2f6f8f;background:color-mix(in srgb,#2f6f8f 8%,#fff);border-radius:0 10px 10px 0;padding:10px 12px;margin:6px 0 10px}
.exifask .inline{margin:8px 0 0}

/* Einrichtungen + Wartungsbuch */
#einrSheet{position:fixed;left:0;right:0;bottom:0;z-index:2150;background:var(--card);border-radius:20px 20px 0 0;max-height:88vh;overflow:auto;padding:6px 16px 18px;box-shadow:0 -10px 40px rgba(0,0,0,.28);max-width:760px;margin:0 auto}
#einrSheet::before{content:"";display:block;width:44px;height:4px;background:var(--line);border-radius:4px;margin:4px auto 8px}
#einrSheet .sheethead{display:flex;justify-content:space-between;align-items:center;border-left:5px solid var(--c);padding:2px 0 2px 12px;margin:0 0 8px}
#einrSheet .sheethead>div{display:flex;flex-direction:column}
#einrSheet .sheethead small{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--c)}
#einrSheet .sheethead strong{font-size:20px}
.tablewrap.cards{background:none;border:0;overflow:visible;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.einrsum{grid-column:1/-1;padding:2px 2px 4px}
.einrcard{display:flex;gap:12px;align-items:center;text-align:left;padding:8px;border:1.5px solid var(--line);border-left:5px solid #6d5a43;border-radius:12px;background:#fff;width:100%}
.einrcard img,.einrcard .noimg{width:64px;height:64px;border-radius:9px;object-fit:cover;flex:none}
.einrcard .noimg{display:flex;align-items:center;justify-content:center;background:#f1efe9;color:#6d5a43}.einrcard .noimg svg{width:30px;height:30px}
.einrcard .ec{display:flex;flex-direction:column;gap:2px;min-width:0}
.einrcard .ec b{font-size:15px}
.badge{display:inline-block;margin:2px 6px 0 0;padding:1px 8px;border-radius:6px;font-size:11.5px;font-weight:700;border:1.5px solid var(--c,#2d6a4f);color:var(--c,#2d6a4f);background:#fff}
.badge.bad{--c:#b5452b;background:color-mix(in srgb,#b5452b 10%,#fff)}
.badge.dim{--c:#9aa3ab;font-weight:600}
.wlog{border-left:4px solid var(--c);padding:6px 0 8px 10px;margin:0 0 10px}
.wlog.offen{background:color-mix(in srgb,#b5452b 6%,#fff);border-radius:0 10px 10px 0}
.wlog .wh{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wlog .wt{margin:4px 0;white-space:pre-wrap}
.wlog .inline{margin:4px 0 0}.wlog button{padding:5px 10px;font-size:13px}
.leaflet-popup-content .neg{color:var(--danger)}

.sztbl input{max-width:110px}

.wsun{margin:6px 0 2px;font-size:13.5px}
.sunchip{background:rgba(255,255,255,.96);border:1.5px solid var(--line);border-radius:10px;padding:5px 10px;font-size:12.5px;font-weight:700;color:#2d6a4f;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.sunchip.nacht{color:#2f3a66}
.tsinfo{display:block;margin-top:4px;font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;color:var(--muted)}
.tsinfo.neg{color:var(--danger);font-weight:700}

.pin.fall{border-style:dashed;box-shadow:0 0 0 2px #5b5f7a,0 2px 5px rgba(0,0,0,.5)}
#fallExtra{border-left:5px solid #5b5f7a;padding:6px 0 2px 12px;margin:6px 0 10px}

.wbbox{border:1.5px solid var(--line);border-left:5px solid #6d5a43;border-radius:0 10px 10px 0;padding:8px 12px;margin:8px 0 10px}
.wbbox summary{cursor:pointer;font-weight:700}
.kasseform{display:grid;grid-template-columns:140px 1fr 170px 130px auto;gap:0 10px;align-items:end;padding:10px 12px;border-bottom:1px solid var(--line)}
.kasseform button{margin-bottom:8px}
@media(max-width:720px){.kasseform{grid-template-columns:1fr 1fr}.kasseform label:nth-child(2){grid-column:1/-1}}

.gastform{display:grid;grid-template-columns:repeat(4,1fr);gap:0 10px;align-items:end;padding:10px 12px;border-bottom:1px solid var(--line)}
.gastform button{margin-bottom:8px}
@media(max-width:720px){.gastform{grid-template-columns:1fr 1fr}}

#offlineBar{background:#2f3a66;color:#fff;font-size:13px;font-weight:600;text-align:center;padding:6px 10px;position:relative;z-index:1700}

/* App-Modus: nur Karte, Menue ueber den Namen oben rechts */
body.appmode{padding-bottom:0}
body.appmode #tabs{display:none!important}
body.appmode #who{cursor:pointer;margin-left:auto}
body.appmode #who::after{content:" ☰";font-weight:700}
body.appmode #top{padding-top:calc(8px + env(safe-area-inset-top))}
body.appmode #fab{bottom:calc(22px + env(safe-area-inset-bottom))}
body.appmode.appsub #setNav,body.appmode.appsub #listTabs,body.appmode.appsub #view-lists .filters:first-child{display:none}
#appMenu{position:fixed;left:0;right:0;bottom:0;z-index:2300;background:var(--card);border-radius:20px 20px 0 0;padding:14px 16px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:8px}
#appMenu .sheethead{display:flex;justify-content:space-between;align-items:center;border-left:5px solid var(--c);padding:2px 0 2px 12px;margin:0 0 6px}
#appMenu .sheethead>div{display:flex;flex-direction:column}#appMenu .sheethead small{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--g)}
#appMenu button,#appMenu .btnlink{padding:13px 14px;text-align:left;font-size:15px}
.btnlink{display:block;border:1.5px solid var(--line);border-radius:10px;color:inherit;text-decoration:none;font-weight:600;background:#fff}
#appBack{position:fixed;left:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:2200;background:var(--g);color:#fff;border-color:var(--g);padding:11px 16px;box-shadow:0 4px 14px rgba(0,0,0,.3)}
/* langer Druck auf die Karte: kein Kopieren-/Sichern-Menue des Handys */
#map{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}


/* ================================================================ Moderne Karte */
/* Symbol-Knoepfe */
#mapTools{top:12px;right:12px;gap:10px}
.leaflet-top.leaflet-right{top:0;right:0}
#view-map .leaflet-top.leaflet-right .leaflet-control-layers{margin:12px 12px 0 0}
#mapTools{top:70px}
.mbtn,#view-map .leaflet-control-layers-toggle{width:46px;height:46px;border-radius:14px!important;display:flex;align-items:center;justify-content:center;padding:0;
  background:rgba(255,255,255,.92)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,.06)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.18)!important;color:#1f2a24;position:relative}
.mbtn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mbtn:active{transform:scale(.95)}
#view-map .leaflet-control-layers{border-radius:14px!important;border:0!important;box-shadow:none!important;background:transparent}
#view-map .leaflet-control-layers-toggle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2a24' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3 2.5 8 12 13l9.5-5z'/%3E%3Cpath d='M2.5 12.5 12 17.5l9.5-5'/%3E%3Cpath d='M2.5 16.5 12 21.5l9.5-5'/%3E%3C/svg%3E")!important;background-size:24px 24px!important;background-repeat:no-repeat!important;background-position:center!important}
#view-map .leaflet-control-layers-expanded{background:rgba(255,255,255,.97)!important;box-shadow:0 6px 20px rgba(0,0,0,.2)!important;padding:10px 12px}
#filterBadge{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:#e0393e;color:transparent;font-size:0;margin:0;box-shadow:0 0 0 2px #fff}
/* Zoom-Knoepfe am Handy weg (zwei Finger), am PC dezent */
#view-map .leaflet-control-zoom{border-radius:14px!important;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.18)!important}
@media (pointer:coarse){#view-map .leaflet-control-zoom{display:none}}
/* Schusszeit-Chip oben Mitte */
#view-map .sunchip{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:900;display:flex;align-items:center;gap:7px;
  background:rgba(20,40,30,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;border:0;border-radius:999px;padding:7px 13px 7px 10px;
  font-size:12.5px;font-weight:600;box-shadow:0 4px 14px rgba(0,0,0,.22);white-space:nowrap;pointer-events:none}
#view-map .sunchip i{width:10px;height:10px;border-radius:50%;background:#ffd400;box-shadow:0 0 0 3px rgba(255,212,0,.25)}
#view-map .sunchip.nacht i{background:#8fa3ff;box-shadow:0 0 0 3px rgba(143,163,255,.25)}
/* Plus-Knopf rund */
#fab{width:62px;height:62px;border-radius:50%;background:linear-gradient(145deg,#2d6a4f,#1f4d3a);box-shadow:0 8px 22px rgba(20,50,35,.45),inset 0 0 0 2px rgba(255,212,0,.55);display:flex;align-items:center;justify-content:center}
#fab svg{width:30px;height:30px;stroke:#fff;stroke-width:2.6;stroke-linecap:round;fill:none}
#fab:active{transform:scale(.94)}
.leaflet-control-attribution{font-size:9px!important;background:rgba(255,255,255,.6)!important;border-radius:6px 0 0 0}
.leaflet-control-scale{opacity:.8}

/* Punkte (weit herausgezoomt) */
.mdot{width:16px;height:16px;border-radius:50%;background:var(--f,var(--c));border:2.5px solid #fff;box-shadow:0 0 0 1.5px var(--c),0 2px 6px rgba(0,0,0,.45)}
.mdot.warte{animation:puls 1.6s infinite}
/* Pins (nah): runder Kopf mit Symbol und Spitze */
.mpin-wrap{background:none;border:0}
.mpin{position:relative;width:38px;height:38px;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);background:var(--c);
  border:2.5px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;margin-left:0}
.mpin>span{transform:rotate(45deg);display:flex;color:#fff}
.mpin svg{width:21px;height:21px}
.mpin.fall{border-style:dashed}
.mpin.warte{opacity:.75}
.mpin .mart{position:absolute;top:-4px;right:-4px;width:13px;height:13px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.mpin .mwarn{position:absolute;top:-6px;right:-6px;width:17px;height:17px;border-radius:50%;background:#e0393e;color:#fff;border:2px solid #fff;
  font:800 11px/13px system-ui;text-align:center;transform:rotate(45deg);font-style:normal}
@keyframes puls{50%{box-shadow:0 0 0 6px rgba(255,255,255,.35),0 2px 6px rgba(0,0,0,.45)}}

/* App-Modus: Kopfzeile halbtransparent ueber der Karte */
body.appmode #top{position:absolute;left:0;right:0;top:0;background:linear-gradient(180deg,rgba(8,22,15,.82) 0%,rgba(8,22,15,.55) 60%,rgba(8,22,15,0) 100%);box-shadow:none;padding-bottom:26px}
body.appmode main{position:absolute;inset:0}
body.appmode .brand{flex-direction:column;align-items:flex-start;gap:0;line-height:1.1}
body.appmode .brand::before{display:none}
body.appmode .brand small{font-size:11.5px;font-weight:600;opacity:.8;letter-spacing:.02em}
body.appmode .brand span{font-size:22px;font-weight:800;letter-spacing:-.01em}
body.appmode #who{background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body.appmode #view-map .sunchip{top:calc(78px + env(safe-area-inset-top))}
body.appmode #mapTools{top:calc(128px + env(safe-area-inset-top))}
body.appmode #view-map .leaflet-top.leaflet-right{top:calc(66px + env(safe-area-inset-top))}
body.appmode #view-map .leaflet-top.leaflet-left{top:calc(66px + env(safe-area-inset-top))}
body.appmode.appsub main{top:0}
body.appmode.appsub #top{position:relative;background:linear-gradient(135deg,#173a2c,#1f4d3a)}
body.appmode.appsub main{position:relative;inset:auto;flex:1}
#mapTools .mbtn{padding:0;border-radius:14px;border:1px solid rgba(0,0,0,.06);box-shadow:0 4px 14px rgba(0,0,0,.18);background:rgba(255,255,255,.92)}


/* ================================================================ Eingabefenster modern */
#sheet{max-height:86vh;padding:0 16px 0;border-radius:24px 24px 0 0;display:flex;flex-direction:column;box-shadow:0 -12px 40px rgba(0,0,0,.32)}
#sheet::before{display:none}
#sheet form{display:flex;flex-direction:column;min-height:0}
#sheet .sheettop{position:sticky;top:0;z-index:5;background:var(--card);margin:0 -16px 6px;padding:8px 16px 8px;border-radius:24px 24px 0 0}
#sheet .sheettop::before{content:"";display:block;width:40px;height:4px;background:#d6dbd7;border-radius:4px;margin:0 auto 10px}
#sheet .sheethead{margin:0}
#sheet .sheethead .x{width:36px;height:36px;border-radius:50%;background:#eef1ee;color:#3c4741;font-size:16px;display:flex;align-items:center;justify-content:center;padding:0}
#sheet .tiles.big{margin-bottom:6px}
#sheet label input,#sheet label select,#sheet label textarea{border-radius:12px;border:1.5px solid #e1e5e1;background:#f8faf8;padding:11px 12px}
#sheet label input:focus,#sheet label select:focus,#sheet label textarea:focus{background:#fff}
#sheet .grid{grid-template-columns:1fr 1fr;gap:0 10px}
#sheet input[type=datetime-local]{min-width:0;font-size:14px}
/* Positions-Karte */
.poscard{display:flex;align-items:center;gap:12px;background:#f3f6f3;border-radius:14px;padding:10px 10px 10px 12px;margin:6px 0 4px}
.posicon{width:38px;height:38px;border-radius:12px;background:var(--g);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.posicon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.postext{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.postext b{font-size:15px}.postext span{font-size:12px;color:var(--muted)}.postext small{font-size:11px;color:#8b958f}
.posgps{flex:none;border-radius:10px;padding:8px 10px;font-size:13px;background:#fff}
/* Fotos */
.fotorow{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none}
.fotobtn{flex:none;width:78px;height:78px;margin:0;border-radius:14px;border:1.5px dashed #b9c3bc;background:#f8faf8;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  text-transform:none!important;letter-spacing:0!important;font-size:12px!important;font-weight:600!important;color:#3c4741!important;cursor:pointer}
.fotobtn svg{width:26px;height:26px;fill:none;stroke:var(--g);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fotobtn input{display:none}
.fotoprev{display:flex;gap:8px}
.fotoprev .ph{position:relative;flex:none}
.fotoprev img{width:78px;height:78px;object-fit:cover;border-radius:14px;display:block}
.fotoprev button{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;padding:0;background:rgba(0,0,0,.6);color:#fff;border:0;font-size:12px;line-height:24px}
/* Foto-Hinweis */
.exifask{border:0;border-radius:14px;background:#eef3f6;padding:12px;margin:4px 0 10px}
.exh{display:flex;flex-direction:column;gap:2px}.exh b{font-size:14px}.exh span{font-size:12.5px;color:var(--muted)}
.exh.ok b::before{content:"✓ ";color:var(--g)}
.exbtns{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.exbtns button{flex:1;padding:10px;border-radius:10px;font-size:14px}
/* Leiste unten fix, mit Abstand zur Android-/iPhone-Leiste */
.sheetbar{position:sticky;bottom:0;z-index:5;display:flex;gap:10px;background:var(--card);margin:6px -16px 0;padding:10px 16px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -6px 16px rgba(0,0,0,.06)}
.sheetbar .primary{flex:1;padding:14px;font-size:16px;border-radius:14px}
.sheetbar .danger{width:52px;padding:0;border-radius:14px;display:flex;align-items:center;justify-content:center}
.sheetbar .danger svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sheetbar .danger.hidden{display:none}
/* Beim offenen Fenster Kartenknoepfe ausblenden (keine Ueberlappung) */
body:has(#sheet:not(.hidden)) #mapTools, body:has(#sheet:not(.hidden)) #view-map .sunchip,
body:has(#sheet:not(.hidden)) #fab, body:has(#sheet:not(.hidden)) #view-map .leaflet-top{opacity:0;pointer-events:none;transition:opacity .15s}
@media(max-width:720px){#sheet{max-height:82vh}}
body.appmode #sheet{max-height:calc(78vh - env(safe-area-inset-top))}

/* Wetter */
#weather{max-height:62%}
.wday{display:flex;align-items:center;gap:12px;margin:8px 0 2px;padding:8px 10px;background:#f3f6f3;border-radius:12px}
.wday div{display:flex;flex-direction:column;line-height:1.3}.wday b{font-size:15px}.wday span{font-size:12.5px;color:var(--muted)}
.wnow{margin:8px 0}
.wnh{display:flex;align-items:center;gap:8px;font-size:15px;margin-bottom:6px}
.wgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:6px}
.wgrid span{display:flex;flex-direction:column;background:#f8faf8;border:1px solid var(--line);border-radius:10px;padding:6px 8px;font-weight:600;font-size:13.5px}
.wgrid small{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700}
.wgrid em{font-style:normal;font-weight:500;font-size:11.5px;color:var(--muted)}
.hch{flex:0 0 52px;display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px 0 0;overflow:hidden;position:relative}
.hch b{font-size:11px}.hch .ht{font-weight:700;font-size:12.5px}.hch .hw{font-size:10.5px;color:var(--muted)}
.hch svg{margin:1px auto}
.hch .hp{display:block;width:100%;height:4px;background:linear-gradient(90deg,#3b8ede var(--p),#e8eef4 var(--p));margin-top:4px}

#appMenu .btnlink small{display:block;font-weight:500;font-size:12.5px;color:var(--muted);margin-top:2px}
#zurApp{position:fixed;left:12px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:2200;background:var(--g);color:#fff;text-decoration:none;font-weight:700;
  padding:11px 16px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.3)}
body.involl #top{padding-top:calc(8px + env(safe-area-inset-top))}

.fokuschk{margin:0 0 10px}

/* ================================================================ Anmeldung */
#login.overlay{background:radial-gradient(900px 600px at 15% -10%,#2d6a4f 0%,transparent 60%),radial-gradient(700px 500px at 110% 110%,#3d5a2a 0%,transparent 55%),linear-gradient(160deg,#143326,#0c2219);overflow:hidden}
.loginbg{position:absolute;inset:0;pointer-events:none}
.loginbg i{position:absolute;border-radius:50%;border:1.5px solid rgba(255,212,0,.12);animation:ring 9s linear infinite}
.loginbg i:nth-child(1){width:520px;height:520px;left:50%;top:42%;margin:-260px}
.loginbg i:nth-child(2){width:820px;height:820px;left:50%;top:42%;margin:-410px;animation-delay:-3s}
.loginbg i:nth-child(3){width:1120px;height:1120px;left:50%;top:42%;margin:-560px;animation-delay:-6s}
@keyframes ring{0%{transform:scale(.6);opacity:0}30%{opacity:1}100%{transform:scale(1.15);opacity:0}}
.logincard{position:relative;width:min(360px,100%);background:rgba(255,255,255,.97);border-radius:26px;padding:30px 24px 22px;box-shadow:0 30px 80px rgba(0,0,0,.45);text-align:center;animation:cardin .6s cubic-bezier(.2,.8,.2,1) both .15s}
@keyframes cardin{from{opacity:0;transform:translateY(24px) scale(.98)}to{opacity:1;transform:none}}
.loginlogo{width:112px;height:112px;margin:-86px auto 10px;filter:drop-shadow(0 12px 24px rgba(0,0,0,.35));animation:logoin .8s cubic-bezier(.2,.9,.3,1.3) both .25s}
.loginlogo svg{width:100%;height:100%;display:block}
@keyframes logoin{from{opacity:0;transform:scale(.5) rotate(-8deg)}to{opacity:1;transform:none}}
.logo-anim .lg-rand{animation:zeichnen 2.2s ease-in-out forwards .7s}
.logo-anim .lg-fill{opacity:0;animation:einblenden .8s ease forwards 2.2s}
.logo-anim .lg-geweih{opacity:0;transform-origin:120px 140px;animation:geweih .9s cubic-bezier(.2,.9,.3,1.2) forwards 1.6s}
.logo-anim .lg-text{opacity:0;animation:einblenden .7s ease forwards 2.4s}
@keyframes zeichnen{to{stroke-dashoffset:0}}
@keyframes einblenden{to{opacity:1}}
@keyframes geweih{from{opacity:0;transform:translateY(10px) scale(.7)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.logo-anim *,.loginbg i,.logincard,.loginlogo{animation:none!important;opacity:1!important;stroke-dashoffset:0!important}}
#login h1{border:0;padding:0;text-align:center;font-size:24px;margin:0;line-height:1.15}
#login h1::before{content:none}
#login h1 small{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--g2);font-weight:700;margin-bottom:2px}
.loginsub{margin:4px 0 18px;color:var(--muted);font-size:13px}
.lf{position:relative;display:block;margin:0 0 12px;text-align:left}
.lf input{width:100%;height:54px;padding:20px 44px 6px 14px!important;border-radius:14px!important;border:1.5px solid #dfe5e0!important;background:#f6f8f6!important;font-size:16px!important}
.lf input:focus{background:#fff!important;border-color:var(--g2)!important}
.lf span{position:absolute;left:15px;top:17px;font-size:15px;color:#7d8a83;text-transform:none;letter-spacing:0;font-weight:500;pointer-events:none;transition:all .15s}
.lf input:focus+span,.lf input:not(:placeholder-shown)+span{top:7px;font-size:11px;font-weight:700;color:var(--g2);letter-spacing:.04em}
.pwshow{position:absolute;right:6px;top:7px;width:40px;height:40px;border:0!important;background:none!important;box-shadow:none;padding:0;color:#7d8a83}
.pwshow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.pwshow.on{color:var(--g)}
.loginbtn{width:100%;height:52px;border-radius:14px!important;font-size:16px;margin-top:6px;background:linear-gradient(145deg,#2d6a4f,#1f4d3a)!important;box-shadow:0 8px 20px rgba(31,77,58,.35)!important}
.loginfoot{margin:14px 0 0;font-size:12px;color:var(--muted)}
#login .err{text-align:left}

.edhilfe{margin:4px 0 10px;padding-left:20px;line-height:1.5}
#sp-reviere .inline .chk{margin:0}

.edrolle{background:#fff7d6;border-left:5px solid #ffd400;border-radius:0 10px 10px 0;padding:8px 12px;font-size:13.5px}

.edpunkt.on{background:#b5452b!important;color:#fff!important;border-color:#b5452b!important}

.edstart.on{background:#ff3b30!important;color:#fff!important;border-color:#ff3b30!important}

/* Revier-Editor breit */
#sp-reviere .card.wide:has(#emap){width:min(1700px,calc(100vw - 24px))}
#view-admin:has(#sp-reviere:not(.hidden)) #setNav{width:min(1700px,calc(100vw - 24px))}
#emap{height:calc(100vh - 290px);min-height:420px}
.edhilfebox{margin:4px 0 8px}.edhilfebox summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--g2)}
#sp-reviere .inline{gap:8px}
/* Vollbild */
.card.edvoll{position:fixed;inset:0;z-index:2600;width:100%!important;max-width:none;margin:0;border-radius:0;display:flex;flex-direction:column;padding:10px 12px}
.card.edvoll>h2,.card.edvoll>.edrolle,.card.edvoll>.edhilfebox,.card.edvoll>[data-min]{display:none!important}
.card.edvoll #emap{flex:1;height:auto;min-height:0;margin-top:6px}
body.edvoll-an #tabs,body.edvoll-an #top{visibility:hidden}
/* Einstellungen: alle Seiten so breit wie der Revier-Editor */
#view-admin .card.wide{width:min(1700px,calc(100vw - 24px))}
#view-admin #setNav{width:min(1700px,calc(100vw - 24px))}

/* ================================================================ Kopfzeile neu (PC) */
@media(min-width:721px){
  #top{height:64px;padding:0 20px;gap:24px;background:linear-gradient(180deg,#1d4a37,#173c2d);box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 6px 20px rgba(0,0,0,.18)}
  .brand{gap:11px}
  .brand::before{display:none}
  .brandlogo{width:38px;height:38px;border-radius:11px;box-shadow:0 2px 8px rgba(0,0,0,.35)}
  .brandtxt{display:flex;flex-direction:column;line-height:1.05;font-size:17px;font-weight:800;letter-spacing:-.01em}
  .brandtxt small{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#ffd400;opacity:.85}
  #tabs{flex:0 1 auto;margin:0 auto;background:rgba(0,0,0,.18);border-radius:14px;padding:4px;gap:2px;box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
  #tabs button{border-radius:10px!important;padding:8px 16px;color:#c3d8cc;font-weight:600;font-size:14.5px;transition:background .15s,color .15s}
  #tabs button:hover{background:rgba(255,255,255,.08);color:#fff}
  #tabs button.active{background:#f4f7f4;color:#173c2d;box-shadow:0 2px 6px rgba(0,0,0,.25)!important}
  #tabs button.active svg{color:#2d6a4f}
  #who{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.08);border-radius:999px;padding:4px 14px 4px 4px;cursor:pointer;max-width:none;transition:background .15s}
  #who:hover{background:rgba(255,255,255,.15)}
  #who .avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#ffd400,#e0a800);color:#173c2d;font:800 13px/34px system-ui;text-align:center;font-style:normal;flex:none}
  #who span{display:flex;flex-direction:column;line-height:1.15}
  #who b{font-size:13px}
  #who small{font-size:11px;opacity:.75}
}
@media(max-width:720px){.brandlogo{width:28px;height:28px;border-radius:8px}.brandtxt small{display:none}.brand::before{display:none}#who .avatar{display:none}#who small{display:none}}
/* Eingabefenster: Inhalte nicht zusammendruecken (Kacheln/Foto-Knoepfe wurden abgeschnitten) */
#sheet form{min-height:auto}
#sheet form>*{flex-shrink:0}
#sheet .tiles,#sheet .fotorow{overflow-y:visible}

/* Listen: Gruppen + Unterpunkte */
.listnav{align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:6px}
.listgroups{display:flex;gap:8px;flex-wrap:wrap}
.listgroups button{display:flex;align-items:center;gap:10px;padding:8px 16px 8px 12px;border-radius:14px;border:1.5px solid var(--line);background:#fff;color:#3c4741;text-align:left;min-height:52px}
.listgroups button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.listgroups button span{display:flex;flex-direction:column;line-height:1.15;font-weight:700;font-size:15px}
.listgroups button small{font-size:11.5px;font-weight:600;color:var(--muted)}
.listgroups button.on{background:var(--g);border-color:var(--g);color:#fff;box-shadow:0 4px 12px rgba(31,77,58,.3)}
.listgroups button.on small{color:#cfe3d8}
.ljahr{display:flex;align-items:center;gap:8px;margin:0}
.ljahr select{width:auto}
.listsub{padding-top:0}
#listTabs{background:transparent!important;padding:0!important;gap:4px;border-bottom:1.5px solid var(--line);border-radius:0!important;width:100%}
#listTabs button{background:none!important;border:0!important;border-radius:0!important;padding:10px 14px!important;color:#5d6862;box-shadow:none!important;margin-bottom:-1.5px;border-bottom:3px solid transparent!important}
#listTabs button.on{color:var(--g)!important;border-bottom-color:var(--g)!important;font-weight:700}
@media(max-width:720px){.listgroups{flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none}.listgroups button{flex:none;min-height:46px;padding:6px 12px 6px 10px}.ljahr{width:100%}}
.listgroups button span{white-space:nowrap}
@media(max-width:720px){#view-lists .listnav{flex-direction:column;align-items:stretch}.ljahr{flex-direction:row!important;justify-content:flex-start;align-items:center}.ljahr select{flex:0 0 auto}}

.verinfo{margin:14px 0 0;font-size:11px;color:#9aa5a0;text-align:center;letter-spacing:.02em;user-select:text}

/* ================================================================ Eingabefenster kompakt (ohne Scrollen) */
#sheet{padding:0 14px}
#sheet .sheettop{padding:6px 14px 4px;margin:0 -14px 4px}
#sheet .sheettop::before{margin-bottom:6px}
#sheet .sheethead small{font-size:10px}
#sheet .sheethead strong{font-size:17px}
#sheet .sheethead .x{width:32px;height:32px;font-size:14px}
#sheet .tiles.big{padding:3px;margin-bottom:4px}
#sheet .tiles.big .tile{flex-direction:row;gap:6px;min-height:40px;font-size:13px;padding:6px 4px}
#sheet .tiles.big .tile svg{width:20px;height:20px}
#sheet .tiles{padding-bottom:6px}
#sheet .tiles:not(.big):not(.small) .tile{min-height:38px;padding:6px 10px;font-size:13px}
#sheet .tiles.small .tile{min-height:32px;padding:4px 10px;font-size:12.5px}
.poscard{padding:6px 8px;gap:10px;margin:2px 0;border-radius:12px}
.posicon{width:30px;height:30px;border-radius:9px}.posicon svg{width:18px;height:18px}
.postext{flex-direction:row;align-items:baseline;gap:8px;flex-wrap:wrap}
.postext b{font-size:14px}.postext span{font-size:11.5px}
.posgps{width:38px;height:38px;padding:0;border-radius:10px;display:flex;align-items:center;justify-content:center}
.posgps svg{width:22px;height:22px;fill:none;stroke:var(--g);stroke-width:1.8}
#sheet label{margin:4px 0;font-size:10px}
#sheet label input,#sheet label select,#sheet label textarea{padding:7px 10px;margin-top:2px;font-size:14px}
#sheet .grid{gap:0 8px}
.tsinfo{font-size:10.5px;margin-top:2px}
.notizrow{display:flex;gap:6px;align-items:stretch;margin:6px 0 2px}
.notizrow textarea{flex:1;min-width:0;border-radius:12px;border:1.5px solid #e1e5e1;background:#f8faf8;padding:9px 10px;font-size:14px;resize:none;height:44px}
.notizrow textarea:focus{background:#fff;height:72px;outline:0;border-color:var(--g2)}
.notizrow .fotobtn{width:44px;height:44px;flex:none;border-radius:12px}
.notizrow .fotobtn svg{width:22px;height:22px}
.fotorow{padding:0}
.fotorow:not(:has(img)){display:none}
.fotoprev img{width:56px;height:56px;border-radius:10px}
.sheetbar{padding:8px 14px calc(8px + env(safe-area-inset-bottom));margin:4px -14px 0}
.sheetbar .primary{padding:11px;font-size:15px}
#sheet .fhead{margin:4px 0 4px}
.exifask{padding:8px 10px;margin:4px 0 6px}
/* Sonnenzeit-Chip nicht mitten in der Karte */
#view-map .sunchip{top:auto;bottom:34px;left:10px;transform:none;padding:5px 11px 5px 8px;font-size:11.5px;background:rgba(20,40,30,.72)}
body.appmode #view-map .sunchip{top:calc(70px + env(safe-area-inset-top));bottom:auto;left:16px;background:rgba(255,255,255,.16);box-shadow:none;padding:3px 10px 3px 7px;font-size:11.5px}
/* Eingabefenster: mehr Hoehe, damit nichts scrollt */
body.appmode #sheet{max-height:calc(100vh - 96px - env(safe-area-inset-top))}
@media(max-width:720px){#sheet{max-height:calc(100vh - 96px)}}

/* Sonnenzeit: Symbol statt Wort */
.sunchip svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
#view-map .sunchip{color:#ffd400}
#view-map .sunchip.nacht{color:#b9c6ff}
#view-map .sunchip span{color:#fff}
body.appmode .brand small{display:flex;align-items:center;gap:10px}
body.appmode .brand .sunchip{position:static;transform:none;display:inline-flex;align-items:center;gap:4px;padding:0;margin:0;background:none;border:0;box-shadow:none;font-size:12px;font-weight:700;color:#ffd400;opacity:1}
body.appmode .brand .sunchip.nacht{color:#b9c6ff}
body.appmode .brand .sunchip svg{width:15px;height:15px}
body.appmode .brand .sunchip span{color:#fff;font-size:12.5px;font-weight:700;letter-spacing:0}
#view-map .sunchip{bottom:58px}

/* Detailseite (Listen -> Eintrag) */
#listTable tr.klick{cursor:pointer}
#listTable tr.klick:hover td{background:#eef5ef}
#detail{position:fixed;inset:0;z-index:3000;background:rgba(10,25,18,.55);display:flex;align-items:flex-start;justify-content:center;padding:4vh 12px;overflow:auto}
#detail .dcard{background:#fff;border-radius:18px;width:100%;max-width:760px;box-shadow:0 18px 50px rgba(0,0,0,.35);overflow:hidden}
#detail .dhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;background:var(--c);color:#fff}
#detail .dhead small{display:block;font-size:12px;font-weight:600;opacity:.85;text-transform:uppercase;letter-spacing:.05em}
#detail .dhead strong{display:block;font-size:22px;font-weight:800;line-height:1.2}
#detail .dhead span{display:block;font-size:13.5px;opacity:.9;margin-top:2px}
#detail .dhead .x{background:rgba(255,255,255,.18);color:#fff;border:0;border-radius:10px;width:38px;height:38px;font-size:18px;flex:none}
#detail .dbody{padding:16px 18px 18px}
#dmap{height:260px;border-radius:12px;margin-bottom:12px}
#detail .dfotos{display:flex;gap:8px;overflow-x:auto;margin-bottom:12px}
#detail .dfotos img{height:150px;border-radius:10px;cursor:zoom-in;flex:none}
#detail .dtab{width:100%;border-collapse:collapse;font-size:14px}
#detail .dtab th{text-align:left;font-weight:600;color:var(--muted,#6b746f);padding:7px 12px 7px 0;width:38%;vertical-align:top;border-bottom:1px solid #eef0ee}
#detail .dtab td{padding:7px 0;border-bottom:1px solid #eef0ee}
#detail .dbtns{margin-top:14px;justify-content:flex-end;gap:8px}
@media (max-width:600px){#detail{padding:0}#detail .dcard{border-radius:0;min-height:100%}#dmap{height:210px}}
@media print{#detail{display:none!important}}
#detail .dtab{table-layout:fixed}
#detail .dtab th{text-transform:none;letter-spacing:0;background:none;font-size:13px}
#detail .dtab td{overflow-wrap:anywhere;background:none}

/* Jagdgesellschaften (Betreiber) */
.mdtab{width:100%;border-collapse:collapse;font-size:14px;margin:6px 0 14px}
.mdtab th,.mdtab td{text-align:left;padding:8px 8px 8px 0;border-bottom:1px solid #eef0ee;vertical-align:top}
.mdtab tr.aus td{opacity:.55}
.mdtab .mdbtns{white-space:nowrap}
.mdtab .mdbtns button{padding:5px 9px;font-size:12.5px;margin:0 4px 4px 0}
.mdform{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;align-items:end}
.mdneu{margin-top:12px;padding:12px 14px;border-radius:12px;background:#fff8d6;border:1px solid #f0dc7a;line-height:1.6}

.jagdwahl{display:flex;flex-direction:column;gap:8px;margin-top:6px;color:var(--text)}
.jagdwahl button{padding:11px;border-radius:10px;border:1.5px solid var(--line);background:#fff;font-weight:600}

/* Mitteilungen */
#btnMit{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;border:0;
  background:rgba(255,255,255,.14);color:#fff;margin-left:auto;margin-right:8px;flex:none}
#btnMit svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#btnMit i{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:9px;background:#d64545;color:#fff;font:700 11px/18px system-ui,sans-serif;font-style:normal;padding:0 5px;box-shadow:0 0 0 2px #1f4d3a}
body.appmode #btnMit{background:rgba(255,255,255,.16);margin-left:auto}
#mitPanel{position:fixed;inset:0;z-index:3000;background:rgba(10,25,18,.55);display:flex;align-items:flex-start;justify-content:center;padding:4vh 12px;overflow:auto}
#mitPanel .dcard{background:#fff;border-radius:18px;width:100%;max-width:680px;box-shadow:0 18px 50px rgba(0,0,0,.35);overflow:hidden}
#mitPanel .dhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;background:var(--c);color:#fff}
#mitPanel .dhead small{display:block;font-size:12px;font-weight:600;opacity:.85;text-transform:uppercase;letter-spacing:.05em}
#mitPanel .dhead strong{display:block;font-size:22px;font-weight:800}
#mitPanel .dhead span{display:block;font-size:13.5px;opacity:.9}
#mitPanel .dhead .x{background:rgba(255,255,255,.18);color:#fff;border:0;border-radius:10px;width:38px;height:38px;font-size:18px;flex:none}
#mitPanel .dbody{padding:16px 18px 18px}
.mitform{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #eef0ee}
.mitform input,.mitform textarea{width:100%;box-sizing:border-box}
.mitform .row{justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.mit{padding:12px 14px;border-radius:12px;background:#f4f7f4;margin-bottom:10px;border-left:4px solid #9bb5a5}
.mit.neu{background:#fffbe6;border-left-color:#ffd400}
.mit.wichtig{border-left-color:#d64545}
.mit p{margin:6px 0;line-height:1.45}
.mitkopf{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.mitdel{border:0;background:none;color:#999;font-size:15px;padding:0 4px}
@media (max-width:600px){#mitPanel{padding:0}#mitPanel .dcard{border-radius:0;min-height:100%}}
@media print{#mitPanel{display:none!important}}
#btnMit:not(.hidden) + #who{margin-left:0!important}
.mitform label.chk{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;text-align:left;margin:0}
.mitform label.chk input{width:auto;flex:none}
#top #btnMit svg{width:21px!important;height:21px!important}
/* Vollbild-Fenster in der App: Kopfzeile unter die Statusleiste (Kamera/Uhr) schieben */
#detail .dhead,#mitPanel .dhead{padding-top:calc(16px + env(safe-area-inset-top))}
@media (min-width:601px){#detail .dhead,#mitPanel .dhead{padding-top:16px}}
body.appmode #detail .dhead,body.appmode #mitPanel .dhead{padding-top:max(calc(16px + env(safe-area-inset-top)),40px)}
/* Schonzeiten: heute erlaubt (gruen) / Schonzeit (rot) */
#szTable tr.sz-offen td{background:#eaf6ee}
#szTable tr.sz-zu td{background:#fdecec}
#szTable tr.sz-offen td.rvn{box-shadow:inset 4px 0 0 #2e9d5b}
#szTable tr.sz-zu td.rvn{box-shadow:inset 4px 0 0 #d64545}
.szb-offen,.szb-zu{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:700;color:#fff}
.szb-offen{background:#2e9d5b}
.szb-zu{background:#d64545}
.szheute{white-space:nowrap}
#szTable.nurlesen input{border-color:transparent;background:transparent;box-shadow:none;pointer-events:none}
/* Schonzeiten-Uebersicht (Karte) */
#szPanel{position:fixed;inset:0;z-index:3000;background:rgba(10,25,18,.55);display:flex;align-items:flex-start;justify-content:center;padding:4vh 12px;overflow:auto}
#szPanel .dcard{background:#fff;border-radius:18px;width:100%;max-width:560px;box-shadow:0 18px 50px rgba(0,0,0,.35);overflow:hidden}
#szPanel .dhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;padding-top:calc(16px + env(safe-area-inset-top));background:var(--c);color:#fff}
body.appmode #szPanel .dhead{padding-top:max(calc(16px + env(safe-area-inset-top)),40px)}
#szPanel .dhead small{display:block;font-size:12px;font-weight:600;opacity:.85;text-transform:uppercase;letter-spacing:.05em}
#szPanel .dhead strong{display:block;font-size:22px;font-weight:800}
#szPanel .dhead span{display:block;font-size:13.5px;opacity:.9}
#szPanel .dhead .x{background:rgba(255,255,255,.18);color:#fff;border:0;border-radius:10px;width:38px;height:38px;font-size:18px;flex:none}
#szPanel .dbody{padding:14px 18px 18px}
.szh{margin:6px 0 8px;font-size:14px;text-transform:uppercase;letter-spacing:.05em}
.szh.offen{color:#23824b}.szh.zu{color:#c23b3b}
.szchips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.szc{display:inline-flex;align-items:baseline;gap:6px;padding:7px 12px;border-radius:999px;font-weight:700;font-size:14px}
.szc.offen{background:#e3f4e9;color:#1d6e3f;border:1.5px solid #9fd3b2}
.szc.zu{background:#fde8e8;color:#a52f2f;border:1.5px solid #f0a9a9}
.szc small{font-weight:600;opacity:.8;font-size:12px}
@media (min-width:601px){#szPanel .dhead{padding-top:16px}}
@media (max-width:600px){#szPanel{padding:0}#szPanel .dcard{border-radius:0;min-height:100%}}
.szquelle{margin:4px 0 10px;padding:9px 12px;border-radius:10px;background:#eef5f0;font-size:13.5px}
.szbl{display:flex;align-items:center;gap:8px;text-transform:none;letter-spacing:0;font-size:14px}
.szbl select{width:auto}
/* Termine & Mitteilungen */
.mittabs{display:flex;gap:6px;padding:10px 18px 0;border-bottom:1px solid #e6ebe7;background:#fff}
.mittabs button{border:0;background:none;padding:10px 14px;font-weight:700;color:#6b746f;border-bottom:3px solid transparent;position:relative}
.mittabs button.on{color:#1f4d3a;border-bottom-color:#ffd400}
.mittabs button i{display:inline-block;min-width:18px;height:18px;border-radius:9px;background:#d64545;color:#fff;font:700 11px/18px system-ui,sans-serif;font-style:normal;padding:0 5px;margin-left:4px}
#terNeu{margin-bottom:14px}
#terNeu summary{cursor:pointer;font-weight:700;color:#1f4d3a;padding:8px 0}
.terzeit{gap:10px;flex-wrap:wrap}.terzeit label{flex:1;min-width:170px}
.termin{display:flex;gap:12px;padding:12px;border-radius:12px;background:#f4f7f4;margin-bottom:10px;border-left:4px solid #9bb5a5}
.termin.neu{background:#fffbe6;border-left-color:#ffd400}
.tdatum{flex:none;width:52px;text-align:center;background:#1f4d3a;color:#fff;border-radius:10px;padding:6px 0;line-height:1.1;align-self:flex-start}
.tdatum b{display:block;font-size:22px}.tdatum span{display:block;font-size:12px;text-transform:uppercase}.tdatum small{display:block;font-size:11px;opacity:.8}
.tinhalt{flex:1;min-width:0}.tinhalt p{margin:6px 0;line-height:1.45}
.tzeit{font-size:13.5px;color:#4b5a52;margin-top:2px}
.tantwort{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}
.tantwort button{padding:6px 11px;border-radius:999px;border:1.5px solid #cfd8d2;background:#fff;font-size:13px;font-weight:600}
.tantwort button.on.ja{background:#2e9d5b;border-color:#2e9d5b;color:#fff}
.tantwort button.on.nein{background:#d64545;border-color:#d64545;color:#fff}
.tics{font-size:13px;margin-left:auto;color:#1f4d3a;font-weight:600}
.tleute{margin-top:6px;font-size:13px}.tleute summary{cursor:pointer;color:#4b5a52}
.tvorbei{margin-top:10px}.tvorbei summary{cursor:pointer;color:#6b746f;padding:6px 0}.tvorbei .termin{opacity:.7}
/* Benutzerverwaltung: Filter und Seiten */
.ufilter{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:10px 0 6px;align-items:end}
.ufilter label{display:flex;flex-direction:column;gap:4px}
.ufilter .nurBetreiber{grid-column:1/-1}
.uinfo{font-size:13px;color:#4b5a52;margin:6px 0}
.useiten{display:flex;align-items:center;justify-content:center;gap:12px;margin:10px 0 4px;font-size:14px}
.useiten button[disabled]{opacity:.4}
details.rolehelp summary{cursor:pointer;margin-bottom:4px}
.uneujagd{grid-column:1/-1;display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:12px;background:#f4f7f4;border:1.5px dashed #9bb5a5}
.uneujagd .row{justify-content:flex-end;gap:8px}
.dorisliste{display:flex;flex-direction:column;gap:6px;margin:8px 0;max-height:320px;overflow:auto}
.dorisitem{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:10px;background:#f4f7f4}
.dorisitem span{flex:1}.dorisitem small{color:#6b746f}
.dorisitem.aktiv{background:#fff4e0;border:1.5px solid #ffb347}
.dorisitem button{padding:5px 10px;font-size:13px}
.beleg{position:relative;display:inline-block}
.beleg button{position:absolute;top:2px;right:2px;border:0;border-radius:50%;width:22px;height:22px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;padding:0}
.beschauup{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:7px 12px;border-radius:999px;background:#1f4d3a;color:#fff;font-weight:600;font-size:13px;cursor:pointer;text-transform:none;letter-spacing:0}
.beschauup input{display:none}
#detail .dtab .thumbs img{height:90px;border-radius:8px;cursor:zoom-in;margin:0 6px 6px 0}
#plattformLeiste{position:fixed;top:0;left:0;right:0;z-index:2500;display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 12px;padding-top:calc(6px + env(safe-area-inset-top));background:#ffd400;color:#1f2a24;font-size:13.5px}
#plattformLeiste button{padding:4px 12px;border-radius:999px;border:0;background:#1f2a24;color:#fff;font-weight:600;font-size:13px}
body.mitleiste{padding-top:38px}
body.mitleiste.appmode #top{top:38px}
.jgtip{font-weight:700;font-size:12.5px;color:#8a3d00;border:1.5px solid #ff7a00;background:#fffaf3}
.gesamtwahl{display:flex;gap:6px;background:#fff;border-radius:12px;padding:6px;box-shadow:0 2px 10px rgba(0,0,0,.25);max-width:calc(100vw - 90px)}
.gesamtwahl select{max-width:62vw;font-weight:600}
.gesamtwahl button{padding:6px 12px;border-radius:9px;border:0;background:#1f4d3a;color:#fff;font-weight:700}
body.plattform #btnSchon,body.plattform #btnFilter,body.plattform #btnWeather,body.plattform #sunChip{display:none!important}

/* Kartenknoepfe unten rechts (Revier, Standort) + Kompass */
#mapNav{position:absolute;right:18px;bottom:100px;z-index:900;display:flex;flex-direction:column;gap:10px}
body.appmode #mapNav{bottom:calc(100px + env(safe-area-inset-bottom))}
#mapNav .mbtn{padding:0;border-radius:14px;border:1px solid rgba(0,0,0,.06);box-shadow:0 4px 14px rgba(0,0,0,.18);background:rgba(255,255,255,.92)}
#mapNav .mbtn svg{width:24px;height:24px;fill:none;stroke:#1f2a24;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#btnLocate.sucht svg{animation:gpsPuls 1s ease-in-out infinite}
@keyframes gpsPuls{50%{opacity:.25}}
body:has(#sheet:not(.hidden)) #mapNav,body:has(#sheet:not(.hidden)) #kompass{opacity:0;pointer-events:none;transition:opacity .15s}
#kompass{position:absolute;left:12px;bottom:100px;z-index:850;width:40px;height:40px;opacity:.85;-webkit-tap-highlight-color:transparent}
body.appmode #kompass{bottom:calc(100px + env(safe-area-inset-bottom))}
#kompass svg{width:100%;height:100%;filter:drop-shadow(0 1px 3px rgba(0,0,0,.35))}
#kompass circle{fill:rgba(255,255,255,.88);stroke:rgba(0,0,0,.12);stroke-width:1}
#kompass .kc{fill:#1f2a24;stroke:#fff;stroke-width:.8}
#kompass .kn{fill:#d63c2f}
#kompass .ks{fill:#9aa3a0}
#kompass text{font:800 7.5px system-ui,sans-serif;fill:#d63c2f;text-anchor:middle}
#kompass #kNadel{transition:transform .25s linear}

/* Verlauf */
.h2btn{float:right;font-size:13px;font-weight:600;padding:6px 12px}
.vlsuche{width:100%;margin-bottom:10px}
.vlliste h4{margin:14px 0 4px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#6b7a72}
.vlliste .vl{display:flex;gap:12px;padding:7px 4px;border-bottom:1px solid #eef1ee;font-size:14px;line-height:1.35}
.vlliste .vl time{flex:none;width:44px;color:#6b7a72;font-variant-numeric:tabular-nums}
.vlliste .vl.klick{cursor:pointer}.vlliste .vl.klick:hover{background:#f3f7f4}
#vlMehr{margin-top:12px;width:100%}

/* Kartenflaechen: kein Fokus-Rahmen beim Antippen */
.leaflet-container path.leaflet-interactive:focus,.leaflet-container .leaflet-interactive:focus{outline:none}

/* Schonzeiten: Gruppen, Details */
.szkopf{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;font-size:13px;color:#4b5a52}
.szkopf .seg{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.szkopf .seg button{border:0;border-radius:0;padding:6px 12px;font-size:13px;background:#fff}
.szkopf .seg button.on{background:#1f4d3a;color:#fff}
.warn{color:#b45309}
.szgr{margin:6px 0 8px}.szgr>b{display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:#6b7a72;margin-bottom:4px}
button.szc{cursor:pointer;font:inherit;border:0}
.szc.unklar{background:#eef0ef;color:#4b5a52}
.szh.unklar{color:#6b7a72}
.szganz{margin:10px 0}.szganz summary{cursor:pointer;font-weight:700;color:#6b7a72;font-size:13.5px}
.szzurueck{background:none;border:0;color:#1f4d3a;font-weight:700;padding:0 0 8px;cursor:pointer}
.szdet small{display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:#6b7a72}
.szdet h3{margin:2px 0 0;font-size:22px}.szdet em{color:#6b7a72;font-size:13px}
.szst{display:inline-block;margin:12px 0 4px;padding:6px 12px;border-radius:10px;font-weight:800}
.szst.offen{background:#dcf3e3;color:#1e6b3a}.szst.zu{background:#fde2e0;color:#b3261e}.szst.unklar{background:#eef0ef;color:#4b5a52}
.szjahr{margin:12px 0}
.szbar{position:relative;height:16px;border-radius:8px;background:#7cc79a;overflow:hidden}
.szbar i{position:absolute;top:0;bottom:0;background:#e0645c}
.szbar b{position:absolute;top:0;bottom:0;width:3px;margin-left:-1px;background:#111}
.szmon{display:flex}.szmon span{flex:1;text-align:center;font-size:11px;color:#6b7a72}
.szinfo{width:100%;border-collapse:collapse;margin:8px 0;font-size:14px}
.szinfo th{text-align:left;width:110px;color:#6b7a72;font-weight:600;padding:6px 8px 6px 0;vertical-align:top}
.szinfo td{padding:6px 0;border-bottom:1px solid #eef1ee}
