

/* Leaflet-Kernlayout lokal eingebettet: Kacheln dürfen nicht ohne CSS verspringen. */
.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,
.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer
{position:absolute;left:0;top:0}
.leaflet-container{overflow:hidden;background:#d9e7e2;outline-offset:1px}
.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-pane>svg path,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important}
.leaflet-container img.leaflet-tile{width:256px;height:256px;user-select:none;-webkit-user-select:none}
.leaflet-container .leaflet-tile-pane{z-index:200}
.leaflet-container .leaflet-overlay-pane{z-index:400}
.leaflet-container .leaflet-shadow-pane{z-index:500}
.leaflet-container .leaflet-marker-pane{z-index:600}
.leaflet-container .leaflet-tooltip-pane{z-index:650}
.leaflet-container .leaflet-popup-pane{z-index:700}
.leaflet-map-pane canvas{z-index:100}
.leaflet-map-pane svg{z-index:200}
.leaflet-tile{visibility:hidden;image-rendering:auto}
.leaflet-tile-loaded{visibility:inherit}
.leaflet-zoom-animated{transform-origin:0 0}
.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}
.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}
.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}
.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}
.leaflet-container .leaflet-marker-icon,.leaflet-container .leaflet-marker-shadow{display:block}
.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}
.leaflet-control{position:relative;z-index:800;pointer-events:auto;float:left;clear:both}
.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}
.leaflet-top{top:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-right{right:0}
.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}
.leaflet-bar{box-shadow:0 1px 5px #0003;border-radius:4px}
.leaflet-bar a{background-color:white;border-bottom:1px solid #ccc;display:block;text-align:center;text-decoration:none;color:#333;width:30px;height:30px;line-height:30px}
.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}
.leaflet-bar a:last-child{border-bottom:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}
.leaflet-control-zoom-in,.leaflet-control-zoom-out{font: bold 20px/30px 'Lucida Console',Monaco,monospace}
.leaflet-control-attribution{background:#fffc;padding:0 5px;line-height:1.5}
.leaflet-control-attribution a{color:#0078a8}
.leaflet-interactive{cursor:pointer}
.leaflet-container .leaflet-pane .leaflet-overlay-pane svg{overflow:hidden}
.leaflet-grab{cursor:grab}.leaflet-dragging .leaflet-grab{cursor:grabbing}
.leaflet-container a{cursor:pointer}
.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}
.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px;box-shadow:0 3px 14px #0006;background:white}
.leaflet-popup-content{margin:13px 19px;line-height:1.4}
.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-left:-20px;overflow:hidden;pointer-events:none}
.leaflet-popup-tip{width:17px;height:17px;transform:translate(-50%,-50%) rotate(45deg);margin:0 0 0 50%;padding:1px;box-shadow:0 3px 14px #0006;background:white}
.leaflet-popup-close-button{position:absolute;top:0;right:0;z-index:10;border:0;text-align:center;width:24px;height:24px;color:#666;font-size:20px;text-decoration:none}
.leaflet-popup-close-button:hover{color:#111}
.leaflet-div-icon{background:#fff;border:1px solid #666}

  

    :root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#172c27;background:#f5f7f7;--green:#148357;--green2:#ddf4e9;--border:#e1e7e4;--muted:#60716d}
    *{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}
    .app{display:grid;grid-template-columns:minmax(345px,410px) minmax(0,1fr);height:100dvh;min-height:550px}
    .sidebar{background:#fff;z-index:500;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--border)}
    .header{padding:25px 24px 19px;border-bottom:1px solid var(--border)}.identity{display:flex;gap:13px;align-items:center;margin-bottom:12px}
    .logo{display:grid;place-items:center;width:45px;height:45px;background:#dff7e8;color:#0b744c;border-radius:13px;flex-shrink:0}
    h1{margin:0;font-size:20px;letter-spacing:-.6px;line-height:1.2}h2{font-size:16px;letter-spacing:-.3px;margin:0}
    .tagline{font-size:12px;color:var(--muted);margin:3px 0 0}.desc{font-size:13px;color:var(--muted);line-height:1.5;margin:0}
    .form{padding:19px 24px;border-bottom:1px solid var(--border)}.lab{font-weight:650;font-size:12px;display:block;margin:0 0 7px;color:#42554f}
    .searchrow{display:flex;gap:8px}.searchrow input{min-width:0;flex:1;outline:none;border:1px solid #d5dfda;border-radius:11px;padding:11px 12px;color:#213832;background:#fff}
    input:focus,select:focus{outline:2px solid #c5eede;outline-offset:1px}
    .btn{border:1px solid #d6e3dc;background:#fff;padding:10px 12px;border-radius:10px;color:#23372f;font-weight:650;font-size:13px;display:inline-flex;gap:7px;justify-content:center;align-items:center;transition:background .15s}
    .btn:hover{background:#f1f7f3}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.btn.primary:hover{background:#0f7049}
    .locations{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.locations .btn{white-space:nowrap}
    .options{display:flex;align-items:end;gap:10px;margin-top:18px}.grow{flex:1}select{background:#fff;border:1px solid #d6dfda;border-radius:10px;padding:10px 8px;width:100%;height:42px}
    .switch{display:flex;align-items:center;gap:8px;padding:10px 0 0;font-size:13px;color:#30443d;cursor:pointer}.switch input{accent-color:var(--green);width:17px;height:17px;cursor:pointer}
    .status{padding:12px 24px;border-bottom:1px solid var(--border);background:#fafcfb;min-height:70px}
    .status-line{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650}.status-dot{width:8px;height:8px;border-radius:50%;background:#a8b6b0;flex:none}
    .status-dot.good{background:#15a268}.status-dot.bad{background:#cb5f40}.status-dot.busy{background:#da9d33}
    .substatus{color:var(--muted);font-size:12px;line-height:1.5;padding-left:16px;margin-top:5px}
    .summary{padding:19px 24px 12px;border-bottom:1px solid var(--border)}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
    .stat{border:1px solid var(--border);border-radius:12px;padding:13px 15px}.stat strong{font-size:27px;display:block;line-height:1.1;letter-spacing:-1px;color:#14382a}.stat span{font-size:11px;color:var(--muted)}
    .listing{overflow:auto;flex:1;min-height:0;padding:0 0 20px}.list-top{position:sticky;top:0;background:white;z-index:3;padding:16px 24px 10px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 1px 0 #eff3f0}
    .hint{font-size:12px;color:var(--muted)}.station{padding:15px 24px;border-bottom:1px solid #eff2f0;cursor:pointer}
    .station:hover{background:#f7fbf9}.station-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
    .station-title{font-weight:700;font-size:14px;line-height:1.35}.station-address{font-size:12px;color:var(--muted);margin:5px 0 10px;line-height:1.4}
    .station-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pill{border-radius:50px;background:#f2f4f3;padding:5px 9px;color:#53645e;font-size:11px;white-space:nowrap}
    .pill.free{background:#e3f6eb;color:#097648;font-weight:750}.pill.none{background:#fff3df;color:#996521}.pill.busy{background:#edf0f1;color:#475e64}
    .distance{font-weight:650;font-size:12px;color:var(--muted);white-space:nowrap}
    .empty{padding:30px 24px;color:var(--muted);font-size:13px;line-height:1.6}
    .map-wrap{position:relative;min-height:0}#map{height:100%;width:100%;background:#d9e7e2}
    .map-warning{position:absolute;top:80px;right:18px;max-width:310px;z-index:450;background:#fff5df;border:1px solid #e9cc86;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.5;color:#664d1b} .map-warning[hidden]{display:none} .map-toolbar{position:absolute;top:18px;right:18px;z-index:450;display:flex;flex-direction:column;align-items:end;gap:8px;pointer-events:none}
    .map-toolbar>*{pointer-events:auto}.floating{background:white;box-shadow:0 4px 18px #173a2c24;border:1px solid #e7efea;border-radius:12px}
    .legend{position:absolute;bottom:32px;right:18px;z-index:450;padding:10px 13px;font-size:12px;display:flex;gap:13px;align-items:center;box-shadow:0 4px 18px #173a2c1a;background:white;border-radius:11px;flex-wrap:wrap}
    .legend span{display:flex;gap:6px;align-items:center}.swatch{width:11px;height:11px;border-radius:50%;display:inline-block}.swatch.free{background:#16a668}.swatch.busy{background:#db9c37}.swatch.unknown{background:#94a59f}
    .attribution{font-size:11px;color:var(--muted);padding:10px 24px;border-top:1px solid var(--border)}.attribution a{color:#177957}
    .leaflet-popup-content{margin:15px 16px;font:13px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;min-width:190px}
    .leaflet-popup-content strong{font-size:15px}.leaflet-popup-content a{color:#087c52}.popup-row{margin-top:7px}.popup-status{font-weight:750;color:#087c52}
    .user-pin{width:15px;height:15px;border:3px solid white;background:#296ce0;border-radius:100%;box-shadow:0 0 0 7px #296ce03b,0 1px 6px #365e5c70}
    .berlin-box{border-top:1px solid var(--border);margin-top:16px;padding-top:13px}
    .berlin-box .switch{font-weight:600;padding-top:0}
    .berlin-note{font-size:11px;color:#63776e;line-height:1.5;margin-top:6px}
    .berlin-colors{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#536762;margin-top:10px}
    .berlin-colors span{display:flex;align-items:center;gap:5px}
    .berlin-line{width:16px;height:5px;display:inline-block;border-radius:3px}
    @media(max-width:800px){.app{display:flex;flex-direction:column;height:auto;min-height:100dvh}.sidebar{order:2;min-height:0;flex:none;border-right:none}.map-wrap{order:1;height:48dvh;min-height:320px;flex:none}.header{padding:17px 18px 14px}.form,.status,.summary{padding:14px 18px}.listing{max-height:350px}.list-top,.station,.empty{padding-left:18px;padding-right:18px}.attribution{padding:10px 18px}.legend{bottom:28px;left:10px;right:10px;justify-content:center}.map-toolbar{top:12px;right:12px}}
    @media(max-width:385px){.locations{grid-template-columns:1fr}.stat-grid{gap:6px}}
  /* V7: independent UI components and controls; retains proven V6 Leaflet core layout. */
.app{grid-template-columns:minmax(350px,410px) minmax(0,1fr)}
.sidebar{overflow:auto;overscroll-behavior:contain}
.logo{font-size:30px;font-weight:700}
.favorite-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.favorite-control{display:flex;min-width:0}.favorite-control .btn:first-child{flex:1;min-width:0}
.favorite-control .fav-edit{width:36px;flex:none;padding:8px;margin-left:4px;font-size:17px}
.field{display:block;width:100%;height:42px;border:1px solid #d6dfda;border-radius:10px;padding:10px 11px;background:#fff;color:#203c31}
.options{gap:10px;margin-top:16px;align-items:end}.options .grow{min-width:0}
.field-note{color:#647970;font-size:11px;line-height:1.45;margin:7px 0 10px}
.action{width:100%}
.listing-details{display:block;flex:1;min-height:90px;border-bottom:1px solid var(--border)}
.listing-details:not([open]){flex:none;min-height:0}
.list-top{cursor:pointer;position:relative;display:flex;align-items:center;justify-content:space-between;background:white;font-size:15px;padding:15px 24px;box-shadow:0 1px 0 #eff3f0;list-style:none}
.list-top::-webkit-details-marker{display:none}.list-top:before{content:'▾';display:inline-block;margin-right:8px;color:#148357}
.listing-details:not([open]) .list-top:before{content:'▸'}
.list-top strong{flex:1}.list-top:focus-visible{outline:2px solid #00a376;outline-offset:-3px}
.listing{height:auto;max-height:55vh;overflow-y:auto;min-height:0}
.legend{max-width:min(540px,calc(100% - 20px));display:block;gap:4px;padding:10px 13px;border:1px solid var(--border);font-size:12px}
.legend .legend-heading{font-weight:700;margin-bottom:6px}
.legend .legend-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.legend .legend-row span{display:inline-flex;gap:5px;align-items:center;white-space:nowrap}
.legend .legend-row+.legend-row{margin-top:8px}.legend-line{height:4px;width:22px;border-radius:4px;display:inline-block}
.legend .legend-section{font-size:11px;color:#667c71;font-weight:700;margin-right:3px}
.center-pin{width:28px;height:35px;filter:drop-shadow(0 2px 3px #0007)}
.station:focus-visible{outline:2px solid #148357;outline-offset:-2px}
.station-note{color:#775724;font-size:12px;line-height:1.45;margin:10px 24px}
@media(max-width:800px){.app{display:flex;flex-direction:column}.sidebar{overflow:visible}.listing{max-height:340px}.legend{left:10px;right:10px;bottom:30px;max-width:none}.map-wrap{height:51dvh}.field-note{margin-bottom:10px}}
