#ovx-map-app .ovx-map-cta-gpx{
  bottom:102px;
  background:#172439;
  color:#ffffff;
  box-shadow:0 12px 28px rgba(23,36,57,.28);
}

.ovx-gpx-marker{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #ffffff;
  color:#ffffff;
  box-shadow:0 4px 12px rgba(15,34,54,.28),0 0 0 4px rgba(238,118,40,.25);
}
.ovx-gpx-marker svg{width:19px;height:19px}
.ovx-gpx-marker.is-green{background:#2f8f5b}
.ovx-gpx-marker.is-amber{background:#d18a00}
.ovx-gpx-marker.is-red{background:#c84a3a}
.ovx-gpx-marker.is-grey{background:#6f7f8f}

.ovx-gpx-popup,
.ovx-gpx-popup *{
  box-sizing:border-box;
}
.ovx-gpx-popup{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#142230;
  min-width:0;
}
.ovx-gpx-popup-photo{
  display:block;
  width:100%;
  max-height:140px;
  object-fit:cover;
  border-radius:10px;
  margin:0 0 10px;
  background:#eef3f7;
}
.ovx-gpx-popup-kicker{
  font-size:10px;
  line-height:1;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#667788;
  font-weight:800;
  margin-bottom:5px;
}
.ovx-gpx-popup h3{
  margin:0 0 6px;
  font-size:15px;
  line-height:1.25;
  color:#172439;
  overflow-wrap:anywhere;
}
.ovx-gpx-popup p{
  margin:8px 0 0;
  font-size:13px;
  line-height:1.45;
  color:#4f5f6f;
  overflow-wrap:anywhere;
}
.ovx-gpx-popup-meta{
  font-size:11px;
  line-height:1.4;
  color:#667788;
  margin-bottom:8px;
  overflow-wrap:anywhere;
}
.ovx-gpx-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 9px;
  font-size:11px;
  font-weight:800;
  line-height:1;
  border:1px solid transparent;
}
.ovx-gpx-badge-green{background:#e7f6ed;color:#1c6a3e;border-color:#cbead8}
.ovx-gpx-badge-amber{background:#fff3df;color:#9b6500;border-color:#ffe1ab}
.ovx-gpx-badge-red{background:#fde9e7;color:#b33d2f;border-color:#f8c9c3}
.ovx-gpx-badge-grey{background:#eef3f7;color:#556575;border-color:#d6e0e8}
.ovx-gpx-popup-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.ovx-gpx-popup-btn{
  appearance:none;
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  border-radius:9px;
  padding:8px 10px;
  font-size:11px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
}
.ovx-gpx-popup-btn-primary{background:#ee7628;color:#fff!important}
.ovx-gpx-popup-btn-secondary{background:#eef3f7;color:#172439!important}

body.ovx-gpx-modal-open{
  overflow:hidden;
}
.ovx-gpx-modal,
.ovx-gpx-modal *{
  box-sizing:border-box;
}
.ovx-gpx-modal{
  position:fixed;
  inset:0;
  z-index:3600;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:92px 20px 32px;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.ovx-gpx-modal.is-hidden{display:none!important}
.ovx-gpx-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,34,54,.58);
  backdrop-filter:blur(4px);
}
.ovx-gpx-modal-card{
  position:relative;
  width:min(760px,100%);
  max-height:calc(100vh - 124px);
  overflow:auto;
  background:#fff;
  border:1px solid #d8e1e8;
  border-radius:22px;
  box-shadow:0 18px 50px rgba(15,34,54,.24);
  color:#142230;
  padding:22px;
}
.ovx-gpx-modal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:40px;
  height:40px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#667788;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
.ovx-gpx-modal-head{
  display:grid;
  gap:8px;
  padding-right:42px;
  margin-bottom:16px;
}
.ovx-gpx-eyebrow{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#667788;
  font-weight:800;
}
.ovx-gpx-modal-head h3{
  margin:0;
  font-size:27px;
  line-height:1.1;
  color:#172439;
}
.ovx-gpx-modal-head p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#667788;
}
.ovx-gpx-form{
  display:grid;
  gap:14px;
}
.ovx-gpx-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.ovx-gpx-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.ovx-gpx-field{
  min-width:0;
}
.ovx-gpx-field label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:#667788;
  margin-bottom:6px;
}
.ovx-gpx-input{
  display:block;
  width:100%;
  border:1px solid #d8e1e8;
  border-radius:14px;
  background:#fff;
  color:#142230;
  padding:12px 14px;
  font-size:14px;
  line-height:1.3;
  outline:none;
}
textarea.ovx-gpx-input{
  resize:vertical;
  min-height:108px;
}
.ovx-gpx-input:focus{
  border-color:#ee7628;
  box-shadow:0 0 0 3px rgba(238,118,40,.14);
}
.ovx-gpx-help,
.ovx-gpx-legal{
  margin-top:6px;
  font-size:12px;
  line-height:1.45;
  color:#667788;
}
.ovx-gpx-legal a{
  color:inherit;
  text-decoration:underline;
}
.ovx-gpx-actions{
  display:flex;
  gap:10px;
  justify-content:space-between;
  flex-wrap:wrap;
}
.ovx-gpx-btn{
  appearance:none;
  border:0;
  cursor:pointer;
  border-radius:12px;
  min-height:46px;
  padding:0 16px;
  font-size:14px;
  font-weight:800;
}
.ovx-gpx-btn-primary{background:#ee7628;color:#fff}
.ovx-gpx-btn-secondary{background:#eef3f7;color:#172439}
.ovx-gpx-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.ovx-gpx-status{
  min-height:18px;
  font-size:13px;
  line-height:1.45;
  color:#667788;
}
.ovx-gpx-status.is-info{
  color:#274055;
  font-weight:700;
}
.ovx-gpx-status.is-success{
  color:#1c6a3e;
  font-weight:800;
}
.ovx-gpx-status.is-error{
  color:#b33d2f;
  font-weight:800;
}
.ovx-gpx-hp{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

@media (max-width:767px){
  #ovx-map-app .ovx-map-cta-gpx{
    bottom:94px;
  }
  .ovx-gpx-modal{
    padding:76px 12px 18px;
  }
  .ovx-gpx-modal-card{
    max-height:calc(100vh - 96px);
    border-radius:18px;
    padding:18px 14px;
  }
  .ovx-gpx-modal-head h3{
    font-size:22px;
  }
  .ovx-gpx-grid,
  .ovx-gpx-grid-3{
    grid-template-columns:1fr;
  }
  .ovx-gpx-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .ovx-gpx-btn{
    width:100%;
  }
}

/* OVEX GPX v3: Trefferliste + automatische Routenanzeige */
.ovx-gpx-list-block{
  display:block;
}

.ovx-gpx-list-card{
  background:#fffdf9;
  border-left:4px solid #ee7628;
}

.ovx-gpx-list-card:hover{
  background:#fff7ed;
}

.ovx-gpx-card-icon{
  color:#ee7628!important;
}

.ovx-gpx-card-icon svg{
  display:block;
  width:20px;
  height:20px;
}

.ovx-gpx-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.ovx-gpx-list-card .ovx-card-photo{
  border-color:rgba(238,118,40,.28);
}

@media (max-width:767px){
  .ovx-gpx-list-card{
    border-left:0;
    border-top:3px solid #ee7628;
  }

  .ovx-gpx-card-actions{
    margin-top:9px;
  }
}


/* OVEX Maps v3.0 Beta – GPX Start/Ziel + Liste */
.ovx-gpx-marker span{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:13px;font-weight:900;line-height:1}
.ovx-gpx-marker-end{box-shadow:0 4px 12px rgba(15,34,54,.28),0 0 0 4px rgba(23,36,57,.18)}
.ovx-gpx-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ovx-gpx-inline-status{min-height:16px;font-size:12px;line-height:1.45;color:#667788}
.ovx-gpx-inline-status.is-info{color:#274055;font-weight:700}
.ovx-gpx-inline-status.is-success{color:#1c6a3e;font-weight:800}
.ovx-gpx-inline-status.is-error{color:#b33d2f;font-weight:800}

/* OVEX v3 Beta: GPX Start-/Zielmarker + Kommentar-Fotos */
.ovx-gpx-marker span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size:13px;
  font-weight:900;
  line-height:1;
  letter-spacing:.02em;
}
.ovx-gpx-marker-start{
  box-shadow:0 4px 12px rgba(15,34,54,.28),0 0 0 4px rgba(47,143,91,.22);
}
.ovx-gpx-marker-end{
  box-shadow:0 4px 12px rgba(15,34,54,.28),0 0 0 4px rgba(238,118,40,.26);
}
.ovx-gpx-comment-photos{
  margin-top:10px;
}
.ovx-gpx-list-card .ovx-comment-photo-btn{
  position:relative;
  display:inline-flex;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  border-radius:12px;
  overflow:hidden;
}
.ovx-gpx-list-card .ovx-comment-photo-btn img{
  display:block;
  width:72px;
  height:54px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #d8e1e8;
}
.ovx-gpx-list-card .ovx-comment-photo-btn:after{
  content:"⌕";
  position:absolute;
  right:5px;
  bottom:5px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(23,36,57,.88);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  line-height:1;
  box-shadow:0 6px 14px rgba(15,34,54,.24);
}
.ovx-cta-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ovx-btn-cta-gpx{
  background:#eef3f7!important;
  color:#172439!important;
  box-shadow:none!important;
}
@media (max-width:767px){
  .ovx-cta-buttons{width:100%;justify-content:stretch}
  .ovx-cta-buttons .ovx-btn{flex:1 1 100%}
}


/* OVEX Maps v3.7 Repair 5 | GPX-Liste isoliert scrollen */
#ovx-map-app .ovx-gpx-list-block{
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

/* =========================================================
   OVEX Maps v3.7 Repair 5a | Modal Layer Guard
   Ziel: Punkt-, GPX- und Hilfe-Modale liegen immer über
   Cookiebutton, A2HS-Mini und Bottom-Bar.
   ========================================================= */

#ovxSuggestModal,
#ovx-map-app .ovx-modal-backdrop,
.ovx-modal-backdrop,
.ovx-gpx-modal,
.ovx-help-modal,
.ovx-new-modal,
.ovx-help-nearby,
.ovx-help-confirm-modal {
  z-index: 100100 !important;
}

#ovxSuggestCard,
#ovx-map-app .ovx-modal-card,
.ovx-modal-card,
.ovx-gpx-modal-card,
.ovx-help-modal-card,
.ovx-new-card,
.ovx-help-nearby-card,
.ovx-help-confirm-card {
  position: relative !important;
  z-index: 100101 !important;
}


/* OVEX Maps v4.1 Patch A6 | GPX Upload UI Repair
   Scope: GPX modal upload tile consistency + iOS input zoom prevention only. */
.ovx-gpx-modal .ovx-gpx-photo-upload-wrap{
  width:100%;
}

.ovx-gpx-modal .ovx-photo-upload-wrap.has-file .ovx-photo-upload-icon::before{
  content:"\2713"!important;
}

@media (max-width:767px){
  .ovx-gpx-modal .ovx-gpx-input,
  .ovx-gpx-modal input.ovx-gpx-input,
  .ovx-gpx-modal select.ovx-gpx-input,
  .ovx-gpx-modal textarea.ovx-gpx-input{
    font-size:16px!important;
  }

  .ovx-gpx-modal .ovx-photo-upload-title,
  .ovx-gpx-modal .ovx-photo-upload-subtitle{
    font-size:16px!important;
  }
}
