:root {
  --bg: #f6f4ef; --card: #fff; --ink: #1d2a24; --muted: #66746d; --line: #e2ded4;
  --brand: #1f4d3a; --brand2: #2f6f54; --accent: #e08a2c;
  --camping: #2e7d32; --stellplatz: #1565c0; --transit: #ef6c00; --entsorgung: #7b1fa2; --exc: #c2185b;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
#app { display: flex; height: 100vh; height: 100dvh; }
#sidebar { width: var(--side-w, 420px); max-width: 100%; display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--line); position: relative; z-index: 2; }
#map { flex: 1; position: relative; z-index: 0; }
.brand { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--brand); color: #fff; }
.brand h1 { font-size: 17px; margin: 0; }
.brand small { opacity: .75; display: block; }
.brand small.author { opacity: .9; font-style: italic; }
.logo { font-size: 26px; }
#panes { flex: 1; overflow: auto; }
.pane { display: none; padding: 14px 16px 30px; }
.pane.active { display: block; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
input[type=text], input[type=number], input[type=password], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 3px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
input[type=range] { width: 100%; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 10px; }
.checks label { display: flex; gap: 5px; align-items: center; color: var(--ink); font-size: 13px; margin: 0; }
.kinds label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.k-camping::before { background: var(--camping); } .k-stellplatz::before { background: var(--stellplatz); }
.k-transit::before { background: var(--transit); } .k-entsorgung::before { background: var(--entsorgung); }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
button { font: inherit; cursor: pointer; border-radius: 8px; }
.primary { background: var(--brand); color: #fff; border: 0; padding: 10px 16px; font-weight: 600; }
.primary:hover { background: var(--brand2); }
#plan { width: 100%; margin-top: 14px; padding: 12px; }
.ghost { background: #fff; border: 1px solid var(--line); padding: 7px 12px; color: var(--ink); }
.ghost:hover { border-color: var(--brand2); }
.small { padding: 4px 9px; font-size: 12px; }
.hint { color: var(--muted); font-size: 12px; }
.pill { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; }
.pill:empty { display: none; }

/* Punkte */
.point { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 8px; position: relative; }
.point .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; display: grid; place-items: center; margin-top: 7px; flex: none; }
.point .field { flex: 1; position: relative; }
.point input { margin: 0; }
.point .tools { display: flex; gap: 2px; margin-top: 4px; }
.point .tools button { border: 0; background: none; padding: 4px; font-size: 15px; color: var(--muted); }
.point .tools button:hover { color: var(--brand); }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); z-index: 10; }
.suggest div { padding: 7px 10px; cursor: pointer; }
.suggest div:hover, .suggest div.sel { background: #eef4f0; }
.picking { outline: 2px dashed var(--accent); }

.summary { margin-top: 12px; }
.summary .stat { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 0 6px 6px 0; }
.summary .stat b { display: block; font-size: 16px; }

/* Listen */
.list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; }
.item:hover { border-color: var(--brand2); }
.item .t { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.item .m { color: var(--muted); font-size: 12px; }
.badge { display: inline-block; font-size: 11px; color: #fff; border-radius: 4px; padding: 0 6px; margin-right: 4px; white-space: nowrap; }
.b-camping { background: var(--camping); } .b-stellplatz { background: var(--stellplatz); } .b-transit { background: var(--transit); } .b-entsorgung { background: var(--entsorgung); }
.b-exc { background: var(--exc); }
.mine { color: var(--accent); font-size: 12px; }

.stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.stage h4 { margin: 0 0 4px; display: flex; justify-content: space-between; }
.stage .stop { margin: 8px 0; padding: 8px; background: #f2f7f4; border-radius: 8px; }
.stage .alts { display: flex; flex-wrap: wrap; gap: 4px; }
.stage .alts button { font-size: 12px; padding: 3px 8px; }
.warn { color: #b3261e; }

/* Detail */
#detail { position: absolute; inset: 0; background: var(--bg); overflow: auto; padding: 12px 16px 40px; z-index: 5; }
#detail h2 { margin: 8px 0 4px; font-size: 19px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 10px 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.feat { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 12px; background: #fff; }
.feat.y { border-color: var(--camping); color: var(--camping); } .feat.n { color: #aaa; text-decoration: line-through; }
.stars button { border: 0; background: none; font-size: 22px; color: #ccc; padding: 0 1px; }
.stars button.on { color: var(--accent); }
.exc { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.exc img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; }
.exc p { margin: 4px 0 0; font-size: 12.5px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #222; color: #fff; padding: 9px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 1000; max-width: 90vw; }
#toast.show { opacity: .95; }
#toast.action { pointer-events: auto; }
#toast button { margin-left: 12px; background: none; border: 1px solid #fff8; color: #fff; padding: 3px 10px; border-radius: 6px; cursor: pointer; }
#busy { position: fixed; inset: 0; background: rgba(246,244,239,.6); display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 999; font-weight: 600; }
#busy[hidden] { display: none; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage-icon { background: var(--accent); color: #fff; border: 2px solid #fff; border-radius: 50%; width: 26px !important; height: 26px !important; display: grid; place-items: center; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pt-icon { background: var(--brand); color: #fff; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.leaflet-popup-content { margin: 10px 12px; }


#print { display: none; }
@media print {
  #app { display: none !important; }
  #print { display: block; font-size: 12px; }
  #print h1 { font-size: 20px; } #print h2 { font-size: 15px; margin: 16px 0 4px; border-bottom: 1px solid #999; }
  #print .p { margin: 4px 0 8px 12px; }
}
a.ghost { display: inline-block; text-decoration: none; }
.row label { display: flex; align-items: center; gap: 6px; }
.row label select { display: inline-block; width: auto; margin: 0; }
#progress { padding: 8px 16px; background: #fff8ec; border-bottom: 1px solid var(--line); font-size: 12px; }
#progress .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
#progress .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
#progress .ptxt { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Modus Route | Umkreis (1.5.0) */
body.area .r-only, body:not(.area) .a-only { display: none !important; }
.wide { width: 100%; margin-top: 10px; padding: 12px; }
#facil { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; margin: 6px 0 10px; }
#facil summary { cursor: pointer; font-weight: 600; }
#facil h4 { font-size: 12px; color: var(--muted); margin: 10px 0 2px; font-weight: 600; }
#facil select, #facil input[type=number] { padding: 5px 8px; }
.area-icon { background: var(--accent); color: #fff; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.area-icon span { display: block; transform: rotate(45deg); text-align: center; line-height: 24px; font-weight: 700; }

/* 1.8.0: Plan, Wetter, Saison, Versorgung, Packliste, eigene Plätze, Tagebuch */
input[type=date] { display: block; width: 100%; margin-top: 3px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
select.inline, input.inline { display: inline-block; width: auto; margin: 0; padding: 4px 6px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; margin: 10px 0; }
.box > summary { cursor: pointer; font-weight: 600; }
.box .grid3 { margin-top: 8px; }
.tbl { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.tbl td, .tbl th { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tr.sum td { font-weight: 700; border-top: 2px solid var(--ink); }
.item.cc a, .item.ferry a { font-size: 12px; }
.sdate { margin-top: 6px; font-size: 13px; }
.wxd { white-space: nowrap; font-size: 13px; }
.wxd small { color: var(--stellplatz); }
.wxrow { display: flex; gap: 6px; overflow-x: auto; }
.wxday { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; text-align: center; flex: none; }
.wxday small { display: block; color: var(--muted); }
.open-open { color: var(--camping); font-size: 12px; }
.open-closed { color: #b3261e; font-size: 12px; font-weight: 600; }
.open-unknown { color: var(--muted); font-size: 12px; }
label.nights { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; }
label.nights select { display: inline-block; width: auto; margin: 0; padding: 2px 6px; }
.badge.b-own { background: var(--accent); }
.ghost.on { border-color: var(--accent); color: var(--accent); }
.visit { white-space: nowrap; margin-right: 6px; }
.visit a { color: var(--muted); text-decoration: none; }
/* Packliste */
.pcat { margin: 10px 0 2px; font-size: 12px; color: var(--muted); }
.pack label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; margin: 2px 0; }
.pack label.done { color: var(--muted); text-decoration: line-through; }
.pack .x { margin-left: auto; border: 0; background: none; color: #bbb; padding: 0 4px; }
.pack .x:hover { color: #b3261e; }
/* Versorgung */
.sup-ctl { background: #fff; }
.sup-ctl .sup-btn { font-size: 16px; width: 34px; height: 34px; line-height: 34px; text-align: center; display: block; text-decoration: none; }
.sup-ctl .sup-btn.on { background: #fff3e0; }
.gps-ctl .gps-btn { color: #555; }
.gps-ctl .gps-btn.on { background: #e8f0fe; color: #1a73e8; }
.gps-ctl .gps-btn.free { background: #fff; color: #1a73e8; }
.sup-panel { padding: 6px 10px; min-width: 190px; }
.sup-panel label { display: flex; gap: 6px; align-items: center; color: var(--ink); font-size: 13px; margin: 3px 0; }
.sup-icon { background: #fff; border: 1.5px solid #555; border-radius: 50%; display: grid !important; place-items: center; font-size: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.sup-lpg { font-size: 8px; font-weight: 800; color: #fff; background: #ef6c00; border-color: #fff; }
.sup-water { border-color: #1565c0; } .sup-ferry { border-color: #1565c0; } .sup-shop { border-color: #2e7d32; }
.diary-icon { font-size: 18px; text-align: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
/* Tagebuch */
.item.diary .dtext { white-space: pre-line; font-size: 13px; margin: 4px 0; }
.thumbs { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; align-items: center; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.thumbs.edit span { position: relative; }
.thumbs.edit button { position: absolute; top: 2px; right: 2px; border: 0; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; width: 20px; height: 20px; padding: 0; font-size: 11px; }
label.file { display: inline-block; cursor: pointer; color: var(--ink); }
.row.cost { margin: 4px 0; flex-wrap: nowrap; }
@media print {
  #print .pphotos { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 6px 12px; }
  #print .pphotos img { width: 48%; max-height: 300px; object-fit: cover; page-break-inside: avoid; }
}

/* Anmeldung und Konten (1.9.0) */
.login-box [hidden] { display: none !important; }
body.login-page { display: grid; place-items: start center; min-height: 100%; height: auto; padding: 6vh 12px 30px; }
.login-box { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.login-page .brand { display: flex !important; }
.login-box form { padding: 16px 18px 20px; }
.login-box h2 { margin: 0 0 6px; font-size: 18px; }
.login-box .primary { width: 100%; margin-top: 6px; padding: 11px; }
.login-box input:disabled { background: #f1efe9; color: var(--muted); }
.acct { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item.static { cursor: default; }
.item .acts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.badge.b-read { background: #8a8f8c; } .badge.b-edit { background: var(--brand2); } .badge.b-shared { background: var(--stellplatz); }
.members { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.members .mrow { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.members .mrow span { flex: 1; }
.members select { width: auto; margin: 0; padding: 4px 6px; }
.notice { background: #fff6e8; border: 1px solid #f0d3a8; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 8px 0; }
.linkbox { word-break: break-all; background: #eef4f0; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 6px 0; }
.item.sel { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.login-help { text-align: center; font-size: 12px; margin: 0 0 14px; }

/* ===== 2.0.0: 4 Hauptbereiche, Unterreiter, Handy-Sheet, Platzkarten, Unterwegs ===== */
:root { --nav-h: 58px; }
#sheetHandle { display: none; }
#nav { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-bottom: 1px solid var(--line); flex: none; }
#nav button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 10px 4px 8px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
#nav button.active { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
#nav svg { flex: none; }
#modeBar { display: none; gap: 8px; padding: 10px 12px 0; flex: none; }
body[data-group=plan] #modeBar { display: flex; }
#modeBar #resetMode { flex: none; border: 1px solid var(--line); background: #fff; padding: 6px 12px; color: var(--ink); }
.seg { display: flex; flex: 1; background: #e9e5da; border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: transparent; color: #4d5a54; padding: 7px 10px; border-radius: 8px; }
.seg button.active { background: var(--brand); color: #fff; font-weight: 600; }
.seg.small { flex: none; }
.seg.small button { padding: 4px 9px; font-size: 12px; }
.seg.small button.active { background: #fff; color: var(--ink); }
#tabs { display: flex; gap: 6px; padding: 10px 12px 2px; overflow-x: auto; scrollbar-width: none; flex: none; }
#tabs::-webkit-scrollbar { display: none; }
#tabs button { flex: none; border: 1px solid var(--line); background: #fff; color: #4d5a54; border-radius: 17px; padding: 6px 13px; font-size: 13px; white-space: nowrap; }
#tabs button.active { border-color: var(--brand); background: #e3efe8; color: var(--brand); font-weight: 600; }
body[data-group=places] #tabs, body[data-group=go] #tabs, body[data-group=""] #tabs, body.area[data-group=plan] #tabs { display: none; }
.pill.quiet { background: #e9e5da; color: #4d5a54; }
#topBtns { display: flex; gap: 8px; }
#topBtns > * { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; }
#topBtns #helpBtn { color: var(--brand); }
#topBtns .active { background: var(--brand); color: #fff; }
.row.between { justify-content: space-between; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Routenpunkte: am Buchstaben ziehen */
.point { transition: transform .12s; }
.point .dot { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.point.dragging { transition: none; z-index: 5; opacity: .92; }
.point.dragging .dot { cursor: grabbing; background: var(--accent); }

/* Platzkarten */
.pcard { display: flex; flex-direction: column; gap: 5px; }
.pcard .t { align-items: flex-start; font-size: 15px; }
.fav { border: 0; background: none; color: #9aa39e; padding: 7px; margin: -7px -7px -7px 0; border-radius: 50%; flex: none; display: grid; place-items: center; }
.fav svg { width: 21px; height: 21px; }
.fav.on { color: #b3610f; }
.fav.on svg { fill: currentColor; }
.pmeta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; }
.pmeta .badge { margin: 0; }
.badge.b-stage { background: #fbe9d2; color: #7a3d05; font-weight: 600; }
.b-transit { background: #b84f00; }
.pwx, .pwx .wxd { color: var(--muted); font-size: 12px; }
.pfeats { display: flex; gap: 10px; align-items: center; color: var(--camping); min-height: 18px; }
.pfeats .fi { display: inline-flex; }
.pfeats [class^=open-] { margin-left: auto; font-weight: 400; }

/* Etappen: Ruhetage */
.rest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.rest label.nights { margin: 0; }

/* Engstellen */
.restr-icon { border-radius: 50%; background: #b3261e; color: #fff; font-weight: 800; display: grid !important; place-items: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.restr-icon.tight { background: #b3610f; }
.item.restr.block { border-color: #e3a9a4; }
#restrOut .item { margin-bottom: 6px; }
p.open-open { margin: 6px 0; }

/* Unterwegs */
.gohead { margin-top: 0; }
.gocard { background: var(--brand); color: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.gotop { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.gokm { font-size: 28px; font-weight: 700; line-height: 1.1; }
.gosub { font-size: 12.5px; color: #d7e6dd; }
.gowx .wxd { color: #fff; font-size: 15px; font-weight: 600; }
.gowx .wxd small { color: #d7e6dd; font-weight: 400; }
.gobar { height: 6px; border-radius: 3px; background: #3b6a56; overflow: hidden; }
.gobar span { display: block; height: 100%; background: #f1b866; }
.gotarget[data-open] { cursor: pointer; }
.gonav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.gobtn { min-height: 44px; border-radius: 10px; background: #fff; color: var(--brand); font-weight: 600; font-size: 13px; display: grid; place-items: center; text-align: center; text-decoration: none; padding: 0 6px; }
.gofuel b { font-size: 15px; }
.bk-ok { color: var(--camping); font-weight: 600; }

@media (max-width: 760px) {
  :root { --nav-h: calc(58px + env(safe-area-inset-bottom, 0px)); }
  #app { display: block; }
  .brand { display: none; }
  #map { position: fixed; inset: 0 0 var(--nav-h) 0; }
  #sidebar { position: fixed; left: 0; right: 0; top: 45%; bottom: var(--nav-h); width: auto; border-right: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -4px 18px rgba(0,0,0,.2); transition: top .22s ease; overflow: hidden; }
  #sidebar.dragging { transition: none; }
  #app.full #sidebar { top: 56px; }
  #app.collapsed #sidebar { top: calc(100% - var(--nav-h) - 84px); }
  #sheetHandle { display: block; flex: none; padding: 9px 0 5px; touch-action: none; cursor: grab; }
  #sheetHandle span { display: block; width: 40px; height: 5px; border-radius: 3px; background: #c9c4b6; margin: 0 auto; }
  #nav { position: fixed; left: 0; right: 0; bottom: 0; height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line); border-bottom: 0; }
  #nav button { flex-direction: column; gap: 2px; font-size: 11px; border-bottom: 0; padding: 6px 2px; }
  #modeBar { padding-top: 2px; }
  #detail { top: 24px; }
  .leaflet-control-zoom { display: none; }
  .leaflet-control-attribution { font-size: 9px; max-width: 60vw; }
  input[type=text], input[type=number], input[type=password], input[type=search], input[type=date], select, textarea { font-size: 16px; min-height: 44px; }
  select.inline, input.inline, label.nights select, .members select { min-height: 36px; }
  .primary, .ghost { min-height: 42px; }
  .small { min-height: 34px; }
  .seg button { min-height: 38px; }
  .seg.small button { min-height: 30px; }
  #tabs button { min-height: 34px; }
  .pane { padding-bottom: 40px; }
  #toast { bottom: calc(var(--nav-h) + 14px); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
.seg button { white-space: nowrap; }

/* ---------- 2.1.0: Seitenleiste verstellbar, Detailspalte, Statusleisten, Überwachung ---------- */
:root { --detail-w: 440px; }
#sideResize { position: absolute; top: 0; bottom: 0; right: -4px; width: 8px; cursor: col-resize; z-index: 6; touch-action: none; }
#sideResize:hover, #sideResize:focus-visible, body.resizing #sideResize { background: linear-gradient(to right, transparent 3px, var(--brand2) 3px, var(--brand2) 5px, transparent 5px); outline: none; }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing #map { pointer-events: none; }
@media (min-width: 1200px) {
  #app.dcol #detail { inset: 0 auto 0 100%; width: var(--detail-w); border-right: 1px solid var(--line); box-shadow: 4px 0 14px rgba(0,0,0,.12); }
  #app.dcol #map { margin-left: var(--detail-w); }
  #app.dcol #sideResize { display: none; }
}
#statusBars { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; max-width: calc(100vw - 120px); }
#statusBars > div { pointer-events: auto; background: #fff; color: var(--ink); border-radius: 18px; padding: 6px 14px; box-shadow: 0 1px 6px rgba(0,0,0,.3); font-size: 13px; text-align: center; }
#statusBars > div[hidden] { display: none; }
#netBar.off { background: #5b5b57; color: #fff; }
#updBar { background: var(--brand) !important; color: #fff !important; }
#updBar button { margin-left: 8px; border: 1px solid #fff9; background: #fff; color: var(--brand); border-radius: 12px; padding: 2px 10px; font-weight: 600; cursor: pointer; }
#statusBars button.link { border: 0; background: none; color: inherit; text-decoration: underline; padding: 0 2px; cursor: pointer; font-weight: 400; }
#monitorBox h4 { margin: 12px 0 4px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.errItem { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin: 0 0 6px; font-size: 12.5px; }
.errItem summary { cursor: pointer; word-break: break-word; }
.errItem pre { white-space: pre-wrap; word-break: break-all; font-size: 11px; max-height: 180px; overflow: auto; background: #f3f1ea; padding: 6px; border-radius: 6px; margin: 6px 0 0; }
@media (max-width: 760px) {
  #sideResize { display: none; }
  #statusBars { top: calc(8px + env(safe-area-inset-top, 0px)); left: 54px; right: 102px; transform: none; max-width: none; }
  #statusBars > div { font-size: 12px; padding: 5px 10px; }
}
