/* laufroute.css – Routenplaner /laufroute-planen/
   Farben, Schrift, Knoepfe, Untergrund-Balken und FAQ kommen aus styles.css. */

.planer{position:relative;height:calc(100vh - 70px);min-height:640px;background:#e9e6dc;overflow:hidden}
.planerKarte{position:absolute !important;inset:0}
.planerKarte.zeichnet .maplibregl-canvas{cursor:crosshair}
.planerHinweis{
  position:absolute;top:16px;left:392px;z-index:3;max-width:min(420px,calc(100% - 410px));
  background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 16px;
  font-weight:600;font-size:15px;line-height:1.35;box-shadow:var(--shadow2)
}
.planerHinweis:empty{display:none}

.planerPanel{
  position:absolute;top:16px;left:16px;bottom:16px;width:360px;z-index:4;overflow-y:auto;height:fit-content;max-height:calc(100% - 32px);
  background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)
}
.rpKopf{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
.rpKopf h1{margin:0}
.rpNeu{flex:none;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:7px 10px;font:600 14px var(--font-sans);color:var(--ink);cursor:pointer}
.rpNeu:hover{border-color:var(--brand);background:var(--brandSoft)}
.rpNeu[hidden]{display:none}
.planerPanel h1{margin:0 0 12px;font-size:30px;font-weight:800;line-height:1}

.rpOrt{display:flex;gap:8px}
.rpOrt input{flex:1;min-width:0;height:44px;border:1px solid #cfc9bb;border-radius:10px;padding:0 12px;font:500 16px var(--font-sans);color:var(--text);background:var(--surface)}
.rpOrt input:focus,.rpDistanz input:focus,.rpVorliebe select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px rgba(20,108,74,.14)}
.rpIcon{
  flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;
  display:flex;align-items:center;justify-content:center;font:600 22px/1 var(--font-sans);color:var(--ink)
}
.rpIcon:hover{border-color:var(--brand);background:var(--brandSoft)}
.rpIcon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.rpDistanz{display:flex;align-items:center;justify-content:center;gap:16px;margin:16px 0 10px}
.rpDistanz label{display:flex;align-items:baseline;gap:6px;font:800 34px/1 var(--font-head)}
.rpDistanz input{width:84px;border:0;border-bottom:2px solid var(--line);background:none;text-align:right;font:inherit;color:inherit;padding:0 2px 2px;border-radius:0}
.rpChips{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.rpChips button{height:40px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:700 18px var(--font-head);color:var(--ink);cursor:pointer}
.rpChips button:hover{border-color:var(--brand)}
.rpChips button.an{background:var(--ink);border-color:var(--ink);color:#fff}
.rpVorliebe{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:14px;color:var(--muted);font-weight:600}
.rpVorliebe select{flex:1;min-width:0;max-width:220px;height:38px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:500 15px var(--font-sans);color:var(--text);padding:0 8px}

.rpFaehre{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14px;color:var(--muted);font-weight:600;cursor:pointer}
.rpFaehre input{width:18px;height:18px;margin:0;accent-color:var(--brand)}

.rpAktion{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:14px}
.rpAktion .btnPrimary,.rpAktion .btnSecondary{width:auto;margin:0;padding:13px 16px}
.rpAktion .btnPrimary:disabled{opacity:.55;cursor:default}
.rpAktion .btnSecondary[aria-pressed="true"]{background:var(--ink);color:#fff}
.rpZeichnen{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.rpZeichnen[hidden]{display:none}
.rpZeichnen button{flex:1;min-height:38px;border:1px solid var(--line);border-radius:8px;background:var(--surface2);font:600 14px var(--font-sans);color:var(--ink);cursor:pointer;padding:6px 8px}
.rpZeichnen button:hover{border-color:var(--brand)}
.rpStatus{margin:10px 0 0;font-size:14px;font-weight:600;color:var(--brand2)}
.rpStatus:empty{display:none}
.rpStatus.fehler{color:#a8410f}

.rpVorschlaege{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.rpVorschlaege[hidden]{display:none}
.rpVorschlaege button{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:9px 12px;cursor:pointer;font:inherit;color:inherit}
.rpVorschlaege button.an{border:2px solid var(--accent2);padding:8px 11px}
.rpVorschlaege .nr{flex:none;width:30px;height:30px;border-radius:6px;background:var(--surface2);border:1px solid var(--line);border-top:3px solid var(--accent);display:flex;align-items:center;justify-content:center;font:800 17px var(--font-head)}
.rpVorschlaege b{display:block;font:800 19px/1.1 var(--font-head)}
.rpVorschlaege small{font-size:13px;color:var(--muted)}

.rpErgebnis{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.rpWerte{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.rpWerte > div{background:var(--surface2);border:1px solid var(--line);border-radius:8px;padding:9px 8px;text-align:center}
.rpWerte b{display:block;font:800 21px/1.1 var(--font-head)}
.rpWerte span{font-size:12px;color:var(--muted)}
.rpWerte input{width:38px;border:0;border-bottom:1px dashed var(--muted);background:none;font:600 12px var(--font-sans);color:var(--brand2);text-align:center;padding:0}
.rpSw{margin:12px 0 4px;font-size:14px;color:var(--muted)}
.rpProfil canvas{display:block;width:100%;height:110px;touch-action:pan-y}
.rpProfil .ugBand{margin:2px 4px 0 38px;height:10px}
.rpErgebnis .ugListe{margin:12px 0 0}
.rpUmgebung{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.rpUmgebung div{display:grid;grid-template-columns:104px 1fr 44px;align-items:center;gap:8px;font-size:14px}
.rpUmgebung i{display:block;height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.rpUmgebung i::after{content:"";display:block;height:100%;width:var(--p);background:var(--f)}
.rpUmgebung b{text-align:right;font:700 16px var(--font-head)}
.rpSpeichern{margin-top:16px;display:flex;flex-direction:column;gap:8px}
.rpSpeichern .dlBtn{width:100%;text-align:left;cursor:pointer;font-family:var(--font-sans)}
.rpUhr{align-self:center;font-size:14px;font-weight:600;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.rpZwei{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rpZwei .btnOutline{justify-content:center;min-height:42px}

.rpMeine{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.rpMeine summary{cursor:pointer;font-weight:700}
.rpMeine ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.rpMeine li{display:flex;gap:6px}
.rpMeine li button:first-child{flex:1;text-align:left;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:8px 10px;font:600 14px var(--font-sans);color:var(--text);cursor:pointer}
.rpMeine li button:last-child{width:38px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer;color:var(--muted)}

/* Marker */
.rpStart{width:30px;height:30px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--accent);border:3px solid #fff;box-shadow:0 3px 8px rgba(0,0,0,.35);cursor:grab}
.rpGriff{width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid var(--accent2);box-shadow:0 2px 5px rgba(0,0,0,.3);cursor:grab}
.rpKm{min-width:22px;height:22px;border-radius:11px;background:#fff;border:2px solid var(--brand);font:800 13px/18px var(--font-head);text-align:center;color:var(--ink);pointer-events:none}
.rpLauf{width:26px;height:26px;border-radius:7px;background:var(--ink);border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.3);cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
.rpLauf svg{width:15px;height:15px;fill:var(--accent)}
.rpZeiger{width:12px;height:12px;border-radius:50%;background:var(--ink);border:2px solid #fff;pointer-events:none}
.maplibregl-popup-content{border-radius:10px !important;padding:12px 14px !important;font:500 14px/1.4 var(--font-sans);color:var(--text)}
.maplibregl-popup-content b{display:block;font:700 18px/1.15 var(--font-head)}
.maplibregl-popup-content a{color:var(--brand);font-weight:700}

.rpText{padding-bottom:8px}
.rpText .panelText p{margin:0 0 10px}
.rpLaeufe{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rpLaeufe a{display:block;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.rpLaeufe a:hover{border-color:var(--brand)}
.rpLaeufe b{display:block;font:700 20px/1.15 var(--font-head)}
.rpLaeufe span{font-size:14px;color:var(--muted)}
.rpLaeufe em{font-style:normal;font-weight:700;color:var(--brand)}

@media (max-width:820px){
  .planer{height:auto;min-height:0;display:flex;flex-direction:column;overflow:visible}
  .planerKarte{position:relative !important;inset:auto;height:58vh;min-height:340px}
  .planerHinweis{left:12px;right:12px;top:12px;max-width:none;font-size:14px;padding:8px 12px;pointer-events:none}
  .planerPanel{position:relative;inset:auto;top:auto;left:auto;bottom:auto;width:auto;max-height:none;border-radius:16px 16px 0 0;margin-top:-16px;border-width:1px 0 0;box-shadow:none;background:var(--surface)}
  .rpLaeufe{grid-template-columns:1fr}
}
